x86 Suspend/resume support in Hoary
Karl Hegbloom
hegbloom at pdx.edu
Fri Jan 14 10:49:20 CST 2005
On Fri, 2005-01-14 at 00:48 +0000, Matthew Garrett wrote:
> Suspend and resume support has now landed in Hoary.
I use the Software Suspend patch:
http://softwaresuspend.berlios.de/
... and find that it works very well. The other suspend methods did not
work for me in the past.
They have a 'hibernate' script, and the newest one has support for ACPI
sleep modes as well as for swsusp2. You can change what mode it goes to
by calling it with an option telling it what conffile to use, and have a
conffile for that other mode, say S3, sleep to RAM. I've never had S3
work right, on this laptop.
Software Suspend works best when compiled as modules, and then support
added for it in the initrd. The default initrd seems to have support
for the other sleep modes, but not for the Software Suspend 2 patch.
For that you must add support. See:
http://www.laclinux.com/~karlheg/mkinitrd-scripts/
... for scripts to place in /etc/mkinitrd/scripts that add support for
both the 855resolution hack and Software Suspend 2. You have to edit
the 855resolution one in order to enable it, for safety --- I don't know
what it would do on machines where the settings in there are totally
wrong.
Suspend2 must be modules for encrypted swap and or / to work, and for
the 855resolution hack to work. You need to add to the kernel command
line:
resume2=swap:/dev/hda2
... if swap is on /dev/hda2, and for the Single user mode boot:
noresume2
I believe there is a way that the initrd linuxrc can add the right swap
partition to try and resume from at run time, and thus the resume2
option may not be absolutely necessary.
[ 855resolution allows adding a new video mode to the video BIOS on
boot. Some laptops with i855GM chipsets have 1050x1400 LCD's, but the
VBIOS has no mode for that, so without the hack, they cannot display
larger than 1024x768. See:
http://www.laclinux.com/~karlheg/Higher_Resolutions_For_X.html ]
More information about the ubuntu-devel
mailing list