Suspend via Fn+F4 fails

Bug #32447 reported by Crispin Flowerday
12
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Fix Released
Medium
Daniel Silverstone

Bug Description

Possibly a hal bug - I'm not sure....

If I press Fn+F4 on my IBM x31 to suspend the laptop, nothing happens. g-p-m --no-daemon --verbose prints out the following:

[watch_device_condition] gpm-hal-monitor.c:296 (11:18:39): udi=/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input, name=ButtonPressed, details=sleep
[gpm_hal_device_get_string] gpm-hal.c:381 (11:18:39): Error: No property button.type on device with id /org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input
*** WARNING ***
[watch_device_condition] gpm-hal-monitor.c:305 (11:18:39): You must have a button type for /org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input!
*** WARNING ***

Revision history for this message
Crispin Flowerday (crispin-flowerday-deactivatedaccount) wrote : lshal output

Forgot to mention version numbers - g-p-m 2.13.91-0ubuntu1, hal 0.5.6-4ubuntu3

Revision history for this message
Richard Hughes (richard-hughes) wrote :

Crispin, what does lshal -m display when you press the button?

Revision history for this message
Crispin Flowerday (crispin-flowerday-deactivatedaccount) wrote :

Start monitoring devicelist:
-------------------------------------------------
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = sleep

Revision history for this message
Richard Hughes (richard-hughes) wrote : test patch

Can you try the attached patch please.

Revision history for this message
Crispin Flowerday (crispin-flowerday-deactivatedaccount) wrote :

Yep - that seems to do the trick for me, thanks

Revision history for this message
Richard Hughes (richard-hughes) wrote :

2006-02-22 Richard Hughes <email address hidden>
 * src/gpm-hal-monitor.c (watch_device_condition): Fix detection of button objects, and add a verbose comment explaining what's going on. Fixes http://launchpad.net/distros/ubuntu/+source/ gnome-power-manager/+bug/32447

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

I already have an equivalent patch ready for the next g-p-m upload to dapper.

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

This should be fixed in 2.13.91-0ubuntu2

Changed in gnome-power-manager:
assignee: nobody → dsilvers
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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