[ACPI] Disabling power button handling?

4 replies [Last post]
devnull
Offline
Joined: 05/04/2017

Hello!

I currently have Trisquel Mini installed on an Acer C720.

Big problem with that particular machine is that its power button is located dangerously close to the backspace button, making it *very* easy to hit by accident.

For that reason, I would prefer to have its handling disabled, but I cannot at all figure out how to do so. Altering /etc/acpi/events/powerbtn had no effect.

Disabling the button through a custom keymap didn't either.

Is there something else that handles ACPI events on Trisquel Mini that isn't acpid?

Thank you.

Soon.to.be.Free
Offline
Joined: 07/03/2016

I would suspect your guess is correct. Trisquel 7 Mini uses systemd- which takes over handling that sort of thing. As such, according to the last answer at https://superuser.com/questions/699905/change-behavior-of-linux-power-button, all you need to do is add the following line to /etc/systemd/logind.conf:
HandlePowerKey=ignore

Then reboot, and (hopefully) the power button should stop responding to short presses. Long presses will still kill the system, but I presume that's not an issue.

devnull
Offline
Joined: 05/04/2017

It is most certainly *not* systemd and I wouldn't have installed Trisquel if it was.

If it is Upstart, any particular place I should dig in? In my experience, Upstart usually relied on acpid, and the presence of /etc/acpi seems to prove it, but editing acpid files doesn't help. and yes, I did restart the service/reboot after editing.

Soon.to.be.Free
Offline
Joined: 07/03/2016

You're absolutely right- it doesn't. Sorry about the above.
I've tried what I could find online, and absolutely nothing seems to work. Hopefully somebody can help here!