|
2010-11-01
, 21:35
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#2
|
|
2010-11-01
, 23:13
|
Posts: 80 |
Thanked: 95 times |
Joined on Aug 2010
|
#3
|
Open terminal:
Nokia-N900:~$ root
Nokia-N900:~# cp /home/user/MyDocs/overclock-stats /usr/bin/overclock-stats
Nokia-N900:~# chmod +x /usr/bin/overclock-stats
First command is obvious, second command copies the script to the directory made for non-essential executables, third command makes it executable
|
2018-05-06
, 16:53
|
Posts: 188 |
Thanked: 223 times |
Joined on Apr 2013
@ Poland
|
#4
|
Filename: /usr/local/bin/overclock #!/bin/sh TEMP=`cat /sys/class/power_supply/bq27200-0/temp` 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 BATTERY=`cat /sys/class/power_supply/bq27200-0/capacity` echo "Battery is:" $BATTERY "% full" MAXSPEEDTWO="1150" if [ $BATTERY -lt "60" ] ; then MAXSPEEDTWO="850" ; fi if [ $BATTERY -lt "40" ] ; then MAXSPEEDTWO="600" ; fi if [ $BATTERY -lt "25" ] ; then MAXSPEEDTWO="500" ; fi if [ $MAXSPEEDTWO -lt $MAXSPEED ] ; then MAXSPEED=$MAXSPEEDTWO ; fi echo "Setting max as:" $MAXSPEED "Mhz" kernel-config limits 250 $MAXSPEED
|
2018-05-13
, 12:43
|
Posts: 188 |
Thanked: 223 times |
Joined on Apr 2013
@ Poland
|
#5
|
Filename: /usr/local/bin/overclock #!/bin/sh BATTERY=`cat /sys/class/power_supply/bq27200-0/capacity` echo "Battery is:" $BATTERY "% full" kernel-config load 1100 if [ $BATTERY -lt "90" ] ; then kernel-config load 1000 ; fi if [ $BATTERY -lt "85" ] ; then kernel-config load 950 ; fi if [ $BATTERY -lt "80" ] ; then kernel-config load 850 ; fi if [ $BATTERY -lt "65" ] ; then kernel-config load 800 ; fi if [ $BATTERY -lt "50" ] ; then kernel-config load 720 ; fi if [ $BATTERY -lt "35" ] ; then kernel-config load 600 ; fi if [ $BATTERY -lt "25" ] ; then kernel-config load 500 ; fi if [ $BATTERY -lt "15" ] ; then kernel-config load 250 ; fi
|
2018-05-13
, 14:57
|
Posts: 188 |
Thanked: 223 times |
Joined on Apr 2013
@ Poland
|
#6
|
Underclock/Overclock when phone is Locked/Unlocked (by Fecn)
So i did the script:
Anyways what i wanna ask you guys is this:
Can i my the script name a terminal command for maemo?
Like this:
I open x-terminal and write: overclock-stats and i get the output instead of doing:
I see that stkeys uses this method but i don't know how to manage it!!
Can anyone help me please?
Use chmod?