Reply
Thread Tools
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#51
Originally Posted by solca View Post
@Nokia: it's time to release the RETU/TAHVO ASICs documentation!

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's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#52
Originally Posted by Matan View Post
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
__________________
I can't do it. No one can help.
[SIGPIC][/SIGPIC]

Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito
 
Lord Raiden's Avatar
Posts: 1,562 | Thanked: 349 times | Joined on Jun 2008
#53
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.
__________________
Popular Sci-Fi author and creator of the Earthfleet Series.
www.realmsofimagination.net
 
Posts: 15 | Thanked: 2 times | Joined on Mar 2009 @ Lappeenranta, Finland
#54
sorry if this can be considered cross-posting, but i don't know which is the more appropriate thread for my questions...

bye bye
 
Posts: 15 | Thanked: 2 times | Joined on Mar 2009 @ Lappeenranta, Finland
#55
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
 
Posts: 15 | Thanked: 2 times | Joined on Mar 2009 @ Lappeenranta, Finland
#56
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!

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

bye bye
Attached Files
File Type: txt dbus_batteryMonitor.txt (4.4 KB, 159 views)
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:56.