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

After some upgrade, my headless lubuntu 12.04 stopped shutting down on power button press. I tried to edit ~/.config/openbox/lubuntu-rc.xml without success. Nowhere docs on possible alternative to lubuntu-logout (XF86PowerOff event).

There is another way to shutdown immediately?

Could I set a timeout to logout GUI panel?

share|improve this question

First of all I'm slightly confused at your question regarding the GUI panel on a headless server. So I'm going to ignore it and refer to the "headless server" part.

Check the /etc/acpi/events/powerbtn script:

event=button[ /]power

You can try editing the /etc/acpi/ script to simply shutdown.

If you make changes to these files, make sure you issue

sudo service acpid restart

Before trying them.

A potentially helpful thread:

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.