maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] saveCPU - overheating control for overclocked n900 (https://talk.maemo.org/showthread.php?t=71454)

peterleinchen 2012-07-19 22:14

Re: [Announce] saveCPU - overheating control for overclocked n900
 
1 Attachment(s)
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? :confused:

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)

Acurus_ 2012-07-20 05:43

Re: [Announce] saveCPU - overheating control for overclocked n900
 
It works. Great and many thanks!

http://666kb.com/i/c5nxj7aony6bowsj3.png

SirSocke 2012-07-20 06:37

Re: [Announce] saveCPU - overheating control for overclocked n900
 
Great work peterleinchen!
Tryed your patch and now it works again, finaly.
And great work m750, too! Thanx.

m750 2012-07-20 17:59

Re: [Announce] saveCPU - overheating control for overclocked n900
 
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!

peterleinchen 2012-07-20 19:13

Re: [Announce] saveCPU - overheating control for overclocked n900
 
1 Attachment(s)
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.

m750 2012-07-20 21:53

Re: [Announce] saveCPU - overheating control for overclocked n900
 
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! :o

peterleinchen 2012-07-20 22:24

Re: [Announce] saveCPU - overheating control for overclocked n900
 
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.

viento23 2013-04-29 01:21

Re: [Announce] saveCPU - overheating control for overclocked n900
 
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 2013-04-30 16:28

Re: [Announce] saveCPU - overheating control for overclocked n900
 
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".

handaxe 2014-06-15 21:57

Re: [Announce] saveCPU - overheating control for overclocked n900
 
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...


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

vBulletin® Version 3.8.8