How to Change governor and scheduler permanently? - RAZR i Q&A, Help & Troubleshooting

is there an app or way someone can explain how to set my governor and shceduler to a specific one instead of having to always apply on boot from an app?

ZeroProxy said:
is there an app or way someone can explain how to set my governor and shceduler to a specific one instead of having to always apply on boot from an app?
Click to expand...
Click to collapse
look in armans mod thread on the dev. forum.
there you can get a init.d script which does it for you.

pangyaaaaaa said:
look in armans mod thread on the dev. forum.
there you can get a init.d script which does it for you.
Click to expand...
Click to collapse
U can use some of CPU administrators from google store as SetCPU, AnTuTu CPU Master etc. Don't use nofrills CPU for Omar Avelar's ROM

Got it
I found a way for ppl who dont know, or people that dont want to have set cpu or apps like those installed, you can go to the init.d folder using root explorer or any app that lets you browse root and edit the 91GovSched file and change the governor there also the scheduler.

Related

[MOD] IncrediControl - Easy GUI undervolting!

Please read this post through thoroughly before downloading.
This app allows you to control your CPU voltages with an easy to use interface. You can increase or decrease voltages (undervolt or overvolt) for all frequencies or fine tune voltages for each individual frequency.
! HTC DEVICES, currently only single core devices are supported !
! ROOT is Required !
! Kernel that supports HAVS or SVS voltage adjustment REQUIRED !
Get it over at http://www.incredikernel.com
IncrediControl is now also available in the market:
IncrediControl
IncrediControl - Ad Free
Additionally, all donators are eligible to receive the Ad Free version. It doesn't matter how much or how little you donate or have donated. If you don't want to purchase the app from the market, you may donate using the button on this page. Please register on the site first and include your username in the comments box.
All previous donators, please register on the site if you have not done so and contact me with your username!
NOTE: The settings in the general tab are only functional in kernels that have implemented the simple sysfs interfaces for usb fast charging and audio boost. If you toggle them, its not going to break anything, but they won't work and the app may crash. If you would like your kernel dev to implement the interfaces, please direct them to these two commits:
https://github.com/Chad0989/android_kernel_common/commit/a7c21fa0391c225900f93960362535179c0cecc9
https://github.com/Chad0989/android_kernel_common/commit/41dc138bae23dc7582de72a4d9895aaa8e1f8b2d
NOTE2: It is a requirement of the HAVS adjustment that the kernel you are using has the HAVS sysfs interface implemented. If it does not, it will not work.
NOTE3: Before using, please delete any boot scripts you may have in /etc/init.d that toggle any of the settings this app controls.
Get it at http://www.incredikernel.com
Restore script - use this if you went too low and find yourself in a boot loop. Flash through recovery:
http://www.incredikernel.com/?p=229
8/1/2011:
IncrediControl v1.0!
This app allows you to control your CPU voltages with an easy to use interface. You can increase or decrease voltages (undervolt or overvolt) for all frequencies or fine tune voltages for each individual frequency.
! HTC DEVICES, currently only single core devices are supported !
! ROOT is Required !
! Kernel that supports HAVS or SVS voltage adjustment REQUIRED !
Get it over at http://www.incredikernel.com
IncrediControl is now also available in the market:
IncrediControl
IncrediControl - Ad Free
Additionally, all donators are eligible to receive the Ad Free version. It doesn't matter how much or how little you donate or have donated. If you don't want to purchase the app from the market, you may donate using the button on this page. Please register on the site first and include your username in the comments box.
All previous donators, please register on the site if you have not done so and contact me with your username!
thanks, but it cannot change the voltage in VU ROM.
zjmdp said:
thanks, but it cannot change the voltage in VU ROM.
Click to expand...
Click to collapse
What kernel are you running?
chad0989 said:
What kernel are you running?
Click to expand...
Click to collapse
Rcmix vivo 2.2 and original kernel of VU are both not supported
zjmdp said:
Rcmix vivo 2.2 and original kernel of VU are both not supported
Click to expand...
Click to collapse
I recommend requesting to the dev that he implement the sysfs interface for SVS adjustment. I believe Tiamat 1.0.4 is the only inc S kernel that currently supports it. Your kernel dev should be able to pull the commit from the tiamat site.
zjmdp said:
Rcmix vivo 2.2 and original kernel of VU are both not supported
Click to expand...
Click to collapse
RCMIX Vivo kernel for Inc S is supported. I tested it and klquicksall confirmed that RCMIX is a single core SVS kernel.
Master Darko said:
RCMIX Vivo kernel for Inc S is supported. I tested it and klquicksall confirmed that RCMIX is a single core SVS kernel.
Click to expand...
Click to collapse
I flashed RCMIX kernel on VU rom, but there is no interface to change the voltage. Only see General tab with audio boost and usb fast charge
zjmdp said:
I flashed RCMIX kernel on VU rom, but there is no interface to change the voltage. Only see General tab with audio boost and usb fast charge
Click to expand...
Click to collapse
Redownload the package. There was an issue with the one on the site, it somehow got crossed with an old version. It should be fixed on the site now.
Or you can grab it from the market.
Is it same with vipermod but with a GUI?
zjmdp said:
I flashed RCMIX kernel on VU rom, but there is no interface to change the voltage. Only see General tab with audio boost and usb fast charge
Click to expand...
Click to collapse
I probabaly did not give enough details. RCMIX kernel 2.2 with ARHD 1.1.3 works. Interface and all is there.
geeti said:
Is it same with vipermod but with a GUI?
Click to expand...
Click to collapse
Yes it is like vipermod with an easier to use interface.
Master Darko said:
Yes it is like vipermod with an easier to use interface.
Click to expand...
Click to collapse
It's cool. One quick question, I see in vipermod it relies on init.d file to have it effective after reboot. The advantage of this is if I set the voltage too low to work, I can pull the battery and reboot, and the voltage values will be as last time because it's not saved.
I saw you attached a restore zip file, so wondering if I set voltage too low to work, do I have to restore it by recovery?
geeti said:
It's cool. One quick question, I see in vipermod it relies on init.d file to have it effective after reboot. The advantage of this is if I set the voltage too low to work, I can pull the battery and reboot, and the voltage values will be as last time because it's not saved.
I saw you attached a restore zip file, so wondering if I set voltage too low to work, I have to restore it by recovery?
Click to expand...
Click to collapse
No, the only time you can have an issue is if you set the voltage too low AND check set on boot before you hit apply. This is why set on boot is always unchecked when you start the app (even if there are current boot settings, which will be shown by the text box by restore defaults). So you can adjust the voltages all you want, click apply and they will be set in the current session only. Once you decide you want to set those voltages on boot, you check the set on boot box, and click apply.
The restore script is for the rare occasion that somebody sets their voltages way too low and checks set on boot before hitting apply.
chad0989 said:
No, the only time you can have an issue is if you set the voltage too low AND check set on boot before you hit apply. This is why set on boot is always unchecked when you start the app (even if there are current boot settings, which will be shown by the text box by restore defaults). So you can adjust the voltages all you want, click apply and they will be set in the current session only. Once you decide you want to set those voltages on boot, you check the set on boot box, and click apply.
The restore script is for the rare occasion that somebody sets their voltages way too low and checks set on boot before hitting apply.
Click to expand...
Click to collapse
Thanks man.
chad0989 said:
No, the only time you can have an issue is if you set the voltage too low AND check set on boot before you hit apply. This is why set on boot is always unchecked when you start the app (even if there are current boot settings, which will be shown by the text box by restore defaults). So you can adjust the voltages all you want, click apply and they will be set in the current session only. Once you decide you want to set those voltages on boot, you check the set on boot box, and click apply.
The restore script is for the rare occasion that somebody sets their voltages way too low and checks set on boot before hitting apply.
Click to expand...
Click to collapse
Does the "set on boot" generate a boot script in init.d?
geeti said:
Does the "set on boot" generate a boot script in init.d?
Click to expand...
Click to collapse
No, currently it generates a script in /etc (called either /etc/havsvdd or /etc/svsvdd) that is run by the incredicontrol service at boot. This is part of the plan to migrate away from boot scripts and rely on database storage of the frequencies/boot settings. Database storage will make it easier for one to retain their settings when they back up/restore from titanium backup or flash a rom update (especially important with roms that have nightlies that people flash all the time, i.e. cm7) since everything will be stored in the app data instead of a system folder.
chad0989 said:
Redownload the package. There was an issue with the one on the site, it somehow got crossed with an old version. It should be fixed on the site now.
Or you can grab it from the market.
Click to expand...
Click to collapse
Thanks. It works!
Master Darko said:
I probabaly did not give enough details. RCMIX kernel 2.2 with ARHD 1.1.3 works. Interface and all is there.
Click to expand...
Click to collapse
New version does work!
IncrediControl v1.3
Major changes include:
Ad Free has now been turned into a key that removes the ads from the free version. This allows donors who have downloaded the ad free version from the site to update through the market.
HAVS voltage checking. Minimum voltages can no longer be set higher than maximum voltages.
Boot voltages are now stored in the application’s data directory. Boot settings will now persist if you update your ROM or restore the application and data from a backup.

