Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236255 - sys-kernel/genkernel-3.4.10-r1 with TuxOnIce not resuming from hibernating to swap
Summary: sys-kernel/genkernel-3.4.10-r1 with TuxOnIce not resuming from hibernating to...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-31 08:39 UTC by Krzysztof Kozlowski
Modified: 2008-09-05 06:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch describing where genkernel fails (genkernel-tuxonice-debug-info.patch,628 bytes, patch)
2008-08-31 08:43 UTC, Krzysztof Kozlowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Kozlowski 2008-08-31 08:39:12 UTC
Genkernel does not resume from tuxonice hibernate. Its "linuxrc" simply does not start tuxonice_resume() function from initrd.scripts.


Reproducible: Always

Steps to Reproduce:
1. Build tuxonice-sources + genkernel kernel
2. hibernate
3. resume





Grub configuration:
--------------------
title=TuxOnIce-2.6.26 x86_64 - KOZIK_LAP-2.0.2
        kernel /boot/kernel-genkernel-x86_64-2.6.26-tuxonice-KOZIK_LAP-2.0.2 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda6 doscsi udev resume=swap:/dev/sda5 resume2=swap:/dev/sda5 tuxonice=swap:/dev/sda5
        initrd /boot/initramfs-genkernel-x86_64-2.6.26-tuxonice-KOZIK_LAP-2.0.2
--------------------
Comment 1 Krzysztof Kozlowski 2008-08-31 08:43:40 UTC
Created attachment 164159 [details, diff]
A patch describing where genkernel fails

Bug is maybe similar to #220913 .

sys-kernel/tuxonice-sources-2.6.26, Tuxonice and LZF compiled in kernel.

Attached patch (genkernel/generic/linuxrc) adds debug messages. When resuming from kernel built with modified linuxrc we can see messages:
  DEBUG - going to tuxonice_resume
  DEBUG - not done tuxonice_resume
  DEBUG - trying tuxonice_resume - manual
and the resuming finally starts.
Comment 2 Chris Gianelloni 2008-09-04 19:38:40 UTC
Ehh... resume shouldn't be run on a LiveCD.  Also, is the debug information really necessary?

Anyway, you need to set real_resume on your command line.  The linuxrc is skipping the resume because it thinks that you want to skip it due to not having real_resume set.  Yes, this sucks.  I know.  I'm planning on updating the resuming functions to be much cleaner in the future.
Comment 3 Krzysztof Kozlowski 2008-09-05 06:58:52 UTC
TuxOnIce documentation says it should resume on "resume=" in bootloader. Gentoo Docs are similar:
http://www.gentoo.org/doc/en/power-management-guide.xml
...