webOS Nation Forums >  Homebrew >  webOS homebrew apps > CPUScaler Application for Palm PRE - Turn on CPU Scaling or Set the CPU Speed
CPUScaler Application for Palm PRE - Turn on CPU Scaling or Set the CPU Speed

  Reply
 
LinkBack Thread Tools Display Modes
Old 03/26/2010, 02:35 PM   #101 (permalink)
Member
 
Join Date: Oct 2009
Posts: 9
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by number1pete View Post
1. A conflicting patch is on your phone (something that does something on bootup)
Thanks for your reply. I installed the homebrew app "mode switcher" and IIRC there was a bootup service for this app.

I will try your hints during this weekend.

Frank
Timon is offline   Reply With Quote
Old 03/26/2010, 08:13 PM   #102 (permalink)
Member
 
Demlor's Avatar
 
Join Date: Jan 2010
Location: Concord, CA
Posts: 544
Likes Received: 0
Thanks: 88
Thanked 59 Times in 49 Posts
Default

So let me get this straight before I install this.
I have the 800MHZ patch right now, I install this, it will put the MHz at 250 when I'm not using the phone, like when the screen is off?
__________________
Life is a journey, not a destination.
Demlor is offline   Reply With Quote
Old 03/26/2010, 08:25 PM   #103 (permalink)
Member
 
trim81's Avatar
 
Join Date: Jul 2005
Location: 626, Los Angeles
Posts: 2,726
Likes Received: 0
Thanks: 381
Thanked 197 Times in 129 Posts
Default

Quote:
Originally Posted by Demlor View Post
So let me get this straight before I install this.
I have the 800MHZ patch right now, I install this, it will put the MHz at 250 when I'm not using the phone, like when the screen is off?
In theory yes, but it scales frequently when checking email, IM idling, etc etc
trim81 is offline   Reply With Quote
Old 03/28/2010, 03:53 AM   #104 (permalink)
Member
 
Join Date: Oct 2009
Posts: 9
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So, I try it out.

I already got the message
Code:
** Message: serviceResponse Handling: 2, {"serviceName":"com.l337tech.cpuscaler","returnValue":false,"errorCode":-1,"errorText":"com.l337tech.cpuscaler is not running."}
And your scripts return following output

scaleinfo
Code:
The current scaling governor is
  userspace
  The cpu's current frequency is
  500000
  The maximum scaling frequency is
  600000
  The minimum scaling frequency is
  125000
  The cpu % utilization scale up threshold is
  cat: can't open '/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold': No such file or directory
  The powersave bias setting in 0.1% increments is
  cat: can't open '/sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias': No such file or directory
  The scaling sampling rate in microseconds (1sec=1000000) is
  cat: can't open '/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate': No such file or directory
scalestats
Code:
600000 0
  550000 1297
  500000 2998019
  250000 0
  125000 0
     From  :    To
           :    600000    550000    500000    250000    125000 
     600000:         0         0         1         0         0 
     550000:         1         0         0         0         0 
     500000:         0         0         0         0         0 
     250000:         0         0         0         0         0 
     125000:         0         0         0         0         0
I haven't installed any cpu patch or overclocking patch before. Only the "Battery As Percent"-patch is installed.

Frank
Timon is offline   Reply With Quote
Old 03/28/2010, 07:48 AM   #105 (permalink)
Member
 
Join Date: Jul 2003
Posts: 321
Likes Received: 15
Thanks: 4
Thanked 45 Times in 28 Posts
Default

Anybody having issues with random freezing using 800mhz and scaler 250->800? I had no issues running for 5 hours last night and when i got home I put it on my TS and at 4:48 am the OS froze. I am going to have to test running overnight without scaler.
FesterTreo is offline   Reply With Quote
Old 03/28/2010, 01:26 PM   #106 (permalink)
Member
 
circuitjc's Avatar
 
Join Date: Sep 2009
Location: Ontario, Canada
Posts: 71
Likes Received: 0
Thanks: 25
Thanked 11 Times in 10 Posts
Default

Installed 720MHz kernal patch (to test and see if I go all the way to 800 or not) and your CPUScalerUber. I set it to 250 -> 720 and time_in_state shows it runs between 500 and 720 only. To be more clear only the numbers for 500000, 600000 and 720000 increase. All others do not move.

