Power button causes unclean shutdown

Bug #1313469 reported by Sebastian Unger
This bug report is a duplicate of:  Bug #1201180: powerbtn.sh conflicts with logind. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
acpid (Ubuntu)
Fix Released
Undecided
Unassigned
systemd (Ubuntu)
New
Undecided
Unassigned

Bug Description

I noticed that with Ubuntu Server 13.10 when I press the power button, it flashes "acpid exiting" on the console and then does an immediate hard poweroff. Filesystems are not umounted and require recovery on restart.

Upon further investigation I found that apparently both acpid and systemd-logind attempt to handle the event with the described result.

Disabling either acpid (by deleting /etc/acpi/events/powerbtn) or systemd (by adding HandlePowerKey=ignore to /etc/systemd/logind.conf) fixes the issue.

Note: I was reproducing the issue using clean 13.10 server installs in KVMs. http://superuser.com/questions/677331/unsafe-power-off-on-power-button-pressed/746841#746841 indicates that others have observed this with non-VM installs.

Also #1219338 and #1245327 may be related.

Revision history for this message
Ted Felix (tedfelix) wrote :

I can't reproduce this in Trusty. Can you see if you can reproduce this in Trusty (14.04)?

Revision history for this message
Steve Langasek (vorlon) wrote :

This is not related to the acpi-support package. The script in question belongs to acpid itself, not to acpi-support.

no longer affects: acpi-support (Ubuntu)
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in acpid (Ubuntu):
status: New → Fix Released
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.