hal/doc/spec hal-spec.xml.in,1.56,1.57
Danny Kukawka
dkukawka at freedesktop.org
Wed Nov 9 12:45:46 PST 2005
Update of /cvs/hal/hal/doc/spec
In directory gabe:/tmp/cvs-serv11635/doc/spec
Modified Files:
hal-spec.xml.in
Log Message:
2005-11-09 Danny Kukawka <danny.kukawka at web.de>
* doc/spec/hal-spec.xml.in: added battery.remaining_time.calculate_per_time
* hald/linux2/acpi.c: (battery_refresh_poll): added check for new property
battery.remaining_time.calculate_per_time for util_compute_time_remaining()
* hald/linux2/pmu.c: (battery_refresh): added check for new property
battery.remaining_time.calculate_per_time for util_compute_time_remaining()
* hald/util.c (util_compute_time_remaining), hald/util.h: added slightly
adopted and extended patch from Søren Hansen <sh at linux2go.dk> to fix
calculation for machines which does not report current rate. This calculate
the chargRate from time and chargeLevel.
Added a new parameter to enable/disable the new calculation.
Index: hal-spec.xml.in
===================================================================
RCS file: /cvs/hal/hal/doc/spec/hal-spec.xml.in,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- hal-spec.xml.in 8 Nov 2005 15:47:36 -0000 1.56
+++ hal-spec.xml.in 9 Nov 2005 20:45:44 -0000 1.57
@@ -4540,6 +4540,16 @@
</entry>
</row>
<row>
+ <entry><literal>battery.remaining_time.calculate_per_time</literal> (bool)</entry>
+ <entry></entry>
+ <entry>No</entry>
+ <entry>
+ If this property is <literal>true</literal> the
+ <literal>battery.remaining_time</literal> becomes guessed from
+ <literal>battery.charge_level.current</literal> and time.
+ </entry>
+ </row>
+ <row>
<entry><literal>battery.charge_level.percentage</literal> (int)</entry>
<entry></entry>
<entry>No</entry>
More information about the hal-commit
mailing list