yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] oggay:
Thx for ur answer.

I'm xperia ray user. I use nofrill for set govern and i/o. I still learn how to optimize my device. :)

must i set awake_ideal_freq and sleep_wakeup_freq to 1000000? default is 768000. But i think it will drain my battery, right?

i dont understand about max_cpu_load and min_cpu_load. :(

Update: I'm not see there is IV) GUIDE TO INIT.D SCRIPTS LOL Sorry
[Galaxy S II General] JCSantana:
Very Very helpful man,

Thanks a million
[Galaxy S II General] celsowebmax:
Hi...

Because the extweaks plus no fix the changes battery, default and performance? This only in siyah 4.1 above.

When I change the settings it does not change anything.

Anybody reply?
[Galaxy S II General] Many40:
When you change particular settings or profiles? Settings can be applied correctly if you change anything but profiles (battery and performance) were removed by GM from beta versions up to 4.1rc1. I think they will be implemented back in the final release.
[Galaxy S II General] celsowebmax:
When I change in profiles. Not change anything.

Okay, I go waiting the final release.

Thank for your explain!
[Galaxy S II General] enigmatyq:
that mean.s the settings i type don.t load after reboot?

i check to not have any space on start of line.s and end of line.s . i already use extweaks and voltage control.
[Galaxy S II General] droidphile:
While it sounds like a great idea, the practicality part is hmm..let's say impossible! (most probably)

You can achieve what you described using a tasker profile. But governor can not sense what app is running to adjust frequencies accordingly. It could sense use of GPU to limit/lock to some frequencies (ex: intellidemand), but all that governor does is tell CPU driver what frequency the CPU should be at a given time. It uses CPU driver as the mediator between the h/w. There's no app stuffs here since apps are in Rom space, not in kernel space.
[Galaxy S II General] Pyrolectic13:
Thanks for the work man. It REALLY is appreciated.

You guys deserve lots of credit for the great work you do.

Thanks again!
[Galaxy S II General] rivelta:
whoaa you so great , how u learn this ? can u teach me ? :)

sent from my security handy talkie . talk free no pay
[Galaxy S II General] crispychips99:
Most useful post I have read this year!

Good job Droidphile!
[Galaxy S II General] CamoGeko:
He learned by reading and understanding. ;)
[Galaxy S II General] grzesdroid:
governor who will be better? lulzactiveq? maybe pegasusq? Can anyone provide a good setting for the gov?

Wysyłane z mojego GT-I9100 za pomocą Tapatalk 2
[Galaxy S II General] androidkid311:
Personally I use pegasausq with noop. A good balance for me but more aimed at battery. Also undervolted :). All thanks to this thread only thread I have subbed to.
[Galaxy S II General] Many40:
The question is constructed not so well. Most of governors can be "good" or "bad" depending on how you tweak them. Personnaly I prefer "2-core aware" governors, particularly pegasusq, which works stable for me and I recommend it to you. However before you use it read great post created by droidphille HERE. There a lot of usefull information about all single parameters and examples how to use them. I'm using following pegasusq settings:

up threshold: 80
sampling down factor: 2
down differential: 5
freq.step: 40
cpu up rate: 10
cpu down rate: 20
hotplug freq 1 1: 400000
hotplug freq 2 0: 300000
hotplug rq 1 1: 350
hotplug rq 2 0: 200
up threshold at min freq: 70
freq for responsiveness: 100000
ignore nice loads: 0
io is busy: 1
max cpu lock: 0
hotplug lock: 0
dvfs debug: 0

These are droidphille's settings with one exception: disabled freq_for_responsiveness by setting the value to 100MHz. (just I would like governor to scale CPU to stay more often at lower frequencies).

Of course you don't have to copy this, just read, test and find settings best for you.

There also could be one interesting governor worth to check - lulzactiveq. It's a new governor developed by robertobsc, but due to some instabilities (dev is gonna fix some bugs, make improvements, alterations etc) I would recommend to wait for a new version in a new release of Siyah kernel.

