maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Battery charge always 0% (https://talk.maemo.org/showthread.php?t=74894)

delta.br 2011-07-13 15:42

Battery charge always 0%
 
Hello,

when i turn on my N900 ith any kind of battery it shows me in the statusbar a charge of 0% - even when the battery is fully charged.

When i connect a charger it will show a green led too...

Anybody a idea what's wrong?

colin.stephane 2011-07-13 15:56

Re: Battery charge always 0%
 
Quote:

Originally Posted by delta.br (Post 1050244)
Hello,

when i turn on my N900 ith any kind of battery it shows me in the statusbar a charge of 0% - even when the battery is fully charged.

When i connect a charger it will show a green led too...

Anybody a idea what's wrong?

I think you use power-kernel v47, if so, 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

Apply it and things gona work like expected after that ...

A++

pious_momin 2011-07-13 16:08

Re: Battery charge always 0%
 
Quote:

Originally Posted by colin.stephane (Post 1050252)
I think you use power-kernel v47, if so, 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

Apply it and things gona work like expected after that ...

A++

how to apply it, kindly tel us...

delta.br 2011-07-13 16:09

Re: Battery charge always 0%
 
Patch applied. Finally after a reboot still the same problem.

Quote:

how to apply it, kindly tel us...
I used SSH for doing it... Anyway u can parse it in the shell ith "sudo gainroot", too.

delta.br 2011-07-13 16:33

Re: Battery charge always 0%
 
2 Attachment(s)
Just a quick information: BatteryGraph shows me correct charge of 94%... It's just the status panel which gives wrong information... See attached screenshots...

Strange...

colin.stephane 2011-07-13 18:04

Re: Battery charge always 0%
 
Quote:

Originally Posted by delta.br (Post 1050274)
Just a quick information: BatteryGraph shows me correct charge of 94%... It's just the status panel which gives wrong information... See attached screenshots...

Strange...

From where did you installed this status panel for battery, looked mine, I have not the same (mine doesn't report percentage of charge and time left ...

A++

eefo 2011-07-13 18:08

Re: Battery charge always 0%
 
have you rebooted the device ?
as most of these sorta errors recover after rebooting.

colin.stephane 2011-07-13 18:12

Re: Battery charge always 0%
 
Also, just to be sure, what does this output ? :

Code:

lshal -u /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0 | grep battery.charge_level.percentage | awk '{print "Battery reported by driver b27x00_battery : "$3"%"}' ; lshal -u /org/freedesktop/Hal/devices/bme | grep battery.charge_level.percentage | awk '{print "Battery reported by Nokia bme binary : "$3"%"}'
A++

delta.br 2011-07-13 18:26

Re: Battery charge always 0%
 
Here you go:
Quote:

root@Nokia-N900 ~ # lshal -u /org/freedesktop/Hal/devices/computer_power_supplybattery_bq27200_0 | grep battery.charge_level.percentage | awk '{print "Batteryreported by driver b27x00_battery : "$3"%"}' ; lshal -u /org/freedesktop/Hal/deices/bme | grep battery.charge_level.percentage | awk '{print "Battery reportedby Nokia bme binary : "$3"%"}'
Battery reported by Nokia bme binary : 100%

colin.stephane 2011-07-13 18:33

Re: Battery charge always 0%
 
Quote:

Originally Posted by delta.br (Post 1050331)
Here you go:

Report seem good so.

Seem, the status panel have a bug ...

Why ? I don't really know ...

Have you checked another reboot to see if that fix your problem, like 'eefo' suggested ?

A++


All times are GMT. The time now is 12:10.

vBulletin® Version 3.8.8