[Q] Change Governor Before Flashing - Galaxy Ace S5830 Q&A, Help & Troubleshooting

Is there a possible method to change default governor like "ondemand" to "conservative" before flashing the ROM ??? What I mean is can any user change any ROM value in any file to achieve the same so that ROMS which does not have CPU Control ( Like AOSP ) can boot up with conservative governor ???

biswatmak said:
Is there a possible method to change default governor like "ondemand" to "conservative" before flashing the ROM ??? What I mean is can any user change any ROM value in any file to achieve the same so that ROMS which does not have CPU Control ( Like AOSP ) can boot up with conservative governor ???
Click to expand...
Click to collapse
AFAIR,in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor

side_effect said:
AFAIK, in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
FTFY
Sent from my GT-S5830 using xda premium

side_effect said:
AFAIR,in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
Look I was looking a more user point of view. Suppose I don't wan't to compile, then can I change the ROM's governor traits ????

biswatmak said:
Look I was looking a more user point of view. Suppose I don't wan't to compile, then can I change the ROM's governor traits ????
Click to expand...
Click to collapse
Read carefully.I already gave a method.
Or use an init.d script,copy paste this
and set permissions
echo "governor-name" > /sys/devices/
system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
edit:-.- quote fail

Related

[Q-Solved] I loose modules (OC/UV etc..) on each reboot

Hello guys..
I m loosing the modules on each reboot on an Xperia X10-Mini Pro.
I know this isnt x10mp forum, but the modules am using are modified x8 modules..
Its the OC, OV and smartass Governor in Dev Section.
They DO work properly when i run these commands:
Undervolt:
insmod /system/lib/modules/x8uv.ko
Overclock:
insmod /system/lib/modules/x8oc.ko
Governor:
insmod /system/lib/modules/ax8_smartass.ko
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
I can set the governor, and the max and min frequency in setCPU...
But on each reboot i lose them..
Should i add these 4 lines into hw_config.sh ??
Please help!
Paschalis said:
Hello guys..
I m loosing the modules on each reboot on an Xperia X10-Mini Pro.
I know this isnt x10mp forum, but the modules am using are modified x8 modules..
Its the OC, OV and smartass Governor in Dev Section.
They DO work properly when i run these commands:
Undervolt:
insmod /system/lib/modules/x8uv.ko
Overclock:
insmod /system/lib/modules/x8oc.ko
Governor:
insmod /system/lib/modules/ax8_smartass.ko
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
I can set the governor, and the max and min frequency in setCPU...
But on each reboot i lose them..
Should i add these 4 lines into hw_config.sh ??
Please help!
Click to expand...
Click to collapse
Do you read the instrutions? I think that the answer is yes, you have to add that insmod's to hw_config.sh
but i will give a fast look and i give you the correct answer in just some seconds.
RockitOut11 said:
Do you read the instrutions? I think that the answer is yes, you have to add that insmod's to hw_config.sh
but i will give a fast look and i give you the correct answer in just some seconds.
Click to expand...
Click to collapse
Yes.. i read those threads the instructions..
And search post also..
I didnt saw anything..
only just typing that.. and i guessed in a "su" adb shell..
Anyway, then, i found out the mddi module..
And in it i realised that in the command prompt we type these commands, just to test them.. Because if they dont work, we can get a boot loop..
If they do work, then we add them at top to hw_config.sh
Thanks for replying!
doixanh said:
- Edit /system/etc/hw_config.sh, add one line at the beginning
Code:
insmod /system/lib/modules/x8oc.ko # x8 overclock
doixanh said:
- Edit /system/etc/hw_config.sh, add one line at the beginning
Code:
insmod /system/lib/modules/x8uv.ko # x8 undervolt
Click to expand...
Click to collapse
so, yes, simply insert what you have to your hw_config.sh
( i don't know about the smartass governor, because in the instructions he doesn't say to put in the hw_config but maybe you have to put )
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Paschalis said:
Yes.. i read those threads the instructions..
And search post also..
I didnt saw anything..
only just typing that.. and i guessed in a "su" adb shell..
Anyway, then, i found out the mddi module..
And in it i realised that in the command prompt we type these commands, just to test them.. Because if they dont work, we can get a boot loop..
If they do work, then we add them at top to hw_config.sh
Thanks for replying!
Click to expand...
Click to collapse
oh yes, i didn't know about that because i didn't ready that post xD but yes, that is really true
And you're welcome
Any more question just PM or say it in the forum

[Q] [ZEUS] Selecting I/O and governor in Terminal...