Regards
[Galaxy S II General] KenStar7:
Excellent! Very Much Appreciated. :good:

Evo 4G

CyanogenMod 7.2.0 ( Black Ice & Strike )

Mason Kernel

Smelkus Recovery

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Love Never Hurts Anyone, Only Certain People Do ~ Keep Love Alive.

Jesus Christ Is Lord & Savior ~ Repentance Is Due
[Galaxy S II General] rmlsalta:
Brighten up my day for this one..hahahaha..many thanks..
[Galaxy S II General] karthikcs:
Lot of insight, couldn't read everything together. Marked for

reading later

Excellent work
[Galaxy S II General] v6ser:
Really useful information and tips.

Coongrats mate :)
[Galaxy S II General] jphilippon:
Awesome write up. Posting to return later.
[Galaxy S II General] ctragas:
Simply, perfect work! All-in-one overclocking manual.Thanks !
[Galaxy S II General] sohamssd:
Thanks a bunch...EXTREMELY useful :)
[Galaxy S II General] themetatron:
Great resource, any info on FIOPS scheduler?
[Galaxy S II General] Emir5kurt:
Perfect explanations. I was looking for a guide like this. Thank you for your time.
[Galaxy S II General] Unalive3:
Just wanna say thanks droidphile. I've been using this to assist me with ktoonsez kernel for the GS3.
[Galaxy S II General] hadidjapri:
thanks for your in-depth guide dude . i wanna ask a question, i'm using smartassv2 governor ,but when i edited the min/max CPU load and then push it to my phone , after reset the file get reset and my edited file was replaced by the default setting . any idea?
[Galaxy S II General] Many40:
Did you edit files in /sys/devices/system/cpu/cpufreq location? If yes, this is normal. The settings are reset to defaults after every boot by the kernel. If you would like to keep your settings use either init.d script or an app which can tweak governor's parameters like SetCPU.

Regards
[Galaxy S II General] hadidjapri:
does it mean that kernel setting is only possible to change with 3rd party application?
[Galaxy S II General] Many40:
Not only, as I wrote. You can do that also by init.d script.
[Galaxy S II General] Adam Hui:
What a talent references... thank u Bangalore..:)
[Galaxy S II General] hadidjapri:
i have tried init.d but it's not working :confused:
[Galaxy S II General] droidphile:
Bangalore is the place I live, it's not my nick name or real name!

It should work. Make sure there are no syntax errors like unwanted spaces. Run on adb first to make sure it's working.

Device files in /sys/devices/system/.... and such are created by kernel during boot time. So if you create/replace/change it's values it will be reset on next boot. Like many40 said, use an app such as SetCpu (v noob friendly for tweaking governors) or use an init.d script.
[Galaxy S II General] Deadly:
I don't know whether my problem is related to here or not. May be not I think.. but u guys seem to know a lot.. and I felt u can help me.. any help would be appreciated.. thanks in advance..

i compiled a kernel using samsung source for galaxy y duos.. it was working before.. I modified CPU freq and voltage to add more freq.. but my problem is now after flashing the kernel.. it is stuck at kernel logo...

adb says.. - exec '/system/bin/sh' failed: No such file or directory (2) -

and in stock recovery and cwm.. it says cant mount /data /system /cache...

except sdcard it can't mount anything.. I didn't modify ramdisk at all..

I googled but no solutions I found..

what could be the reason?

Sent from my GT-S6102
[Galaxy S II General] Adam Hui:
I knew mate..:D and I've completed my basic classes & Shahrukh Khan's latest DVD.. lol

