White-list Suspend as working on Lenovo ThinkPad T60p

Bug #65730 reported by Ali Sheikh
8
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

For some time now (since dapper) I have not been able to get my thinkpad to suspend using the Fn+F4 key. Suspending from the context menu from gnome-power-manager applet works. I can also get the thinkpad to sleep from the System->Quit menu. The suspend mechnism seems to be fine, however, something is wrong with the suspend key.

I have finally been able to investigate this. When the Fn+F4 key is pressed, the acpi daemon detects it and runs /etc/acpi/sleepbtn.sh. The file sleepbtn.sh issues 'acpi_fakekey $KEY_SLEEP'.

I understand that gnome-power-manager is supposed to listen for these events produced by acpi_fakekey. I ran g-p-m with --no-daemon and --verbose. This is the output I see when I press Fn+F4:

[watch_device_condition_cb] gpm-hal.c:953 (14:58:14): emitting device-condition : /org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input, ButtonPressed (sleep)
[hal_device_condition_cb] gpm-hal-monitor.c:267 (14:58:14): udi=/org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input, condition=ButtonPressed, details=sleep
[emit_button_pressed] gpm-hal-monitor.c:198 (14:58:14): emitting button-pressed : sleep (1)
[hal_button_pressed_cb] gpm-power.c:1673 (14:58:14): emitting button-pressed : sleep (1)
[power_button_pressed_cb] gpm-manager.c:1753 (14:58:14): Button press event type=sleep state=1
[gpm_manager_is_policy_timout_valid] gpm-manager.c:224 (14:58:14): gpm_manager_is_policy_timeout_valid: check-foreground-console returned with 0

[suspend_button_pressed] gpm-manager.c:1634 (14:58:14): suspend button pressed
[manager_policy_do] gpm-manager.c:922 (14:58:14): policy: /apps/gnome-power-manager/action_button_suspend
[gpm_manager_is_policy_timout_valid] gpm-manager.c:224 (14:58:14): gpm_manager_is_policy_timeout_valid: check-foreground-console returned with 0

[gpm_syslog] gpm-debug.c:140 (14:58:14): Saving to syslog: Doing nothing because the suspend button has been pressed
[gpm_info_event_log] gpm-info.c:611 (14:58:14): Adding 11 to the event log

This is odd (and ironic): "doing nothing because the suspend button has been pressed". Shouldn't g-p-m suspend the machine?

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

Richard: do you understand what's going on here?

Changed in gnome-power-manager:
status: Unconfirmed → Needs Info
Revision history for this message
Ali Sheikh (asheikh) wrote :

I have finally figured out how to solve the problem. I opened up gconf-editor to find the key /apps/gnome-power-manager/action_button_suspend. It was set to the value "nothing". I changed that to "suspend". That solved the problem.

Therefore this bug reduces to the question (perhaps for upstream): is that the default value for that key? Or how did I end up with that value in that particular key -- I've never edited gconf-editor before.

I think the default action for the suspend key should be to suspend -- and not to silently ignore the button. This is specially important given that the other special keys (display on/off, wireless kill switch, lock-screen, etc.) on the thinkpad actually do work.

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

Hi Ali, there is a whitelist based on whether Suspend is known to work on that particular machine; wonder if that is it. Can you please past the output from:

  cat /var/lib/acpi-support/*-*

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

Upstream we have the default for the suspend key to be "suspend" - ubuntu patch this to "nothing". I'm not sure I understand this one either (upstream author talking). Richard,

Revision history for this message
Ali Sheikh (asheikh) wrote :

Hi Paul, Here's the output you requested:
79ET62WW (1.07 )
LENOVO
200783U
ThinkPad T60p

Revision history for this message
Ali Sheikh (asheikh) wrote :

This bug is in 'Needs Info' state. What more info is needed?

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

Thanks for the ACPI data. If you can confirm that T60p is working correctly, we can whitelist suspend by default in future.

Changed in gnome-power-manager:
importance: Undecided → Low
status: Needs Info → Confirmed
Revision history for this message
Ali Sheikh (asheikh) wrote :

I can confirm that suspend works perfectly on my Thinkpad T60p.

Revision history for this message
Simon Law (sfllaw) wrote :

g-p-m defaults to suspending when you hit the Suspend button now.

Changed in acpi-support:
status: Confirmed → Fix Released
Revision history for this message
Philipp Kohlbecher (xt28) wrote :

I suddenly have the same issue on my Samsung X20 XVM 1730 V laptop.
I am almost certain that it worked until a couple of days ago. I haven't changed the configuration. Has any update changed the /apps/gnome-power-manager/action_button_suspend recently? Does any process change that setting?

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.