You are not logged in.

#1 2018-08-16 00:37:23

browen
Member
Registered: 2018-08-15
Posts: 1

Chromebook's power button won't stop working after being disabled

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_12

and disabled its default behaviour in /etc/systemd/logind.conf

HandlePowerKey=ignore

Even 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"
EndSection

so 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

#2 2018-08-16 03:47:09

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Chromebook's power button won't stop working after being disabled

Sounds like it is the BIOS performing that 9-second shutdown.

Offline

Board footer

Powered by FluxBB