[Pkg-xfce-devel] Bug#542238: Bug#542238: xfce4-power-manager: ignores suspend and hibernate keys

Matthew Foulkes wmc.foulkes at imperial.ac.uk
Wed Aug 19 14:55:58 UTC 2009


On Wed, Aug 19, 2009 at 04:33:52PM +0200, Yves-Alexis Perez wrote:
> > but nothing is added when I press the sleep or hibernate buttons. It
> > looks as if xfpm is unaware of the button presses, even though hal
> > notices them.
> 
> xfpm uses X keys, not hal ones, so that may very well be the problem,
> especially since it only detect BUTTON_SLEEP. BUTTON_HIBERNATE is not
> detected for me (on the current version, should be fixed upstream) but
> BUTTON_SUSPEND and BUTTON_SLEEP are.
> 
> Do you use thinkpad-acpi?

Yes.

> Could you use lsinput to find out which input event is the “ThinkPad
> Extra Buttons” one (here it's the 3) and run:

It's 7.

> sudo input-events 3 (or your number)
> Press Fn+F4 and Fn+F12 and tell me what is reported by that.

Running "input-events 7" as root, I obtain:

# on pressing the sleep key
15:49:00.986062: EV_KEY KEY_SLEEP pressed
15:49:00.986073: EV_SYN code=0 value=0
15:49:00.986077: EV_KEY KEY_SLEEP released
15:49:00.986081: EV_SYN code=0 value=0

# on pressing the hibernate key
15:49:05.190784: EV_KEY KEY_SUSPEND pressed
15:49:05.190794: EV_SYN code=0 value=0
15:49:05.190799: EV_KEY KEY_SUSPEND released
15:49:05.190802: EV_SYN code=0 value=0

Surprisingly, pressing the sleep key within input-events *does* cause
the system to sleep, even though it has no effect normally. Pressing the
hibernate key has no effect either way.

> Which kernel version do you use, btw?

The standard Debian testing kernel:

  Linux version 2.6.30-1-amd64 (Debian 2.6.30-5) (maks at debian.org) (gcc version 4.3.3 (Debian 4.3.3-5) ) #1 SMP Mon Aug 3 12:28:22 UTC 2009

Best wishes, Matthew

-- 
******************************************************************
                   Matthew Foulkes

 Department of Physics    phone: (020) 7594 7607
 Imperial College London  fax:   (020) 7594 7604
 South Kensington Campus  email: wmc.foulkes at imperial.ac.uk
 London SW7 2AZ           www:   www.imperial.ac.uk/research/cmth
******************************************************************





More information about the Pkg-xfce-devel mailing list