Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2016 18:21:24 +0000
From:      Olivier Duchateau <duchateau.olivier@gmail.com>
To:        Pasi Koivisto <pasi@me.com>
Cc:        freebsd-xfce@freebsd.org
Subject:   Re: I keep getting errors about power-manager in my logs
Message-ID:  <20160201182124.a2d6efd0083ea86c336e6430@gmail.com>
In-Reply-To: <1454109164.41619.8.camel@me.com>
References:  <1454109164.41619.8.camel@me.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 Jan 2016 00:12:44 +0100
Pasi Koivisto <pasi@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-unsubscribe@freebsd.org"


-- 
olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160201182124.a2d6efd0083ea86c336e6430>