powerbtn.sh assumes acpi-support is installed.

Bug #539432 reported by Trent W. Buck
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
acpid (Ubuntu)
New
Undecided
Unassigned

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

# sh -vx /etc/acpi/powerbtn.sh
#!/bin/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
ProcEnviron:
 PATH=(custom, no user)
 LANG=
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: acpid
Uname: Linux 2.6.32-16-generic i686

Revision history for this message
Trent W. Buck (twb) wrote :
Revision history for this message
Bartosz Wierzejewski (bartekw) wrote :

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
#!/bin/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
    exit
fi

# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"

Revision history for this message
Bartosz Wierzejewski (bartekw) wrote :

Oh, please remove this duplicate report.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.