maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   How to read *real* battery values? (https://talk.maemo.org/showthread.php?t=60400)

SirTurbo 2010-08-15 13:25

How to read *real* battery values?
 
Hi,
since some time i get strange behaviour from my N900 or better to say from its battery and the internal charging unit...

sometimes the battery ist squeezed from full to empty in less than one hour. when connecting the n900 to power from usb oder carcharger it shows "loading" - but the battery still remains empty even after several hours of charging.

And some minutes ago i checked the actual status of power (charging by usb) and lshal also as batgraph said 5mAh (as an hour ago) - i disconnected usb and tried again and again (refresh at bgraph and repeating command in shell) - and after some tries i got shown 480mAH...

So how can i see the actual(!) values of the battery? doesnt bring much fun to look for issues with battery or charger when there arent actual datas about the battery state...
Which (of the) soft(s) should i use?

Thanks.

9000 2010-08-15 14:14

Re: How to read *real* battery values?
 
You need to install rootsh and kernel-power (titan's enhanced kernel) before running the following under xterminal:

Code:

root
modprobe bq27x00_battery
echo capacity:`cat /sys/class/power_supply/bq27200-0/capacity`
echo temperature:`cat /sys/class/power_supply/bq27200-0/temp`
modprobe -r bq27x00_battery

Hope this help.

atilla 2010-08-15 14:24

Re: How to read *real* battery values?
 
you know that charging via usb takes 5 times longer???

quingu 2010-08-15 15:16

Re: How to read *real* battery values?
 
Netmon (GSM info) has a fairly straightforward Battery info in the menu. All the important info you're looking for: Capacity, Voltage and Percent.

/edit

Because I felt like doing it: have a screenshot.

http://imgur.com/F510v.png

Works out of the box, doesn't need power kernel.

bigdarkmad 2010-08-15 16:03

Re: How to read *real* battery values?
 
Quote:

Originally Posted by quingu (Post 787066)
Netmon (GSM info) has a fairly straightforward Battery info in the menu. All the important info you're looking for: Capacity, Voltage and Percent.

/edit

Because I felt like doing it: have a screenshot.

http://imgur.com/F510v.png

Works out of the box, doesn't need power kernel.

Huh where did you get this?

quingu 2010-08-15 16:19

Re: How to read *real* battery values?
 
Quote:

Originally Posted by bigdarkmad (Post 787083)
Huh where did you get this?

Care to specify your question?
Tool name + description is in the same post you quoted.

SirTurbo 2010-08-15 16:34

Re: How to read *real* battery values?
 
Quote:

Originally Posted by 9000 (Post 787009)
You need to install rootsh and kernel-power (titan's enhanced kernel) before running the following under xterminal:

Code:

root
modprobe bq27x00_battery
echo capacity:`cat /sys/class/power_supply/bq27200-0/capacity`
echo temperature:`cat /sys/class/power_supply/bq27200-0/temp`
modprobe -r bq27x00_battery

Hope this help.

hmm, modprobe gives no answer, no error...
but the echos only print the text in ' ' - did i use wrong sign? not so firm in linux shell

Quote:

Originally Posted by quingu (Post 787066)
Netmon (GSM info) has a fairly straightforward Battery info in the menu. All the important info you're looking for: Capacity, Voltage and Percent.

oh yeah, i have seen this before and forgotten...
the output of netmon isnt the same as by lshal - any hint where to read more about which one is nearer to the "truth"?

9000 2010-08-15 16:43

Re: How to read *real* battery values?
 
Quote:

Originally Posted by SirTurbo (Post 787104)
hmm, modprobe gives no answer, no error...
but the echos only print the text in ' ' - did i use wrong sign? not so firm in linux shell

Did you copy and paste or type?

javispedro 2010-08-15 16:53

Re: How to read *real* battery values?
 
running "hal-device bme" will also do it from the command line.

SirTurbo 2010-08-16 12:13

Re: How to read *real* battery values?
 
Quote:

Originally Posted by 9000 (Post 787111)
Did you copy and paste or type?

type...
reading in browser at a standard pc (with 28"^^) and only writing in the shell on n900...
when @home i am not used to surf by n900... hmm, iŽll try a c&p later...


All times are GMT. The time now is 05:20.

vBulletin® Version 3.8.8