[Bug 529686] Re: Depressing power button does not shutdown computer
bartoszwierzejewski at o2.pl
Sun Apr 11 14:19:03 BST 2010
I had a problem with power button on my Dell Optiplex GX270 in lucid (Server Edit.).
I just copied a old script:
from another machine (server too) and now it works perfect :)
$ cat /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# Skip if we just in the middle of resuming.
test -f /var/lock/acpisleep && exit 0
# If gnome-power-manager or kded4 are running, let
# them handle policy This is effectively the same as 'acpi-support's
# '/usr/share/acpi-support/policy-funcs' file.
if pidof gnome-power-manager kded4 > /dev/null; then
# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"
Depressing power button does not shutdown computer
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
Status in “acpid” package in Ubuntu: Triaged
Binary package hint: acpid
Description: Ubuntu lucid (development branch)
*** 1.0.10-5ubuntu2 0
500 http://gb.archive.ubuntu.com lucid/main Packages
Expecting the computer to shut down once the power button was pressed. Instead the computer remained powered up and there was no text on the console. After investigating it appears to be an issue with the /etc/acpi/powerbtn.sh script.
Running "sudo /etc/acpi/powerbtn.sh" (which is referenced in /etc/acpi/events/powerbtn as the action) returns
.: 6: Can't open /usr/share/acpi-support/power-funcs
Replacing the line "action=/etc/acpi/powerbtn.sh" with "action=/sbin/poweroff" in /etc/acpi/events/powerbtn is a successfully workaround.
Date: Sun Feb 28 21:08:05 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Error: [Errno 13] Permission denied: '/var/log/installer/media-info'
Package: acpid 1.0.10-5ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic-pae
Uname: Linux 2.6.32-13-generic-pae i686
More information about the Ubuntu-sponsors