disabling the power button on my "Peppy" Chromebook
by j12i from LinuxQuestions.org on (#6E38E)
Hi!
I have a Acer C720 Chromebook that runs Slackware64. It has gotten the "Full ROM" BIOS flash from mrchromebox.tech. I'm running a Wayland session.
On the keyboard, the power off button is right above backspace, where from my other laptop I expect the delete key. So you can imagine how often I shut this netbook down accidentally.
I already did a web search and tried two things to disable the power button:
PS: I have the search key (where caps lock would be on a usual keyboard) mapped to "Fn". I don't think I configured this. Ideally, Fn+poweroff would still do the shutdown.
I have a Acer C720 Chromebook that runs Slackware64. It has gotten the "Full ROM" BIOS flash from mrchromebox.tech. I'm running a Wayland session.
On the keyboard, the power off button is right above backspace, where from my other laptop I expect the delete key. So you can imagine how often I shut this netbook down accidentally.
I already did a web search and tried two things to disable the power button:
- in /etc/elogind/logind.conf I set HandlePowerKey=ignore
- in /etc/acpi/events/default
Code:# I added
event=button power.*
action=
# above
event=.*
action=/etc/acpi/acpi_handler.sh %e
PS: I have the search key (where caps lock would be on a usual keyboard) mapped to "Fn". I don't think I configured this. Ideally, Fn+poweroff would still do the shutdown.