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 |
mal | and 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 |
mal | so what does it use with old drivers | 12:40 |
mal | smd driver is for specific hardware, not for all | 12:40 |
T42 | <edp_17> I see. | 12:40 |
T42 | <edp_17> So, I need to find out why bluetooth service is crashing. | 12:43 |
mal | first verify what driver it uses with old drivers | 12:44 |
T42 | <edp_17> On this device, I never got bluetooth working. | 12:45 |
mal | ok | 12:49 |
mal | I assume you gave a list of enabled BT kernel configs earlier? from original drivers | 12:49 |
T42 | <edp_17> It uses bcm4335.hcd firmware. | 12:52 |
T42 | <Mister_Magister> broadcomm | 12:52 |
T42 | <edp_17> And also BT_HCIUART is Y in defconfig. | 12:53 |
mal | yeah, so forget about smd then | 12:59 |
mal | it's not for broadcom bt chips | 12: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-bluez5 | 14: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_Magister | mal: 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/c129fc1060a2 | 16:56 |
Mister_Magister | and when i start lipstick as you can see evdevtablet is picking it up nicely https://paste.opensuse.org/pastes/d53c406e6f1c | 16:57 |
Mister_Magister | and nothing happens | 16:58 |
Mister_Magister | I've went over evdevtablet code so many times | 17:01 |
Mister_Magister | and I've confirmed that QWindowSystemInterface::handleTabletEvent is being ran | 17:01 |
Mister_Magister | and I have no idea how to debug it further | 17:02 |
T42 | <edp_17> Mister_Magister, what device is that? | 18:13 |
Mister_Magister | pipa | 18:13 |
Mister_Magister | xiaomi pad 6 | 18:13 |
T42 | <edp_17> Does it have a pen? Like S-pen on Samsung devices? | 18:14 |
Mister_Magister | yes | 18:15 |
Mister_Magister | i jsut mentioned it | 18: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_Magister | that's not needed here | 18:17 |
Mister_Magister | as I have shown above, its working | 18: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> *achive | 18:19 |
Mister_Magister | having the pen working | 18:20 |
Mister_Magister | currently im getting evdev events and qt evdev plugin is sending them to qt and nothing happnes | 18:22 |
Mister_Magister | by all means it should be working, but its not | 18: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 qt | 18: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 something | 22:10 |
mal | Mister_Magister: I haven't been able verify the display refresh rate, something is really wrong in the adaptaion, I get about 20 Hz refresh rate | 22:34 |
Mister_Magister | fun | 22:34 |
Mister_Magister | mal: will you have time to help me with the tablet tomorrow perchance? | 22:35 |
Mister_Magister | everything on hardware side is working I'm just missing something on the software side | 22:35 |
mal | maybe, I also have fun project of figuring out what changed in aidl binder protocol in a15 | 22:35 |
Mister_Magister | fun | 22:36 |
mal | it doens't work at all the moment | 22:36 |
Mister_Magister | for 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 there | 22:36 |
Mister_Magister | by all means, it should be working already | 22:37 |
mal | binder-list for /dev/binder just returns empty | 22:37 |
Mister_Magister | fun xd | 22:37 |
Mister_Magister | mal: 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 power | 22:38 |
Mister_Magister | then just hook it up to mce which knows about activity and voila | 22:38 |
mal | yeah, something to do once everything else works | 22:39 |
Mister_Magister | yee | 22:39 |
mal | binder is the priority, without it most things don't work | 22:39 |
Mister_Magister | the 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 app | 22:39 |
Mister_Magister | as i don't think sfos currently have one | 22:40 |
Mister_Magister | so i'm kinda hype to get it working yaknow xd damn thing costs an arm and a leg, the pen, not the tablet | 22:40 |
Mister_Magister | 22:41 | |
Mister_Magister | anyway i'll talk to you tomorrow | 22:41 |
Mister_Magister | i'm running on 2h of sleep and hope | 22:41 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!