I have a Chromebook on which I installed Arch Linux. However, this Chromebook comes with a very odd key: a "Power On/Off" key at the top right of the keyboard. Without ANY warning, this button turns off the computer. Naturally, I have been pressing this key when looking for backspace or when my finger slipped while pressing surrounding buttons. As a consequence, I have turned off my computer at very impractical moments. This has to stop.

How can I disable or remap this key?

enter image description here

  • I have never noticed that about Chromebooks. What an awful design... – Peschke Jun 9 '16 at 15:37

I found your solution on the Arch wiki:

Out of the box, systemd-logind will catch power key and lid switch events and handle them: it will shut down the Chromebook on a power key press, and a suspend on a lid close. However, this policy might be a bit harsh given that the power key is an ordinary key at the top right of the keyboard that might be pressed accidentally.

To configure logind to ignore power key presses and lid switches, add the lines to logind.conf below.



Then restart logind for the changes to take effect.

It looks like you just need to add HandlePowerKey=ignore to /etc/systemd/logind.conf.


First you could edit your keymap file to change the behavior of the power button to assign it to an other key

Edit the file : /usr/share/X11/xkb/symbols/inet (edit POWR key)

Then you will need to disable the power button efficiently a good method is with xinput

run xinput --list power buttons have their own entry... pick the device number then run

xinput disable devnumber something like xinput disable 8

protected by Anthon Sep 22 '17 at 13:24

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.