maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCED] Extremely easy Overclock Script -updated (https://talk.maemo.org/showthread.php?t=63208)

bakuur 2010-10-02 13:16

Re: [ANNOUNCED] Extremely easy Overclock Script
 
@almehdi

Code:

if [ ! "`dpkg -l | grep 'rootsh'`" ]; then 
  echo "not installed, installing..."
  sudo apt-get install rootsh
  exit
elif [ ! "`dpkg -l | grep 'kernel-power'`" ]; then
  echo "not installed, installing..."
  apt-get install kernel-power
  exit
elif [ ! "`dpkg -l | grep 'kernel-power-settings'`" ]; then
  echo "not installed, installing..."
  apt-get install kernel-power-settings
  exit
else
  echo "found and installed, will continue"
fi

i thought instead of giving off an error why not auto install it if not found??
so yeah this is what i ended up with i tested it on two of my mobiles
and i was hoping if you could point out any mistakes within it

cheers :D

RenaldoTT 2010-10-02 13:17

Re: [ANNOUNCED] Extremely easy Overclock Script
 
With a script such as this, your instructions on how to install and unpack and run should be Noob friendly because professionals would just use it to test and help you out, but Noobs would use it for the fun of it and then you will receive many questions on why it doesn't work. I would of written out instructions in a Noob friendly form but I have not tested out this script as yet and probably won't until it's perfected.

bakuur 2010-10-02 13:21

Re: [ANNOUNCED] Extremely easy Overclock Script
 
Quote:

Originally Posted by RenaldoTT (Post 831579)
With a script such as this, your instructions on how to install and unpack and run should be Noob friendly because professionals would just use it to test and help you out, but Noobs would use it for the fun of it and then you will receive many questions on why it doesn't work. I would of written out instructions in a Noob friendly form but I have not tested out this script as yet and probably won't until it's perfected.

within the next hour or so hopefully this script will be more than perfect as it will have auto check for rootsh and power kernel and if not found then it will auto install it
then all is needed is reboot and boom problem solved ;) and it will be even easier to use *hopefully*
and if you noticed the script is flawless and all the problems were generated not from the script itself but the miss usage of some
and lack of proper info

RenaldoTT 2010-10-02 13:24

Re: [ANNOUNCED] Extremely easy Overclock Script
 
Quote:

Originally Posted by bakuur (Post 831583)
within the next hour or so hopefully this script will be more than perfect as it will have auto check for rootsh and power kernel and if not found then it will auto install it
then all is needed is reboot and boom problem solved ;) and it will be even easier to use *hopefully*

Cool, I read this > http://talk.maemo.org/showthread.php?t=61887 good work, the only thing that eludes me is this:

Code:
FREQUENCY Nokia LV ULV XLV ideal
0 MHz 30 30 25 30 30
125 MHz 30 30 25 20 30
250 MHz 38 38 25 30 30
500 MHz 48 48 33 33 30
550 MHz *54* 48 38 38 33
600 MHz 60 *54* 38 38 38
700 MHz 54 45 45 45
750 MHz 54 45 45 45
810 MHz 54 48 48 48
850 MHz 54 48 48 48
900 MHz 54 *54* *54* *54*
950 MHz 54 54 54 54e


What's the purpose of this?

bakuur 2010-10-02 13:30

Re: [ANNOUNCED] Extremely easy Overclock Script
 
mmm i tried explaining that as best i can but its still difficult to elaborate it

lets see, like the LV is a profile you load it, and each profile uses specific value of the voltage
some like starving are ment to less consume battery life
but its not guaranteed it will work on your phone so many profiles were made,
note the higher the number the more voltage used
like lets say you want to reach 850mhz you try lv ulv and xlv
and notice that xlv uses less voltage than lv
see which suits you and your phone best
and then save it as your default
and for battery saving use ideal and starving

RenaldoTT 2010-10-02 13:36

Re: [ANNOUNCED] Extremely easy Overclock Script
 
I understand the basic idea behind the values and what starving is, the problem is the part of the table under ulv and lv that have numbers such as 54, 48 and 45 etc. What are those numbers for? If it's also complicated just give me the basic idea or an example. Thanks

bakuur 2010-10-02 13:40

Re: [ANNOUNCED] Extremely easy Overclock Script
 
