all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: swedebugia@riseup.net
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Unprivileged power managing in GuixSD: dbus-send not working
Date: Sun, 31 Jan 2016 11:27:06 +0100	[thread overview]
Message-ID: <87zivmcadh.fsf@gnu.org> (raw)
In-Reply-To: <2c239fa148b4a7ade1ae22d918bf05ed@riseup.net> (swedebugia@riseup.net's message of "Fri, 29 Jan 2016 16:55:27 +0100")

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’.

  reply	other threads:[~2016-01-31 10:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29 15:55 Unprivileged power managing in GuixSD: dbus-send not working swedebugia
2016-01-31 10:27 ` Ludovic Courtès [this message]
2016-02-02 11:27   ` swedebugia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zivmcadh.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=swedebugia@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.