Tuesday, 2025-08-12

Mister_Magistermal: mAAAAAAAAAAAAAAaaaaaaaaaaaaaaal, did you have issues with bluetooth reconnecting on android 10? like you can pair the device, turn bt (or device) off/on and you cannot connect to paired device?17:01
malno that I remember17:03
Mister_Magisteraaaaaaaaaaaaaaaaaaaaaaaaany idea how to fix it? xd17:03
malstop writing like that, looks annoying17:04
malcheck debug logs17:04
Mister_Magistersorry17:04
Mister_Magisterno fun allowed :P which log precisely, the usual 3?17:04
malI mean bluez debug output17:05
mallooks for anything pairing related in there17:06
Mister_Magisteroki17:08
T42<edp_17> If light sensor doesn't work, where should I investigate?17:19
maldo other sensors work?17:22
T42<edp_17> Yes.17:23
malanything in sensorfwd logs?17:23
T42<edp_17> evdev_trace says: light senor is /dev/input/event817:23
malusually sensors go through and side17:24
mal*android side17:24
T42<edp_17> Should I just run that sensorfwd? Like: https://paste.ubuntu.com/p/QF93MQ4mHS/17:24
malyou have it running already probably, and it probably takes some parameters, check the systemd service file of it17:26
maland we use devel-su in sailfish, not sudo17:26
T42<edp_17> Should I have something for light sensor in /etc/sensorfw/primaryuse.conf? https://paste.ubuntu.com/p/xgqJnw5C63/17:29
malit's als17:34
malambient light sensor = als17:35
T42<edp_17> Thanks17:37
Mister_Magistermal: @elros34 So @notkit said to run the test app directly not via lipstick and it is aware of events so… somewhere there's a break23:15
Mister_Magisterbut ig we figured out its not plugin nor application23:20
Mister_Magisterso either lipstick or wayland23:20
Mister_Magisterit would seem that lipstick absolutely ignores tablet events https://github.com/sailfishos/lipstick/blob/master/src/compositor/lipstickcompositorwindow.cpp#L25623:24
Mister_Magisterso I don't know what the guy telling me that they'reusing evdevtablet was smoking, but he's high as…23:24
T42<NotKit> it might be it produces normal touch events on touchscreens somehow?23:24
malpiggz is using evdevtablet https://github.com/sailfish-on-dontbeevil/droid-config-pinephone/blob/master/sparse/var/lib/environment/compositor/droid-hal-device.conf23:25
Mister_Magisteryeah23:25
Mister_Magisterand it has no way of working23:25
Mister_Magisterhttps://invent.kde.org/thesamesam/qtbase/-/blob/v5.15.5-lts-lgpl/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp#L153 it has hardcoded tablet event23:26
Mister_Magisterand nothing in lipstick handles tablet event23:26
Mister_Magisterwhat kind of magic is that23:26
malso implement it, should not be too difficult23:26
Mister_Magisteri'm incredibly confused23:26
Mister_MagisterI will23:26
Mister_MagisterI just want to keep you updated and also complain23:26
malsee if it work after adding support in that function you linked23:27
Mister_Magisteri don't understand what magic are they doing that it works for piggz but i doubt it works23:27
Mister_Magistermal: i will I will23:27
malI wonder how mouse events are handled23:27
malsince those work afaik23:27
Mister_Magisteroh right… wait… wtf23:27
malthat has things like mouseMoveEvent not sure where those are called23:28
Mister_Magistermal: but normally evdevmouse is not enabled23:28
Mister_MagisterI think23:28
Mister_Magisterye by default you're getting evdevtouch and evdev keyboard23:29
Mister_Magisterso mouse has to be handled via wayland or something23:29
Mister_Magistermind that i have 0 clue what I'm talking about23:29
Mister_Magistermal: oh, there's like mouse event method below so they must be called somehow, maybe thanks to installEventFilter23:30
Mister_Magisterbut we're getting somewhere and i got idea of what i need to do thanks mal @notkit23:32
malhttps://github.com/sailfishos/qtwayland/blob/mer-5.6/src/compositor/compositor_api/qwaylandsurfaceitem.h#L9323:32
Mister_Magisterso i was right saying they're handled by wayland?23:33
Mister_Magistermy madman mumbling was true for once23:34
malwhat kind of events did you see in the test app?23:37
Mister_Magistermal: well the display wasn't working but I have seen in output the app reacting, most notably D] unknown:0 - near QTabletEvent::PointerType(Pen)23:39
Mister_Magisterwhat's interesting, pressing buttons doesn't change the type23:40
Mister_Magisteroh wait23:41
Mister_Magisterhttps://invent.kde.org/thesamesam/qtbase/-/blob/v5.15.5-lts-lgpl/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp#L11323:41
Mister_Magisterif it sends touch, that should work no issue23:41
Mister_Magisterbut mine sends BTN_TOOL_PEN23:42
Mister_Magistermaybe thats why it doesn't work for me23:42
Mister_Magisteri'm purely speculating again23:42
Mister_Magisterlet me do cheeky evdevtrace23:42
Mister_Magisterhttps://paste.opensuse.org/pastes/e13f6aa83b4f23:43
malyou have BTN_DIGI in there23:45
maland BTN_TOUCH23:45
malwhat is that BTN_DIGI even, no idea23:46
Mister_Magisteroh ye touch is there too23:46
Mister_Magistermal: so clicking buttons doesn't seem to send any events, and BTN_DIGI i think is "BTN_TOOL_* value 1 -> proximity enter" as per comment23:48
Mister_Magisterbecause it first appear (pen getting near) and then touch switches between 0/1 depending if im touching or not23:48
malok23:49
Mister_Magisterfrom linux docs For example, a pen tablet may set BTN_TOOL_PEN to 1 and BTN_TOUCH to 0 while the pen is hovering over but not touching the tablet surface23:50
Mister_Magisteraaand if piggz's touchpanel is sending tablet events, he won't ever get hovering cause… you can't detect hovering finger yet23:50
Mister_MagisterI cound for example, modify kernel driver to stop sending the tool events23:51
Mister_Magisterbut thats not really the solution as i'm not sure if pressure would be taken into account23:51
Mister_MagisterI'll modify lipstick and see how it goes23:52

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