| The Following 2 Users Say Thank You to peterleinchen For This Useful Post: | ||
|
|
2012-07-20
, 05:43
|
|
|
Posts: 209 |
Thanked: 156 times |
Joined on Jun 2012
|
#62
|
|
|
2012-07-20
, 06:37
|
|
Posts: 30 |
Thanked: 13 times |
Joined on May 2011
|
#63
|
|
|
2012-07-20
, 17:59
|
|
|
Posts: 249 |
Thanked: 345 times |
Joined on Aug 2010
@ Italy
|
#64
|
|
|
2012-07-20
, 19:13
|
|
|
Posts: 4,086 |
Thanked: 8,796 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#65
|

We will see ... #temperatura=`cat /sys/class/power_supply/bq27200-0/temp`
###temperatura=`cat /sys/devices/platform/omap34xx_temp/temp1_input | awk '{ sub(/-/,""); print $1+7}'`
if [ -n "$(lsmod | grep bq27x00)" ]
then
temperatura=`echo $(cat /sys/class/power_supply/bq27200-0/temp)0`
else
temperatura=`echo $(i2cget -y 2 0x55 0x06 w) | awk '{ printf ($1*0.25-273)*100 }'`
fi
temperatura=`expr \( $temperatura + 50 \) \/ 100`
echo "temp: " $temperatura
|
|
2012-07-20
, 21:53
|
|
|
Posts: 249 |
Thanked: 345 times |
Joined on Aug 2010
@ Italy
|
#66
|
|
|
2012-07-20
, 22:24
|
|
|
Posts: 4,086 |
Thanked: 8,796 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#67
|
|
|
2013-04-29
, 01:21
|
|
Posts: 119 |
Thanked: 24 times |
Joined on Jun 2012
|
#68
|
but Now im have an old question would you help me sir.. Im using pr1.3.1 without cssu installed.. Im install this app from extras(stable version) why my ideal temperatur showing 0'c but the led show overheating at 48'c i had already try to instal once again and take off my baterai but nothing change.. Can you help me to make my n900 normal again tks before..
|
|
2013-04-30
, 16:28
|
|
|
Posts: 249 |
Thanked: 345 times |
Joined on Aug 2010
@ Italy
|
#69
|
|
|
2014-06-15
, 21:57
|
|
Posts: 1,378 |
Thanked: 1,604 times |
Joined on Jun 2010
@ Göteborg, Sweden
|
#70
|
I am sure there was some discussion to not use bq27x00 anymore together with (by default) enabled BME, but am unsure now.
I do not have it blacklisted anymore (/etc/modules.d/blacklist), but it also get not loaded anymore (/etc/modules).
Hopefully somebody may shed light here?
But anyway here is solution
time.sleep(0.1) #temperatura = os.popen('cat /sys/class/power_supply/bq27200-0/temp').read() ###temperatura = os.popen('cat /sys/devices/platform/omap34xx_temp/temp1_input').read() bq = os.popen('lsmod | grep bq27x00').read() if str(bq.strip())!='': temperatura = os.popen('echo $(cat /sys/class/power_supply/bq27200-0/temp)0').read() else: temperatura = os.popen('echo $(sudo i2cget -y 2 0x55 0x06 w) | awk \'{ printf ($1*0.25-273)*100 }\'').read()