I hadn't bothered to get involved in the HAL, DBus and ACPI wars up to now, and thank goodness.
Previously, when I wanted to suspend my laptop on lid-close I wrote a small script that was called on ACPI event button.lid
and used the pm-utils command "pm-suspend" to enter suspend mode.
I guess we are all using DBus now, so I should change to doing things properly. That is, if I could find the docs.
The Slackware wiki
has some notes on hibernate, but not suspend, and those notes refer to a UPower key UPower.Hibernate
, which AFAICT is not configured on 14.0, so I can't use it as an example to write my own UPower.Suspend.
What is the canonical way in 14.0 to enter suspend mode when a laptop's lid is closed?
I should add I use a tiling WM, so no desktop and no KDE or Gnome power management daemons are running.