On Sat, 30 Jan 2016 00:12:44 +0100 Pasi Koivisto <p...@me.com> wrote:
Hi Pasi, > 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 ") > Please could you post complete log somewhere. Kill the xfce4-power-manager daemon, then restarts it. % xfce4-power-manager --quit % xfce4-power-manager --no-daemon --debug --dump > I have tried to add rules like this. I can't remember where I found it > but probably archwiki or similar. xfce4-session contains information how to create / add rules. Try: % pkg query %M xfce4-session > > # 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; > } > }); If you add your main group, it works? Theses rules are not anymore needed, since polkit 0.113, you can remove these files. > > 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. > _______________________________________________ > freebsd-xfce@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-xfce > To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org" -- olivier _______________________________________________ freebsd-xfce@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-xfce To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"