Categories: General
pm-utils are a set of power-management scripts for linux.
Since version 1.3.x, pm-utils has its own video-quirk database that does not rely on HAL. To install pm-utils, use the port from the contrib collection:
# ports -u contrib # prt-get install pm-utils
At this point, suspend-to-ram should work as is. To test, try calling:
# pm-suspend
Some hardware modules can cause issues when suspending. To unload these modules, create a file named "default" in /etc/pm/config.d:
SUSPEND_MODULES="button uhci_hcd ehci_hcd iwl3945"
When pm-utils are called, hooks are called from "/usr/lib/pm-utils/sleep.d" . Additional, user-created hooks can be placed in " /etc/pm/sleep.d ". These hooks will take precedence over those in /usr/lib/pm-utils/sleep.d. For example:
#!/bin/bash case $1 in suspend) /etc/rc.d/wifi stop ;; resume) /etc/rc.d/wifi start ;; *) echo "something is broken." ;; esac
Place these commands as "66dummy" (or similar). To allow this file to run during suspend:
# chmod +x /etc/pm/sleep.d/66dummy
To suspend to disk, you must append the swap partition in lilo.conf:
append = "resume=/dev/sda1"
For troubleshooting, log files should be available in /var/log.
If a hook is causing issues, create an empty equivalent in /etc/pm/sleep.d/ :
# touch /etc/pm/sleep.d/55NetworkManager
For additional information, view the opensuse wiki, available at: http://en.opensuse.org/Pm-utils