In version 0.9.3-1, the remaining time is shown correctly. There is still a minor glitch: if 
battery charge level is 100%, the remaining time is not shown. I think that this is due to this 
check [1]. I think that this check is wrong. I think the right check would be 
"lx_b->b->seconds >= 0" (since -1 is used to indicate that the value is not 
available).

BTW, time to full charge is still not correct, but now the reason is that the 
formula (time=energy/power) doesn't work for charging. While during discharge, 
power stays roughly the same (assuming that workload doesn't change), during 
charge power drops significantly as the battery nears full charge. As a result, 
the time displayed is about three times smaller than the actual time it takes 
for the battery to fully charge. Still, the value can be used as a (very) rough 
estimate.

[1] 
https://git.lxde.org/gitweb/?p=lxde/lxpanel.git;a=blob;f=plugins/batt/batt.c;h=988d9fdfb7ec9a01d1d692b8ea30e3e3a878b9a5;hb=9dbda5c15782596983ae61478c1612262633ae41#l164

Reply via email to