[RAM Script] Tweaking Juwe11's RAM script for O2X, good for all ROM support init.d

======
Preface
======
The script is actually Base on Juwe11's RAM script
which you can found here... http://forum.xda-developers.com/showthread.php?t=1111145
==========
Main Content
==========
The adj value of his script is a bit too tight for Our O2X...
so the Launcher is killed quite often if many apps opened in the background.
Here's the adj value changes I made, originally, Juwe11's values are..
"0,1,2,4,6,15" and I change it to, "0,1,2,7,8,9"
the forth value is for HIDDEN_APP_MIN_ADJ, which including the Launcher (I'm using LauncherPro) belongs to this category when you open some foreground application.
the default android value for this is also 7, and I find the OOM value for Launcher is 6 usually... so Juwe11's "4" will lead to our Launcher being Killed, keep it at 7, never tried to have mine killed yet.
The last 2 vaule just make sure the last category EMPTY_APP_ADJ is kill earlier than the previous..
About the minfree vaule...
I change it to "1536,3072,4096,7680,8960,10240" which actually the same values of "Moderate preset" of autokiller
which is enough to ensure most RAM being use before killing for faster task switching...
=====
Credit
=====
!! Credit goes to Juwe11 for his mighty RAM script~ !!
Backup your RAMscript and remove it to somewhere before install this...
install via CWM, it will put the script into your /etc/inti.d/ that's it, boot and try
i just installed it,
i will let u know what are the results,
u are correct, the original script kills the launcher and apps specially XDA
will try this configuration on auto killer memory seems good m8 to set it to moderate
shpapy said:
i just installed it,
i will let u know what are the results,
u are correct, the original script kills the launcher and apps specially XDA
Click to expand...
Click to collapse
I'm not sure if other Launcher would have a different OOM value~
I have Autokiller memory optimizer which I paid before...so I can view OOM value easily..
But with this Script... I guess really no task killer needed for our 2X already.
antec123 said:
will try this configuration on auto killer memory seems good m8 to set it to moderate
Click to expand...
Click to collapse
so, just edit the minfree value according to the values inside AutoKiller if you find some other setting suits you more
but about the adj value... I guess that part is already good enough
now I find my phone already got around 60-90 free RAM at any time...
Multiple games running at the background while web browsing...
and the Browser usually got a higher OOM, which tends to kill earlier than Games..
it is reasonable.. as the WEB you can load again with the same URL..
while the game got killed, you lost the state... android is doing it's work nicely I guess.
best memory managment script i have tryed is v6supercharger http://forum.xda-developers.com/showthread.php?t=991276
I think its the best of the best.
orlox said:
best memory managment script i have tryed is v6supercharger http://forum.xda-developers.com/showthread.php?t=991276
I think its the best of the best.
Click to expand...
Click to collapse
I tried both V6 and Juwe11's before...
and I manage to be patient enough to follow step by steps...
for installing so many things... and it just put a script in init.d at the end...
And I found it do not contain adj value in it, so I come back to Juwe11's
but anyway, this is your choice...
thanks for that script
just a quick question
would this script also work on a sgs2, running oxygen aosp stock rom?
pa.pn2 said:
thanks for that script
just a quick question
would this script also work on a sgs2, running oxygen aosp stock rom?
Click to expand...
Click to collapse
same as Original Juwe11's version.
it was suppose to work on any ROM which support init.d
but the values may need some tweaking accordingly.
squide said:
I'm not sure if other Launcher would have a different OOM value~
I have Autokiller memory optimizer which I paid before...so I can view OOM value easily..
But with this Script... I guess really no task killer needed for our 2X already.
Click to expand...
Click to collapse
Sorry to let you down. But the results are the same......
Sent from my LG-P990 using XDA App
squide said:
I tried both V6 and Juwe11's before...
and I manage to be patient enough to follow step by steps...
for installing so many things... and it just put a script in init.d at the end...
And I found it do not contain adj value in it, so I come back to Juwe11's
but anyway, this is your choice...
Click to expand...
Click to collapse
adj values are in /data/SuperChargerAdj while minfree values are in /data/SuperChargerMinfree.
it's just a script in init.d at the end, you only need to follow it step by step...
squide said:
so, just edit the minfree value according to the values inside AutoKiller if you find some other setting suits you more
but about the adj value... I guess that part is already good enough
now I find my phone already got around 60-90 free RAM at any time...
Multiple games running at the background while web browsing...
and the Browser usually got a higher OOM, which tends to kill earlier than Games..
it is reasonable.. as the WEB you can load again with the same URL..
while the game got killed, you lost the state... android is doing it's work nicely I guess.
Click to expand...
Click to collapse
i set the preset to moderate and get about 126-128mb on free ram pretty impressive and the stock browser don't get close so quickly nice! i use v10e ESA and neoblaze kernel
Works on CM7?
_Vegas said:
Works on CM7?
Click to expand...
Click to collapse
it should work on all ROM supporting init.d
in case you don't like it, go to /etc/init.d to remove the script and reboot.
it wont modify your file system..
it just override some system value on boot.
if you removes the script.. your phone would back to the state before you install this.
so, just try see if u like, if not, delete it, reboot, that's it.
Works really nicely on CM7 nightly.
Sent from my Optimus 2X
Bit of a Dumb question but my phone still has the Stock rom and doesn't have the init.d Folder
if I created /system/etc/init.d and copied the script into that would this work?
waynefox said:
Bit of a Dumb question but my phone still has the Stock rom and doesn't have the init.d Folder
if I created /system/etc/init.d and copied the script into that would this work?
Click to expand...
Click to collapse
Sorry, no. You need a custom rom of some sort to get init.d support.
TrymHansen said:
Sorry, no. You need a custom rom of some sort to get init.d support.
Click to expand...
Click to collapse
You need a Custom Kernel supporting init.d to be more accurate.
and NeoBlaze is a good one to try with.
if you really need to keep your stock ROM..
First of all you still need to root your phone
Install ROM manager from market
flash the Clockworkmod via ROM manager
install NeoBlaze Kernel, then you're ready.
if warranty is your concern, take a look to the Nvflash thread..
O2X is ALMOST unbrickable, almost.
squide said:
You need a Custom Kernel supporting init.d to be more accurate.
and NeoBlaze is a good one to try with.
if you really need to keep your stock ROM..
First of all you still need to root your phone
Install ROM manager from market
flash the Clockworkmod via ROM manager
install NeoBlaze Kernel, then you're ready.
Click to expand...
Click to collapse
I'm pretty sure that won't work. You need ROM-support as well. (A Ramdisk script which starts the init.d. thing to be even more accurate.) Feel free to prove me wrong.
TrymHansen said:
I'm pretty sure that won't work. You need ROM-support as well. (A Ramdisk script which starts the init.d. thing to be even more accurate.) Feel free to prove me wrong.
Click to expand...
Click to collapse
Ramdisk is a part of the kernel, so if you bung a kernel that supports init.d on (any) rom it'll run what's in there assuming it's eXecutable.
You can do it on the stock rom even, as long as you have a init.d kernel (and create the entries in ../etc/init.d/).
Although I can't "prove" this to you at the moment...

set swappiness in GDX v25

hey guys,
i know it may sound like a noob question but how can i set swappiness?
i flashed 'x8EnableSwapPartition', tryed to change swappiness in this script, but still 20..
then i tryed to set swappiness via hw_config.sh: still 20..
i feel like i'm going crazy
You're on custom kernel? If you are, there's a guide here. Try searching for that if you haven't.
Please give credit where credit is due..
If you can't even search how can I help you??
sorry, but there is no working guide...
its not the first time i used swap, but it always worked... well, actually it works but just about 14-18 MB due to 20 swappiness
and yes, of course i'm running a custom kernel
Install SetXperia from the PlayStore.
With it you can control cpu, swap and loads of really great extras.. You can even set a swap file @ boot and yes, swappiness..
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
yeah... it worked...
after reboot: 'can't get root access'... but superuser allows root...
anyone an idea to set it via script at boot?
Push SetXperia into system apps and set permissions and owner same as others..
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
sysctl -w vm.swappiness=x
where x is the value in which 0<x<100
and where do i have to add this line? hw_config ?
laufersteppenwolf said:
and where do i have to add this line? hw_config ?
Click to expand...
Click to collapse
create a new init.d script & name it to 15swappiness or anyname you want as long as there is number in front
Example:
#!/system/bin/sh
# Set swappiness to 40
sysctl -w vm.swappiness=40

The Gaming of our LG Optimus 4X HD

As we all know the gaming at Our Phone isnt really good some report it's Slow beacause theres only 1 core online. But there is an solution for this!
Thread with the Stuff for the terminal Is also here: ( http://forum.xda-developers.com/showthread.php?t=2253921 ) But I was really lazy of doping this commands so, i were Going on the internet and found something to download! I'll put the file into the Attachments! How to install this.....
Requirements;
Root.
A Root file explorer to get into your system files...
A brain to reed this careful.
What to Do;
Extract the Zip Thats in the attachmnts.
Get it onto your phone. (internal External doesnt matter I suggest Internal)
Go to your file explorer And past the file in: System\Etc\Init.d\
And set Permissions!
Reboot.
Enjoy Gaming!
I didn't try it . But it won't work without adding the line :-
Code:
#!/system/bin/sh
In the top of that script . Which tells the system to sh this test .
And you forot to mention fixin permission.
Also this needs init.d kernel support or busybox run-parts in order to run this script every reboot .
Correct me if I'm wrong
Thanks for sharing .
Sent from my LG-P880
$Parker said:
I didn't try it . But it won't work without adding the line :-
Code:
#!/system/bin/sh
In the top of that script . Which tells the system to sh this test .
And you forot to mention fixin permission.
Also this needs init.d kernel support or busybox run-parts in order to run this script every reboot .
Correct me if I'm wrong
Thanks for sharing .
Sent from my LG-P880
Click to expand...
Click to collapse
SManager will run the script when klick "is script"...
Fladder72 said:
SManager will run the script when klick "is script"...
Click to expand...
Click to collapse
When you use smanager it's an app that is designed to run scripts .
But if it was in the init.d folder you must add that line to tell the kernel that this test is a script . And the kernel will use the sh binary to run it .
Sent from my LG-P880
@deownagee
Thank you for sharing my Script! I don't know why you make another Thread for that!
And if you quote instructions, please quote the whole Text! You forgot the important Part! You have to set Permissions!
@$Parker
This Script works also without this first line! In the init.d Folder it is not needed!
Holzi001 said:
@deownagee
Thank you for sharing my Script! I don't know why you make another Thread for that!
And if you quote instructions, please quote the whole Text! You forgot the important Part! You have to set Permissions!
@$Parker
This Script works also without this first line! In the init.d Folder it is not needed!
Click to expand...
Click to collapse
Thank you for letting me know even. And I've made this one beacause your Script wasn't clear for me so i couldn't understand you know?
just for making sure, you guys do know what this script does?
it makes the GPU to run always (!!!) on max speed. this will reduce the battery life extremely.
this script should not be ran at every boot. you better only run it when you want to play games (and maybe reboot afterwards, or write a "undo" script)
@laufersteppenwolf
I think the Battery Drain is not the main Problem. It isn't higher than without that Tweak.
But i have one Question!
Is it possible for you to implement this Tweak in your kernel?
So when you selected the Gaming Governor, that this tweak is also active. And if you turn off the Gaming Governor again, the tweak is terminated.
I don't know if it's possible, so i ask you.
can i use it on rooted v20B locked bootlader? there is no init.d folder in system\etc\, should we create that folder manually?
what is the permission? thanks
Holzi001 said:
@laufersteppenwolf
I think the Battery Drain is not the main Problem. It isn't higher than without that Tweak.
But i have one Question!
Is it possible for you to implement this Tweak in your kernel?
So when you selected the Gaming Governor, that this tweak is also active. And if you turn off the Gaming Governor again, the tweak is terminated.
I don't know if it's possible, so i ask you.
Click to expand...
Click to collapse
"better battery" could only be caused by the first command (unlink). the others only increase the batter usage.
this tweak is (partly (the unlink)) implemented in my rom. but i'm working on unlinking in the kernel of course.
about the idea about gaming: yeah i do have something in mind, but it's gonna be a bit different just wait and see right now i'm working on OC'ing the GPU, and then we can do such changes.
Guys is it the same as http://www.android-experience.de/board/index.php?page=Thread&threadID=47 ? I dont speak german and google translate is weird. What about this, anybody tried ?
Post #5 oki its the same.
Stanley- said:
Guys is it the same as http://www.android-experience.de/board/index.php?page=Thread&threadID=47 ? I dont speak german and google translate is weird. What about this, anybody tried ?
Post #5 oki its the same.
Click to expand...
Click to collapse
I've translated and it's same lol (I'm Dutch and it's like German.)
But anyway i cant set premission via root explorer or antything else and cant copy to /system/ folder... I have rooted phone and checked via root checker. Love this phone problems with everything, maybe reflash will help but i dont have time for that.
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
gabrielgon said:
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
Click to expand...
Click to collapse
It is the same!
gabrielgon said:
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
Click to expand...
Click to collapse
it's actually taken from there
Ok Guys! The Werewolf alpha2 Kernel from laufersteppenwolf is much better than this Tweak! For all who use CM 10.1, flash this Kernel!
Don't forget to delete this Script if you flash the Kernel!
[email protected] this sh1t get hot before you try any game...
One true: LG + nVidia sucks. That's all.
Winudert said:
One true: LG + nVidia sucks. That's all.
Click to expand...
Click to collapse
Well that wasnt OT was it?
Atleast my nVidia graphics card + LG monitor = GREAT
And i love this phone
Sent from my LG-P880 using xda app-developers app

[Q] Zencefil 17v

I have a problem with Zencefil V17 on stock kernel. I can't overclock my CPU i tried with no frill's CPU and Antutu CPU master but maximum is only the stock 600 Mhz.
Pls help me.
DeathX8 said:
I have a problem with Zencefil V17 on stock kernel. I can't overclock my CPU i tried with no frill's CPU and Antutu CPU master but maximum is only the stock 600 Mhz.
Pls help me.
Click to expand...
Click to collapse
Does it have the overclock module and does it load properly? As far as I know if you have stock kernel the only way to overclock is via module.
Check system/lib/modules if you have x8oc.ko. I suppose that's the file you're going to use to overclock the phone. If you don't then download it and put it there.
If you have it, open Terminal Emulator and write:
su
dmesg | grep x8oc
You should receive the output that it loaded successfully. If you get no output, the module isn't running.
If you have it and it isn't running, then open Terminal Emulator and write:
su
insmod system/lib/modules/x8oc.ko
This should run the module and allow you to switch frequencies. Start testing the frequencies with whatever CPU app you use.
When you're satisfied with the performance, add the insmod command to hw_config in system/etc and echo the clock value that suits you. You can find more information about this in the x8oc thread. Don't worry about reboots, make a backup before trying, and make sure you don't edit the hw_config file until you're sure the clock is stable.
Thank you it helped. I can now overclock
Hi where pattern settings in the framework.i want change pattern
Sent from my E15i using Tapatalk 2
I think the question above is to be asked in the ROM's specific thread. There are several guys in that thread that are more than willing to help you.

Categories

Resources