I have a ThinkPad X201 Tablet running Linux. On that there are buttons on the bezel, that are still visible when in tablet mode. However, these keys are part of the same event device as the keyboard. In my case it’s the Virtual core keyboard
which is found on /dev/input/event3
xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:16 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:16 id=7 [slave pointer (2)]
⎜ ↳ xwayland-stylus:16 id=10 [slave pointer (2)]
⎜ ↳ xwayland-eraser:16 id=11 [slave pointer (2)]
⎜ ↳ xwayland-cursor:16 id=12 [slave pointer (2)]
⎜ ↳ xwayland-touch:16 id=9 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:16 id=8 [slave keyboard (3)]
When I rotate and flip the screen into tablet mode the the computer enters SW_TABLET_MODE
, which disables the touchpad and keyboard. This means, that the bezel buttons also doesn’t work even though they are still accessible and needed for different things.
libinput shows that it enters SW_TABLET_MODE
and then later when I flipped the screen back into normal mode again.
libinput debug-events
-event6 SWITCH_TOGGLE +0.457s switch tablet-mode state 1
event6 SWITCH_TOGGLE +38.721s switch tablet-mode state 0
Is it possible to configure somewhere what SW_TABLET_MODE
disables or enables, so that I can prevent it from disabling my keyboard when in tablet mode?