On 06/18/2013 04:37 AM, lee wrote:
What does that mean? When I look at [2], all it does seems to do is
to
allow to know when power sources are added or removed --- which is
something that never happens. I don't have any hot pluggable PSUs.
It's an abstraction for finding the power devices contained in the
system and for interacting with them. For portable devices this includes
batteries as well as the AC supply and controls are provided to suspend
or hibernate the system as well as a QoS API for applications to declare
their latency requirements.
This allows upowerd to control power use in the system and to favour
either reduced latencies or lower power consumption.
The battery association makes it seem like a laptop/mobile thing but the
documentation describes a number of server use-cases as well (where
you're probably choosing power consumption over long latencies):
http://upower.freedesktop.org/
http://upower.freedesktop.org/docs/
Regards,
Bryn.