[Pkg-utopia-maintainers] Bug#668247: Bug#668247: power control on command line

Michael Biebl biebl at debian.org
Fri Apr 13 09:30:51 UTC 2012


On 13.04.2012 11:14, Harald Dunkel wrote:
> On 04/13/12 10:07, Michael Biebl wrote:
> 
>> You can certainly do that. That they are called by upower doesn't mean you can't call those scripts from the command line.
> 
> 
> Thats a misunderstanding. I would like to use upower on the
> command line to send a hibernate/suspend command to upowerd.

Why do you want to do that? What exactly do you want to do?
Could you describe that in a few use cases.

> AFAIK _upowerd_ is supposed to call pm-utils. Some XML files
> describe the rules this procedure has to follow.

upower provides mechanisms, not policy, like what to do on low-power,
lid-close, any-other-type-of-power-event. Those are triggered by a
policy agent running in the desktop session, like gnome-power-manager.

I'm only guessing here, since it is not clear to me what you actually
want, but maybe it is such a powermanagement policy agent for the
console session. But that also means you need to setup (manually) a
proper dbus session, a ConsoleKit and PolicyKit context on the console.

You are probably better served with a script suite like acpi-support,
which hooks into acpid and triggeres scripts on certain ACPI events.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20120413/a33cd87c/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list