I have my IR receiver connected to the physical power button for turning on and there's a separate remote button for turning off. How to disable the power on button from shutting down the computer?

In previous Ubuntu versions I have edited /etc/acpi/powerbtn.sh but now it has now effect. My /etc/acpi/powerbtn.sh and /etc/acpi/events/powerbutton both are symlinked to /bin/false and still the power button works.

1 Answer 1


Edit/add the following line to /etc/systemd/logind.conf


Some more details here: How to prevent the Power button to shutdown directly the system?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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