I've been using this link http://www.gentoo.org/doc/en/power-management-guide.xml to set up my laptop for suspend to ram and suspend to disk. I was having an issue though when I went from tuxonice to gentoo-sources-2.6.30, suspend to disk would suspend but not resume. After reading through the init script I found out that the kernel parameter in the guide is different from the actual kernel parameter processed by init. The guide says: Quote: The configuration for swsusp is rather easy. If you didn't store the location of your swap partition in the kernel config, you can also pass it as a parameter with the resume=/dev/SWAP directive. In reality this parameter in the 2.6.30 kernel should be: real_resume=/dev/SWAP SWAP being what ever your swap partition is. -darkseer Reproducible: Always
Where are you finding this information? I looked through the complete sources and documentation for both gentoo-sources and tuxonice, and *nowhere* in the latest kernels did they have a "real_resume" option. All the source code and docs have "resume=/dev/foo", not "real_resume=/dev/foo". http://www.tuxonice.net/HOWTO-7.html#ss7.2 http://www.tuxonice.net/HOWTO-2.html#ss2.5 /usr/src/linux/Documentation/power/swsusp-and-swap-files.txt http://git.kernel.org/?p=linux/kernel/git/nigelc/tuxonice-2.6.30.git;a=blob;f=Documentation/power/swsusp-and-swap-files.txt;h=f281886de4902041bbda38942772384a622d0319;hb=HEAD There's nothing in the upstream docs to indicate this parameter even exists, much less that it should be set by users. I can't adjust the power management guide without some further information.
(In reply to comment #1) > Where are you finding this information? > > I looked through the complete sources and documentation for both gentoo-sources > and tuxonice, and *nowhere* in the latest kernels did they have a "real_resume" > option. > > All the source code and docs have "resume=/dev/foo", not > "real_resume=/dev/foo". > > http://www.tuxonice.net/HOWTO-7.html#ss7.2 > http://www.tuxonice.net/HOWTO-2.html#ss2.5 > /usr/src/linux/Documentation/power/swsusp-and-swap-files.txt > http://git.kernel.org/?p=linux/kernel/git/nigelc/tuxonice-2.6.30.git;a=blob;f=Documentation/power/swsusp-and-swap-files.txt;h=f281886de4902041bbda38942772384a622d0319;hb=HEAD > > There's nothing in the upstream docs to indicate this parameter even exists, > much less that it should be set by users. I can't adjust the power management > guide without some further information. > I'll take you through what I did step by step and then we can see if I'm on crack or not: 1. emerge -av gentoo-sources (I get 2.6.30-gentoo-r4 with my config) 2. genkernel --menuconfig all 3. edit the kernel parameters as described in http://www.gentoo.org/doc/en/power-management-guide.xml for suspend to ram and suspend to disk 4. changed grub menu as described in the guide with the resume boot paramter 5. rebooted and used new kernel At this point suspend to ram was working perfect. Suspend to disk would write to disk, but not resume when I rebooted. After much nashing of teeth and re-reading I did the following: mkdir ~/tmp cd ~/tmp cp /boot/initramfs-genkernel-x86_64-2.6.30-gentoo-r4 ~/tmp zcat initramfs-genkernel-x86_64-2.6.30-gentoo-r4 | cpio -i vi init go to line 170 you should see: real_resume\=*) REAL_RESUME=`parse_opt "${x}"` If I use real resume in grub as a boot parameter it all works. If I use resume, nothing happens. So I am slightly in error, this isn't directly a kernel parameter, its a parameter to the init script. I have three other kernel versions running on various machines all around the 2.6.30 mark. At least 2 other appear to have the same init code. Tell me what else you need or what else I can do to help verify that this is correct and I am not on crack.
Seems like a bug in genkernel. We can't document stuff that isn't really an option, or is an "undocumented" workaround or bug. I'll reassign this to the genkernel maintainers; they should be able to make something of it.
(In reply to comment #3) > Seems like a bug in genkernel. We can't document stuff that isn't really an > option, or is an "undocumented" workaround or bug. > > I'll reassign this to the genkernel maintainers; they should be able to make > something of it. > Let me know if you need more information or need me to follow up or keep track of anything.
This was fixed to support resume= or real_resume=* at some point in the past.
(In reply to comment #5) > This was fixed to support resume= or real_resume=* at some point in the past. > In what version? I'm running 2.6.31-gentoo-r6 created using genkernel 3.4.10.904. I see: real_resume\=*) REAL_RESUME=`parse_opt "${x}"` in the init script on line 171 and 172 in the 2.6.31-r6 init created by genkernel. If I use resume in grub the resume doesn't happen. If I use real_resume it does. Is it a documentation problem, is my genkernel creating init wrong, or an I misunderstanding something? Using resume as a boot parameter still does not produce the desired results.
It's in 3.4.10.907
(In reply to comment #7) > It's in 3.4.10.907 > Mr. Gaffney you are awesome. Upgraded genkernel to the version you have listed. and confirmed the result. Thank you. For me 3.4.10.907 is in the ~amd64 tree which is why I wasn't seeing it.