Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
humancyborg
Old
#1  
Senior Member - OP
Thanks Meter 8
Posts: 114
Join Date: Jan 2010
Location: Santa Monica, CA
Default TIP: setting CPU to performance mode

A cheap/dirty little hack to increase idle CPU frequency and increase performance in general (don't blame me when your battery runs dry in about 3 hours):

(must have root first!)

cat /proc/cpuinfo (use this to see cpu speed, you will see at idle its 162.54mhz)

adb shell
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cat /proc/cpuinfo (now idling at 662.40mhz!)

If you want to switch back:

adb shell
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
add3421
Old
#2  
Senior Member
Thanks Meter 30
Posts: 1,328
Join Date: Mar 2007
Location: Wilmington!
nice job. I would have to say probably for the first time ever... i dont think i need to mess with the processor speed on this phone :P Who knows how long it will be untill i change that.


I am also all about battery life. I did have the huge battery pack on my old G1


Nexus 4

Galaxy Nexus

HTC Doubleshot A.K.A. T-Mobile TouchMe

T-Mobile G2

Samsung Vibrant - POS

Nexus One

HTC Dream G1

T-Mobile Wing

T-Mobile Dash
 
Freezey
Old
#3  
Senior Member
Thanks Meter 0
Posts: 178
Join Date: Feb 2009
Location: Florida
Id be affraid to tweak this things speed.

Is there a possibility that it could crash from being to fast?

Just curious
 
gobslotch
Old
#4  
Member
Thanks Meter 11
Posts: 58
Join Date: Dec 2008
Yeah the only thing I miss about my g1 is the extended battery.
 
melterx12
Old
#5  
melterx12's Avatar
Senior Member
Thanks Meter 14
Posts: 715
Join Date: Dec 2009
Location: New York City

 
DONATE TO ME
Quote:
Originally Posted by Freezey View Post
Id be affraid to tweak this things speed.

Is there a possibility that it could crash from being to fast?

Just curious
no, but it can crash from overheating. and based on how fast this chip is compared to how thin this phone is, It may be possible for the chip to overheat on a hot day.
 
coolbho3000
Old
#6  
Elite Recognized Developer
Thanks Meter 666
Posts: 884
Join Date: Dec 2008
Protip: SetCPU (download link in my sig) can switch you between governors without the need for using the shell.

By the way, bogomips in /proc/cpuinfo is not 1:1 with MHz on the Scorpion.
Galaxy Nexus (GSM)
Control your Android phone's CPU! SetCPU for Root Users
Follow me on Twitter!

Like my work? Buy SetCPU on the market or buy me some [insert drink here].
 
Wii60
Old
#7  
Senior Member
Thanks Meter 0
Posts: 231
Join Date: Jun 2009
It is literally too snappy to set the cpu. No need to bother. (Though I do appriciate the help)

However, the need to root still exists for tethering.
Nexus One
Class 6 8GB MicroSD
 
Sashin
Old
#8  
Senior Member
Thanks Meter 6
Posts: 130
Join Date: Dec 2009
So setcpu will work for this already?
 
Mi|enko
Old
#9  
Mi|enko's Avatar
Senior Member
Thanks Meter 26
Posts: 1,214
Join Date: Jul 2006
Location: Seattle
Quote:
Originally Posted by Sashin View Post
So setcpu will work for this already?
Yes. 10char
 
melterx12
Old
#10  
melterx12's Avatar
Senior Member
Thanks Meter 14
Posts: 715
Join Date: Dec 2009
Location: New York City

 
DONATE TO ME
hmm its interesting to note that by default idle CPU speed is ~160mhz. I think the battery would not last 4 hours on or sleep mode if the CPU was constantly at 1Ghz.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more