Editing Calkulin's Processor Speed Script? - Samsung Epic 4G Touch

Does anyone know how to edit Calkulin's processor speed scripts to run at 800MHz all the time instead of using the following preset profiles of 1.2GHz - 100-85%, 1.0GHz - 84-36%, 800MHz - 35-0%?
Simply put, I don't need the faster processor speeds and would rather have the benefits of the longer battery life that running at 800MHz provides. Problem is there are several scripts and I don't know what values to change to accomplish a constant state of 800MHz. If anyone can help me out, I would appreciate it.
FYI I sent Calkulin a message several weeks ago asking this question and presume he is very busy as I have not received a response. I thought I'd try asking the community.

Have you tried to view your screenstate scaling... the profiles are right there you can change where it say 120000 to 80000 similar to battery profile 2 as well as where it says MaxCPu speed.... you can change that to your desired speed.... just use root explorer or notepad+
Its really pretty simple... if you have rom toolbox you can change it there as well which as a whole program is pretty damn useful
Sent from my Xoom using Tapatalk

You can use a third party app, like Setcpu, to established the desired clock. If you want to do it manually without an app, you can open the script file with a text editor and change the values. Look in /system/etc/init.d for the script.
Easiest way is to use Setcpu so you can edited on the fly.

Easy way would be edit the line "MAX_CPU_SPEED_PROFILE_1="1200000"" to show "MAX_CPU_SPEED_PROFILE_1="800000""

Related

[Q] Manually set clock speed?

I've used SetCPU in the past and have determined that my max stable clock speed is 113600; I've also read that using SetCPU to control clock speed can create some problems.
How would one go about manually overclocking the phone without using SetCPU? I was looking around in /sys/devices/system/cpu/cpu0/cpufreq and it looks like there are kernel settings there, just want to make sure I don't bork anything in the process
Thanks in advance!
From my understanding is that if you get an overclock kernel it will basically run in the same fashion as your current kernel (as far as governing speed goes) except you'll have a higher max frequency.
Rrrracer said:
I've used SetCPU in the past and have determined that my max stable clock speed is 113600; I've also read that using SetCPU to control clock speed can create some problems.
How would one go about manually overclocking the phone without using SetCPU? I was looking around in /sys/devices/system/cpu/cpu0/cpufreq and it looks like there are kernel settings there, just want to make sure I don't bork anything in the process
Thanks in advance!
Click to expand...
Click to collapse
SetCPU is the GUI to do what you are talking about... Are you looking to go past 1.113? I can only get to 1.113, but if I run Hyrda's OCOV kernel I can get to 1.15.
I would say if you don't know what you are doing, I wouldn't mess with it. Nandroid is handy if you do.
I'm running invisiblek's #16 kernel but max clock speed is showing 998. Not trying to go over 1.13 but thought I read somewhere about being able to manually change it in the system files somewhere without using SetCPU.
IIRC the idea was to use SetCPU to determine your max stable clock speed, then change it manually in a system file somewhere and then not use SetCPU.
Sent from my ADR6300 using XDA App
Try uninstalling/reinstalling setCPU. I've had issues every once in a while when flashing a new ROM, then doing the app only restore from a TI backup cause issues.
Personally I can't say I've ever had any problems using SetCPU, but if there's a way to make it default to 1.13 without having another process running then I am all for it, thus my question. Just don't know where to change it
I can tell you i am 99.9% sure that you were right with the file location in your first post.
If you check chads thread SOMEWHERE in there i think its mentioned... Sorry to say but i have no idea where.
Here's a script that Ziggy wrote, you can edit it to your needs and flash it and fix permissions. Without editing it's set at 1.113GHz Interactive screen on and .384GHz Ondemand screen off if I remember correctly. It also has another tweak (memory management I believe?). But hey, it's a start.
Much appreciated guys, I will check out Chad's thread again and look at that script. I just don't see the need for SetCPU if I can just plug in my known stable values and roll it like that Thanks again!
Fixed lol sorry
Sent from my Droid Incredible running Myn's Warm Two Point Two RLS4.
LOL Blah! :-D
I have tried editing those files and it does not seem to change the clock speed. Anyone who has successfully done it manually could you please list all the specific files. Also im going to examine the script that was linked and see if i can tweak it a bit. Ill post any findings here.
I use the custom kernel #18 and setcpu, clocked to 1.115 easily with cm6.1. works awesome and smokin fast.
trunksta said:
I have tried editing those files and it does not seem to change the clock speed. Anyone who has successfully done it manually could you please list all the specific files. Also im going to examine the script that was linked and see if i can tweak it a bit. Ill post any findings here.
Click to expand...
Click to collapse
I edited Ziggy's script using EditPad lite (free, just Google it) since I'm on Windows so as not to change the format. Flashed from recovery then fixed permission in Root Explorer. Worked like a charm.

