I finally got this working in Mandriva 2008.1.
Steps taken:
1) Install suspend-s2ram - Suspend-to-RAM utility
2) Uninstall kpowersave
3) Make sure you have ibm-acpi installed
4) Edit or create the following 4 files:
/etc/acpi/events/suspend
Code: Select all
event=ibm/hotkey HKEY 00000080 00001004
action=/etc/acpi/actions/suspend.sh
/etc/acpi/events/lm_lid
Code: Select all
event=button[ /]lid
action=/etc/acpi/actions/lm_lid.sh %e
/etc/acpi/actions/suspend.sh
/etc/acpi/actions/lm_lid.sh
Code: Select all
#!/bin/bash
test -f /usr/sbin/laptop_mode || exit 0
# lid button pressed/released event handler
/usr/sbin/s2ram
5) Make /etc/acpi/actions/suspend.sh executable.
6) Make /etc/acpi/actions/lm_lid.sh executable
7) Reboot (seems often needed for changes to become effective)
As far as I can tell, KPowerSave is incompatible with using the Hotkeys Fn + F4 for Suspend to RAM, although you can use the Suspend to RAM menu item in KPowerSave.
I am still working on Hibernate to Disk. I need to create or define the hibernation file, but I haven't yet come across the exact procedure to follow.
As a substitute for KPowerSave, I installed Klaptop for a power manager.
EDIT: Changed the lines above that read "
/usr/bin/pm-has-power-policy || /usr/sbin/s2ram" to just "
/usr/sbin/s2ram". On further reflection the first part of the command "
/usr/bin/pm-has-power-policy ||" did not seem to apply to s2ram. Trying it both ways, I could not see that it made any difference during execution.
EDIT 2: I just discovered a webpage on s2ram that shows additional options if you run into trouble. You can also find out if your machine is on the whitelist.
http://en.opensuse.org/S2ram