- My Protégé 2000 laptop.
FC3 does not enable the experimental "software suspend (swsusp)" feature for kernel 2.6.x. So I decided to take it into my own hands.
- Download the latest kernel source rpm from fedora updates.
- Install the kernel source rpm. (into /usr/src/redhat, usually.)
- Modify SOURCES/kernel-(whatever)-i686.config, add the following:
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_PM_STD_PARTITION=(your swap partition. /dev/hda3 in my case) - Modify SPECS/kernel-2.6.spec, modify %define buildsmp 1 to %define buildsmp 0 to save some time.
- $ rpmbuild --target=i686-pc-linux -bb SPECS/kernel-2.6.spec
- Install the new rpm.
How to hibernate:
$ echo -n "shutdown" > /sys/power/disk
$ echo -n "disk" > /sys/power/state
If your swap partition is in different place with the one compiled into kernel, append resume=/dev/xxx to kernel paramters.
沒有留言 :
張貼留言