1 |
Why do you need anything in the kernel commandlindline? Everything is |
2 |
done either in the kernel config or in hibernate.conf. "make menuconfig" |
3 |
on my machine goes like so... |
4 |
|
5 |
========================================= |
6 |
Power management and ACPI options ---> |
7 |
|
8 |
[*] Power Management support |
9 |
[ ] Power Management Debug Support |
10 |
[ ] Suspend to RAM and standby |
11 |
[*] Hibernation (aka 'suspend to disk') |
12 |
(/dev/sda6) Default resume partition |
13 |
========================================= |
14 |
|
15 |
Your system should have /dev/sda5. I ran "emerge hibernate-script" |
16 |
and then executed "rc-update add hibernate-cleanup boot" so that when |
17 |
the machine comes up from "reboot" or "halt -p", it doesn't try to load |
18 |
the swap file as memory state. |
19 |
|
20 |
Here are the uncommented lines in my hibernate.conf. The last 4 lines |
21 |
are specific to my machine, and may not apply to yours. It works great |
22 |
for me. |
23 |
|
24 |
TryMethod disk.conf |
25 |
Distribution gentoo |
26 |
DownInterfaces auto |
27 |
PowerdownMethod shutdown |
28 |
UseSysfsPowerState disk |
29 |
UpInterfaces auto |
30 |
OnResume 99 chvt 1 |
31 |
OnResume 98 setfont lat1-10 |
32 |
OnResume 97 /etc/init.d/sshd restart |
33 |
OnResume 96 alsactl restore |
34 |
|
35 |
|
36 |
-- |
37 |
Walter Dnes <waltdnes@××××××××.org> |