[ltp] Hibernating/Supending Issues

Jeffrey Taylor linux-thinkpad@linux-thinkpad.org
Tue, 6 Nov 2007 22:22:05 -0600


Quoting Rhett Creighton <Rhett@Creighton.com>:
> When I use the gnome power manager applet, it seems to work really well.
> However, the thinkpad buttons don't work.
> 
> Any suggestions for this?
> 
> 
> System: Thinkpad T60p
> OS: OpenSuse 10.3
> kernel: 2.6.22.9-0.4-default
> graphics driver: ati-driver-installer-8.40.4-x86_64.run (fglrx)
> windows manager: gnome

Apply the following patch to /usr/lib/hotkey-setup/thinkpad_hotkey_handler
--- thinkpad_hotkey_handler~	2007-10-28 17:47:01.000000000 -0500
+++ thinkpad_hotkey_handler	2007-11-02 11:36:51.000000000 -0500
@@ -98,8 +98,8 @@
                 fi
                 ;;
             4100)   HOTKEY="Fn+F4" ;;
+            4100)   HOTKEY="Fn+F4"
+		pm-suspend
+		ACTION="suspend to RAM"
                 ;;
             4101)   HOTKEY="Fn+F5" # Bluetooth
                 if [ -x /opt/thinkpad/ac/onscreen_ac.sh ] ; then
@@ -127,7 +127,10 @@
                 ;;
             4106)   HOTKEY="Fn+F10" ;;
             4107)   HOTKEY="Fn+F11" ;;
-            4108)   HOTKEY="Fn+F12" ;;
+            4108)   HOTKEY="Fn+F12" 
+		pm-hibernate
+		ACTION="suspend to disk"
+		;;
             4109)   HOTKEY="Fn+Backspace" ;;
             4110)   HOTKEY="Fn+Insert" ;;
             4111)   HOTKEY="Fn+Delete" ;;

Use this as a guide, don't apply with patch program.  I've made several edits
to the file and am reconstructing the original from memory.

HTH,
  Jeffrey