port powersave to upower
authorMichal Vyskocil <mvyskocil@suse.cz>
Fri, 2 Apr 2010 08:32:43 +0000 (10:32 +0200)
committervdziewiecki <vdziewiecki@suse.cz>
Tue, 27 Mar 2012 08:35:34 +0000 (10:35 +0200)
commit354d3708fb22098fc25016976106422b1b9ea485
tree57e609e097fda56d1a31738525ff51892b4e92c5
parentd83ed83c9a184b3c95b2e13a0b2943b5bd755540
port powersave to upower

As HAL is going to be replaced by org.freedesktop.UPower, let's
implement upower_ equivalents of all hal_ functions. Some helper
functions for work with upower has been defined

* upower_call_method: call upower method
* upower_device_get_property: get a property (not only, but mostly) of a
                              device
* upower_available: check if upower is available
* upower_enumerate_batteries: get a list of devices are batteries and
                              power supply
* upower_find_ac_adapter: find the AC adapter

Reimplemented functions:
* upower_suspend_to_ram
* upower_suspend_to_disk
* upower_battery_info
* upower_ac_status_info

Not ready:
* upower_standby: did not finf the upower equivalent
* upower_performance_speed: org.freedesktop.UPower.QoS???
* upower_powersave_speed: org.freedesktop.UPower.QoS???
* upower_dynamic_speed: org.freedesktop.UPower.QoS???
* upower_cpufreq_state_info
bin/powersave