* Unprivileged power managing in GuixSD: dbus-send not working
@ 2016-01-29 15:55 swedebugia
2016-01-31 10:27 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: swedebugia @ 2016-01-29 15:55 UTC (permalink / raw)
To: guix-devel
Hi
I'm using GuixSD with xfce recently pulled, reconfigured and restarted.
I have found that power managing dbus-send commands (from
http://andrusiv.com/blog/2011/12/12/shutdown-dbus.html) does not work at
all, eg:
$ dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit
/org/freedesktop/ConsoleKit/Manager
org.freedesktop.ConsoleKit.Manager.Stop
Error org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.ConsoleKit was not provided by any .service files
or
$ dbus-send --print-reply --system --dest=org.freedesktop.UPower
/org/freedesktop/UPower org.freedesktop.UPower.Suspend
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with
signature "" on interface "org.freedesktop.UPower" doesn't exist
Is this because dbus / polkit is currently misconfigured?
Is there anything I can do about it? I'm guessing the incapability of
the xfce power menu to function is related to this.
cheers
sdb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unprivileged power managing in GuixSD: dbus-send not working
2016-01-29 15:55 Unprivileged power managing in GuixSD: dbus-send not working swedebugia
@ 2016-01-31 10:27 ` Ludovic Courtès
2016-02-02 11:27 ` swedebugia
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2016-01-31 10:27 UTC (permalink / raw)
To: swedebugia; +Cc: guix-devel
swedebugia@riseup.net skribis:
> I'm using GuixSD with xfce recently pulled, reconfigured and restarted.
>
> I have found that power managing dbus-send commands (from
> http://andrusiv.com/blog/2011/12/12/shutdown-dbus.html) does not work
> at all, eg:
I think you’ll find it easier to use the ‘upower’ command, which does
something equivalent:
$(guix build upower)/bin/upower --dump
Works for me on current GuixSD.
> $ dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit
> /org/freedesktop/ConsoleKit/Manager
> org.freedesktop.ConsoleKit.Manager.Stop
>
> Error org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.ConsoleKit was not provided by any .service files
That’s expected: we don’t use ConsoleKit (it’s deprecated.)
> $ dbus-send --print-reply --system --dest=org.freedesktop.UPower
> /org/freedesktop/UPower org.freedesktop.UPower.Suspend
>
> Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with
> signature "" on interface "org.freedesktop.UPower" doesn't exist
>
> Is this because dbus / polkit is currently misconfigured?
Good question, I’m not sure what’s going on here. Stracing dbus-daemon
doesn’t reveal anything obvious.
Anyone D-Bus-savvy has ideas?
> Is there anything I can do about it? I'm guessing the incapability of
> the xfce power menu to function is related to this.
Probably.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unprivileged power managing in GuixSD: dbus-send not working
2016-01-31 10:27 ` Ludovic Courtès
@ 2016-02-02 11:27 ` swedebugia
0 siblings, 0 replies; 3+ messages in thread
From: swedebugia @ 2016-02-02 11:27 UTC (permalink / raw)
To: ludo; +Cc: guix-devel
On 2016-01-31 11:27, ludo@gnu.org wrote:
> swedebugia@riseup.net skribis:
>
>> I'm using GuixSD with xfce recently pulled, reconfigured and
>> restarted.
>>
>> I have found that power managing dbus-send commands (from
>> http://andrusiv.com/blog/2011/12/12/shutdown-dbus.html) does not work
>> at all, eg:
>
> I think you’ll find it easier to use the ‘upower’ command, which does
> something equivalent:
>
> $(guix build upower)/bin/upower --dump
>
> Works for me on current GuixSD.
>
>> $ dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit
>> /org/freedesktop/ConsoleKit/Manager
>> org.freedesktop.ConsoleKit.Manager.Stop
>>
>> Error org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.freedesktop.ConsoleKit was not provided by any .service files
>
> That’s expected: we don’t use ConsoleKit (it’s deprecated.)
>
>> $ dbus-send --print-reply --system --dest=org.freedesktop.UPower
>> /org/freedesktop/UPower org.freedesktop.UPower.Suspend
>>
>> Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with
>> signature "" on interface "org.freedesktop.UPower" doesn't exist
>>
>> Is this because dbus / polkit is currently misconfigured?
>
> Good question, I’m not sure what’s going on here. Stracing dbus-daemon
> doesn’t reveal anything obvious.
>
> Anyone D-Bus-savvy has ideas?
>
>> Is there anything I can do about it? I'm guessing the incapability of
>> the xfce power menu to function is related to this.
>
> Probably.
Searching around with 'upower test' I found this to test dbus objects:
https://github.com/martinpitt/python-dbusmock
do we have any test that verify upower working as expected yet? If not
this program might be of help.
cheers
sdb
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-02 11:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-29 15:55 Unprivileged power managing in GuixSD: dbus-send not working swedebugia
2016-01-31 10:27 ` Ludovic Courtès
2016-02-02 11:27 ` swedebugia
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.