View Single Post
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#150
Originally Posted by Kabouik View Post
Well, this one. Sorry, this is the first of the thread so I did not think about the others further in the thread. My fault!

I use the version with battery indicator and min freq/max freq.
Well... I'm not sure of commands, but (install Leafpad first if you don't have it in your system or use other text editor if you're familiar with it):

STEP 1

Code:
root
leafpad /usr/local/bin/overclock
And add line which I entered below in bold:
#!/bin/sh
TEMP=`cat /sys/class/power_supply/bq27200-0/temp`
TEMP=$((TEMP/10))
echo "Temp is :" $TEMP "C"
MAXSPEED="1150"
if [ $TEMP -gt "38" ] ; then MAXSPEED="1000" ; fi
if [ $TEMP -gt "40" ] ; then MAXSPEED="950" ; fi
if [ $TEMP -gt "43" ] ; then MAXSPEED="850" ; fi
if [ $TEMP -gt "45" ] ; then MAXSPEED="750" ; fi
if [ $TEMP -gt "47" ] ; then MAXSPEED="600" ; fi
echo "Setting max as :" $MAXSPEED "Mhz"

kernel-config limits 250 $MAXSPEED
you can also edit MAXSPEED values and temperatures if you need (you may already have different if you edited them earlier, I just posted ones from the default file from this thread).

STEP 2

Then, insted of importing that beecon_OCCP.txt or other beecon_OCCPsomethingsomething.txt file from this thread you should import one of the files I attached to this post (instruction is in http://talk.maemo.org/showpost.php?p...8&postcount=30 ). The change I made is:
Code:
echo -e "TEMPERATURE : <span font = \\"14\\"><b>`cat /sys/class/power_supply/bq27200-0/temp` C</b></span>
to
Code:
echo -e "TEMPERATURE : <span font = \\"14\\"><b>`awk '{ print $1/10}' < /sys/class/power_supply/bq27200-0/temp` C</b></span>
(If you have this widget, you just need to do step 1 and step 2, no need to repeat the whole process from first post of this thread. I also contacted OP via PM to inform him he should change contents of files for future reference
Attached Files
File Type: txt beecon_OCCP.txt (2.5 KB, 139 views)
File Type: txt beecon_OCCP_Color_Status_temp+freq+batt+root.txt (3.2 KB, 177 views)
File Type: txt beecon_OCCP_min+batt.txt (2.7 KB, 140 views)
File Type: txt beecon_OCCP_minfreq.txt (2.6 KB, 132 views)

Last edited by misiak; 2011-05-10 at 00:32. Reason: Attached new version of all 4 files
 

The Following 4 Users Say Thank You to misiak For This Useful Post: