Discussion:
Hardware buttons on Thinkpad X230 tablet disabled in tablet mode
(too old to reply)
Ryan Walklin
2018-10-31 23:32:06 UTC
Permalink
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
Peter Hutterer
2018-11-01 08:49:11 UTC
Permalink
Post by Ryan Walklin
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?
we just need an entry for that device, see the bug below for the x220,
shouldn't be hard to add another entry for the 230. I'll glady accept any
merge requests :)

https://gitlab.freedesktop.org/libinput/libinput/issues/154

Cheers,
Peter
Ryan Walklin
2018-11-01 14:44:50 UTC
Permalink
That's great thanks Peter, much easier than I thought! Will generate a
similar entry for the X230.

On Thu, Nov 1, 2018 at 8:49 AM, Peter Hutterer
Post by Peter Hutterer
Post by Ryan Walklin
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?
we just need an entry for that device, see the bug below for the x220,
shouldn't be hard to add another entry for the 230. I'll glady accept any
merge requests :)
https://gitlab.freedesktop.org/libinput/libinput/issues/154
Cheers,
Peter
Peter Hutterer
2018-11-02 00:42:51 UTC
Permalink
Post by Ryan Walklin
That's great thanks Peter, much easier than I thought! Will generate a
similar entry for the X230.
and it's merged, thanks!

Cheers,
Peter
Post by Ryan Walklin
Post by Peter Hutterer
Post by Ryan Walklin
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?
we just need an entry for that device, see the bug below for the x220,
shouldn't be hard to add another entry for the 230. I'll glady accept any
merge requests :)
https://gitlab.freedesktop.org/libinput/libinput/issues/154
Cheers,
Peter
Continue reading on narkive:
Loading...