Hi, On Monday, 11 September 2006 15:46, Stefan Seyfried wrote: > Today i finally managed to set up and test userspace suspend. Everything > seems to work somehow (some strange things i need to investigate, e.g. > compressed suspend is actually slower than uncompressed).
Hm, this doesn't reflect my experience. ;-) > But i found one > real showstopper: according to the code and the obvious behaviour, suspend > uses the equivalent of "shutdown" in /sys/power/disk, means: it writes the > image to disk and then just powers off. This breaks many machines badly, > especially my hp nx5000 where neither Battery nor AC adapter state will work > properly after resume. Other machines might just resume slower (many machines > actually seem to skip a lot of BIOS-foo on resume with "platform" mode), or > have no negative side effects at all, but many HPs will lose battery > information (and on the ThinkPads, the moon will not blink during suspend :-) > > What can we do to fix this? In-kernel suspend calls the apropriate ACPI > methods at the beginning and end of suspend IIUC. Can we do something > similar from userspace? Generally, yes, but we'll need to add an additional ioctl for this purpose. I thought we'd have to add it at some point, but I'm not sure what Pavel thinks about it. Greetings, Rafael -- You never change things by fighting the existing reality. R. Buckminster Fuller ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel