[Nix-dev] Suspend in KDE broken

Eelco Dolstra e.dolstra at tudelft.nl
Thu May 20 11:21:10 CEST 2010


Hi,

I noticed that sleep / suspend-to-RAM in KDE is broken.  Running "pm-suspend" as
root does work.  This may be a PolicyKit/polkit (whatever it's called this week)
problem, since dbus-send gives this error:

[eelco at dutibo:~]$ dbus-send --system --print-reply \
  --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer \
  org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0
Error org.freedesktop.Hal.Device.UnknownError: error:
org.freedesktop.Hal.Error: Could not determine whether caller is privileged
 org.freedesktop.Hal.Device.Error

There is a file
/etc/PolicyKit/policy/org.freedesktop.hal.power-management.policy that specifies
that normal users can suspend, but apparently no equivalent file for polkit.

P.S. we shouldn't have both PolicyKit and polkit, it's confusing.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list