maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   lshal reports battery stats double times? (https://talk.maemo.org/showthread.php?t=72773)

jsomby 2011-05-04 11:41

lshal reports battery stats double times?
 
Is it a bug or a unknown feature of some community ssu or latest v47 kernel, but somehow i can see my battery stats double, example:

lshal | grep perc
battery.charge_level.percentage = 60 (0x3c) (int)
battery.charge_level.percentage = 38 (0x26) (int)

Its nice to have dual stats, but which one is the correct one and which should i trust?

marmistrz 2011-06-09 15:05

Re: lshal reports battery stats double times?
 
I use power kernel v46 and from what I've seen
Code:

battery.charge_level.percentage = 65 (0x3c) (int) - was false
battery.charge_level.percentage = 33 (0x26) (int) - was true


mehulrajput 2011-06-09 16:03

Re: lshal reports battery stats double times?
 
there is another battery module loaded with power kernel. just remove it by blacklisting it and reboot. the module name is bq27x00_battery. little googling will show how to blacklist :)

Mentalist Traceur 2011-06-09 16:38

Re: lshal reports battery stats double times?
 
You don't always have to blacklist - only in power47. In power46, if it's being loaded automatically, it's because you loaded it yourself.

colin.stephane 2011-06-09 18:22

Re: lshal reports battery stats double times?
 
Quote:

Originally Posted by jsomby (Post 999960)
Is it a bug or a unknown feature of some community ssu or latest v47 kernel, but somehow i can see my battery stats double, example:

lshal | grep perc
battery.charge_level.percentage = 60 (0x3c) (int)
battery.charge_level.percentage = 38 (0x26) (int)

Its nice to have dual stats, but which one is the correct one and which should i trust?

Here is the FIX :

Code:

clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' ..." ; else echo "Ok, you are 'root' ..." ; if grep -q "bq27x00_battery" /etc/modprobe.d/blacklist 2>/dev/null ; then echo "Patch already applyed, nothing to be done ..." ; echo "" ; else echo "Applying patch now ..." ; echo "blacklist bq27x00_battery" >>/etc/modprobe.d/blacklist ; echo "" ; echo "DONE, PLEASE REBOOT YOUR DEVICE ..." ; echo "" ; fi ; fi
A++

marmistrz 2011-06-14 15:42

Re: lshal reports battery stats double times?
 
doesn't work


All times are GMT. The time now is 19:31.

vBulletin® Version 3.8.8