[redirected to list / an die Liste umgeleitet] Kevin Pfeiffer wrote:
Hi,
Rade Trimceski writes:
Can anyone tell me if Suse 9.1 will be capable of using ACPI to send a laptop into sleep states, for example hybernate? Has anyone tried this and how well does it work?
I'll do my best, but others may have to help. SuSE uses something called powersave - based on a daemon that runs and responds to various ACPI events, including throttling, temp. control, etc. as well as the commands for standby (save to RAM) and suspend (hibernate or save to disk). The actions executed are determined and implemented by a sophisticated configuration file (which you can extend or modify).
Suspend or (hibernation) appears to work well on many laptops (including my X31 Thinkpad) and standby works less successfully. On my laptop, for example, the backlight does not shut off on standby and there is sometimes a video RAM problem when it's reactivated. Hibernation works fine. There is, of course, always the possibility of switching back to APM (which for standby worked perfectly on my machine). This, too, is supported by the same powersave system.
It appears to me that the powersave configuration is new and will be further refined, but so much apparently depends on the implementation of ACPI in the BIOS.
The description exactly hits the point. For beginning: you have to enable suspend/standby in /etc/powersave.conf and restart the powersaved (disabled by default because it still breaks sometimes). First time you should not run anything important. Then do powersave --suspend There are two possible failures: 1) During suspend (the system tries to come to normal working mode). 2) During resume. You may come into an endless loop where the system always tries to resume when booting, but fails. Then you have to boot the failsafe entry, which cleans up the swap partition where last system context is still stored. Currently most vendor specific agp modules do not work properly with suspend/standby (once they are loaded). So you have to add your's (lsmod |grep "_agp" to /etc/hotplug/blacklist, to avoid that they are loaded at all. Other modules that could break suspend/standby should be added to /etc/sysconfig/powersave/common POWERSAVE_UNLOAD_MODULES_BEFORE_SUSEPEND/STANDBY They will be reloaded on resume. If you find any modules that break suspend (S4) please report them directly to me trenn@suse.de. We try to figure out all bad modules (concerning sleeping states) and contact module maintainers who could fix those for SUSE 9.2 (or try to fix them ourselves...). Thomas P.S.: Figuring out bad modules could be a bit annoying. If you are lucky you get an appropriate message/oops that refers to a specific module. But normally you just have to try which module breaks suspend: boot with boot parameter: init=/bin/bash then do: mount / -o remount,rw /etc/init.d/powersaved start powersave --suspend This should work on all laptops (even on most workstations). Do it again and load the module you expect that crashes suspend the next time before doing powersave --suspend. If you found a bad module (please no selfwritten/obscure stuff), set it in /etc/sysconfig/powersave/common (see above) and please report it.