Hello, dear OB users This is my first post here although I was reading this forum since October...
I ran into a little problem here and have no idea what's happening. Tried to "search" and "google", seems like I'm the only one with that trouble...
Currently I'm on Zeus v 3.2 SoD fix. When I try to change I/O or governor in terminal I do:
su (got permissions)
zeus
1 (Governor)
6 (Smartass v2)
This is my terminal paste of the error screen:
Code:
#################################
# Set Governor #
#################################
# #
# 1. InteractiveX #
# 2. LagFree #
# 3. MinMax #
# 4. Ondemand #
# 5. SavagedZen #
# 6. Smartass v2 #
# #
# 0. Return to main menu #
# #
#################################
Currently active: ondemand
#################################
Enter your choice (1-6/0): 6
/system/xbin/zeus: line 84: echo: write error: Invalid argument
#################################
# Changes applied! #
#################################
Auto set on boot? (y/n):
Same goes for I/O but there are 2 errors and different lines...
Since I'm a total noob in Android debugging I hope you guys know why that thing won't work... Thank you in advance
Just guessing, cause you dont provider proper information, but i guess you use zeus v3.2x with the patch. If so, this is only normal, because the stock kernel is being reflashed with the patch. It replaces the custom kernel and nolonger has got neither the possibility to change it, nor does it contain all those different kernels ;-) equals in error ;-) maybe huexxx just forgot to remove the zeus script... but like i said, only guessing.
Sent from my LG-P970 using Tapatalk
I wrote my rom version, what else do you need to know ? Well, your explanation seems good to me, thanks Let's see if someone else can confirm this
Sent from my LG-P970 using xda premium
Woops...must have missed that... sometimes i should simply read more precisely sorry for that. Just like huexx says in his post, build.prop, kernel and 1 more thing is being replaced, in order to find the part of the rom, that causes the sod.
Sent from my LG-P970 using Tapatalk
Now I see Well, I've been experiencing 2 SoDs/day, it's better with the fix. Hopefully the problem will be eradicated soon
Sent from my LG-P970 using xda premium
im currently on smartass and i think my battery drain a little much than before. what is the default governor for zeus 3.2? sorry for noob question
zzynxx said:
im currently on smartass and i think my battery drain a little much than before. what is the default governor for zeus 3.2? sorry for noob question
Click to expand...
Click to collapse
InteractiveX i believe
Sent from my LG-P970 using xda premium
zzynxx said:
im currently on smartass and i think my battery drain a little much than before. what is the default governor for zeus 3.2? sorry for noob question
Click to expand...
Click to collapse
TheGripper said:
InteractiveX i believe
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
don't forget to change the default i/o to deadline... in case if you have change it too

undervolt and overclock performance and save battery

You can save battery and have great performance by undervolting/overclocking cpu and underclocking gpu, the best way i found is a script in rom toolbox.
i run on maverick 4.5 and try this day on 4.0
and this link :
http://rootzwiki.com/topic/14511-opptimizer-projekt-milestone-overclock-for-omap4-devices/
for me my values are:
for cpu
mpu_opps[3] rate=1200000000 opp_id=3 vsel=61 u_volt=1345000
mpu_opps[2] rate=800000000 opp_id=2 vsel=55 u_volt=1200000
mpu_opps[1] rate=600000000 opp_id=1 vsel=43 u_volt=1100000
mpu_opps[0] rate=300000000 opp_id=0 vsel=26 u_volt=1005000
for gpu
gpu_opps[1] rate=307200000 opp_id=1 u_volt=1125000
I started all the values with romtoolbox and create a script at boot
open rom toolbox / open tools / open scripter / then create new script
script name:
overclock
commands:
#su
echo 3 1200000000 1345000 > /proc/overclock/mpu_opps
save, and click on your new script and select "at boot"
re create a new script for the other values, for me a total of 5 script, 4 for the cpu and one for the gpu
The governor is mot_hotplug or boostedassV2.
I tried a lot of voltage values, the more stable are here for me.
I think this run on many rom, not only on maverick
The dev can implement this in rom ?
Can you export your scripts and upload it here?
nasty007 said:
Can you export your scripts and upload it here?
Click to expand...
Click to collapse
I just create a line in rom toolbox, not a zip or flashable script
i know, but you have option to export or import script, you can save it to sd
Sent from my DROID3 using Tapatalk 2
nasty007 said:
i know, but you have option to export or import script, you can save it to sd
here my backup of script
this note zip just rename without zip extension
Click to expand...
Click to collapse
Thank you, i imported scripts, set it at boot, rebooted but its not working for me.
In set cpu my max freq is still 1000.
im on ICS Gummy rom, i will try on another ROM
nasty007 said:
Thank you, i imported scripts, set it at boot, rebooted but its not working for me.
In set cpu my max freq is still 1000.
Try in terminal emulator (on rom toolbox or other)
To verify your value or your script after boot
#su
cat /proc/overclock/mpu_opps
To validate one value (for example)
#su
echo 3 1100000000 1360000 > /proc/overclock/mpu_opps
Then press enter
Then re verify (cat /proc/overclock/mpu_opps)
Click to expand...
Click to collapse
Does it work on stock?
Sent from my XT860 using xda app-developers app
AragornPE said:
Does it work on stock?
Sent from my XT860 using xda app-developers app
Click to expand...
Click to collapse
Tested on maverick 4 and 4.5, on liberty rom, i think yes it work on stock rom

How to Change governor and scheduler permanently?

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.

[Help] Creating different init.d scripts

I want to know how to create different types of init.d scripts
Right now I need a LMK init.d script, so that I won't lose values on each reboot while using CM10.2
Shiningb said:
I want to know how to create different types of init.d scripts
Right now I need a LMK init.d script, so that I won't lose values on each reboot while using CM10.2
Click to expand...
Click to collapse
I think the best way it to search XDA. For example, I have no idea how to do it. :angel:
@Shiningb
Code:
echo '2048,3584,20736,24064,27136,30464' > /sys/module/lowmemorykiller/parameters/minfree
You can also use supercharger script to change your minfree values.
EDIT : Sorry quoted the wrong person.
So I just modify those values to:
4mb 8mb 16mb 32mb 48mb and 64mb
Which is the moderate values of OMNI, right??
I always modify my LMK values with Super Manager, these values work with cm only, using it on stock will result in super laggy performance...
If i remember right, is 48mb for CM and Omni.
Powered by CM10.2

Categories

Resources