[Q] Calk's Preset Profiles to save battery question?

Notes about Battery Saver script
Can be used with kernels that have init.d support
It completely eliminates the need for an application to set CPU speeds or profiles
Easily customizable if you use a text editor(scripts located in /system/etc/init.d)
It will set Max CPU speed to 500MHz & Min CPU speed to 200MHz when a sleep
If SetCPU, Overclock Widget, Android Overclock or QuickClock Advanced Overclock are detected, the script is ignored, so it will not affect them
Preset profiles are:
1.2GHz - 100-85%
1.0GHz - 84-36%
800MHz - 35-0%
And just an FYI, even at 800MHz, the phone still operates very well & smooth but the battery saving are the real benefit
Click to expand...
Click to collapse
Does this mean that if I don't use Set CPU or any app that undervolt it, the phone will AUTOMATICALLY drop the CPU speed according to my battery level:
1.2GHz - 100-85%
1.0GHz - 84-36%
800MHz - 35-0%
Another word, it will automatically drop CPU speed to 800 MHZ when my battery level is 35-0% in order to save battery?
It won't "Drop" the CPU speed, it will lower the Maximum speed the CPU is allowed to ramp up to.
Drumrocker said:
It won't "Drop" the CPU speed, it will lower the Maximum speed the CPU is allowed to ramp up to.
Click to expand...
Click to collapse
So if I am not doing CPU intensive stuff and just play simple games, email, web surfing phone call, then I am not going to see battery improvement since my CPU probably don't ramp past 800MHZ anyway when I am just doing simple stuff.?
Calk's ROM undervolts the CPU at all speeds so that in itself should help a little with battery life. But you are correct, if you are not doing CPU intensive tasks the CPU probably isn't spending much time at the higher speeds.
There is an app called CPUSpy which shows how much time the CPU has spent in each frequency state.
Your phone will ramp up to 1200 mhz more than you think. When it loads a webpage, it will ramp up to 1200, when it's loading your "simple" game, it will max out for a bit, etc.
It might not stay there for very long, but still. The nice thing about Calkuins rom is that even at 800 mhz, the phone is super smooth and lag free. In fact I just turn setcpu down to 800 all the time.
Let me research setcpu and play around with it. Thanks again for the quick answers.
clamknuckle said:
Your phone will ramp up to 1200 mhz more than you think. When it loads a webpage, it will ramp up to 1200, when it's loading your "simple" game, it will max out for a bit, etc.
It might not stay there for very long, but still. The nice thing about Calkuins rom is that even at 800 mhz, the phone is super smooth and lag free. In fact I just turn setcpu down to 800 all the time.
Click to expand...
Click to collapse
The way Calkulin's rom scripts are setup, setcpu gets reset on every reboot, even if you have it set to boot settings. The scripts installed will still take priority and the old rules apply, just to let you know. So you would have to set setcpu every boot for it to work, that or remove the scripts.
Sent from my SPH-D710 using xda premium
Team era... Does the same idea apply to the blazer 2.0 battery saving script? or does tegrak break it?
Sent from my SPH-D710 using xda premium
I havnt opened that rom, but Im gonna say the same applies, I remove those scripts, 2 will affect the cpu state.
edit, let me clarify, the scripts take prority, even if the app makes a script for init.d, the original script will take over on a reboot. So the script breaks tegrak, setcpu, and voltage control unless you set the app on every reboot.
I am running Calks 2 and desperado kernel. I notice when using setcpu, if you have it set on boot, it will override calks script.
His script does work well on saving battery life though. I ran oc'd while at 20% and still had 1700mhz blazing on performance gov.
I'd still use Calks script over setcpu or tegrak only due to the fact im too sporatic with my phone use to create optimal profiles to fit the way and when i need to use the device.
mindgrind said:
I am running Calks 2 and desperado kernel. I notice when using setcpu, if you have it set on boot, it will override calks script.
His script does work well on saving battery life though. I ran oc'd while at 20% and still had 1700mhz blazing on performance gov.
I'd still use Calks script over setcpu or tegrak only due to the fact im too sporatic with my phone use to create optimal profiles to fit the way and when i need to use the device.
Click to expand...
Click to collapse
Actually in my own testing setcpu will not override the scripts, the slider may stay the same, but trust me, it goes back to 800 (or 1200 over 86%batt), Ive tested it several times. If you want proof Ill tell you how to figure it out. I know Im not respected yet, but I am someone that is known under another name that is highly respected, so, take it as you will.
Sent from my SPH-D710 using xda premium
Era, what's your suggestion for keeping the battery saving scripts running and getting a 1500 ish over clock when needed... something that can do both without having to physically change setcpu everytime. I basically want to permanently over clock to 1.5 and still save as much battery as possible when i have the screen off or it is charging. Idk if setcpu profiles work on this phone because i know they did not work correctly on the galaxy s. And one final question... what voltages do u run at what speeds on the "desperado" kernel to undervolt efficiently?
Sent from my SPH-D710 using xda premium
TeamERA said:
Actually in my own testing setcpu will not override the scripts, the slider may stay the same, but trust me, it goes back to 800 (or 1200 over 86%batt), Ive tested it several times. If you want proof Ill tell you how to figure it out. I know Im not respected yet, but I am someone that is known under another name that is highly respected, so, take it as you will.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
ERA. I wasn't looking to say that you were wrong in any way shape or form. I would be interested to know how you seen this as I am still in the beginning phases of learning the android system. I do plan on writing my own kernal/roms but I was actually sharing what my logical thought process would have been given the apps and system info I had avail.
I have a little ways to go in understanding the structure and FS of droid. Time is everyones enemy. Thanks for the correction again!
I havnt opened that rom, but Im gonna say the same applies, I remove those scripts, 2 will affect the cpu state.
edit, let me clarify, the scripts take prority, even if the app makes a script for init.d, the original script will take over on a reboot. So the script breaks tegrak, setcpu, and voltage control unless you set the app on every reboot.
I'm currently running Calkulin's rom v2.5, and even at 41% battery I notice the cpu still hits 1.2 Ghz. Is his script activated by default or am I overlooking something? I also have nothing like setcpu installed.

