T42 | <TheVancedGamer> mal: fixed it! :D | 10:29 |
---|---|---|
mal | @TheVancedGamer nice, what was it? | 10:56 |
T42 | <TheVancedGamer> mal: https://github.com/sailfishos/usb-moded/pull/20 | 17:40 |
T42 | <TheVancedGamer> just add that example bit to your usb-moded config and it should charge on SDP port | 17:46 |
mal | @TheVancedGamer just checked on fp6 and /config/usb_gadget/g1/configs/c.1/MaxPower is 2 | 17:55 |
Mister_Magister | mal: hi, would you have time today to help me with the stylus? | 17:58 |
mal | thinking 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 think | 17:59 |
mal | Mister_Magister: not sure how to help | 17:59 |
Mister_Magister | mal: 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 somehow | 18:00 |
Mister_Magister | https://github.com/callaa/QTabletTest/blob/master/tablettestview.cpp#L206 this event needs to arrive | 18:01 |
mal | directly? | 18:01 |
Mister_Magister | yeah like if you launch lipstick by hand but swap lipstick for the app | 18:01 |
Mister_Magister | EGL_PLATFORM=hwcomposer QT_QPA_PLATFORM=hwcomposer ./QTabletTester -plugin evdevtouch -plugin evdevtablet | 18:02 |
Mister_Magister | without lipstick running | 18:02 |
Mister_Magister | while it doesn't show anything it is receiving events cause i see them in output | 18:02 |
T42 | <TheVancedGamer> mal: since usb-moded creates the functions and configs, it would make sense for maxpower to be in there as well | 18:04 |
Mister_Magister | well 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 breaks | 18:05 |
mal | @TheVancedGamer it does? | 18:05 |
mal | Mister_Magister: yeah, something like that | 18:05 |
Mister_Magister | cause all i care about is event arriving into the app, doesn't even have to be qtquick :D | 18:06 |
T42 | <TheVancedGamer> mal: https://github.com/sailfishos/usb-moded/blob/master/src/usb_moded-configfs.c#L803 | 18:06 |
T42 | <TheVancedGamer> yes it does | 18:06 |
Mister_Magister | if i can just feed the info it will be fine | 18:06 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!