Posted by Holger Schauer in
Linux
Wednesday, March 14. 2007
The other issue is that I never got hibernation working on the server and I fixed that today, too. I use a vanilla kernel.org self-compiled kernel on the box, so I could have gone for Suspend2, but as I have sysfs_power_state working on my Ubuntu laptop without much hassle, I wondered what was the problem on the server. As it turned out, suspend to ram (mem) doesn't seem to work and as that always had failed, I think I never really tried suspend to disk. Additionally, I hadn't added a resume line to my grub configuration, so it wouldn't have worked anyway. After a freeze in NetworkStop on my first try with suspend to disk, I added the rt2570 module to the list of blacklisted modules and now suspend to disk (and resume, of course) works. Yay! I'll be able to continue my hacking on UCW without having to boot it all the time, for instance. Here is what is actually doing the work from the config file:
[root@bauhaus->root]grep -v '#' /etc/hibernate/hibernate.conf | sed '/^$/d'
UseSysfsPowerState disk
PowerdownMethod shutdown
Verbosity 1
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution debian
SaveClock restore-only
UnmountFSTypes smbfs nfs
UnloadBlacklistedModules yes
LoadModules auto
DownInterfaces rausb0 eth0
UpInterfaces auto
XStatus x
XSuspendText Preparing to suspend...
XResumeText Resuming from suspend...