smartassv2 governor tweaks

I just spent some time doing some miscellaneous tweaks to the smartassv2 gov on the new Lionfish kernel. I am extrememly battery conscious with this tweaking as i will soon be giving this EVO to my father who has to rely on in for business. I followed the info in a few other threads and thought I had what i needed to make the correct changes so I made them. I've noticed that after the changes I've made, the cpu scaling seems to be rather erratic, meaning it never really settles at low frequency. I don't know if this is due to the stock setting of the gov as i didn't check the scaling before hand or if it has to do with my changes.
my current settings are as follows
768000= awake_ideal_freq;
245000= sleep_ideal_freq;
499200= sleep_wakeup_freq
85=max_cpu_load;
70=min_cpu_load;
38400= ramp_up_step;(left at stock)
38400= ramp_down_step;(left at stock)
10000= up_rate_us(left at Stock)
20000= down_rate_us(left at Stock)
I didn't touch the rampup/down of the scaling intervals or anything, so i don't really understand why this is happening. And sugestions out there?
shameful bump....
If you're running Sense I wouldn't recommend that low of a main clock, and honestly if your dad knows nothing of rooting I'd unroot it, leave everything stock, and let him fair with it, wouldn't want the device bugging out on him after all.
SavocaFTW is right, you are way under, just use on demand it will be just fine, if you set the evo values to low the system gets whacked out bad.
I've been using newest lionfish 1.2 and V6 supercharger with setting #8. Tried it just for kicks and its been working great for battery life. Use System Tuner Pro. Don't use Set CPU. I use ondemand 768-245. One other you thing to do is use a file manager to navigate to the system/etc folder and scroll down until you find the init.post_boot.sh file and either delete it or move it to your sd card. This is the cause of most of problems i'm sure.

