maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   N800 Battery Meter (https://talk.maemo.org/showthread.php?t=7590)

Matan 2009-01-29 12:22

Re: N800 Battery Meter
 
Quote:

Originally Posted by solca (Post 260134)
@Nokia: it's time to release the RETU/TAHVO ASICs documentation! :rolleyes:


Extremely unlikely - those chips are used in many Nokia phones, not only in the tablets. Furthermore - those are probably generic GPIO/ADC/RTC/etc. devices. The real question is what is connected to which GPIOs, ADC ports, and how.

ciroip 2009-01-29 20:33

Re: N800 Battery Meter
 
Quote:

Originally Posted by Matan (Post 260764)
If you want to access retu as a user, just run

chmod a+rw /dev/retu

(You need to run this every time you boot).


About using the info from python scripts - you can use ioctls directly from python, there is no need to use retu-adc program or variant.

Something like:

import fcntl
f = open("/dev/retu")
adc8 = fcntl.ioctl(f, 0x6003, 8)

Ill reserve to 'thankyou' for when (and if) I will understand what you are actually saying :)

Lord Raiden 2009-03-23 19:13

Re: N800 Battery Meter
 
I for one would like to toss my hat into the ring and say that a battery meter with colored text denoting battery remaining would be best. It's "sorta" done that way already in regular Linux, but I'd like to see it that way in the NITS too. IE, it's green text until it hits 25%, yellow until it hits 10%, and red the rest of the way down. Then when you click on the text, it can say "estimated" run time and idle time.

zanne 2009-06-03 16:45

Re: N800 Battery Meter
 
sorry if this can be considered cross-posting, but i don't know which is the more appropriate thread for my questions...

bye bye

zanne 2009-06-04 11:55

Re: N800 Battery Meter
 
solution found :-)

but the meter seems to be not very accurate:
Code:

Nokia-N810-23-14:/home/user# ./kcbatt -q   
98
Nokia-N810-23-14:/home/user# ./kcbatt -q
99
Nokia-N810-23-14:/home/user# ./kcbatt -q
99
Nokia-N810-23-14:/home/user# ./kcbatt -q
98

is it normal?

(btw, for who doesn't know, "-q" option shows the % value of the battery)

tia.

bye bye

zanne 2009-06-04 16:22

Re: N800 Battery Meter
 
1 Attachment(s)
after a lot of frustration, i found out that one guy in my department wrote a program that (in the middle of other operations) checks the battery level of the nokia N810 devices; is written in C++ and uses dbus library that asks to hal, so i think that is also valid for N770 and N800.

after a few modifications i'm now able to check correctly the status of the battery! :D

in attached you can find the source code, with the hope that it will be helpful to someone.

bye bye


All times are GMT. The time now is 07:00.

vBulletin® Version 3.8.8