That's a kind of friendship yel from Jakarta..;)
[Galaxy S II General] droidphile:
Must be permission issues. Check again. sh shell will fail since /system can not be mounted. Check your ramfs. Especially the init files in ramfs.
[Galaxy S II General] Deadly:
ok.. i will.. but its just that i didnt modify ramdisk... the same ramdisk.gz file was working fine for my previous versions of kernel.. i modified files under cpufreq folder and mmc folder inside drivers.. anyway i will check once.. thanks..
[Galaxy S II General] R@J$3K#@R:
Very useful info

Really a great thread

Subscribed
[Galaxy S II General] trveller72:
Thank you. One of the few really useful threads for sgs2.
[Galaxy S II General] Nibblex:
Thanks for the info, great job!

Enviado desde Tapatalk

Sony Xperia Active ST17i

Rom Smultronic V3.5-ICS 4.0.4

Rage Kernel
[Galaxy S II General] steddora:
This thread = one of the best

This has been a message from the Blu Kuban broadcast system!
[Galaxy S II General] Sforever31:
plz help me

can I use this on my micromax a45
[Galaxy S II General] Deadly:
Thanks.. its just my .config file... i had modified this line..

It was causing it.. Thanks.. now i have a working kernel again..

Sorry for posting here.. this issue is related to 6102 phone.. so i was just hoping sir droidphile can shed some light on it..

Issue:

I need a help if possible.. if its not related to here... please ignore this post and i am sorry..

I have this issue..

sometimes when the screen goes off/on the brightness jumps to Max from min/any other value..

also once this happens.. if you try to change brightness through slider provided in settings for brightness.. it goes down completely to actual brightness as soon as you slide the bar to next position.. and it jumps back up if you bring it back to its previous place in slider bar..

So its more like its modifying the actual values for brightness for %.. What I'm trying to say is.. if it goes to 100% when it was for ex. At 15%.. then it will go to 16% when you select 16%.. and if you slide it back to 15% it will go back to 100% instead of 15%.. or any other value..

It only happens randomly like 3/10-15 tries.. and it goes back to mormal brightness randomly too like 3/10-15 tries of screen off/on..

the dmesg from adb.. Paste bin

the logcat from adb.. http://www.mediafire.com/?z6wf8v2dbdk76rq

specific file has only bug operations.. i have done this action in log. brightness sliding thing in settings-->brightness which i mentioned before..

video of the bug.. Video link 2 videos are there.. one of stock lock screen and other with holo locker.. the number in file represents the brightness maxed out second in the video...

if anyone has seen this kind of problem/bug and has suggestion.. please help.. i would be really grateful to you.. thanks in advance..
[Galaxy S II General] robrooter:
fix stuttering graphics in order and chaos

Hello, firstly thanks for the great post here. Loads of info on things I. Have searched. Tiresome for. Now my question is I see where it is said to disable static bus freq and alter actual numbers for better preformance in demanding games. I am getting a lot of stuttering and jumping in order and chaos and wondered it the fix mentioned is easy to do...and how? I am no noon to rooting or rom into but scripting....yea royalty noon. Don't wannt make my phone a brick here. Thanks for the help in advance.
[Galaxy S II General] droidphile:
It's not disabling static bus frequency, but enabling or forcing static bus frequency. Stock behavior is dynamic bus freq scaling where the system dynamically determines at what speed the bus operates at a certain CPU frequency.

Like I said in the OP,

echo "enabled" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static

echo "0 0 0 1 1 1 2 2" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static

No of bus freqs should match no of cpu steps in the kernel. If there are 14 CPU freq steps, echo 14 bus freqs. (0 is 400mhz, 1:266, 2: 133). From R to L, bus freqs for Highest to Lowest CPU freqs are to be echoed.

And for a better gaming experience, Do not undervolt GPU, use stock voltages. OCing is OK, but stay away from GPU UV if you're a gamer.
[Galaxy S II General] tri.thx:
Thanks so much. I learnt alot from this thread.
[Galaxy S II General] drmdsadiq:
Thanks for the very informative post!!
[Galaxy S II General] Bishopandme:
+1...THX:good:
[Galaxy S II General] KartzXDA:
Really awesome thread. Simply I love this thread. Great Information.
[Galaxy S II General] -viperboy-:
Great work, it's a great reference for me! One suggestion, maybe a write-up on Wheatley governor? I've been using it alot and it is really fantastic, IMO.

