View Single Post
Posts: 458 | Thanked: 783 times | Joined on Jan 2010 @ France
#5
Originally Posted by jsomby View Post
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++