power button not bringing up shutdown dialog [karmic]

Bug #384890 reported by Alexey Kotlyarov
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-power
Unknown
High
hal (Ubuntu)
Fix Released
High
Martin Pitt
Karmic
Fix Released
High
Martin Pitt

Bug Description

On Acer Aspire One A110L, pressing power button does nothing whatsoever. Worked fine in Jaunty. Also, acpi_listen outputs
button/power PWRF 00000080 00000006
on its press, and gnome settings say "ask for action" on power button. Ctrl-Alt-Del brings up shutdown dialog just fine.

ProblemType: Bug
Architecture: i386
Date: Mon Jun 8 22:05:14 2009
DistroRelease: Ubuntu 9.10
Package: gnome (not installed)
ProcEnviron:
 PATH=(custom, user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.30-8.9-generic
SourcePackage: meta-gnome2
Uname: Linux 2.6.30-8-generic i686

Revision history for this message
Asif Youssuff (yoasif) wrote :

I believe this is the correct package.

affects: ubuntu → gnome-power-manager (Ubuntu)
summary: - [aspire one] power button not bringing up shutdown dialog
+ power button not bringing up shutdown dialog [karmic]
Revision history for this message
Asif Youssuff (yoasif) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gnome-power-manager 2.27.1-0ubuntu2
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.30-8.9-generic
Uname: Linux 2.6.30-8-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Asif Youssuff (yoasif) wrote :
Revision history for this message
Asif Youssuff (yoasif) wrote :
Revision history for this message
Asif Youssuff (yoasif) wrote :
Revision history for this message
phenest (steve-clark) wrote :

Dell Precision M90

Kernel: Linux 2.6.30-8-generic x86_64

Same problem as previously described.

Revision history for this message
Thomas van der Burgt (thvdburgt) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gnome-power-manager 2.27.1-0ubuntu2
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.30-8.9-generic
Uname: Linux 2.6.30-8-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Thomas van der Burgt (thvdburgt) wrote :
Revision history for this message
Thomas van der Burgt (thvdburgt) wrote :
Revision history for this message
Thomas van der Burgt (thvdburgt) wrote :
Revision history for this message
Asif Youssuff (yoasif) wrote :

$ acpi_listen
button/power PWRF 00000080 00000009

is what appears when I hit the power button.

Revision history for this message
Fernando Miguel (fernandomiguel) wrote : apport-collect data

Architecture: amd64
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gnome-power-manager 2.27.1-0ubuntu2
PackageArchitecture: amd64
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.30-8.9-generic
Uname: Linux 2.6.30-8-generic x86_64
UserGroups: adm admin cdrom davfs2 dialout dip fax floppy fuse kvm lpadmin nagios netdev plugdev polkituser sambashare scanner sudo sys syslog tape users video voice www-data

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

As discussed on #ubntu-devel, this is most likely because your power button still produces HAL events and gnome-power-manager is now built without "--enable-legacy-buttons", so it ignores these.

Changed in gnome-power-manager (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Martin Pitt (pitti)
tags: added: regression-potential
Changed in gnome-power-manager (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Medium → High
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Richard,

I had a look at this problem. It seems that the kernel side is alright, I get KEY_POWER input events:

$ sudo input-events 1
/dev/input/event1
   bustype : BUS_HOST
   vendor : 0x0
   product : 0x1
   version : 0
   name : "Power Button"
   phys : "PNP0C0C/button/input0"
   bits ev : EV_SYN EV_KEY

waiting for events
11:17:05.881107: EV_KEY KEY_POWER (0x74) pressed

However, they never make it through X.org, with xev I don't get XF86XK_PowerOff. g-p-m doesn't directly listen to input events, just to X.org key presses. So am I right in assuming that we need to fix the xorg driver to propagate KEY_POWER -> XF86XK_PowerOff, or is it meant to work in a different way?

Thank you!

Revision history for this message
Robbie Williamson (robbiew) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.10
Package: gnome-power-manager 2.27.1-0ubuntu3
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.30-9.10-generic
Uname: Linux 2.6.30-9-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Robbie Williamson (robbiew) wrote :
Revision history for this message
Robbie Williamson (robbiew) wrote :
Revision history for this message
Robbie Williamson (robbiew) wrote :
Revision history for this message
Robbie Williamson (robbiew) wrote :

I'm seeing this bug after moving from Alpha1 to Alpha2 on my Thinkpad X301.

Revision history for this message
Dave Stroud (bigdavesr) wrote :

I am seeing thos on my deskto pc also after alpha 2.

Martin Pitt (pitti)
Changed in gnome-power-manager (Ubuntu Karmic):
status: In Progress → Triaged
Changed in gnome-power:
status: Unknown → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Ah, it's a bug in hal, it doesn't mark the Power button device for -evdev.

affects: gnome-power-manager (Ubuntu Karmic) → hal (Ubuntu Karmic)
Changed in hal (Ubuntu Karmic):
status: Triaged → In Progress
Revision history for this message
Steve Langasek (vorlon) wrote :

According to the bug log, I believe the Thinkpads have a different bug. I don't see any keypress event when listening on the "Power Button" input device on my T60.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 384890] Re: power button not bringing up shutdown dialog [karmic]

Steve Langasek [2009-06-26 7:25 -0000]:
> According to the bug log, I believe the Thinkpads have a different bug.
> I don't see any keypress event when listening on the "Power Button"
> input device on my T60.

This looks like a kernel issue then, it doesn't convert the ACPI event
into an input event? Weird, though, I had expected that most of these
issues were fixed by now, especially with highly prominent laptops
like Thinkpads. Is this not covered by acpi-support either, or do you
have that purged?

Changed in hal (Ubuntu Karmic):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hal - 0.5.12+git20090626-0ubuntu1

---------------
hal (0.5.12+git20090626-0ubuntu1) karmic; urgency=low

  * New upstream git snapshot:
    - Add input.keys capability to power/hibernate/etc. keys. (LP: #384890)
  * Drop 01_tablet_evdev.patch, 50_no_crash_on_md_blockdev.patch: Applied
    upstream.
  * 04_nvidia_brightness.patch: Update to new upstream version.
  * debian/control: Change back Vcs-Bzr:, Ubuntu package are only for full
    source trees.

 -- Martin Pitt <email address hidden> Fri, 26 Jun 2009 10:04:33 +0200

Changed in hal (Ubuntu Karmic):
status: Fix Committed → Fix Released
Changed in gnome-power:
status: Confirmed → Invalid
Revision history for this message
Donjan Rodic (bryonak) wrote :

Not sure if I should open a new bug report, but the power button doesn't work for me...

OS: Ubuntu 9.10 64bit, upgraded from 9.04
Machine: MacBook Pro 3.1

Pressing the power button does nothing, instead of bringing up the shutdown dialogue like in Jaunty.

xev recognises it, so it might be just the applet not grabbing the event...
xev output:

KeyPress event, serial 38, synthetic NO, window 0x2400001,
    root 0x13c, subw 0x2400002, time 10331282, (43,42), root:(1273,95),
    state 0x0, keycode 124 (keysym 0x1008ff2a, XF86PowerOff), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x2400001,
    root 0x13c, subw 0x2400002, time 10331282, (43,42), root:(1273,95),
    state 0x0, keycode 124 (keysym 0x1008ff2a, XF86PowerOff), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

acpi_listen output looks fine:
button/power PWRF 00000080 00000008
button/power PWRF 00000080 00000009
...

The power button also doesn't work on a ThinkPad x200, but I can't provide xev (or any other) output for that machine right now. Although in that case, it might be the ThinkPad-specific bug...

Changed in hal (Ubuntu Karmic):
status: Fix Released → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

> Not sure if I should open a new bug report

Yes, you should. The bug present in hal has been fixed; other kernel issues that prevent this button from working on particular hardware will need to be dealt with individually in the kernel.

Changed in hal (Ubuntu Karmic):
status: Confirmed → Fix Released
Revision history for this message
Robbie Williamson (robbiew) wrote :

How long are you holding the button down for? It takes about a second or two for me before the dialog shows up.

Revision history for this message
Donjan Rodic (bryonak) wrote :

I worked around by assigning the XF86PowerOff keysym to Gnome's "Log out" shortcut.

@Steve: will do next time :)
@Robbie: depending on system load/state, it takes between 0.1 (almost instant) and ~1 second for me. But I don't need to hold it down, a short tap suffices.

Changed in hal (Ubuntu Karmic):
status: Fix Released → Confirmed
status: Confirmed → Fix Released
Changed in gnome-power:
importance: Unknown → High
status: Invalid → Unknown
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.