Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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

HandlePowerKey=ignore

Some more details here: 13.10: Power button shuts down directly

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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