720MHzOS14.sh
CPUScalerUber App 1.1.1
CPUScalerUber 1.1.0 (service)

Thanks for your work. It is appreciated.
circuitjc is offline   Reply With Quote
Old 03/28/2010, 01:42 PM   #107 (permalink)
Member
 
Demlor's Avatar
 
Join Date: Jan 2010
Location: Concord, CA
Posts: 544
Likes Received: 0
Thanks: 88
Thanked 59 Times in 49 Posts
Default

Quote:
Originally Posted by circuitjc View Post
Installed 720MHz kernal patch (to test and see if I go all the way to 800 or not) and your CPUScalerUber. I set it to 250 -> 720 and time_in_state shows it runs between 500 and 720 only. To be more clear only the numbers for 500000, 600000 and 720000 increase. All others do not move.

720MHzOS14.sh
CPUScalerUber App 1.1.1
CPUScalerUber 1.1.0 (service)

Thanks for your work. It is appreciated.
The service should be version 1.1.1 as well.
__________________
Life is a journey, not a destination.
Demlor is offline   Reply With Quote
Old 03/28/2010, 01:48 PM   #108 (permalink)
Member
 
circuitjc's Avatar
 
Join Date: Sep 2009
Location: Ontario, Canada
Posts: 71
Likes Received: 0
Thanks: 25
Thanked 11 Times in 10 Posts
Default

Quote:
Originally Posted by Demlor View Post
The service should be version 1.1.1 as well.
Code:
http://www.l337tech.com/wp-content/uploads/2010/03/com.l337tech.cpuscaleruber_1.1.0_all.ipk
This is the link from the author's site to download the service listed with the Uber version of this app. Where do I get the 1.1.1 version of the service? Is it the same one as the non-Uber version?
circuitjc is offline   Reply With Quote
Old 03/28/2010, 06:56 PM   #109 (permalink)
Developer
 
Join Date: Jul 2009
Location: Katy, Texas
Posts: 584
Likes Received: 7
Thanks: 52
Thanked 287 Times in 93 Posts
Default

Quote:
Originally Posted by FesterTreo View Post
Anybody having issues with random freezing using 800mhz and scaler 250->800? I had no issues running for 5 hours last night and when i got home I put it on my TS and at 4:48 am the OS froze. I am going to have to test running overnight without scaler.
i had issues freezeing with 125-->600mhz on the touchstone about once a week.

i have had no freezing with any of the 250mhz--> scalings. Been using 250-->800mhz.

my suggestion is start using 500-->800mhz. You cpu may not like those lower frequencies/voltages.
__________________
Internet Radio - the best beats on the web

CPUScaling app L337Tech post

Super PreKernel app

If you appreciated any of my help, enjoy any of my apps that I give away for free, or want to see more development from me, think about making a donation. Thanks!
number1pete is offline   Reply With Quote
Thanked By: caj2008
Old 03/28/2010, 06:58 PM   #110 (permalink)
Developer
 
Join Date: Jul 2009
Location: Katy, Texas
Posts: 584
Likes Received: 7
Thanks: 52
Thanked 287 Times in 93 Posts
Default

Quote:
Originally Posted by circuitjc View Post
Installed 720MHz kernal patch (to test and see if I go all the way to 800 or not) and your CPUScalerUber. I set it to 250 -> 720 and time_in_state shows it runs between 500 and 720 only. To be more clear only the numbers for 500000, 600000 and 720000 increase. All others do not move.

720MHzOS14.sh
CPUScalerUber App 1.1.1
CPUScalerUber 1.1.0 (service)

Thanks for your work. It is appreciated.
i checked the code and it is definately coded for 250-->720mhz. I bet if you let you phone settle down it will get down to 250mhz after it completes whatever background task it was probably doing. Let it run for a few hours in sleep mode then check the time_in_state table.
__________________
Internet Radio - the best beats on the web

CPUScaling app L337Tech post

Super PreKernel app

If you appreciated any of my help, enjoy any of my apps that I give away for free, or want to see more development from me, think about making a donation. Thanks!
number1pete is offline   Reply With Quote
Thanked By: circuitjc
Old 03/28/2010, 06:59 PM   #111 (permalink)
Developer
 
Join Date: Jul 2009
Location: Katy, Texas
Posts: 584
Likes Received: 7
Thanks: 52
Thanked 287 Times in 93 Posts
Default

