[Nix-dev] Suspend in KDE broken

Tony White tonywhite100 at googlemail.com
Thu May 20 13:56:23 CEST 2010


On 20 May 2010 10:21, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> 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/
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>

Hi Eelco,
http://hal.freedesktop.org/docs/PolicyKit/tools-fileformats.html
And it's called PolicyKit this week :)
http://www.freedesktop.org/wiki/Software/PolicyKit
polkit should go or be renamed. It is confusing.

According to this thread :
http://forum.kde.org/viewtopic.php?f=66&t=18837&sid=201c14dea4d0e73f6e084170607986e3&start=10

It looks like two things are required :
The user account to be a member of the "power" User group (Because
that's what the hardware abstraction layer looks for.)
uswsusp (It's user land tools) Must be available in the user's
environment to interact with the kernel in order to make it suspend :
http://suspend.sourceforge.net/
(The nix KDE 4.x desktop expression should take uswsusp as a depend.)

Good luck! I hope this information is useful.

Thanks,
Tony



More information about the nix-dev mailing list