1 |
On Sat, 2007-09-15 at 15:51 +0100, Paul Gibbons wrote: |
2 |
|
3 |
[snip] |
4 |
|
5 |
> I have in the passed got to the point that pressing the power button |
6 |
> shut the system down and added an entry into my grub menu.lst of: |
7 |
|
8 |
[snip] |
9 |
|
10 |
> but when I pressed the power button again it performed a full restart. |
11 |
|
12 |
Here are some things that I do: |
13 |
|
14 |
1. My method is to keep grub.conf the same regardless of whether I'm |
15 |
hibernating or not: |
16 |
|
17 |
title Gentoo (Linux 2.6.22s2-r1) |
18 |
root (hd0,2) |
19 |
kernel /vmlinuz-2.6.22-suspend2-r1 root=/dev/hda7 video=vesafb:ywrap,mtrr,1280x1024-32@60 splash=silent,theme:livecd-2007.0 CONSOLE=/dev/tty1 |
20 |
initrd /fbsplash-livecd-2007.0-1280x1024 |
21 |
|
22 |
When the kernel has loaded, it then looks for a valid suspend image in |
23 |
swap (or hd). If it finds one, it uses it, if it doesn't, then it |
24 |
continues booting as normal. |
25 |
|
26 |
2. I should mention that I'm using suspend2-sources. |
27 |
|
28 |
3. the suspend2 users mailing list is an excellent place to find help |
29 |
with wierd my-system-won't-suspend issues. |
30 |
|
31 |
4. my /etc/acpi/default.sh has this in it: |
32 |
|
33 |
case "$ev_type" in |
34 |
button) |
35 |
case "$event" in |
36 |
power) |
37 |
logger "acpid: default.sh hibernate" |
38 |
/usr/sbin/hibernate |
39 |
break |
40 |
;; |
41 |
... |
42 |
|
43 |
5. and lastly if, when you boot, you can't "resume", it sounds like you |
44 |
haven't specified where your suspend image is. Either in the kernel: |
45 |
CONFIG_SUSPEND2_DEFAULT_RESUME2="swap:/dev/hda10" |
46 |
or on the boot line: |
47 |
resume=swap:/dev/hda10 |
48 |
|
49 |
If that still doesn't help, post back with the output of `dmesg | grep |
50 |
-i suspend` after you've tried to resume. |
51 |
|
52 |
HTH, |
53 |
-- |
54 |
Iain Buchanan <iaindb at netspace dot net dot au> |
55 |
|
56 |
Bender: Hey, that's my last beer, you bastard. I'll kill you! |
57 |
Fry: I'll kill you too, buddy, I'll kill you too. |
58 |
|
59 |
-- |
60 |
gentoo-user@g.o mailing list |