Date: Sat, 30 Jan 2016 00:12:44 +0100 From: Pasi Koivisto <pasi@me.com> To: freebsd-xfce@freebsd.org Subject: I keep getting errors about power-manager in my logs Message-ID: <1454109164.41619.8.camel@me.com>
next in thread | raw e-mail | index | archive | help
This is what I get in my logs.
dbus[980]: [system] Rejected send message, 2 matched rules;
type="method_call", sender=":1.107" (uid=502 pid=34333 comm="xfce4
-power-manager --restart --sm-client-id 2160b")
interface="org.freedesktop.ConsoleKit.Manager" member="CanSuspend"
error name="(unset)" requested_reply="0" destination=":1.1" (uid=0
pid=1191 comm="/usr/local/sbin/console-kit-daemon --no-daemon ")
I have tried to add rules like this. I can't remember where I found it
but probably archwiki or similar.
# cat /usr/local/etc/polkit-1/rules.d/51-upower.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.upower.suspend" ||
action.id == "org.freedesktop.upower.hibernate") {
return polkit.Result.YES;
}
});
And also this in /usr/local/etc/polkit-1/localauthority/50-local.d/xfce
-power-manager.pkla
[Restart]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes
[Shutdown]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes
[Suspend]
Identity=unix-group:wheel
Action=org.freedesktop.upower.suspend
ResultAny=yes
ResultInactive=yes
ResultActive=yes
But nothing seems to work. Suspend/restart etc works despite of this.
I can't figure this out.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1454109164.41619.8.camel>
