Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163585 - [suspend2] hiberating to disk doesn't work sometimes
Summary: [suspend2] hiberating to disk doesn't work sometimes
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-24 13:08 UTC by Anton Bolshakov
Modified: 2007-01-25 17:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2007-01-24 13:08:00 UTC
hardware:
IBM thinkpad t42, x86

software:
[I--] [  ] sys-kernel/suspend2-sources-2.6.18-r1 (2.6.18-r1)


Hibernating to disk could fail sometimes with the follow error message in dmesg:
Suspend2 2.2.9: Initiating a software suspend cycle.
 Stopping tasks... done.
 Free:15005(15005). Sets:69354(69354),46471(46471). Header:6. Nosave:2-0=2. Storage:68909/116331(250977). Needed:1
030|-134646|0.
 Restarting tasks...done.
 Free:16896(16896). Sets:67427(67427),46471(46471). Header:6. Nosave:2-0=2. Storage:68909/114404(250977). Needed:-
1824|-136573|0.
 Stopping tasks... done.
 Free:16896(16896). Sets:67427(67427),46471(46471). Header:6. Nosave:2-0=2. Storage:68909/114404(250977). Needed:-
1824|-136573|0.
 Free:16896(16896). Sets:67427(67427),46471(46471). Header:6. Nosave:2-0=2. Storage:68909/114404(250977). Needed:-
1824|-136573|0.
 Free:760(760). Sets:67462(67462),46471(46471). Header:6. Nosave:16126-16124=2. Storage:68909/114439(250977). Need
ed:6267|-136538|0.
 Restarting tasks...done.
 Free:16132(16132). Sets:52057(52057),46471(46471). Header:6. Nosave:16126-16124=2. Storage:68909/99034(250963). N
eeded:-11788|-151929|0.
 Stopping tasks...
  Stopping tasks timed out after 20 seconds (1 tasks remaining):
   kswapd0
 Free:30982(30982). Sets:37088(37088),46471(46471). Header:6. Nosave:16126-16124=2. Storage:68909/84065(250963). N
eeded:-26638|-166898|0.
 Restarting tasks...<6>Strange, kswapd0 not stopped
 done.
 Suspend2 debugging info:
 - SUSPEND core   : 2.2.9
 - Kernel Version : 2.6.18-suspend2-r1
 - Compiler vers. : 4.1
 - Attempt number : 4
 - Parameters     : 17 16 0 1 0 0
 - Overall expected compression percentage: 0.
 - Compressor is 'lzf'.
 - SwapAllocator active.
   Swap available for image: 250963 pages.
 - No I/O speed stats available.
 - Extra pages    : -61 used/500.


Reproducible: Sometimes

Steps to Reproduce:
1. Try to hibernate to disk several times


Actual Results:  
System will go to hibernating mode and will stop that process in the middle and failed to do so. Computer will continue to work after that.

Expected Results:  
Hibernation should be successful.


I was chatting on IRC with author and he said it's known problem and it has been fixed in 2.2.9.3. To fix it in the current stable 2.2.9 version you need to add the follow line to /etc/hibernate/suspend2.conf:
ProcSetting full_pageset2 1
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-24 19:15:48 UTC
Unsupported kernel [1]; move this to http://bugzilla.suspend2.net/index.cgi

[1] http://www.gentoo.org/doc/en/gentoo-kernel.xml#doc_chap3
Comment 2 Anton Bolshakov 2007-01-25 00:46:19 UTC
I'm reopening the bug to confirm:
The bug is known and it has been fixed in the next version as I mentioned early. So there is no point to file it in suspend2-bugzilla.

However, it's possible to fix it in the current version by changing
sys-power/hibernate-script 
package and adding the follow line to /etc/hibernate/suspend2.conf:
ProcSetting full_pageset2 1

I would suggest to include that even commented out with explanations.
Let me know if you need a proper patch.
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-25 09:05:13 UTC
I cannot document any workaround there is... You have found one... There are many with ati-drivers, drm, bluetooth, wireless etc...
Suspend to disk is not supported very well in kernel...
The workarounds can be found at upstream mailing list archives.

Sorry.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-25 09:09:54 UTC
Oh... And don't upgrade to 2.2.9.3, it has some major opened issues... :)
Comment 5 Anton Bolshakov 2007-01-25 17:39:09 UTC
>Oh... And don't upgrade to 2.2.9.3, it has some major opened issues... :)

That's exactly my point.
The latest version is buggy and you can't use it.
The 'stable' version is buggy too, but you need just a single line to make it work. At least for me.

Anyway, I understand now why it's no supported :)
I guess, I'll just document it on gentoo-wiki so people would know ..
Thank you.