[Bug 539432] Re: powerbtn.sh assumes acpi-support is installed.

Bartosz Wierzejewski bartoszwierzejewski at o2.pl
Sun Apr 11 14:17:13 BST 2010

*** This bug is a duplicate of bug 529686 ***

I had a problem with power button on my Dell Optiplex GX270 in lucid (Server Edit.).
I just copied a old script:
# /etc/acpi/powerbtn.sh

from another machine (server too) and now it works perfect :)

$ cat /etc/acpi/powerbtn.sh 
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.

# 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"

powerbtn.sh assumes acpi-support is installed.
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber (via bug 529686).

Status in “acpid” package in Ubuntu: New

Bug description:
Binary package hint: acpid

As you can see from the transcript below, acpid's power button
event handler has started to assume that acpi-support is installed.
As I only need the power button to be supported, I haven't installed

# sh -vx /etc/acpi/powerbtn.sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.

. /usr/share/acpi-support/power-funcs
+ . /usr/share/acpi-support/power-funcs
.: 1: Can't open /usr/share/acpi-support/power-funcs

ProblemType: Bug
Architecture: i386
Date: Tue Mar 16 08:36:30 2010
DistroRelease: Ubuntu 10.04
Package: acpid 1.0.10-5ubuntu2
 PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: acpid
Uname: Linux 2.6.32-16-generic i686

More information about the Ubuntu-sponsors mailing list