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 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.

share|improve this question
    
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
add comment

1 Answer 1

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)
action=/sbin/poweroff

Restart acpid

sudo service acpid restart

This works for ubuntu 11.10 here.

share|improve this answer
add comment

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.