On 13.04.2012 19:54, Harald Dunkel wrote:
> On 04/13/12 11:30, Michael Biebl wrote:
> 
>> 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.
> 
> 
> That is exactly what I want to verify on the command line. I don't
> want to drain the laptop battery and hope for gnome-power-manager
> (just as an example), but to send the appropriate message to upowerd.
> 
> I understand that there are some 160+ chars dbus-send command lines
> for this, but this is pretty inconvenient. upower could do this.
> It already talks with upowerd. This might be just a small extension.

No it isn't. upower is a command line utility to query power management
related information. It is not a policy agent/daemon.

upstream is pretty adamant about separating policy from mechanism, so
such a policy won't move into upower(d) and this probably means we'll
have to tag this bug wontfix.

Such a policy agent for the console would have to be developed
independently, or you use a setup as I described earlier, based on
acpid/acpi-support/pm-utils.

Michael



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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to