On Mon, 17 Sep 2007 09:06:32 +0930
Iain Buchanan <[EMAIL PROTECTED]> wrote:
> On Sat, 2007-09-15 at 15:51 +0100, Paul Gibbons wrote:
>
> [snip]
>
> > I have in the passed got to the point that pressing the power button
> > shut the system down and added an entry into my grub menu.lst of:
>
> [snip]
>
> > but when I pressed the power button again it performed a full
> > restart.
>
> Here are some things that I do:
>
> 1. My method is to keep grub.conf the same regardless of whether I'm
> hibernating or not:
>
> title Gentoo (Linux 2.6.22s2-r1)
> root (hd0,2)
> kernel /vmlinuz-2.6.22-suspend2-r1 root=/dev/hda7
> video=vesafb:ywrap,mtrr,[EMAIL PROTECTED]
> splash=silent,theme:livecd-2007.0 CONSOLE=/dev/tty1
> initrd /fbsplash-livecd-2007.0-1280x1024
>
> When the kernel has loaded, it then looks for a valid suspend image in
> swap (or hd). If it finds one, it uses it, if it doesn't, then it
> continues booting as normal.
>
> 2. I should mention that I'm using suspend2-sources.
>
> 3. the suspend2 users mailing list is an excellent place to find help
> with wierd my-system-won't-suspend issues.
>
> 4. my /etc/acpi/default.sh has this in it:
>
> case "$ev_type" in
> button)
> case "$event" in
> power)
> logger "acpid: default.sh hibernate"
> /usr/sbin/hibernate
> break
> ;;
> ...
>
> 5. and lastly if, when you boot, you can't "resume", it sounds like
> you haven't specified where your suspend image is. Either in the
> kernel: CONFIG_SUSPEND2_DEFAULT_RESUME2="swap:/dev/hda10"
> or on the boot line:
> resume=swap:/dev/hda10
>
> If that still doesn't help, post back with the output of `dmesg | grep
> -i suspend` after you've tried to resume.
>
> HTH,
Thanks for the advice. Hopefully I can get enough functionality with
swsusp from gentoo-sources and so not need to change to
suspend2-sources - although that may be a very procedure?
Anyway I have created a 32GB SWAP partition (dev/sda5) and gadded
resume=/dev/sda5 to the boot options. And also made the suggested
change to /etc/acpi/default.sh in point (4) above. Now when I press the
soft power button the system suspends ( all processes appear to stop
and the screen goes blank but for a flashing cursor in the top left of
the 2 screens of my dual headed system) but after a few minutes the
system resumes. It seems that either a wakeup message is being received
or the hibernate script cannot actually power off the computer and so
after a timeout period it resumes.
The contents of /var/log/hibernate.log are:
Starting suspend at Thu Oct 4 20:15:48 BST 2007
Oct 4 20:15:48.55 hibernate: [01] Executing CheckLastResume ...
Oct 4 20:15:48.56 hibernate: [01] Executing CheckRunlevel ...
Oct 4 20:15:48.57 hibernate: [01] Executing LockFileGet ...
Oct 4 20:15:48.58 hibernate: [01] Executing NewKernelFileCheck ...
Oct 4 20:15:48.59 hibernate: [05] Executing XStatusSuspendBegin ...
Oct 4 20:15:48.61 hibernate: [10] Executing
EnsureSysfsPowerStateCapable ... Oct 4 20:15:48.63 hibernate: [11]
Executing ChangeGrubMenu ... Oct 4 20:15:48.66 Changing grub menu...
Oct 4 20:15:48.97 hibernate: [11] Executing XHacksSuspendHook1 ...
Oct 4 20:15:48.98 hibernate: [15] Executing PauseAudio ...
Oct 4 20:15:49.14 hibernate: [20] Executing MiscLaunchAuxFunc1 ...
Executing echo "Good night!"...
Good night!
Oct 4 20:15:49.15 hibernate: [20] Executing MiscLaunchAuxFunc2 ...
Executing echo "Good night!"...
Good night!
Oct 4 20:15:49.16 hibernate: [20] Executing XStatusProgress ...
Oct 4 20:15:49.18 hibernate: [30] Executing XStatusProgress ...
Oct 4 20:15:49.19 hibernate: [40] Executing XStatusProgress ...
Oct 4 20:15:49.20 hibernate: [50] Executing XStatusProgress ...
Oct 4 20:15:49.21 hibernate: [59] Executing RemountXFSBootRO ...
Oct 4 20:15:49.25 hibernate: [60] Executing NetworkStop ...
Oct 4 20:15:49.26 Bringing down interface eth1
[32;01m*[0m Stopping apache2 ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Unmounting network filesystems ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m samba -> stop: smbd ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m samba -> stop: nmbd ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Stopping sshd ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Stopping eth1
[32;01m*[0m Bringing down eth1
[32;01m*[0m Shutting down eth1 ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
Oct 4 20:15:52.00 hibernate: [60] Executing XStatusProgress ...
Oct 4 20:15:52.01 hibernate: [70] Executing ClockSave ...
Oct 4 20:15:53.00 hibernate: [70] Executing ClockSave ...
Oct 4 20:15:54.00 hibernate: [70] Executing XStatusProgress ...
Oct 4 20:15:54.02 hibernate: [80] Executing XStatusProgress ...
Oct 4 20:15:54.03 hibernate: [89] Executing SaveKernelModprobe ...
Oct 4 20:15:54.04 hibernate: [90] Executing XStatusProgress ...
Oct 4 20:15:54.05 hibernate: [91] Executing ModulesUnloadBlacklist ...
Oct 4 20:15:54.06 Unloading blacklisted modules
listed /etc/hibernate/blacklisted-modules Oct 4 20:15:54.31 Module
version for ipw2100 is Oct 4 20:15:54.34 Module version for ipw2200 is
Oct 4 20:15:55.02 Module version for ndiswrapper is
Oct 4 20:15:55.06 hibernate: [91] Executing ModulesUnloadBlacklist ...
Oct 4 20:15:55.07 Unloading blacklisted modules
listed /etc/hibernate/blacklisted-modules Oct 4 20:15:55.31 Module
version for ipw2100 is Oct 4 20:15:55.34 Module version for ipw2200 is
Oct 4 20:15:56.04 Module version for ndiswrapper is
Oct 4 20:15:56.08 hibernate: [93] Executing DiskCacheDisable ...
Oct 4 20:15:56.10 hibernate: Disabling disk cache on /dev/sdb5
Oct 4 20:15:56.62 hibernate: Disabling disk cache on /dev/sdb5
Oct 4 20:15:57.13 hibernate: [95] Executing XHacksSuspendHook2 ...
Oct 4 20:15:57.15 xhacks: changing console from 7 to 15
Oct 4 20:15:57.89 hibernate: [95] Executing XStatusProgress ...
Oct 4 20:15:57.90 hibernate: [98] Executing CheckRunlevel ...
Oct 4 20:15:57.91 hibernate: [98] Executing FullSpeedCPUSuspend ...
Oct 4 20:15:57.95 Switched to performance, with min freq at 2200000
Oct 4 20:15:57.95 hibernate: [98] Executing XStatusProgressKill ...
Oct 4 20:15:57.96 hibernate: [99] Executing DoSysfsPowerStateSuspend ...
Oct 4 20:15:57.96 hibernate: Activating sysfs power state disk ...
Oct 4 20:16:53.79 hibernate: [98] Executing FullSpeedCPUResume ...
Oct 4 20:16:53.80 hibernate: [95] Executing XStatusResumeBegin ...
Oct 4 20:16:53.81 hibernate: [93] Executing DiskCacheEnable ...
Oct 4 20:16:53.82 hibernate: Enabling disk cache on /dev/sdb5
Oct 4 20:16:54.33 hibernate: Enabling disk cache on /dev/sdb5
Oct 4 20:16:54.83 hibernate: [91] Executing GentooModulesAutoload ...
Oct 4 20:16:54.91 Loading modules
listed /etc/modules.autoload.d/kernel-2.6 Oct 4 20:16:54.92 hibernate:
[91] Executing GentooModulesAutoload ... Oct 4 20:16:55.00 Loading
modules listed /etc/modules.autoload.d/kernel-2.6 Oct 4 20:16:55.02
hibernate: [90] Executing XStatusProgress ... Oct 4 20:16:55.03
hibernate: [90] Executing ModulesLoad ... Oct 4 20:16:55.04 hibernate:
[89] Executing RestoreKernelModprobe ... Oct 4 20:16:55.05 hibernate:
[85] Executing XHacksResumeHook2 ... Oct 4 20:16:55.06 xhacks: changing
console back to 7 Oct 4 20:16:55.09 hibernate: [80] Executing
XStatusProgress ... Oct 4 20:16:55.11 hibernate: [70] Executing
XStatusProgress ... Oct 4 20:16:55.13 hibernate: [70] Executing
ClockRestore ... Oct 4 20:16:56.00 hibernate: [70] Executing
ClockRestore ... Oct 4 20:16:57.00 hibernate: [70] Executing
ClockRestore ... Oct 4 20:16:58.00 hibernate: [70] Executing
ClockRestore ... Oct 4 20:16:59.00 hibernate: [60] Executing
XStatusProgress ... Oct 4 20:16:59.01 hibernate: [60] Executing
NetworkStart ... Oct 4 20:16:59.01 hibernate: [59] Executing
RemountXFSBootRW ... Oct 4 20:16:59.03 hibernate: [50] Executing
XStatusProgress ... Oct 4 20:16:59.03 hibernate: [40] Executing
XStatusProgress ... Oct 4 20:16:59.04 hibernate: [30] Executing
XStatusProgress ... Oct 4 20:16:59.05 hibernate: [20] Executing
XStatusProgress ... Oct 4 20:16:59.05 hibernate: [15] Executing
XStatusProgress ... Oct 4 20:16:59.06 hibernate: [11] Executing
XHacksResumeHook1 ... Oct 4 20:16:59.06 hibernate: [11] Executing
RestoreGrubMenu ... Oct 4 20:16:59.09 hibernate: [05] Executing
XStatusProgressKill ... Oct 4 20:16:59.10 hibernate: [01] Executing
XStatusReportErrors ... Oct 4 20:16:59.11 hibernate: [01] Executing
NoteLastResume ... Oct 4 20:16:59.12 hibernate: [01] Executing
LockFilePut ... Resumed at Thu Oct 4 20:16:59 BST 2007
I think the problem is to do with the error seen in the following
output from hibernate.
+ set -- Oct 4 20:40:28.47 'hibernate: Activating sysfs power state
disk ...'
+ '[' 1 -le 4 ']'
+ echo Oct 4 20:40:28.47 hibernate: Activating sysfs power state
disk ... Oct 4 20:40:28.47 hibernate: Activating sysfs power state
disk ...
+ '[' -n '' ']'
+ /bin/echo -n disk
/bin/echo: write error: No such device
+ return 0
+ ret=0
+ '[' 0 -ge 2 ']'
+ '[' 0 -gt 0 ']'
+ '[' -n '' ']'
++ SortResumeBits
++ /bin/echo -ne
'91GentooModulesAutoload\n70ClockRestore\n70ClockRestore\n01XStatusReportErrors\n05XStatusProgressKill\n15XStatusProgress\n20XStatusProgress\n30XStatusProgress\n40XStatusProgress\n50XStatusProgress\n60XStatusProgress\n70XStatusProgress\n80XStatusProgress\n90XStatusProgress\n95XStatusResumeBegin\n85XHacksResumeHook2\n11XHacksResumeHook1\n60NetworkStart\n91GentooModulesAutoload\n90ModulesLoad\n98FullSpeedCPUResume\n11RestoreGrubMenu\n93DiskCacheEnable\n70ClockRestore\n70ClockRestore\n59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n'
--
##### ## ###
###### /### ###
/# / / ### ##
/ / / ### ##
/ / ## ##
## ## ## /### ## #### ##
## ## ## / ### / ## ### / ## [EMAIL PROTECTED]
/### ## / / ###/ ## ###/ ## mobile: 07972184336
/ ### ## / ## ## ## ## ##
## ######/ ## ## ## ## ##
## ###### ## ## ## ## ##
## ## ## ## ## ## ##
## ## ## /# ## /# ##
## ## ####/ ## ######/ ## ### /
## ## ## ### ## ##### ## ##/
### # /
### /
#####/
###
Linux paul-gentoo 2.6.22-gentoo-r5
x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD
GNU/Linux
--
[EMAIL PROTECTED] mailing list