3 # hal-system-system-power-suspend-sunos.sh
5 # Licensed under the Academic Free License version 2.1
8 alarm_not_supported
() {
9 echo org.freedesktop.Hal.Device.SystemPowerManagement.AlarmNotSupported
>&2
10 echo Waking the system up is not supported
>&2
15 echo org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported
>&2
16 echo No
suspend method found
>&2
21 if [ $seconds_to_sleep != "0" ] ; then
25 if [ -x "/usr/sbin/uadmin" ] ; then
32 #Refresh devices as a resume can do funny things
33 for type in button battery ac_adapter
35 devices
=`hal-find-by-capability --capability $type`
36 for device
in $devices
38 dbus-send
--system --print-reply --dest=org.freedesktop.Hal \
39 $device org.freedesktop.Hal.Device.Rescan