Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/ but now it has now effect. My /etc/acpi/ and /etc/acpi/events/powerbutton both are symlinked to /bin/false and still the power button works.

share|improve this question
up vote 0 down vote accepted

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


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

share|improve this answer

Your Answer


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.