from 54 and beyond that means its using extra voltage ie. consuming more battery

if you notice that the nokia default reaches 60 at 600mhz and thats fairly alot
but with the ideal it starts taking over voltage at 900mhz

and obviously thats much better than the stock nokia

i hope elaborated the idea

bakuur 2010-10-02 13:45

Re: [ANNOUNCED] Extremely easy Overclock Script
 
Quote:

Originally Posted by RenaldoTT (Post 831591)
I understand the basic idea behind the values and what starving is, the problem is the part of the table under ulv and lv that have numbers such as 54, 48 and 45 etc. What are those numbers for? If it's also complicated just give me the basic idea or an example. Thanks

this will help you alot here

RenaldoTT 2010-10-02 13:51

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Yea that link helped. So from what I read there, if I load ulv and I set the parameters to 250 700 then theoretically my battery should last longer at a higher speed of processing right.

bakuur 2010-10-02 13:54

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
exactly!
i from my side had some problem with the ulv
so instead i used the xlv and now im default at ideal 500 to 950

RenaldoTT 2010-10-02 13:59

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by bakuur (Post 831602)
exactly!
i from my side had some problem with the ulv
so instead i used the xlv and now im default at ideal 500 to 950

default? ur default settings correct? I got it now. cheers!

bakuur 2010-10-02 14:03

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
yes
Code:

kernel-config default <something>
also in my script can be used lets say you want to default ideal to 900mhz
just type in
Code:

B 8 G
but thats only adviced after you made sure that this profile and freq. suits you

RenaldoTT 2010-10-02 14:12

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Alright so steps for uninstallation and getting phone back to stock? For those interested that should also be included in your post :)

bakuur 2010-10-02 14:16

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
which post exactly? this just delete th oc-script file
but thats a bummer :P
as for the power kernel in my other guide for easy OC then there will be an icon in your main menu that says deinstall kernel
just click it and done
its really pointless to mention that :P

RenaldoTT 2010-10-02 14:19

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Well for Noob Noobs they might not know, so it always pays to be like extra specific sometimes to save yourself questions that have simple answers. People are lazy to look and think for themselves so I was just pointing it out, but I was refering to this post because mostly Noobs as I said will be using your script all willie nillie

bakuur 2010-10-02 14:21

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
my dear friend i will point that out right now ;)
and thanks for the help ;)

RenaldoTT 2010-10-02 14:24

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Thanks for your script, I thought someone would of done this a long time ago, but I guess the reason why was probably to avoid people from messing up their phones, because you know when you make things easy, people tend to go crazy, but if you keep it difficult they tend to take caution, anyway I'm gone so thanks again for listening and being kind to make the script, it WILL be a success indeed. Bye

bakuur 2010-10-02 14:25

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
cheers mate
i had a nice time talking to you :D

stevomanu 2010-10-02 14:35

Re: [ANNOUNCED] Extremely easy Overclock Script
 
Quote:

Originally Posted by bakuur (Post 831452)
did you unzip the attachment?? in your MyDocs??
like i went through it a million times and im sure everything works perfectly fine

yes dude i un ziped it an still nothing .

bakuur 2010-10-02 14:41

Re: [ANNOUNCED] Extremely easy Overclock Script
 
Quote:

Originally Posted by stevomanu (Post 831629)
yes dude i un ziped it an still nothing .

okay so you installed rootsh
downloaded my script
extracted oc-script.sh to MyDocs
went to the terminal and exactly typed
Code:

sudo gainroot
sh /home/user/Mydocs/oc-script

???if you've done that then it must work

small suggestion download the script again i updated it
its supposed to detect if there is some issues
and if the problem is still there
then try OCing manually to see if the problem from the script or by your miss use this will help

and please try to take as much snapshots as you can so thati can see it and tell you where is the problem exactly

Pavol 2010-10-02 16:23

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
multiboot, multiboot kernel - causes the problem

bakuur 2010-10-02 18:57

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by Pavol (Post 831686)
multiboot, multiboot kernel - causes the problem

see i told you ;)
anyways hope you enjoy the script

AlMehdi 2010-10-02 21:11

Re: [ANNOUNCED] Extremely easy Overclock Script
 
Quote:

Originally Posted by bakuur (Post 831578)
@almehdi

Code:

