You are not logged in.
Hi everyone! :)
Lately I've been successfully configuring my new Samsung Chromebook 3, with the exception of this little son of a button, the power button. Since this button is located exactly where the
Delete button is suppose to be (and F12) I remapped it in ~/.Xmodmap
! keycode 124 = XF86PowerOff NoSymbol XF86PowerOff
keycode 124 = Delete F12 F12 F12 F12 F12 XF86Switch_VT_12and disabled its default behaviour in /etc/systemd/logind.conf
HandlePowerKey=ignoreEven though it worked when pressing the key once I couldn't hold the key to keep deleting the rest of the line, I had to delete one character at a time. So I disabled the power button event from Xorg with the file /etc/X11/xorg.conf.d/42-power-button.conf
Section "InputClass"
Identifier "libinput keyboard power button"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
MatchProduct "Power Button"
Driver "libinput"
Option "ignore" "true"
EndSectionso Xorg.0.log shows
[ 22.930] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 22.930] (**) Power Button: Ignoring device from InputClass "libinput keyboard power button"
[...]
[ 22.954] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[ 22.954] (**) Power Button: Ignoring device from InputClass "libinput keyboard power button"and I'm able to hold the key to keep deleting characters continuously. HOWEVER if I hold the key for more than ~9 seconds the computer shut downs :(
So what am I missing? How can I completely disable the behaviour of the power button in order to hold the key indefinitely?
Offline
Sounds like it is the BIOS performing that 9-second shutdown.
Offline