I noticed the following lines in the Build.prop file:
ro.min_freq_0=384000
So I was wondering if it was possible to add a similar line to define max frequency. I'd like to have it a notch lower than stock, since some games seem to run at max speed all the time.
Try a kernel tuner app
I do believe ro.max_freq is in there somewhere in the build.prop
But ya a kernel tuner/tweaker will work assuming you have root
Related
I have a small question regarding setting a CPU Governor. I searched for a while but couldn't find any answer.
I am running AcesMod007-Lite, which has the cpu governor set to smartass. It seems to be okay, but especially when playing music it has some trouble, because it is trying to save too much battery. The music has a small click now and then. And i'm hoping changing the governor will help (if it won't please say so, then I can stop trying ).
So I want to change it to Interactive. This should be possible according to the ROM description (- Available Freqs: CPU interactive, smartass, powersave, ondemand, performance - by snq-)
What I tried to change it:
In recovery (after mounting system):
adb shell echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
(Here I got an error: The system can't find the specified path)
adb echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
(Same error)
adb pull /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor G:\
(This wrote a file with userspace? I changed it to interactive, then pushed it)
adb push G:\scaling_governor /sys/devices/system/cpu/cpu0/cpufreq/
(Upon reboot I checked it, and it was set back to smartass)
When the phone was on:
I tried thesame as in recovery, and got the same errors, only when using adb pull, the content of the file was "smartass".
Does anybody have an idea how to make this work?
I don't have Ace on my phone at the minute, but from what I remember I'm pretty sure there's a scaling script in the system/etc/init.d folder. Use root explorer or similar and long press, open with text editor, then change smartass to the governor you want.
Reboot the phone and it should now be using the one you selected, I hope
Use ondemand governor. Also had problems with music playing with smartass governor in other roms. After switching to ondemand they never occurred again.
Swyped from Oxygen with Transparent XDA App
@mick
Thanks! You were right. Now it automatically switches to ondemand (thanks MatDrOiD).
But for some reason the music still clicks . Should I increase the processor max freq for screen off, or does anybody know any other solutions?
I dont really know any other solution other than to ask, did you change both governors, screen on and screen off?
btw the screen off I use "min 128000" and "max 384000"
yes, try upping the max til the clicking stops
Yes I did changed them both.
My frequencies are for screenoff (in that same file):
SLEEP_GOVERNOR_FREQUENCY_MIN="245000"
SLEEP_GOVERNOR_FREQUENCY_MAX="384000"
So I think that should be okay.
Somewhere I read that it was an possible issue with every Sense HD ROM, because there was an error in the HTC code. Then it would be unsolvable.
I am going to try setting the min to 128, maybe that magically helps.
PerfectLight said:
Somewhere I read that it was an possible issue with every Sense HD ROM, because there was an error in the HTC code. Then it would be unsolvable.
Click to expand...
Click to collapse
I use insertcoin at the moment and don't notice it.
It might not be the cpu settings, I don't know what else is tweaked in the rom, but if there are other things then it could possibly be that, memory etc.
I'm pretty sure I read in the thread when I used Aces that installing setcpu would disable the scaling script. Maybe install it and see if your problem clears, nothing to lose
It has been solved! I now use a different build.prop, which seems optimized in some way.
The clicking is gone, and the entire phone seems more responsive .
Thanks for the great help!
For some reason I don't have an option to undervolt anything in SetCPU which I presume is there because it's listed as an app capability and it seems others on this forum have been able to undervolt with this app. I also understand that the ability to undervolt must be first unlocked by a kernel before it can be accessed through SetCPU, and I have this kernel flashed:
http://forum.xda-developers.com/showthread.php?t=1466283
which does list undervolting as a possibility. Am I missing something here? Why can I only schedule profiles around clock speed?
**As a side note, I tried out system tuner and I can reach the undervolting through system tuner but I don't really like the interface for system tuner so I would prefer sticking with SetCPU if possible (especially since I already paid for it)
**My ROM is stock, does that make a difference? Isn't the capability only dependent on the kernel?
DO NOT USE SETCPU! It keeps your second core constantly running which means terrible battery life. I recommend Gideon's script or FauxClock (Which is what I use.) I also recommend undervolting it to -75 mV.
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""
Hi Everybody,
After v45 update, we all are facing huge drop in performance in our Redmi 1s.
One of my dear provided one patch by modifing some system files.
But that patch will yes revert back the performance BUT IT WILL ALSO BRING BACK THE OVERHEATING ISSUE.
So i am presenting you all with this patch.
It will restore your performance and also will control overheating.
NOTE: THIS MOD ONLY CONTROLS MAX CPU+GPU FREQUENCIES AT HIGHER BATTERY TEMPS. SO IT WONT HARM BATTERY PERFORMANCE AT ALL.
How to do:
NO ROOT IS NEEDED NOW.
JUST FLASH ZIPS EVEN THROUGH STOCK RECOVERY.
How to undo:
Just flash undo zip.
Download:
Updated in attachments as recovery flashable zips.
NOW IT CAN BE FLASHED THROUGH STOCK MIUI RECOVERY.
What have i done:
(1) somebody ask me to remove some of the line from the file but if we remove them our redmi will start overheating as it wont control the cpu.
So i have not removed them but i have set them to frequencies which will neither make phone overheat nor will hang it.
(2) file is patched with little help from my nexus.
(3) in the v45 update the cpu was limited to use less than 1ghz. It hangs the phone. So i changed it.
Now reboot and you device will go easy.
Please comment if you find any issue or suggestions.
A thanks will motivate me.
Also if you want to use my mod in any rom then plz give credits.
Credits:
Ryuinferno : for the wonderful script to sign zip files.
Notepad++
My Nexus
Update (17-11-14)
1. Removed density data from patch. Now only used cpu and gpu to control it.
2. Uploaded Hard Gaming, Power saving and Balanced patch for specific usage.
3. Cleaned and power saving based on original parameters.
What have i done :
Lets have a close look at the original \system\etc\thermal-engine-8226.conf file:
algo_type monitor
sensor batt_temp
sampling 1000
thresholds 380 390 420 500 550
thresholds_clr 370 380 400 450 500
actions cpu+hotplug_2+hotplug_3 cpu+hotplug_3 cpu+hotplug_3 cpu cpu
action_info 998400+1+0 998400+1 787200+1 600000 600000
In above lines, the sensor is batt_temp so here battery temperature is observed.
When the temperature of bettery reaches 380 (i.e. 38*C) then cpu+hotplug_2+hotplug_3 will be performed. Means cpu will clock at 998400 mhz and core2 will be hotpluged. Here your device will start hanging as 1.6 ghz cpu is asked to run at only 0.998 ghz with core2 hotpluged.
Similarly, at 390 (i.e. 39*C) core3 will also hotpluged.
35*C is normal temperature. But you will reach around 39-40*C even at light internet browsing/gaming.
At 42*C your cpu will die with only 0.787 ghz speed. This is less than half of 1.6 ghz.
Now what have i done is i have pushed the limits to little high level.
I have stopped hotplugging of cores and to low down the temp. i have used cpu & gpu both.
algo_type monitor
sensor batt_temp
sampling 1000
thresholds 390 410 420 450 550
thresholds_clr 380 400 410 440 500
actions cpu+gpu cpu+gpu cpu+gpu cpu+gpu cpu+gpu
action_info 1344000+450000000 1344000+320000000 1190400+320000000 787200+200000000 600000+200000000
Here at 39*C the cpu will go to 1.34 ghz but the gpu will remain at max of 450 mhz.
Then at 41*C the cpu will remain at 1.34 ghz but gpu will lower down to 320 mhz.
Likewise, at 420*C the cpu will go to 1.19 ghz and gpu will remain the same.
Above 45*C is too hot so the device is really needed to cool down. So above 45*C both cpu and gpu will lower down a lot for enough cooling.
Again when the temperature with lower down, you will start getting the normal speeds.
All the above information is also observed closely with the help of cpu-z apk.
is it really works ??????
why you didn't just simply configure the ondemand governor to do the same thing? Is more easy and can be done manually or using Trickster mod.
Thanks a ton for the patch but flashable zip file be a lot easier to install. So please make a flashable zip.
pgreed said:
why you didn't just simply configure the ondemand governor to do the same thing? Is more easy and can be done manually or using Trickster mod.
Click to expand...
Click to collapse
Ya but as per me if we have limited something in the thermal config file to behave at a specific battery temp. then we can not use any app or mod to change the cpu frequencies.. I have tried that also..
Also this mod controls cpu+gpu+dencity at specific battery temps...
sumitsrk123 said:
is it really works ??????
Click to expand...
Click to collapse
I also had same questions so me and my friend have tested it with the help of cpu-z app...
Cpu-z app gives you details of your battery temp. and your current cpu clock speeds. Set governor to performance and start playing games like need for speed... Then in between checked the temp of the battery and the cpu clock speed ...
It really works it changes the frequencies as per specific temps...
coolpepe said:
Thanks a ton for the patch but flashable zip file be a lot easier to install. So please make a flashable zip.
Click to expand...
Click to collapse
Yo bro... Signed flashable zips are up... Also added undo zip to revert to stock.
This is what i am using ...
I prefer little more performance over heating...
Nice....now i can use the phone @1.6Ghz without heating !!
Beast Mode Unlocked
Thanks Man for this
In a sense. But you cannot run your cpu at 1.6ghz continuously for a very long time.. Every cpu will get overheat.
Here i have tried to make some balance between the performance and heat.
What miui did.. They just tried to limit us to use at 0.99 ghz when temp is above 38.c so i have pushed that limit to high level with help of other factors like gpu and density etc.
So simple you will not be limited if you go at a high limit of temp.. After that slowly slowly cpu gpu and density will be limited and cpu will cool down...
ravinder0003 said:
In a sense. But you cannot run your cpu at 1.6ghz continuously for a very long time.. Every cpu will get overheat.
Here i have tried to make some balance between the performance and heat.
What miui did.. They just tried to limit us to use at 0.99 ghz when temp is above 38.c so i have pushed that limit to high level with help of other factors like gpu and density etc.
So simple you will not be limited if you go at a high limit of temp.. After that slowly slowly cpu gpu and density will be limited and cpu will cool down...
Click to expand...
Click to collapse
What i meant was this is smarted thermal control and i won't be having to manually underclock any more to prevent heating !
Also i can help my friends who are not aware of rooting and stuffs
No you dont need to do anything... this is balanced version..
If you prefer more power or more battery just tell me i will edit it for you according to ur needs..
ravinder0003 said:
No you dont need to do anything... this is balanced version..
If you prefer more power or more battery just tell me i will edit it for you according to ur needs..
Click to expand...
Click to collapse
Can you make it more reliable for hard gaming & multitasking??? Mod is working perfectly and really increased my battery backup and performance, No heat anymore. Thanks bro keep it up.:beer::thumbup:
Sent from my HM 1SW using XDA Premium 4 mobile app
ravinder0003 said:
Hi Everybody,
After v45 update, we all are facing huge drop in performance in our Redmi 1s.
One of my dear provided one patch by modifing some system files.
But that patch will yes revert back the performance BUT IT WILL ALSO BRING BACK THE OVERHEATING ISSUE.
So i am presenting you all with this patch.
It will restore your performance and also will control overheating.
How to do:
NO ROOT IS NEEDED NOW.
JUST FLASH ZIPS EVEN THROUGH STOCK RECOVERY.
How to undo:
Just flash undo zip.
Download:
Updated in attachments as recovery flashable zips.
NOW IT CAN BE FLASHED THROUGH STOCK MIUI RECOVERY.
What have i done:
(1) somebody ask me to remove some of the line from the file but if we remove them our redmi will start overheating as it wont control the cpu.
So i have not removed them but i have set them to frequencies which will neither make phone overheat nor will hang it.
(2) file is patched with little help from my nexus.
(3) in the v45 update the cpu was limited to use less than 1ghz. It hangs the phone. So i changed it.
Now reboot and you device will go easy.
Please comment if you find any issue or suggestions.
A thanks will motivate me.
Also if you want to use my mod in any rom then plz give credits.
Credits:
Ryuinferno : for the wonderful script to sign zip files.
Notepad++
My Nexus
Click to expand...
Click to collapse
HI Ravindar,
Thanks for your post it is helpful.
I tried it. Given better improvement.
Ram performance better
No heating
But
Battery life poor
Can u rectify
Please
What to do to RAM management with thermal control guys??
It have nothing to do with ram dear its totally cpu+gpu+density hack...
Also, this hack comes into action when you overuse your cpu and it starts heating... But at normal usage it only improves your performance at no extra battery cost...
Simple there is no use of having 1.6 ghz if you are limited to use only 0.988 ghz over 38 degrees... I have extended this limit only... As this limit is manadatory for cooling process...
For hard gaming !!! Will be uploading in some minutes...
Thanks for request...
For hard gaming !!! Will be uploading in some minutes...
Thanks for request...
Mod for hard gaming is up... Plz check the op or attachment...
Been playing around with Glitch and ElementalX today and I have 2 questions:
1) On the thermal throttling values, what do the values correspond to?
Does the throttling get more aggressive as you hit each value? If so what are the
"rules" of the throttling? Is the top one the temp where the device force shuts off?
2) What are the nominal values of the L2/Bus Overclock on the ElementalX kernel and
are many people able to run the 1.49/4.80 slot on Glitch? I keep having crashes no matter how low I
set CPU/GPU/Bus OC and am using Elemental until I can figure out why.