http://xdaforums.com/showpost.php?p=21638852&postcount=56

Thanks again for bringing all of this info together!
[Galaxy S II General] {SBR}_L3GION:
Here is another great resource for an explanation of governors.

http://www.alliance-rom.com/community/wiki/governors-explained/
[Galaxy S II General] droidphile:
I did not cover wheatley as it has no significance on Exynos platform on galaxy s2. (or even GS3 which is my current device)

Don't you see similarities in briefing of some governors? Whom do you think was inspired from the other article? That author or me :)
[Galaxy S II General] {SBR}_L3GION:
I didn't read all the governors thoroughly. I go back and forth on references to because each has governors the other doesn't.
[Galaxy S II General] bobdoblo:
What are best combinations of governor and scheduler and are there any that you should avoid having together?

I normally use ondemand and noop.

*NEW* NeatROM® 3.5 Smoother than a babys bum!
[Galaxy S II General] rjand:
Great info, I was just wondering what the best governor and scheduler to use were
[Galaxy S II General] bobdoblo:
What about new fiops scheduler on Dorimanx?

Any good?

NeatROM© 3.5 - Smoother than a babys bum!
[Galaxy S II General] agmar:
Nice!!

Very descriptive and informative. Thanks for taking the time out to create and/or collate this information. Extremely helpful in explaining some of the arcane inner workings of Android...

Coming from B'lore(India) makes it even sweeter. Keep up the good work...
[Galaxy S II General] droidphile:
Depends on your device' platform and your usage. In general, there is no best governor or best i/o scheduler that assumes best performance/battery to every device/platform.

Fiops - theoretically very good for flash devices. I haven't experienced it yet. Fiops is kinda an advanced CFQ with more optimizations for flash/ssd.
[Galaxy S II General] d_Schizzo:
enable CFS-Tweaks via Script

Hi,

i have one little question: Is the command below correct to enable cfs-tweaks in siyah-kernel?

echo "a$1" > /res/customconfig/actions/cfs-tweaks

If not, how must i do that?

Thanks!
[Galaxy S II General] apueb008:
awesome thread.

was wondering if OP planned on adding Hyper and ktoonservative?

thanks
[Galaxy S II General] droidphile:
Try this line in a script. (don't echo anything to it):-

/res/uci.sh cfs-tweaks 0

0 - samsung, 1 - linux, 2 - thunderbolt. Use whichever you like

I need to atleast experience myself a governor if not able to see the source code, before briefing it. Since this thread was GS2 specific (even though there are many common elements in it), I won't be adding more governors except for something new that's worth and device specific. :)

I had a plan loong back to re write the thread in Android General and include more info, but lack of time and little laziness held me back. I'd still give it a try, let me see...
[Galaxy S II General] d_Schizzo:
@droidphile

Thank You! Now cfs-tweak is working very well! Hope you can help me with another question:

I tried to create an own freq table and used your command from the first page:

echo "1600 1400 1200 1000 800 500 200 100" > /sys/devices/system/cpu/cpu0/cpufreq/freq_table

Sadly this is not working, because there is no file called "freq_table". There is only a file called "scaling_available_frequencies". But if i take this file it is also not possible to change the frequencies. Can you help me to do that? Iam running Siyah 5.b2 and CM10.

Thank you in advance!
[Galaxy S II General] Cyclone101:
Thanks Droidphile! This helped a lot!

GM wrote that Foips was not in the new linux kernel, and that there wasn't much info on it. Do you know who wrote it, or where I can read up on it?

Thanks

EDIT: I found this on it. "This code is still in-development and thus not a candidate for the Linux 3.3 kernel. Some of the work items still left is ioprio support, request size vios scale, cgroup support, tracing support, and to automatically select the default I/O scheduler in a smart manner."