Quote:
Originally Posted by circuitjc View Post
Code:
http://www.l337tech.com/wp-content/uploads/2010/03/com.l337tech.cpuscaleruber_1.1.0_all.ipk
This is the link from the author's site to download the service listed with the Uber version of this app. Where do I get the 1.1.1 version of the service? Is it the same one as the non-Uber version?
CPUScalerUber's service has not been ugraded to 1.1.1 yet. Its still 1.1.0. You have the correct version installed. ill let everyone know when 1.1.1 is ready (still doing research on the 720/800mhz kernel).
__________________
Internet Radio - the best beats on the web

CPUScaling app L337Tech post

Super PreKernel app

If you appreciated any of my help, enjoy any of my apps that I give away for free, or want to see more development from me, think about making a donation. Thanks!

Last edited by number1pete; 03/28/2010 at 07:06 PM.
number1pete is offline   Reply With Quote
Thanked By: circuitjc
Old 03/28/2010, 07:08 PM   #112 (permalink)
Member
 
Join Date: Dec 2009
Posts: 2
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Everything works properly, though it appears that I have to set the scaling anytime I boot/reboot the phone. This is normal correct?

Perhaps a n00b question, but is there a way to start a particular scaling set on boot versus having to open the app and manually enable the scaling set?

Thanks
pheerless is offline   Reply With Quote
Old 03/28/2010, 07:32 PM   #113 (permalink)
Member
 
Join Date: Jul 2003
Posts: 321
Likes Received: 15
Thanks: 4
Thanked 45 Times in 28 Posts
Default

Pheerless

Developer stated that after a reboot you have to reset the scaling effect.
FesterTreo is offline   Reply With Quote
Old 03/28/2010, 08:56 PM   #114 (permalink)
Developer
 
Join Date: Jul 2009
Location: Katy, Texas
Posts: 584
Likes Received: 7
Thanks: 52
Thanked 287 Times in 93 Posts
Default

Quote:
Originally Posted by pheerless View Post
Everything works properly, though it appears that I have to set the scaling anytime I boot/reboot the phone. This is normal correct?

Perhaps a n00b question, but is there a way to start a particular scaling set on boot versus having to open the app and manually enable the scaling set?

Thanks
if you want to have scaling or a speed set on boot up then you will need a patch. Im not a fan of that so i wrote this application so i can choose what i want, when i want. I dont like being stuck at one setting.

when you reboot the phone sets itself back to defualt settings.
__________________
Internet Radio - the best beats on the web

CPUScaling app L337Tech post

Super PreKernel app

If you appreciated any of my help, enjoy any of my apps that I give away for free, or want to see more development from me, think about making a donation. Thanks!
number1pete is offline   Reply With Quote
Thanked By: pheerless
Old 03/28/2010, 09:01 PM   #115 (permalink)
Member
 
Join Date: Nov 2009
Posts: 238
Likes Received: 0
Thanks: 19
Thanked 13 Times in 11 Posts
Default

I as well like to be able to change the scale settings on the fly.
edbbates11 is offline   Reply With Quote
Old 03/29/2010, 01:49 AM   #116 (permalink)
Member
 
cyberprashant's Avatar
 
Join Date: Jul 2009
Posts: 934
Likes Received: 32
Thanks: 239
Thanked 88 Times in 69 Posts
Default

Ok, I'm using the 500-->800mhz. and it looks like it's working based on this. Already installed the 800 MHz patch a few days ago and hoping this will improve battery life.

cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

800000 626458
720000 5691
600000 0
550000 0
500000 15846
250000 0
125000 0

*** Should I expect in improvement in Battery Life and if so how much?
__________________
Techtray = an awesome Tech/News reader for your Pre.
TechtrayLite (Free) = an awesome Tech/News reader for your Pre.
What's Shaking - free earthquake app calculates distance and shows map
EasyPulse - free HR calculator
cyberprashant is offline   Reply With Quote
Old 03/29/2010, 07:10 AM   #117 (permalink)
Developer
 
Join Date: Jul 2009
Location: Katy, Texas
Posts: 584
Likes Received: 7
Thanks: 52
Thanked 287 Times in 93 Posts
Default

