Suspend is one of the last things that I had to tackle as far as getting the things that I commonly use working on the T61. Here is how I did it.
You're going to need to use to use a utility called s2ram
. It's part of the suspend
package. You can pull it off the 0.5 build of it off of SourceForge but the makefile in that tarball is broken. I've attached the tarball with the makefile fixed so that it'll build cleanly. To get suspend to ram working, you'll need to do the following.
tar zxvf suspend-0.5.tar.gz
sudo make install
This will compile and install the s2ram utility and supporting apps. They'll be installed under /usr/local/sbin. With s2ram installed, there are a few house keeping tasks that we need to do before the utility will integrate cleanly into gnome. First we'll need to set the SUID on the installed binaries so that they can be run as a non-root user.
sudo chmod +s /usr/local/sbin/s2ram
sudo chmod +s /usr/local/sbin/s2disk
sudo chmod +s /usr/local/sbin/s2both
sudo chmod +s /usr/local/sbin/resume
sudo chmod +s /usr/local/sbin/swap-offset
With that complete, we'll need to make a quick hack to the script that the "Suspend" menu option calls to put the laptop into suspend mode. The scripts associated with suspend and hibernate are located at /usr/lib/hal/scripts if you're running the 32bit kernel and /usr/lib64/hal/scripts if you're running x86_64. The script that we're interested for suspend is called hal-system-power-suspend
. We'll make a backup of the script and then modify it to suit our needs. The following instructions are written for 32 bit users. Just substitute, "lib64" for "lib" if you're running 64 bit Fedora.
sudo cp hal-system-power-suspend hal-system-power-suspend.backup
Now using the editor of your choice open the hal-system-power-suspend
file and modify so that the only thing in the file is the following
/usr/local/sbin/s2ram -f -a1
I've uploaded mine (hal-system-power-suspend.txt) so you can see what the file should look like. At this point reboot your computer. Log back in and try out the "System -> Suspend" menu option. It should suspend your laptop. You can then press power to resume. I've found that everything works including wireless although wireless can take 15 - 25 seconds or so to reconnect. The beauty of this method is that there aren't any modules to unload and reload. It just "works". At this point, you can goto System --> Preferences --> System --> Power Management
to setup how/when suspend is enabled; ie; whether the laptop goes into suspend when the lid is closed or not.
If I've missed anything or if a point needs more clarification, please let me know. :-)