but it might be a bit old.

from here. http://www.phoronix.com/scan.php?page=news_item&px=MTAzOTU
[Galaxy S II General] Many40:
Hi Droidphille.

Might be there is easy way but I couldn't find any - how to check what cfs tweak is applied by the script. There is nothing significant in uci.sh nor in cfs-tweaks file.
[Galaxy S II General] droidphile:
As you know 0 Samsung, 1 Linux, 2 thunder bolt.

"/res/uci.sh cfs-tweaks" will echo back current value.

I don't own galaxy s2 now so doesn't follow siyah development for s2. Scaling available frequencies should work. I'm not sure why it wouldn't. Number of steps should match one of the supported number.
[Galaxy S II General] Many40:
Thanks, you are helpfull as usual.

BTW, it seems that easiest things are most difficult :). Should have figured it out myself (had hard day yesterday). Regards

Ps Sorry I got rid of all 8 thanks for today. Gonna hit it tomorrow.
[Galaxy S II General] Ibsonic:
Guys what about the new scheduler called FIOPS.. which one is more battery friendly.. noop or FIOPS ?
[Galaxy S II General] Beatsleigher:
Cheers dude, for the awesome explanations!!

I prefer HotPlug, which wasn't in your post (#1) could you please add that at a later stage?

LG familyguy59/Beatsleigher
[Galaxy S II General] psyntific:
Thanks a million for such a detailed explanation mate... You rock!

Sent from my GT-I9300 on ARHD 13.0 with perseus 25.3

---------- Post added at 08:31 AM ---------- Previous post was at 08:00 AM ----------

What do you think would be a recommended value for up threshold... Cuz mine says 85.. Should I get it down to 60?

Sent from my GT-I9300 on ARHD 13.0 with perseus 25.3
[Galaxy S II General] droidphile:
Using different I/O scheduler won't gain/drain your battery. Different I/O schedulers behaves different during multi tasking or a specific op such a bulk write/read to flash disk.

Hotplug governor is half pegasusq logic wise. Depends on legacy hotplug logic. I will try to brief the governor.

Up threshold value depends on type of governor (ondemand based/interactive based) and what you need - battery/performance.

For ondemand based governors, better don't go for up thresholds below 80/75. If it's an interactive based governor, 60 is good enough to be very responsive.
[Galaxy S II General] psyntific:
So if I'm using pegasusq do you think I should get it down to 60? Our would even 70 be good enough?

Sent from my GT-I9300 on ARHD 13.0 with perseus 25.3
[Galaxy S II General] ThemeGios:
Fantastic thread, thank you for taking the time to put all this together! I'm still learning a lot and it's threads like these that are vital to the community! :good:
[Galaxy S II General] droidphile:
Pegasusq is an ondemand based governor. UpThreshold 75 is good enough.
[Galaxy S II General] twe90kid:
Can someone explain to me "Wheatley, asswax, and badass"? Which one is more battery friendly?
[Galaxy S II General] jerverg:
oh my god thank you for this. i love you man. im new in this tweaking thing but i learned a great deal of info because of you. thanks! :D
[Galaxy S II General] astra-g-16v:
thanks for the good explanation of the kernels.
[Galaxy S II General] lateral18:
When setting up the I/O schedulers , there are CFS and CFQ the same for BFS and BFQ. The question is which one goes as the scheduler in the script make in the init.d folder . You didn't mention, the permissions are set everything right ?

Xq Thank you , cuz of you now I know so much .
[Galaxy S II General] erick161:
Subd

---------- Post added at 04:18 AM ---------- Previous post was at 04:17 AM ----------

Subd
[Galaxy S II General] droidphile:
BFS and CFS are task schedulers, not i/o schedulers.

BFQ, CFQ are i/o schedulers.

