Saturday, 2025-08-16

T42<TheVancedGamer> mal: fixed it! :D10:29
mal@TheVancedGamer nice, what was it?10:56
T42<TheVancedGamer> mal: https://github.com/sailfishos/usb-moded/pull/2017:40
T42<TheVancedGamer> just add that example bit to your usb-moded config and it should charge on SDP port17:46
mal@TheVancedGamer just checked on fp6 and /config/usb_gadget/g1/configs/c.1/MaxPower is 217:55
Mister_Magistermal: hi, would you have time today to help me with the stylus?17:58
malthinking of the change, since that is basically simple init stuff and usb-moded usually assumes usb configfs has been properly initialized and doesn't really do anything like that, the creation of configfs things in sailfish are done either by kernel init script or android side processes so in a way it could also go to the usb-moded systemd service dropin folder to a script, but need to think17:59
malMister_Magister: not sure how to help17:59
Mister_Magistermal: well, from what I understand, we don't heed to make the stylus interact with the ui, all we care about is for the event to get to the app. If i launch the app directly it works fine, but if launched through lipstick it doesn't so it has to stop the event somehow18:00
Mister_Magisterhttps://github.com/callaa/QTabletTest/blob/master/tablettestview.cpp#L206 this event needs to arrive18:01
maldirectly?18:01
Mister_Magisteryeah like if you launch lipstick by hand but swap lipstick for the app18:01
Mister_MagisterEGL_PLATFORM=hwcomposer QT_QPA_PLATFORM=hwcomposer ./QTabletTester -plugin evdevtouch -plugin evdevtablet18:02
Mister_Magisterwithout lipstick running18:02
Mister_Magisterwhile it doesn't show anything it is receiving events cause i see them in output18:02
T42<TheVancedGamer> mal: since usb-moded creates the functions and configs, it would make sense for maxpower to be in there as well18:04
Mister_Magisterwell I just got idea. I can gdb the app and track the event from evdev to the app, then gdb the lipstick and do the same and see where it breaks18:05
mal@TheVancedGamer it does?18:05
malMister_Magister: yeah, something like that18:05
Mister_Magistercause all i care about is event arriving into the app, doesn't even have to be qtquick :D18:06
T42<TheVancedGamer> mal: https://github.com/sailfishos/usb-moded/blob/master/src/usb_moded-configfs.c#L80318:06
T42<TheVancedGamer> yes it does18:06
Mister_Magisterif i can just feed the info it will be fine18:06

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!