Comment 50 for bug 1366421

Revision history for this message
marmuta (marmuta) wrote :

Glad it works for you, thanks for testing, Ritesh.

> I'm just curious how you came up with the number 70/71 for my setup ?
Honestly, I don't know anymore. What I think I did was to remap two keys on my USB keyboard with setkeycodes, in order to emulate TouchPadOn/Off manually. Then 'xinput test-xi2 3' and Onboard's GlobalKeyListener both gave me 70/71. Those values seemed odd, but hey they worked.

However, now I'm apparently unable to reproduce this. setkeycodes from my notes does nothing, and when I remap keys with UDev hwdb (instructions in /lib/udev/hwdb.d/60-keyboard.hwdb) 'xinput test-xi2 3' gives me 200/201. Ahd frankly, that makes more sense, as those are the keycodes from your output in comment #39.

So, I don't really know why it works with 70/71. If it ever happens not to anymore, try 200/201. Meanwhile, I'm wondering if Onboard uses hotkeys at all for tablet-mode switching, or if any of the two other approaches have started working. 'onboard -ddebug', while going tablet and back, would clear that up, mainly the HardwareSensorTracker entries. You could attach the output here, or just look at mainly the HardwareSensorTracker entries yourself.

> I'll check other drivers on how they are populating SW_TABLET_MODE.
> In my opinion, leveraging Touchpad status for populating SW_TABLET_MODE
> should be fine.
Yes, possibly. If it turns out that Touchpad status is the only way the firmware allows to detect tablet-mode, then they might as well bake that into the ideapad-laptop driver and send SW_TABLET_MODE.