power button not working when not logged in or on tty

Bug #962086 reported by Roger John
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
acpid (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello,
i use my machine as a print server and discovered the following since 11.10: If i am not logged in (e.g. started the machine just for printing from a network client), the power button won't shut down the system when pressed. I have to log into gnome or issue poweroff via tty/ssh. I know this worked in previous versions of ubuntu, and maybe i found a clue.
In /etc/acpi/powerbtn.sh the gui power managers are searched. In previous versions of ubuntu, the script looked for gnome-power-manager, but now it's looking for gnome-settings-daemon, which seems to be running any time lightdm is running.
I could work-around this by replacing gnome-settings-daemon in /etc/acpi/powerbtn.sh with gnome-session. This does not work when working on tty with a running gnome-session in bg, the session is ignoring the keypress (i heard this was different in older versions where it wasn't checking if on active console).

Greetings
Roger John

PS: I reckon that pressing the power button while on tty with a running X session, the system should not shut down at once. But it could kill the tty and switch to the x session, for example, or do something informative.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: acpid 1:2.0.10-1ubuntu2.3
ProcVersionSignature: Ubuntu 3.0.0-16.29-generic 3.0.20
Uname: Linux 3.0.0-16-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Mar 22 12:08:56 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=de:en
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 LC_MESSAGES=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: acpid
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (160 days ago)
modified.conffile..etc.acpi.powerbtn.sh: [modified]
mtime.conffile..etc.acpi.powerbtn.sh: 2012-03-22T11:34:25.887345

Revision history for this message
Roger John (roger-john) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in acpid (Ubuntu):
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :

This version has expired long ago

Changed in acpid (Ubuntu):
status: Confirmed → Invalid
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.