Hardware buttons on Thinkpad X230 tablet disabled in tablet mode

Ryan Walklin ryan at testtoast.com
Wed Oct 31 23:32:06 UTC 2018


Hi,

I have a Thinkpad X230 tablet running the Sway WM on Fedora Workstation 29. 

I've set up the screen rotation button to rotate the screen 90 degrees each press, however the button only works in laptop mode. In tablet mode the button is disabled. 

Investigating shows that the button is registered as part of the internal PS/2 keyboard (key code 153, XF86RotateWindows) and I suspect is being disabled by libinput along with the rest of the keyboard and trackpad as a result of this bug (https://bugs.freedesktop.org/show_bug.cgi?id=102729). 

Is there any way to prevent this from happening, either stopping the keyboard being disabled at all or whitelisting specific keys?

Regards,

Ryan


More information about the wayland-devel mailing list