if [ ! "`dpkg -l | grep 'rootsh'`" ]; then 
  echo "not installed, installing..."
  sudo apt-get install rootsh
  exit
elif [ ! "`dpkg -l | grep 'kernel-power'`" ]; then
  echo "not installed, installing..."
  apt-get install kernel-power
  exit
elif [ ! "`dpkg -l | grep 'kernel-power-settings'`" ]; then
  echo "not installed, installing..."
  apt-get install kernel-power-settings
  exit
else
  echo "found and installed, will continue"
fi

i thought instead of giving off an error why not auto install it if not found??
so yeah this is what i ended up with i tested it on two of my mobiles
and i was hoping if you could point out any mistakes within it

cheers :D

Yes, that is good. Two things though.. rootsh can't be installed through apt-get. You need to have rootsh to use apt-get so the only way to install it is using the app manager.

And if you don't want the user to be prompted whit the "yes/no" if they want to install.. you could add an "-y" at the end. So it becomes "apt-get install -y kernel-power". Then the process would become more fluid.

Ohh.. and "else" will not be needed. If they already have rootsh and kernel-power installed than that could be come confusing. And "exit" was only needed for the rootsh one as that is the only reason for the script to abort. The dependecies get's installed in the other cases.

You could add another if-statment in case it need an reboot (halt). As you need to be root to use the script.. i added an check for that instead of the check for rootsh.

Code:

# Is the user root?
user=`whoami`
if [ $user != "root" ]; then
    echo "You are not root. You need to be root to run this script. If not installed. Then install it through the Application Manager."
    exit 1
fi

# Check for dependencies
if [ ! "`dpkg -l | grep 'kernel-power'`" ]; then
    echo "Enhanced kernel for power users is not installed, installing..."
    apt-get install -y kernel-power
        if [ ! "`dpkg -l | grep 'kernel-power-settings'`" ]; then
            echo "Enhanced kernel for power users (settings) is not installed, installing..."
            apt-get install -y kernel-power-settings
            halt
        fi
fi

if [ ! "`dpkg -l | grep 'kernel-power-settings'`" ]; then
    echo "Enhanced kernel for power users (settings) is not installed, installing..."
    apt-get install -y kernel-power-settings
        if [ ! "`dpkg -l | grep 'kernel-power'`" ]; then
            echo "Enhanced kernel for power users is not installed, installing..."
            apt-get install kernel-power
            halt
        fi
fi


RenaldoTT 2010-10-03 02:52

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
I'm studying if I should test this master piece out. Will gather the materials then do some thinking.

stevomanu 2010-10-03 10:51

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
1 Attachment(s)
right heres a screen of what happens

many thanks

AlMehdi 2010-10-03 11:05

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by stevomanu (Post 832125)
right heres a screen of what happens

http://talk.maemo.org/attachment.php...1&d=1286102912

many thanks

Try

1. sudo gainroot
2. mv /home/user/MyDocs/oc-script /home/user/MyDocs/oc-script.sh
3. sh /home/user/MyDocs/oc-script.sh

RenaldoTT 2010-10-03 11:31

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Hey guys if you need help it would be appreciated if you made it easier to be helped, for instance try to have your fonts visible and background colour not being a pain to see. Thank You very much

stevomanu 2010-10-03 11:47

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
2 Attachment(s)
first screen is proof file is there an secnod is after trying
mv /home/user/MyDocs/oc-script /home/user/MyDocs/oc-script.sh

bakuur 2010-10-03 11:56

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by stevomanu (Post 832163)
first screen is proof file is there an secnod is after trying
mv /home/user/MyDocs/oc-script /home/user/MyDocs/oc-script.sh

cause you wrote the destination wrong man!
now use this
Code:

sh /home/user/MyDocs/.documents/oc-script

bakuur 2010-10-03 11:57

Re: [ANNOUNCED] Extremely easy Overclock Script
 
Quote:

Originally Posted by AlMehdi (Post 831862)
Yes, that is good. Two things though.. rootsh can't be installed through apt-get. You need to have rootsh to use apt-get so the only way to install it is using the app manager.

And if you don't want the user to be prompted whit the "yes/no" if they want to install.. you could add an "-y" at the end. So it becomes "apt-get install -y kernel-power". Then the process would become more fluid.

