Pressing POWER displays logout dialogue and then immediately shuts down

Bug #46319 reported by asdf
24
Affects Status Importance Assigned to Milestone
acpid (Ubuntu)
Fix Released
Medium
Paul Sladen

Bug Description

Binary package hint: gnome-session

System shuts down when pressing esc, when the logout dialog is shown. I pressed escape, because I wanted to cancel logout. This must be fixed, because it's a pretty annying usability issue. (The logout dialog should disappear when pressing esc, the system should not shut down)

Revision history for this message
asdf (asdf123123-deactivatedaccount-deactivatedaccount) wrote :

s/annying/annoying

Revision history for this message
sam tygier (samtygier) wrote :

which version of ubuntu are you using?

i can't reproduce on an upto date dapper.

Changed in gnome-session:
status: Unconfirmed → Needs Info
Revision history for this message
asdf (asdf123123-deactivatedaccount-deactivatedaccount) wrote : Re: [Bug 46319] Re: System shuts down when pressing esc, when the logout dialog is shown

dapper of course

Revision history for this message
asdf (asdf123123-deactivatedaccount-deactivatedaccount) wrote : Re: System shuts down when pressing esc, when the logout dialog is shown

not sure if esc was the problem, sometimems the system just shuts down instaed of showing the logout dialog when i press the powerbutton

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you always open that dialog by pressing the powerbutton? Does it happen if you use the panel or menu item instead?

Changed in gnome-session:
assignee: nobody → desktop-bugs
Revision history for this message
asdf (asdf123123-deactivatedaccount-deactivatedaccount) wrote :

I'm not sure how to describe this bug. But sometimes when i hit the powerbutton in gnome the logout dialog show s up, but then the system immedialtely shuts down. This is pretty annoying, can anybody reproduce this.

Btw: I don't think that pressig esc was the problem, I think pressing the powerbutton is it.

Revision history for this message
asdf (asdf123123-deactivatedaccount-deactivatedaccount) wrote :

sry for 2 times adding the comment above. So far it only happend when pressing the powerbutton and yes I mostly just press the powerbutton to open that dialog.

Revision history for this message
Sebastien Bacher (seb128) wrote :

probably not a gnome-session issue then, reassigning to gnome-power-manager

Revision history for this message
Daniel Silverstone (dsilvers) wrote :

Seems more likely that it's an acpi-support issue since that's what would do the unconditional shutdown

Revision history for this message
Paul Sladen (sladen) wrote :

No where does 'acpi-support' perform a shutdown... The only way would be a failed Hibernate, however that wouldn't draw pretty shutdown messages (Nils: do you see messages or 'usplash' pop up after you press escape?).

The dialogue is drawn by 'gnome-session' which then uses either 'gnome-power-manager' or 'gdm' to do its deeds, but they are only acting as middleware.

The keystroke is causing a UI issue. Is it something like 'escape' is causing the window to be destroyed, which is in-turn causing some assertion to fail.

Or more likely, 'escape' is being interpreted as 'ANY_KEY' and using the currently right-most button ("Shutdown") to be activated?

Revision history for this message
Daniel Silverstone (dsilvers) wrote :

In powerbtn.sh it will do a shutdown if it can't find a policy daemon (Unless that has changed)

Paul Sladen (sladen)
Changed in acpi-support:
assignee: desktop-bugs → nobody
status: Needs Info → Confirmed
Revision history for this message
Paul Sladen (sladen) wrote :

Reading this through carefully again:

  "the system [] shuts down [..] when i press the powerbutton"

and holding the power-button for 2 seconds on my ThinkPad did indeed shutdown:

  received event "button/power PWRF 00000080 00000001"
  executing action "/etc/acpi/powerbtn.sh"
  /etc/acpi/powerbtn.sh: line 9: [: 22545: unary operator expected
  ERROR: Couldn't attach to DCOP server!

This is because 'pidof' is being used like:

  if [ `pidof gnome-power-manager` ] ; then

instead of:

  if pidof gnome-power-manager > /dev/null ; then

In the former case, if there are two processes running (for whatever reason), then the unquoted result expands to:

  test 1234 2345

and induces the error above.

Changed in acpi-support:
assignee: nobody → sladen
Revision history for this message
Paul Sladen (sladen) wrote :

'powerbtn.sh' is *special* and lives in 'acpid'...

Paul Sladen (sladen)
Changed in acpid:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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