Friday, 2025-08-08

T42<edp_17> I am trying to make backported bluez work on my other device (Galaxy S4 - jfltexx). When I modprobe hci_smd, I am getting "ERROR: could not insert 'hci_smd': Invalid argument"12:26
T42<edp_17> I strace it and saw: "/sys/module/hci_smd/initstate - (No such file or directory)"12:27
T42<edp_17> I could modprobe hci_uart fine.12:28
T42<edp_17> But bluetooth service fails with "Failed to access management interface": https://paste.ubuntu.com/p/5kvxYG2PDk/12:29
T42<edp_17> So, it feels there is no backported driver loaded.12:29
maland you are sure your device uses smd driver?12:33
T42<edp_17> No, not at all.12:37
T42<edp_17> I think it is using hci_uart because there is no /sys/module/hci_smd but there is /sys/module/hci_uart. (and the hci_uart module loaded fine)12:39
malso what does it use with old drivers12:40
malsmd driver is for specific hardware, not for all12:40
T42<edp_17> I see.12:40
T42<edp_17> So, I need to find out why bluetooth service is crashing.12:43
malfirst verify what driver it uses with old drivers12:44
T42<edp_17> On this device, I never got bluetooth working.12:45
malok12:49
malI assume you gave a list of enabled BT kernel configs earlier? from original drivers12:49
T42<edp_17> It uses bcm4335.hcd firmware.12:52
T42<Mister_Magister> broadcomm12:52
T42<edp_17> And also BT_HCIUART is Y in defconfig.12:53
malyeah, so forget about smd then12:59
malit's not for broadcom bt chips12:59
T42<edp_17> Thanks.14:30
T42<edp_17> So, I need to make hci_uart and brcm_patchram_plus work somehow.14:30
T42<edp_17> I have installed: bluez5-tools-hciattach, bluetooth-rfkill-event-hciattach and broadcom-bluetooth-bluez514:31
T42<edp_17> Might be this is the issue: "bind(6, {sa_family=AF_BLUETOOTH, hci_dev=htobs(65535), hci_channel=HCI_CHANNEL_CONTROL}, 6) = -1 EINVAL (Invalid argument)": https://paste.ubuntu.com/p/Xzy5D6JsXw/15:02
Mister_Magistermal: so remember my yesterday's difficult question? I got the pen now and as you can see events are nice and pretty https://paste.opensuse.org/pastes/c129fc1060a216:56
Mister_Magisterand when i start lipstick as you can see evdevtablet is picking it up nicely https://paste.opensuse.org/pastes/d53c406e6f1c16:57
Mister_Magisterand nothing happens16:58
Mister_MagisterI've went over evdevtablet code so many times17:01
Mister_Magisterand I've confirmed that QWindowSystemInterface::handleTabletEvent is being ran17:01
Mister_Magisterand I have no idea how to debug it further17:02
T42<edp_17> Mister_Magister, what device is that?18:13
Mister_Magisterpipa18:13
Mister_Magisterxiaomi pad 618:13
T42<edp_17> Does it have a pen? Like S-pen on Samsung devices?18:14
Mister_Magisteryes18:15
Mister_Magisteri jsut mentioned it18:15
T42<edp_17> I wasn't sure that's why asked.18:16
T42<edp_17> For my Note 4, I've built a POC app that reacts if I pull out/put in the pen.18:16
Mister_Magisterthat's not needed here18:17
Mister_Magisteras I have shown above, its working18:17
T42<edp_17> Oh, okay. I just bumped in so, don't know the history. Thought could help. :)18:18
T42<edp_17> What are you trying to do?18:18
T42<edp_17> *achive18:19
Mister_Magisterhaving the pen working18:20
Mister_Magistercurrently im getting evdev events and qt evdev plugin is sending them to qt and nothing happnes18:22
Mister_Magisterby all means it should be working, but its not18:22
T42<edp_17> When I am back at my pc I'll dig out the old code from my Note4, might be helpful.18:26
Mister_Magister@edp_17 mind that error lies in qt18:52
T42<elros34> have you tried instaling event filter in lipstick root window to see whether compositor get the events? There is some handling in lipstick for mouse/touch, maybe tablet requires something22:10
malMister_Magister: I haven't been able verify the display refresh rate, something is really wrong in the adaptaion, I get about 20 Hz refresh rate22:34
Mister_Magisterfun22:34
Mister_Magistermal: will you have time to help me with the tablet tomorrow perchance?22:35
Mister_Magistereverything on hardware side is working I'm just missing something on the software side22:35
malmaybe, I also have fun project of figuring out what changed in aidl binder protocol in a1522:35
Mister_Magisterfun22:36
malit doens't work at all the moment22:36
Mister_Magisterfor now all i've gotten is ensured that evdev events are correct and recompiled my own evdevtablet plugin to add more login and confirmed that events are being sent to the qt. I have 0 clue where to go from there22:36
Mister_Magisterby all means, it should be working already22:37
malbinder-list for /dev/binder just returns empty22:37
Mister_Magisterfun xd22:37
Mister_Magistermal: if you figure the 20Hz… maybe you can figure out an api to change refresh rate? Line android switches between 120 and 90 or 60 to conserve power22:38
Mister_Magisterthen just hook it up to mce which knows about activity and voila22:38
malyeah, something to do once everything else works22:39
Mister_Magisteryee22:39
malbinder is the priority, without it most things don't work22:39
Mister_Magisterthe tablet is the last thing to get working (beside the other fixes reported in issue tracker) and then i could work on porting some note taking app22:39
Mister_Magisteras i don't think sfos currently have one22:40
Mister_Magisterso i'm kinda hype to get it working yaknow xd damn thing costs an arm and a leg, the pen, not the tablet22:40
Mister_Magister22:41
Mister_Magisteranyway i'll talk to you tomorrow22:41
Mister_Magisteri'm running on 2h of sleep and hope22:41

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