Ohh.. and "else" will not be needed. If they already have rootsh and kernel-power installed than that could be come confusing. And "exit" was only needed for the rootsh one as that is the only reason for the script to abort. The dependecies get's installed in the other cases.

You could add another if-statment in case it need an reboot (halt). As you need to be root to use the script.. i added an check for that instead of the check for rootsh.

Code:

# Is the user root?
user=`whoami`
if [ $user != "root" ]; then
    echo "You are not root. You need to be root to run this script. If not installed. Then install it through the Application Manager."
    exit 1
fi

# Check for dependencies
if [ ! "`dpkg -l | grep 'kernel-power'`" ]; then
    echo "Enhanced kernel for power users is not installed, installing..."
    apt-get install -y kernel-power
        if [ ! "`dpkg -l | grep 'kernel-power-settings'`" ]; then
            echo "Enhanced kernel for power users (settings) is not installed, installing..."
            apt-get install -y kernel-power-settings
            halt
        fi
fi

if [ ! "`dpkg -l | grep 'kernel-power-settings'`" ]; then
    echo "Enhanced kernel for power users (settings) is not installed, installing..."
    apt-get install -y kernel-power-settings
        if [ ! "`dpkg -l | grep 'kernel-power'`" ]; then
            echo "Enhanced kernel for power users is not installed, installing..."
            apt-get install kernel-power
            halt
        fi
fi


amazing! just simply amazing!!
thanks a lot ^^

PS: i think i removed the sudo before apt-get command in the script

stevomanu 2010-10-03 12:02

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by bakuur (Post 832167)
cause you wrote the destination wrong man!
now use this
Code:

sh /home/user/MyDocs/.documents/oc-script

thanks dude it works , now for some overclockin !

your a star

bakuur 2010-10-03 12:04

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
more than happy that i could do some help :D

stevomanu 2010-10-03 12:50

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by bakuur (Post 832175)
more than happy that i could do some help :D

my next problem lol sorry about this

http://dl.dropbox.com/u/10188212/screenshot04.png

i ran the code in screen but always get same screen ! sill try another reboot now

bakuur 2010-10-03 13:04

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
reboot
if that doesnt work then use the following code
Code:

sudo gainroot
apt-get install --reinstall kernel-power kernel-power-flasher


AlMehdi 2010-10-03 13:56

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by bakuur (Post 832207)
reboot
if that doesnt work then use the following code
Code:

sudo gainroot
apt-get install --reinstall kernel-power kernel-power-flasher


Don't forget "kernel-power-settings".. and you only need to reinstall kernel-power as the kernel-power-flasher is an dependency of it. ;)

stevomanu 2010-10-03 14:04

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by bakuur (Post 832207)
reboot
if that doesnt work then use the following code
Code:

sudo gainroot
apt-get install --reinstall kernel-power kernel-power-flasher


still the same thing im going around in circles

RenaldoTT 2010-10-03 16:21

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
hmmm....so the scripts ready to go guys?

bakuur 2010-10-03 19:21

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by RenaldoTT (Post 832347)
hmmm....so the scripts ready to go guys?

see if you got rootish
and kernel-power-settings installs you are good to go
its really just an easy way to execute commands
and gave it an easyier way to read and handle
you are good to go
but to avoid any unneccessary questions just try OCing manually
using:
root
and kernel-config commands
if it works then its garenteed my script will just be an easier gate to OCing ;)
and am sure it will work ;)

bakuur 2010-10-03 20:18

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
Quote:

Originally Posted by stevomanu (Post 832253)
still the same thing im going around in circles

the error you get is either because "you need to reboot" or "reinstall the kernel-power-settings"

please you will find an icon in your main menu that says "deinstall kernel-"
click it and follow the steps
then reboot
after that open your app manager
and search for:
"kernel power"
to make it easy, download everything related to that.
note: disable the extras-devel cataloge if you have it enabled
now once you've done that and installed everything
reboot!
done? now try the script :D

RenaldoTT 2010-10-04 01:08

Re: [ANNOUNCED] Extremely easy Overclock Script -updated
 
this guy with the problems scares me to install the script. not bcuz im unfaithful in ur script but damn. no i will not say anything. but it annoyed me. just know that.


All times are GMT. The time now is 23:44.

vBulletin® Version 3.8.8