[Q] Using init.d scripts

I keep reading a lot of about how people use scripts to change their governor, CPU, voltage, and other settings.
Where are these scripts located? Is there one in the phone already? What program do I use to modify it? Also, are there scripts that will work on other phones but not our T989?
What I'm essentially asking for is to be pointed in the right direction to learn how to use these scripts.
I've been using System Tuner and I don't like how it maxes out the CPU every time I use it. Also, even when I fix it back to the correct CPU settings, the phone would refuse to go into Deep Sleep mode. My main goal right now is to use the script to undervolt my phone.
Bump. Can anyone point me in the right direction?
Hey I'm waiting on a response as well...
I know you probably got all excited that someone responded to your thread dry but maybe another post will help bring attention to it.
Casperi
Sent from my SGH-T989 using xda premium
the script usually applies if the kernel developer wrote an easy enough script for us to change the values to our liking. The general population does not know how to write our own so I wouldn't bother.
I know TDJ's darkside kernel has a section in his script that allows you change somethings
gideon's script is also straight forward, it is found at the bottom where you can change the max and min and the voltages.
gideon's script apparently works on any kernels but I would advise not flashing it on every kernel possible because it will overwrite what the developers wrote in themselves such as the darkside kernel.
You guys should check out faux's thread and tdj's thread, I think there are instructions floating around there somewhere.
gideon's script is in faux's thread too I believe.. haven't used it in forever.
I was hoping to learn how to change the CPU settings. Sure I can do it in sys tuner which I do but that's after the phone boots with the CPU set at 1.78 which is a battery killer for me. If I can learn how to simply change it in the script like say the resolution from 240 to 200 for example then I'm all good. That way I never have to **** with it again and I learn something along the way. Problem is I have no idea where to look for this.
Casperi
Sent from my SGH-T989 using xda premium

Classic v1.1+SBC and SetCPU

Is it OK to run these two together? Will I lose the benefits of this kernel by running SetCPU? Will changing the governor affect anything?
Since the governors on classic are default, it should work the same...
Just remember using profiles has setcpu polling to see the status of your phone...so that does gave a draw on the phone, not much in the overall scheme of things, especially if you already use it, you are used to it.
The concern usually occurs if using custom governors, example Smartassv2 and a screen off profile in setcpu would be constantly fighting each other..negating any benefits of either.
I also do recommend since you're using SetCPU to manage your governors, frequencies, etc to move/delete the init.post_boot.sh file and the reasoning for this is because this file outlines several parameters for controlling your cpu at bootup and some of those settings include, a pre-determined governors polling intervals, up/down thresholds and min/max cpu frequencies so without deleting/moving this file and using SetCpu in conjunction with it, unstability can happen in the background due to your phone constantly going back and forward with itself because of too many apps/scripts telling it to do different things. Now if you're not going to use SetCPU I recommend not to touch this file. You can reference this Post
Good call.. I always forget to mention that file, I dropped using setcpu a long time ago, lol..

Categories

Resources