* [gentoo-user] Standby
[not found] <47226938.10602@gmail.com>
@ 2007-09-15 14:51 ` Paul Gibbons
2007-09-16 23:36 ` Iain Buchanan
0 siblings, 1 reply; 7+ messages in thread
From: Paul Gibbons @ 2007-09-15 14:51 UTC (permalink / raw
To: gentoo-user
I have failed in the passed to get standby working properly. There
are various wiki notes but none seem to work properly. I know this is a
bit vague but maybe I have missed something at the top level. Would
someone mind making a list of pertient things I need to do. I can then
go and read the relevant wiki pages ( and maybe update them with my new
understanding).
I am using 2.6.22-gentoo-r5 86_64 AMD Athlon(tm) 64 X2 Dual Core
Processor 4200+ AuthenticAMD.
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:
### BEGIN HIBERNATE SENTINEL
title
_____________________________________________________________________
configfile dummy title WARNING: Linux 2.6.22-gentoo-r5 is suspended via
Software Suspend! configfile dummy
### END HIBERNATE SENTINEL
but when I pressed the power button again it performed a full restart.
Thanks for any advice.
--
##### ## ###
###### /### ###
/# / / ### ##
/ / / ### ##
/ / ## ##
## ## ## /### ## #### ##
## ## ## / ### / ## ### / ## paul@pkami.e7even.com
/### ## / / ###/ ## ###/ ## mobile: 07972184336
/ ### ## / ## ## ## ## ##
## ######/ ## ## ## ## ##
## ###### ## ## ## ## ##
## ## ## ## ## ## ##
## ## ## /# ## /# ##
## ## ####/ ## ######/ ## ### /
## ## ## ### ## ##### ## ##/
### # /
### /
#####/
###
Linux paul-gentoo 2.6.22-gentoo-r5
x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD
GNU/Linux
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Standby
2007-09-15 14:51 ` [gentoo-user] Standby Paul Gibbons
@ 2007-09-16 23:36 ` Iain Buchanan
2007-09-17 3:01 ` [gentoo-user] In-Kernel Standby [Fork of Standby] Randy Barlow
2007-10-04 20:26 ` [gentoo-user] Standby Paul Gibbons
0 siblings, 2 replies; 7+ messages in thread
From: Iain Buchanan @ 2007-09-16 23:36 UTC (permalink / raw
To: gentoo-user
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,1280x1024-32@60 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,
--
Iain Buchanan <iaindb at netspace dot net dot au>
Bender: Hey, that's my last beer, you bastard. I'll kill you!
Fry: I'll kill you too, buddy, I'll kill you too.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] In-Kernel Standby [Fork of Standby]
2007-09-16 23:36 ` Iain Buchanan
@ 2007-09-17 3:01 ` Randy Barlow
2007-09-17 6:42 ` Mick
2007-09-17 19:17 ` Florian Philipp
2007-10-04 20:26 ` [gentoo-user] Standby Paul Gibbons
1 sibling, 2 replies; 7+ messages in thread
From: Randy Barlow @ 2007-09-17 3:01 UTC (permalink / raw
To: gentoo-user
This topic has gotten me wondering. I used to us Suspend2-sources, but
on my current laptop install I'm just flying with gentoo-sources using
the built in suspend. What are the important differences?
Sometimes upon trying to execute the hibernate script, it will fail with
some kind of "Access denied" or some such, but I've never been able to
determine exactly under what circumstances that happens. It might be
when I've been using the swap space for actual swapping, but I've not
actually confirmed that. Anyone knowledgeable care to chime in?
--
Randy Barlow
http://electronsweatshop.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] In-Kernel Standby [Fork of Standby]
2007-09-17 3:01 ` [gentoo-user] In-Kernel Standby [Fork of Standby] Randy Barlow
@ 2007-09-17 6:42 ` Mick
2007-09-17 19:17 ` Florian Philipp
1 sibling, 0 replies; 7+ messages in thread
From: Mick @ 2007-09-17 6:42 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]
On Monday 17 September 2007, Randy Barlow wrote:
> This topic has gotten me wondering. I used to us Suspend2-sources, but
> on my current laptop install I'm just flying with gentoo-sources using
> the built in suspend. What are the important differences?
>
> Sometimes upon trying to execute the hibernate script, it will fail with
> some kind of "Access denied" or some such, but I've never been able to
> determine exactly under what circumstances that happens. It might be
> when I've been using the swap space for actual swapping, but I've not
> actually confirmed that. Anyone knowledgeable care to chime in?
Not so sure about the knowledgeable part, but here it goes:
Some devices are not managed successfully by acpid. You need to either shut
them down/bring them up by hand or amend your hibernate scripts to do so,
prior to hibernation taking place. Modems and USB devices are the usual
suspects.
If you run out of space it will tell you so in syslog.
Now someone more knowledgeable could build this up a bit. ;-)
HTH.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] In-Kernel Standby [Fork of Standby]
2007-09-17 3:01 ` [gentoo-user] In-Kernel Standby [Fork of Standby] Randy Barlow
2007-09-17 6:42 ` Mick
@ 2007-09-17 19:17 ` Florian Philipp
1 sibling, 0 replies; 7+ messages in thread
From: Florian Philipp @ 2007-09-17 19:17 UTC (permalink / raw
To: gentoo-user
Randy Barlow schrieb:
> This topic has gotten me wondering. I used to us Suspend2-sources, but
> on my current laptop install I'm just flying with gentoo-sources using
> the built in suspend. What are the important differences?
>
Here is a good list:
http://www.tuxonice.net/features
IMHO the most important advantages of suspend2 are lzo-compression
(providing a good speed up on virtually any machine), encryption (if
you're paranoid or concerned enough to use it) possible usage of swap
files and a higher performance after resume due to the fact that the
whole memory is saved and not only the necessary parts.
I don't know how many changes in the scripting exist, though and I've
never tried suspend1.
Regards
Florian Philipp
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Standby
2007-09-16 23:36 ` Iain Buchanan
2007-09-17 3:01 ` [gentoo-user] In-Kernel Standby [Fork of Standby] Randy Barlow
@ 2007-10-04 20:26 ` Paul Gibbons
2007-10-05 11:44 ` Hans-Werner Hilse
1 sibling, 1 reply; 7+ messages in thread
From: Paul Gibbons @ 2007-10-04 20:26 UTC (permalink / raw
To: gentoo-user; +Cc: iaindb
On Mon, 17 Sep 2007 09:06:32 +0930
Iain Buchanan <iaindb@netspace.net.au> 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,1280x1024-32@60
> 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'
--
##### ## ###
###### /### ###
/# / / ### ##
/ / / ### ##
/ / ## ##
## ## ## /### ## #### ##
## ## ## / ### / ## ### / ## paul@pkami.e7even.com
/### ## / / ###/ ## ###/ ## mobile: 07972184336
/ ### ## / ## ## ## ## ##
## ######/ ## ## ## ## ##
## ###### ## ## ## ## ##
## ## ## ## ## ## ##
## ## ## /# ## /# ##
## ## ####/ ## ######/ ## ### /
## ## ## ### ## ##### ## ##/
### # /
### /
#####/
###
Linux paul-gentoo 2.6.22-gentoo-r5
x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD
GNU/Linux
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Standby
2007-10-04 20:26 ` [gentoo-user] Standby Paul Gibbons
@ 2007-10-05 11:44 ` Hans-Werner Hilse
0 siblings, 0 replies; 7+ messages in thread
From: Hans-Werner Hilse @ 2007-10-05 11:44 UTC (permalink / raw
To: gentoo-user
Hi,
On Thu, 4 Oct 2007 21:26:28 +0100 Paul Gibbons <paul@pkami.e7even.com>
wrote:
> 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.
Sounds as if your BIOS is set to wake up on events that get triggered
when in standby. Things to check would be:
- Interrupts in general, there might be some spurious ones,
- Mouse/Keyboard (at least with a sensitive optical mouse...)
- Network
...but look for all these in the BIOS setup. Otherwise set up
hibernate-script to really shut off the computer.
-hwh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-10-05 11:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <47226938.10602@gmail.com>
2007-09-15 14:51 ` [gentoo-user] Standby Paul Gibbons
2007-09-16 23:36 ` Iain Buchanan
2007-09-17 3:01 ` [gentoo-user] In-Kernel Standby [Fork of Standby] Randy Barlow
2007-09-17 6:42 ` Mick
2007-09-17 19:17 ` Florian Philipp
2007-10-04 20:26 ` [gentoo-user] Standby Paul Gibbons
2007-10-05 11:44 ` Hans-Werner Hilse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox