https://bugzilla.novell.com/show_bug.cgi?id=442778
User hmacht@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442778#c2
Holger Macht changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from Holger Macht 2008-11-07 10:30:15 MST ---
oh, that's a bug which I fixed already some time ago, but it seems I never
submitted it. pm-suspend is in /usr/sbin/, so it's not found as usual user. It
even wouldn't work when not executed as root. It should do this instead:
function suspend_to_ram {
dbus-send --system --print-reply --dest=org.freedesktop.Hal \
$HAL_COMPUTER_PATH \
org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0
}
function suspend_to_disk {
dbus-send --system --print-reply --dest=org.freedesktop.Hal \
$HAL_COMPUTER_PATH \
org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate
}
pm-profiler is actually installed just because of the 'powersave' command I
didn't want to throw away completely. Without it, a user has no chance to do a
sleep from the command line without being root (except the above D-Bus calls).
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.