Notices


Reply
Thread Tools
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#61
Okay!?
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
Code:
                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()
Attach my modified savecpu.py (adapted from v 17-1)
Attached Files
File Type: zip savecpu.zip (3.2 KB, 106 views)
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Acurus_'s Avatar
Posts: 209 | Thanked: 156 times | Joined on Jun 2012
#62
It works. Great and many thanks!


Last edited by Acurus_; 2012-07-20 at 05:47.
 
Posts: 30 | Thanked: 13 times | Joined on May 2011
#63
Great work peterleinchen!
Tryed your patch and now it works again, finaly.
And great work m750, too! Thanx.
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#64
OK Peter,
i don't use busybox-power, so i don't know the differences in the printouts.

The new version of savecpu is in extras-testing.

Tschüss!
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#65
Me too
Just stumbled upon this here (and for another more powerful output also).

It is your great work, I just made some enhancements.
Now it should be stable for next kernel and battery management round We will see ...

Cheers.

--
Scusa m750
we need another version, as I just remembered that temp is also checked in savecpu.sh, so current version just gives correct UI output but functionality may be broken.
Please wait ...

... and here is (hopefully) last edit
Code:
  #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
see also attachment (again modded from v17-1)

Ancora una volta scusa.
Attached Files
File Type: zip savecpu.sh.zip (1.7 KB, 92 views)

Last edited by peterleinchen; 2012-07-20 at 19:45.
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#66
Hi Peter,
I have inserted you last modification,
I put your latest file with changes, although now i2c-tools is inserted as dependencies.

Gute Nacht!
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#67
Grazie mille.

The dependency is OK. As one may have bq27x00 modprobed or not, can not be detected on installation or may change aferwards.

Buona notte.
 
Posts: 119 | Thanked: 24 times | Joined on Jun 2012
#68
Dear m750.. Firstly i want to say thank for this app.. 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..
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#69
Hi @viento23,
I have question for you: do you have the power-kernel installed? This app was made to work with the "Enhanced Linux kernel for power users".
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#70
I believe that the "official" recommendations are stock profile and "dsp" when using video with the 720p libs installed. But those of course are deemed necessary to cover safely the diversity of hardware responses seen. Some cpu's overclock fine to 1GHz other don't wat more than 900/950, so there you are...
 
Reply


 
Forum Jump


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