[Bug 529686] Re: Depressing power button does not shutdown computer
Bartosz Wierzejewski
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:
# /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"
--
Depressing power button does not shutdown computer
https://bugs.launchpad.net/bugs/529686
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
Bug description:
Binary package hint: acpid
Description: Ubuntu lucid (development branch)
Release: 10.04
Server Install
acpid:
Installed: 1.0.10-5ubuntu2
Candidate: 1.0.10-5ubuntu2
Version table:
*** 1.0.10-5ubuntu2 0
500 http://gb.archive.ubuntu.com lucid/main Packages
100 /var/lib/dpkg/status
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.
ProblemType: Bug
Architecture: i386
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
ProcEnviron:
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic-pae
SourcePackage: acpid
Uname: Linux 2.6.32-13-generic-pae i686
More information about the Ubuntu-sponsors
mailing list