A task/CPU scheduler perform process scheduling - ie manages how the threads, processes or data flows are given access to system resources. But I/O scheduler schedules I/O requests.

We can change I/O scheduler from user space, but not task scheduler. It's defined in the kernel code.

And yes, permission of 777 for init.d scripts are fine.
[Galaxy S II General] lateral18:
Man, again thanks , that clears another question, I put , BFQ , is working good. But I think is a bit heavy on the battery, with the permissions that is what I put ,

I'm going to give a day, then try CFQ and deadline , thanks for the amazing forum , take care

By the way , do you know where to get my info in governors parameters, I would like to read more on it.
[Galaxy S II General] atif4ever:
use this tweaks in 7.8 DORI???
[Galaxy S II General] kvv515kvv:
hi

which sheduler is better to open big pd-files.

all files are on external sd

i do not care about battery life, need only high performace

tnx
[Galaxy S II General] droidphile:
Using a different I/O scheduler won't drain your battery anymore. Even though effect will be seen clearly during multi-tasking only, try deadline and see if it opens those big files faster than others.
[Galaxy S II General] psyntific:
Hey droidphile.. how does it help changing lcdfreq enable to 1

Sent from my ARHD 14.0 with perseus 25.3
[Galaxy S II General] narco14:
thank you for this thread man:D
[Galaxy S II General] droidphile:
Afaik, Andrei incorporated the tunables to control this feature into PegasusQ governor code. So use SetCPU to change parameters.

Lcdfreq as you know is about switching between two display controller frequencies (high = 60hz and low = 40 hz) in accordance with CPU frequency. We assume that on lower CPU frequencies, re-draws on screen is also less (device 'idling') and hence a lower display frequency could save some juice.

Setting lcdfreq to 1 enables it. At present it works like this if enabled :-

At lower CPU frequencies (below 500 mhz as defined by ldcfreq_kick_in_freq parameter), display frequency is set to 40 Hz after waiting for (lcdfreq_kick_in_down_delay * 50) milli seconds. On higher frequencies (500 mhz and above) AND on screen touch lcd frequency will be the normal 60hz.

Aim of this lcdfreq feature is saving battery, not extra responsiveness or framerates during games.
[Galaxy S II General] Many40:
Hi Droidphille,

ASAIK it's available (implemented) into Adreilux'es Perseus kernel for S3. Do you know if this tunable is available in any kernel for S2. Are there any possibility to tweak it in S2?
[Galaxy S II General] droidphile:
Hi

I think the 40hz change is not active now in Perseus as users reported some flickering. Don't think any S2 kernel has it. And I'm not sure if changing display frequency is available for S2 amoled. You can request GM to include the feature to S2 kernel when the feature is stabilized on S3. (if Andrei or anyone has that plan, that is)
[Galaxy S II General] psyntific:
why i was asking this was that I have nba2k13 and nfs most wanted both of which had hardcore frame rate drop but from the moment i changed lcdfreq enable to 1 it's perfect... i just wanted to know if that was the thing cuz nba used to stutter like crazy but now i can play it like a charm...
[Galaxy S II General] Reno29:
Great work, thanks for all information, very useful to understand all the process on our device
[Galaxy S II General] neim81094:
I use this information for my s3 thanks this is the one stop shop for all things cpu related and it's actually understandable!!!
[Galaxy S II General] androidiano72:
hi .... I have a galaxy next and would like to set the max and min 729 480 just can not do it ... who can link me a script already done and working with these values? thanks

sorry for my bad english
[Galaxy S II General] droidphile:
Use SetCPU app from playstore.
[Galaxy S II General] androidiano72:
No....script for rom...for apply this freq on the frist boot...sorry for my bad english

Inviato dal mio GT-S5570 con Tapatalk 2
[Galaxy S II General] ginodp:
Thanks

Finally. I had a good read. I now understand allot more of my ROM and why some settings are the way they are.

Good work.

Verstuurd van mijn GT-I9300 met Tapatalk