On Tue, 27 Oct 2009, Karol Babioch wrote:
There must be something similar for s2ram. According to the wiki (http://wiki.archlinux.org/index.php/Suspend_to_RAM) the file "hibernate.conf" should make it possible to say which modules need to be unloaded.
There is no need. Pm-utils is a frame-work which supports uswsusp (s2ram/s2disk), tuxonice and kernel (which is default). So user can just setup /etc/pm/config.d/config like so:
SLEEP_MODULE="uswsusp" SUSPEND_MODULES="pata_hpt37x"
Although uswsusp supports quirks and maintains a whitelist, it's better to include pm-utils in the story since it is a standard. It has quirks, reads HAL whitelist, and exposes a nice frame-work for writing your own hooks.