[ltp] Suspend/hibernate on T41 w/ 11.2

Pedro Ribeiro linux-thinkpad@linux-thinkpad.org
Sat, 19 Dec 2009 13:59:30 +0000


On Sat, Dec 19, 2009 at 4:49 AM, Jeffrey Taylor <jeff@abluz.dyndns.org> wro=
te:
> Any advice for suspend and hibernate in an IBM Thinkpad T41 in OpenSuSE 1=
1.2?
> I'm using pm-suspend and pm-hibernate, but they aren't reliable. =A0Somet=
imes it
> hangs on resume with the shift LED blink and the screen dark.
>
> TIA,
> =A0Jeffrey
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>

Hi Jeffrey, I dropped pm-utils for both hibernate and suspend and I've
never been happier.
Turns out pm-utils was making both of them longer and less reliable.

Try my script for suspending:

---------------------------------------------------------------------------=
-
#sleep for some time to allow xscreensaver to lock (don't lock it here
- this runs as root and xscreensaver doesn't accept the command)
sleep 3.5

#turns off wake on lan
ethtool -s eth0 wol d

#unload any modules

#syncs to disk
sync

#sleeps
echo -n mem > /sys/power/state

#everyhing below is run when it wakes up: reload any modules, etc
---------------------------------------------------------------------------=
-------------

You might need:
a) to unload some modules which make trouble and reload them
afterwards (actually I don't need to do this)
b) to restore the network connection if you use network manager (i use
wicd and its fine)
c) to eject the ultrabay if it stays on after suspend (i can give you
a script for this)

Now for hibernating it is trickier. If you don't mind compiling the
kernel, I would recommend using the hibernate script together with
TuxOnIce kernel patch - this is leaps and bounds better than the
official hibernate in the kernel, since you can store a whole image of
memory in disk. In the official kernel only half of it can be stored,
so if you have 2gb or more you will feel the pain when you resume
(lots of waiting for the kernel buffers to fill again).

If you don't want to recompile, you can try using the hibernate script
instead of pm-hibernate. Check if your distro has v2.0, if not you can
download it here:
http://www.tuxonice.net/downloads/all/hibernate-script-2.0.tar.gz

Regards,
Pedro