Re: [gentoo-user] Standby
Hi, On Thu, 4 Oct 2007 21:26:28 +0100 Paul Gibbons [EMAIL PROTECTED] 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 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Standby
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
Re: [gentoo-user] Standby
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, -- 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. -- [EMAIL PROTECTED] mailing list
[gentoo-user] Standby
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. -- # ##### ## /###### /# / / ##### // /### ## / / ## ## ## ## ## /### ## ## ## ## ## / ### / ##### / ## [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
[gentoo-user] Standby not working
Hi guys! Im on a Toshiba Satellite A70, and was wondering how to get the suspend to RAM working. KDE can initiate a hibernate, which will basically make the system hang when it should turn off. Thats ok though, I really only want suspend to ram working, and for my purposes, couldn't care less about hibernate. I followed the guide on the Gentoo site: www.gentoo.org/doc/en/power-management-guide.xml but when I typed: echo -n mem /sys/power/state nothing happens. Absolutely nothing. echo -n standby /sys/power/state also does nothing. Any ideas on how to get this working? Thanks! Ian begin:vcard fn:Ian K n:K;Ian email;internet:[EMAIL PROTECTED] note;quoted-printable:Pentium 3=0D=0A= 500mHz=0D=0A= 256MB RAM=0D=0A= 80.0GB HDD=0D=0A= ATI Radeon 7000 Evil Wizard 64MB=0D=0A= Computer name: PentaQuad=0D=0A= x-mozilla-html:TRUE version:2.1 end:vcard