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

Yves-Alexis Perez corsac at debian.org
Wed Aug 19 14:33:52 UTC 2009


On mer, 2009-08-19 at 15:16 +0100, Matthew Foulkes wrote:
> > xfce4-power-manager --no-daemon
> > 
> > ** (xfce4-power-manager:15603): WARNING **: Metadata for error domain "xfpm-error-quark" already registered
> > 
> > TRACE[xfpm-battery.c:418] xfpm_battery_refresh_primary(): battery state : ((XfpmBatteryState) BATTERY_FULLY_CHARGED)
> > TRACE[xfpm-battery.c:343] xfpm_battery_refresh_common(): battery state change : ((XfpmBatteryState) BATTERY_FULLY_CHARGED)
> > TRACE[xfpm-supply.c:223] xfpm_supply_refresh_tray_icon(): Tray icon configuration:  : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_PRESENT)
> > TRACE[xfpm-supply.c:223] xfpm_supply_refresh_tray_icon(): Tray icon configuration:  : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_PRESENT)
> > TRACE[xfpm-button-xf86.c:164] xfpm_button_xf86_xevent_key(): Grabbed key 222 : ((XfpmButtonKey) BUTTON_POWER_OFF)
> > 
> > (xfce4-power-manager:15603): xfce4-power-manager-CRITICAL **: could not map keysym 1008ffa8 to keycode
> > 
> > 
> > (xfce4-power-manager:15603): xfce4-power-manager-CRITICAL **: could not map keysym 1008ffa7 to keycode
> > 
> > TRACE[xfpm-button-xf86.c:164] xfpm_button_xf86_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
> > 
> > (xfce4-power-manager:15603): xfce4-power-manager-CRITICAL **: could not map keysym 1008ff02 to keycode
> 
> 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?

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

sudo input-events 3 (or your number)

Press Fn+F4 and Fn+F12 and tell me what is reported by that.

Which kernel version do you use, btw?

Cheers,
-- 
Yves-Alexis






More information about the Pkg-xfce-devel mailing list