I have installed Xubuntu 11.10 on a Compaq Presario P4. I am using it headlessly, to serve files. So the way I can turn off the box is by pressing the power button once. But it refuses to do it. Any advice?

I have configured in the SETTINGS MANAGER => POWER MANAGER so as to effect a shutdown on pressing the power button. I have also checked in the SETTINGS EDITOR that property "xfce4-power-manager => power-button-action" takes value of 4.

  • Have you seen this post? The problem posed is similar to your question, and even has the same desktop environment and shutdown action. – somoso Oct 24 '11 at 8:06
  • Interestingly, I found the solution in wiki section of Archlinux. And it worked like magic, except I feel the boot time has marginally increased – tadatma Oct 24 '11 at 16:34
  • @tadatma please add that your solution as an answer, thanks. :) – jrg Oct 24 '11 at 16:37

So instead of tadatma I am writing the solution from (archlinux wiki first solution down here:

Create a file in /etc/acpi/events/ named powerbtn

gksudo gedit /etc/acpi/events/powerbtn

with following content:

# /etc/acpi/events/power
# This is called when the user presses the power button
event=button/power (PWR.||PBTN)

Restart acpid

sudo service acpid restart

This works for ubuntu 11.10 here.

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.