Wrong "time-to-empty" for multiple battery laptop

Joschi Brauchle joschi.brauchle at tum.de
Fri Feb 28 01:40:10 PST 2014


Thanks for the quick answer!


On 02/28/2014 10:15 AM, Bastien Nocera wrote:
> <snip>
>> Thus, the "time-to-empty" flag is only available for BAT1 and clearly
>> only displays the time to empty FOR THAT PARTICULAR battery, but not
>> when using ALL batteries.
>
> The front-ends are supposed to coalesce all the batteries together.

Problem: For example KDE DOES try to do this, but the "time-to-empty" 
information is missing for "fully charged" batteries! Hence, the 
frontend is not able to calculate a total battery lifetime...

See:

mo-thinkpad01:~ # upower -i /org/freedesktop/UPower/devices/battery_BAT0
...
   battery
    <NO "time to empty" available as battery is not discharged>

mo-thinkpad01:~ # upower -i /org/freedesktop/UPower/devices/battery_BAT1
...
   battery
     time to empty:       10.2 hours

>> Is this a known limitation?
>
> Yes. Or you can use UPower 0.99.x which fixes that through the concept
> of a "display battery", which will put together all the information from
> all the batteries and not require every front-end to do that.
>
>> I would like upower to provide an additional "overall-time-to-empty"
>> value using ALL batteries / energy sources installed.
>
> That's already done, you're just using an old version of UPower :)
>
> Cheers

Ok, great! I will look at upower 0.99 and try to create a patch for KDE.

-- 
Dipl.-Ing. Joschi Brauchle, M.S.

Institute for Communications Engineering (LNT)
Technische Universitaet Muenchen (TUM)
80290 Munich, Germany

Tel (work): +49 89 289-23474
Fax (work): +49 89 289-23490
E-mail: joschi.brauchle at tum.de
Web: http://www.lnt.ei.tum.de/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4656 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20140228/d3ec1d45/attachment.bin>


More information about the devkit-devel mailing list