$ uname -srv Linux 2.6.10-gentoo-r6 #4 Fri Feb 4 15:38:45 CET 2005
here for more recent ones)
$ tar xjvf software-suspend-18.104.22.168-for-2.6.10.tar.bz2
$ cd /usr/src/linux
$ /path/to/patches/applyThis should complain about not being able to apply patch cleanly, so I simply moved these patches away from /path/to/patches/. In my case there were two such ones: 100-kdb-v4.4-2.6.10-common-1 and 130-bootsplash-3.1.4-2.6.10.diff.
$/path/to/patches/applyin kernel source tree and everything went well
$ make menuconfigthen navigate:
Power management options (ACPI, APM) ---> [*] Power Management support ... Software Suspend 2 ---> <*> Software Suspend 2 <*> Swap Writer <*> LZF image compression (Preferred) <*> Text mode console support [*] Warn if possibility of filesystem corruption
$ makeand install
$ make modules_install ; make install
$ emerge hibernate-script
$ vim /etc/hibernate/hibernate.confhere go all uncomented lines from my hibernate.conf
... UseSwsusp2 yes Reboot no EnableEscape yes DefaultConsoleLevel 1 ... UseSysfsPowerState disk PowerdownMethod 5 ... Verbosity 0 LogFile /var/log/hibernate.log LogVerbosity 1 ... SaveClock yes ... UnloadBlacklistedModules yes LoadModules auto
$ shutdown -r nowYou can try hibernate right now. If it doesn't work yet read on.
$ hibernate Some modules failed to unload: nvidia hibernate: Aborting suspend due to errors in ModulesUnloadBlacklist (use --force to override).solution is either using:
$ hibernate --forceor go to the file /etc/hibernate/blacklisted-modules and comment nvidia module out:
... #nvidia ...
This is probably due to mounted ntfs partition. Solution is simple, go to your hibernate.conf write this:
... Unmount /win ...where /win is my ntfs partition holding Win XP.
I haven't tested this much but it's been working quite reliably for past 3 weeks (suspending 1-2 times a day).
Sorry for my bad English. For questions, suggestions whatever use this address: on%onyon!net (%=@;!=.).
so I found that this article got linked from various forums and I have some news for you
Since there are suspend kernel sources provided in gentoo I don't have to patch anymore
Then there are kernel versions which simply don't play well together with nvidia binary driver. Tried some of them and found 2.6.15-suspend2-r5 to be the one which works almost flawlessly (crashed once, maybe there were chances that machine is still accessible via network, but I didn't bother to try)
me recommends 2.6.15-suspend2-r5