Quote:
Originally Posted by cyberprashant View Post
Ok, I'm using the 500-->800mhz. and it looks like it's working based on this. Already installed the 800 MHz patch a few days ago and hoping this will improve battery life.

cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

800000 626458
720000 5691
600000 0
550000 0
500000 15846
250000 0
125000 0

*** Should I expect in improvement in Battery Life and if so how much?
compared to running 800mhz constant speed all the time, youll see a decent improvement in battery life. They had tables comparing stock speed vs 800mhz speeds for battery drain and i think the hit is a few % per hour.

if you ran 250-->800mhz you may see even better battery life. If your really concerned about battery life i would run 250-->500mhz.

But as with any cpu speed you will drain the battery like crazy if the screen is on or if your 3g radio is on. At that point the cpu battery drain is a drop in the barrel.

I did test with 250-->800mhz for 5 hours with screen off and 3g/wifi off (airplane mode) and the phone used 1% battery. Pretty sick and eye opening on how little the cpu is actually using.
__________________
Internet Radio - the best beats on the web

CPUScaling app L337Tech post

Super PreKernel app

If you appreciated any of my help, enjoy any of my apps that I give away for free, or want to see more development from me, think about making a donation. Thanks!
number1pete is offline   Reply With Quote
Old 03/30/2010, 06:46 AM   #118 (permalink)
Developer
 
Join Date: Jul 2009
Location: Katy, Texas
Posts: 584
Likes Received: 7
Thanks: 52
Thanked 287 Times in 93 Posts
Default

Thank you very much for the generous donation to a user who appears to want to remain anonymous.

Donations are the only thing that can keep developers like me in this thing. I have been giving the app away for free so if you enjoyed the app or found me helpful consider a donation. Any amount helps.
__________________
Internet Radio - the best beats on the web

CPUScaling app L337Tech post

Super PreKernel app

If you appreciated any of my help, enjoy any of my apps that I give away for free, or want to see more development from me, think about making a donation. Thanks!
number1pete is offline   Reply With Quote
Old 03/30/2010, 07:19 AM   #119 (permalink)
Member
 
Join Date: Jun 2009
Posts: 15
Likes Received: 0
Thanks: 11
Thanked 2 Times in 2 Posts
Default

I've been very happy with the app so far and I have a suggestion for the next version release. Is there some way you can display the current status of the app when it is started? For instance, if the speed is stock and no scaling is on, have the button that currently says "Scale And Speed Off" say this. If the speed is set to 800 Mhz and scaling is set to 250Mhz, have the button say that. So whenever we start the app we can see what the current execution status is. With the current functionality, if the phone resets while on the ts overnight, I don't have any way of knowing that the speed and scaling have been reset unless I hook up to my computer to run a command from the Linux commandline. Thanks!
rdixon14 is offline   Reply With Quote
Old 03/30/2010, 10:12 AM   #120 (permalink)
Developer
 
Join Date: Jul 2009
Location: Katy, Texas
Posts: 584
Likes Received: 7
Thanks: 52
Thanked 287 Times in 93 Posts
Default

Quote:
Originally Posted by rdixon14 View Post
I've been very happy with the app so far and I have a suggestion for the next version release. Is there some way you can display the current status of the app when it is started? For instance, if the speed is stock and no scaling is on, have the button that currently says "Scale And Speed Off" say this. If the speed is set to 800 Mhz and scaling is set to 250Mhz, have the button say that. So whenever we start the app we can see what the current execution status is. With the current functionality, if the phone resets while on the ts overnight, I don't have any way of knowing that the speed and scaling have been reset unless I hook up to my computer to run a command from the Linux commandline. Thanks!
great idea. The new version (in its current state) has a "Stats" page that tells you everything about your cpu's current situation.

i like your idea of having some off that information on the front page when you first open the app. I will try and work that into the second iteration of the new app.

the new app is called CPUScalerUltimate. I will not go into anymore detail until i release it but i think anyone who uses this app will enjoy it a lot more than the original two.

thanks,

number1pete
__________________
Internet Radio - the best beats on the web

CPUScaling app L337Tech post

Super PreKernel app

If you appreciated any of my help, enjoy any of my apps that I give away for free, or want to see more development from me, think about making a donation. Thanks!
number1pete is offline   Reply With Quote
Reply

 

Tags
cou, scale, speed

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0