Depressing power button does not shutdown computer

Bug #529686 reported by TestDriveLinux
72
This bug affects 12 people
Affects Status Importance Assigned to Milestone
acpid (Ubuntu)
Medium
Unassigned
Nominated for Lucid by TestDriveLinux

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

Revision history for this message
TestDriveLinux (testdrivelinux) wrote :
summary: - /etc/acpi/powerbtn.sh does not shutdown computer
+ Depressing power button does not shutdown computer
Changed in acpid (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Looks like acpid needs a dependency on acpi-support.

Changed in acpid (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Trent W. Buck (twb) wrote : Re: [Bug 529686] Re: Depressing power button does not shutdown computer

Jonathan Thomas wrote:
> Looks like acpid needs a dependency on acpi-support.

Um, isn't the whole point of separating acpi-support from acpid that
you can use the latter without being forced to pull in all the
laptop/desktop-oriented dependencies of the former?

Revision history for this message
Neil Wilson (neil-aldur) wrote :

The problem is that /etc/acpi/powerbtn.sh uses the /usr/share/acpi-support/power-funcs

That script needs a simple change, which I have attached.

Revision history for this message
Neil Wilson (neil-aldur) wrote :
Revision history for this message
Neil Wilson (neil-aldur) wrote :

I should point out that this fault prevents you powering off a virtual server via libvirt or any of the other virtual machine management tools.

Revision history for this message
Neil Wilson (neil-aldur) wrote :

Debdiff attached and sponsors subscribed.

Revision history for this message
Dave Walker (davewalker) wrote :

This seems to be a regression introduced with LP: #508073, currently it doesn't need forwarding to Debian as it's currently a Ubuntu specific regression.

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
TestDriveLinux (testdrivelinux) wrote :

As a newbie to reporting ubuntu bugs what has to happen to get this regression fixed before the release of lucid?

Revision history for this message
lhotari (lartsa) wrote :

Please fix this issue before Lucid final release.

Revision history for this message
lhotari (lartsa) wrote :

This will break Ubuntu VM installations after upgrading to Lucid so please fix this trivial bug before releasing.

Changed in acpid (Ubuntu):
assignee: nobody → Mathias Gug (mathiaz)
Mathias Gug (mathiaz)
Changed in acpid (Ubuntu):
assignee: Mathias Gug (mathiaz) → nobody
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Fix is on the way to lucid-updates, guys. Sorry I didn't see this sooner....

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

Other bug subscribers