yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Many40:
Hi Droidphile,

Sory for bothering you again. I'm facing very strange issue and hope you have any idea what it maybe related to. I'm on leaked sammy JB 4.1.2 XXLSJ + stock based PhilZ kernel. This kernel allows stock frequency steps only with classic frequency scaling range 200 - 1200 MHz. Recently decided to limit Max scaling freq to 1000 MHz by init.d script. It failed with classic script but after some trials and finally with additional "sleep 30" command now it's been applied properly.

However what is annoying me is that sometimes CPU scales to 1200 MHz even it's been limited. I checked it by Voltage Control / CPU history and double checked by BeeterBatteryStatts / CPU states. Do you have an idea what may trigger this and how it is possible? Thanks in advance.

Regards
[Galaxy S II General] droidphile:
Hmm that's strange. If you were trying to limit max freq to something below 800 and still 800 shows up in cpuspy/bbs it's understandable as 800 is the resume freq of GS2. But capping to 1000 and getting overridden to 1200 is not expected. If you're sure other tuner app or scripts is not setting max freq back to 1200 again, it's probably a bug in the kernel side - mostly in the governor code.
[Galaxy S II General] Many40:
Hi Drodphille,

I believe it's still not too late for that so I wish you all the best in the New Year.

I would like to ask you to confirm my understanding of some aspects of pegasusq tweaking (please tell me if I'm right saying):

- when I set freq_step parameter to "30" it doesn't make sense to keep smooth_scaling ON, as they do the same so I disabled smooth_scaling parameter (previously had this set to 800MHz in parallel with freq_step)

- when I use dual-core aware governor (pegasusq), it doesn't really matter how/if I tweak in addition legacy hotplug parameters (loadh, loadl, rate), under condition that Siyah kernel's pm_hotplug has added by GM governor-awareness to it.

Regards
[Galaxy S II General] droidphile:
Hi thanks and Happy New Year to You too. Both of your observations are correct.

If freq_step = 30%, and min and max policy are 200 and 1200, then value of freq_step in terms of frequency is 30% of 1200 = 400 mhz. (If policy max is 1400, it becomes 420 which is rounded to 500 mhz). When you're idling at 200 mhz next frequency when up-scaling is executed is 200+400 = 600 mhz. Then 1000 mhz and so on.

Pegasusq disables other hotplugging logics. So values of load_h, load_l etc doesn't matter when pegasusq or lulzactiveq is used.
[Galaxy S II General] shoxyy:
Hi

Does anyone knows this bug on pegasusq? Core 3 wont go off.. Even with lulzactiveq. Only the hotplug govenor seems to work.
[Galaxy S II General] droidphile:
Device GS3?

Make sure hotplug_freq_2_1 (up freq to turn core 3 on) is greater than hotplug_3_0 (down freq to turn core 3 of). Take similar care for multi thread parameters hotplug_rq_2_1 and hotplug_rq_3_0
[Galaxy S II General] shoxyy:
Yes the international one.

I set that, it still shows CPU3 online.

Btw im using system Tuner on cm 10.1 with siyah (tested on 4.1 and stock as well).

I have absolutly no idea. Its still there even after a new rom flash...

Seems the frequency hotplugging is broken?

Nevermind hotplug govenor still working great for my needs.
[Galaxy S II General] arinsms:
A:(up_threshold - down_differential) * current frequency = target freq

B: Target frequency is calculated as max_load_freq / (up_threshold - down_differential)

ref:http://xdaforums.com/showthread.php?t=1369817

the post on B is the correct calculation right? to diff formula for same down differential

Im trying to custom the ondemand gov based on all ur ref...I like all your article, very great info
[Galaxy S II General] LuigiBull23:
very useful info!
[Galaxy S II General] spiderio:
this guide is the best

now I can tweak my Galaxy Note 2 with this guide and explanation
[Galaxy S II General] edzamber:
Subscribed

Posté via POUND 4.4.2
[Galaxy S II General] killerojrc:
Great Post

Very informative.

Thanks for this! :laugh:
[Galaxy S II General] republicano:
thanks i also noticed having the freq at 200-800 mhz to conserve power when screen is off over night is best with extweaks to disable the second core kicking in below 800mhz, had it at 200-500mhz for a while and noticed more battery drain, was @ 70% when i woke up, no point disabling the 2nd core with the threshold at 800

thanks for these guides your written
[Galaxy S II General] ithehappy:
Lol dude, you care about *stars* and thanks meter and all those gob?
[Galaxy S II General] sahibunlimited:
But someone giving one star feels like insult after such awesome work

And spending hours tweaking and writing his OP
[Galaxy S II General] droidphile:
1 star = "terrible" is all that bothered. NVM, it's internet!
[Galaxy S II General] ithehappy:
How many nonsense threads here have those 5 star and huge thanks meter thingy? A lot! How many idiots are here in XDA? A lot! So those things are expected.

Bhagavad-gita

Yes, it does hurt but that's practical.
[Galaxy S II General] :
This "stars" and "thanks" features are terrible. Never used objectively. People not understanding things or encountering problems give away too much 1-star ratings...while other members are just "thanks-whores" and only seek that.

Thanks to droidphile for sharing his knowledge with humility and precision.

Sent from my SGS2 - Powered by CM9
[Galaxy S II General] theangi:
Great Job, I really enjoyed reading the op, very clear and relatively easy to understand. I don't know how to modify a kernel by scripts, but surely when I'll know this would be my "main function" ;-)

Anyway, I'm sure that even if here is well explained how to obtain our personal settings, people will surely continue to ask what kind of value are the best and so on... Very sadly :-(

Sent from my Nokia 3310
[Galaxy S II General] ZACQ8:
"Kernel Panic Upload Mode"

Hi,

Do you have any investigation on "Kernel Panic Upload Mode" the Screen which appears while flashing an ICS ROM, faced by many people recently on SGS2
[Galaxy S II General] saul_rodriguez:
Thanks for this valuable info! It definetely helps to understand the underlying principles of tweaking the kernel and how to extract the best performance from each part of the hardware.

regards,
[Galaxy S II General] English_Man:
Very interesting reading, Thanks!
[Galaxy S II General] droidphile:
Panic mode happens when there's an unrecoverable error, usually caused by unhandled/uncaught exceptions. A kernel memory image is dumped to disk during panic. I never experienced panic mode. I think some versions of MIUI had this problem.
[Galaxy S II General] :
Mate may I suggest you to put the last update date in the thread title? It would be useful to avoid missing some important additions when they come! :)

Sent from my SGS2 - Powered by CM9
[Galaxy S II General] droidphile:
That's a good idea. For 'big' updates in the info, i may need to put the date too. Didn't do it in the previous thread because of two reasons - one, used max allowed characters for thread title and two, updated info in that thread like about 80 times.
[Galaxy S II General] :
It is probably important only for additions or big fixes..no need to change it if there are just "bug fixes" ;)

Anyway that will help much, especially when reading through tapatalk, which means jumping every time to the last post read and never go back to the op unless there is a reason.

Thanks a lot for your big help mate!

PS another little idea: add a little sentence or two to explain how extweaks and other features that may come up in syiah or other custom kernels interact with cm9 and his own settings if conflicting (I'm thinking about automatic back light and governor for example...). I hope it's clear enough what I meant :)

Sent from my SGS2 - Powered by CM9
[Galaxy S II General] AndreiLux:
Don't bother. I'll explain it in the Siyah thread shortly.
[Galaxy S II General] droidphile:
I'm still going through the source code. Too much of run queues and stuffs. And since it's from Samsung, not too many comments as well. There are possible redundancy between the actual hotplugging logic and this governor. Since ICS takes care of threading and process priorities, let's see if the governor is of any use.
[Galaxy S II General] :
Seems pegasusq has been removed from syiah..it's been made for 4core devices and has some glitches on our s2. More details on syiah thread, with many thanks to AndreiLux and GokhanMoral for their explanatioms. Maybe it can be reworked, or some of its parts can be borrowed and merged in other governors, we'll see if the devs will come up with something in the future...I personally don't feel that much need for another governor.

Cheers

Sent from my SGS2 - Powered by CM9
[Galaxy S II General] puccini:
Excellent

This thread along with the original thread where exactly what i was looking for.

keep up the good work.
[Galaxy S II General] royalgok:
Extremely informative thread. Keep up the good work.

P. S. Some retard has tagged this thread "wow spam" -_-
[Galaxy S II General] droidphile:
May be he meant "Wow sperm" !
[Galaxy S II General] ram3n:
Why not? If it is true, I'm gonna tagging "Fap Fap Fap" :p:D

Sent from my little monster GS2
[Galaxy S II General] :
This free tagging system is a shame, and us mostly used for the dumbest and bad reasons and sentences... :/ I wonder how much time mods waste cleaning threads..?

Sent from my SGS2 - Powered by CM9
[Galaxy S II General] jelle2503:
Thanks. Good read.

Wouldve preferred either script, or recommended settings for extweaks for different purposes.. but cant have it all. Not such a fan of tweaking all these settings myself.

Verstuurd van mijn GT-I9000 met Tapatalk
[Galaxy S II General] droidphile:
For each parameter there's a sample script-line. And i'm already giving recommended settings for battery/performance by briefing each tunable right? :)
[Galaxy S II General] bigkay:
use ur voltage setting in ur signature...so far so good ..thanks
[Galaxy S II General] neboy:
As always from you i get the information clearly as possible.

Thank you for sharing the knowledge,great work.:)
[Galaxy S II General] neboy:
Hi everyone,

Can someone tell me please and excuse me for asking this noob question, is it okay to use voltage control together with EXATWEAKS?

Because i do not see an option to set the voltages with EXtweaks,or am i missing something?:o

Thanks...
[Galaxy S II General] Entropy512:
As to the additional hotplug parameters:

I believe (and need to recheck) - the runqueue parameters (min_rq and trans_rq) are used to hotplug out the second CPU when the device is experiencing a heavy load but with few threads.

If the number of threads running on a given CPU is less than min_rq, it checks to see what the load is of THAT CPU (and that CPU only) - If it is less than trans_rq, the CPU will be hotplugged out.
[Galaxy S II General] ram3n:
Yep dude, you can use both of them at the same time for maximum tweaks :D

Enjoy

Sent via my s2 monster
[Galaxy S II General] droidphile:
@Entropy, yeah that's what i thought after going through stand-hotplug.c. By default no of threads is 2. When load on the cpu (core) corresponding to calculated minimum-cpu-run-queue-length is found to be less than load_rq (20% default), cpu1 is hotplugged out. I think this cpu (for which trans_rq is evaluated) will always be cpu1 and not cpu0. After all, cpu1 is activated when cpu0 can't take it anymore, hence cpu1 should be the one which is always less over-loaded than cpu0 right.
[Galaxy S II General] hydroxymoron:
I was playing with ExTweaks and this info comes in handy. Thanks!.

However, it is still above my understanding whether these settings can solve the infamous Android bug that audio playing cannot be resumed by means of the headset button after the phone has gone deep sleep (at least not with one pause/play click).

This might well be one of the top 5 most annoying android features (judging from non-expert users posts) as it happens on a wide range of android devices.

As a matter of fact, some people's phones work nicely, and this bug does not occur while the phone is charging (although battery stats show the phone is not awake, seems not deep sleeping neither).

Do you guys know whether kernel settings can overcome this issue? or any combination of rom-kernel that solves it?

It's been almost a year now. I have searched for detailed info on this issue but found nothing. Checked the /system/urs/keychars/ files. Tested different kernel-rom combos and now some Governor-CPU Idle Mode combos. No luck.

If after all this is not kernel related and therefore it should not be posted here, I am sorry, please feel free to delete.
[Galaxy S II General] droidphile:
I'm not sure about how can a headset button wake the device from deep sleep.

While phone's is charging - whether it's wall charger or usb charger, enough interrupts are fired from time to time that prevents phone from going into deep sleep, so it will respond to headset buttons.
[Galaxy S II General] fr3quency:
Great thread! +1 =)
[Galaxy S II General] Thialala:
Hi,

once again you amaze us with an extraordinary topic, informative and so easy to read. Thanks a lot. I'll translate in french :-). I have a question: is it normal to lose dualboot when flashing a new. Primary rom? The second is still present at/ sdcard/.secondr and I flashed back the Siyah kernel 3.1RC6. THanks in advance.
[Galaxy S II General] droidphile:
If the new rom has a kernel other than Siyah, then you lose dual boot only temporarily. Once you flash Siyah, dual boot should be back as long as you haven't done anything to data.img and cache.img inside /sdcard/.secondrom

Second rom /system resides in a hidden partition - mmcblk0p9 and flashing a rom will not do anything to it.
[Galaxy S II General] hydroxymoron:
thnks 4 ur answer.

will keep on hoping there is a solution

headset button controller has an option to keep phone awake when headset is plugged. but this is terrible for battery duration
[Galaxy S II General] Thialala:
@droidphile

Thanks for your answer. I'll look into it. Once again thanks fir sharing your knowledge with us.
[Galaxy S II General] theman22:
thanks for the great info!
[Galaxy S II General] keeganmccallum:
+1
[Galaxy S II General] ram3n:
Droidphile :

can I invite you for a drink ?

Redbull/vodka or Mojitos ? :D :D

Cheers matey
[Galaxy S II General] reza1reza1:
Why don't you build your own kernels?
[Galaxy S II General] axpira:
This is in first page!
[Galaxy S II General] droidphile:
Mojitos sounds good :)
[Galaxy S II General] nitinvaid:
i have flashed siyah kernel over cm7 but after reboot no bootanimation nothing??
[Galaxy S II General] droidphile:
If you mean 3.0 Siyah, it's for ICS roms, not for GB roms.
[Galaxy S II General] Jarmezrocks:
Hi

Can devs create an install script that installs a ROM with an updater-script to the "/dev/block/mmcblk0p9" partition for /system and can the users existing data and apps be symlinked from "/data" to the /sdcard/.secondrom directory?

Regards

James

---------- Post added at 11:24 AM ---------- Previous post was at 11:21 AM ----------

Can we hardcode the build.prop so that if app running is music then = no deep sleep?

Seems plausible?
[Galaxy S II General] loco85mu:
please gokhanmoral implement install Zip indica secondary rom!! please please!!

Enviado desde mi GT-I9100 usando Tapatalk 2
[Galaxy S II General] ftpser:
Thanks for that, I got my own BLN effect now :D
[Galaxy S II General] Radikaal:
Great guide, finally tweaked my device exactly as i personally want it with help from you using extweaks and lulzactive app :) Increasing down_sample_time and freq_min really made wonders for UI/Scrolling smoothness :)
[Galaxy S II General] jlevy73:
This should be a must read for anyone who wants to learn how kernel stuff works. Definitely deserves a sticky. Excellent job OP!
[Galaxy S II General] lucky24i:
Invaluable posts. Very very informative. I would give you six stars if I could!

I have to read this when I only have this to do (that's the hard part) and try a dual boot. I wish I could do a dual GB/ICS but it seems not.

Thanks droidphile!
[Galaxy S II General] kennethb925:
nice info about the kernel!
[Galaxy S II General] arunreturns:
/system parittion of Second ROM

Hi,

I have a doubt, Where can i find the /system partition for the Second ROM. Is it shared by both ROMS

My requirement here is to uninstall some system apps from Second ROM.
[Galaxy S II General] droidphile:
A ROM's heart is the apps, libraries and frameworks in the /system partition. How could that be shared between two roms. If you had read my second post you will know that second rom uses a hidden partition to store /system.

To uninstall system app from second rom, simply boot into it and use titanium backup. Or if you know the app names of those you wanna get rid off, use root explored to manually delete apks from /system/app.
[Galaxy S II General] arunreturns:
Yeah I figured system partitions are not shared. And so I booted into the second ROM and removed the apps :)

Thanks for the prompt reply. Love your guides.

PS: Never been a day where i haven't stopped by and followed ur posts :)

Keep up the good work :)
[Galaxy S II General] Seta00:
Using internal storage for hidden partition

Great stuff! Can I use emmc for the hidden data image?

EDIT: For dual-booting, of course :P

EDIT2: You can! A typo was stopping it from working on my phone :)
[Galaxy S II General] strow84:
this thread is an excellent resource!
[Galaxy S II General] LegendZenify:
Great thread with lots of information about the various parameters.

Nice work!

One thing I am curious about though...

About the stand hotplug logic, is the max_performance variable influenced by underclocking/overclocking?

Or is it a fixed variable set at 1200?
[Galaxy S II General] droidphile:
Max_performance is variable. It's your scaling maximum frequency aka Policy Max in the frequency table.
[Galaxy S II General] :
Guys any opinion on this settings for lulzactive please? I copied them from some thread and tweaked a little bit but I am still unsure if they are correct or could lead to inefficiency :)

Using 200-1200, default freq steps

CPU load 80%

Pump up 1

Pump down 2

Sleep min @500 MHz

Sample time 18000 up and 40000 down.

Cheers and thank you :)

Sent from my SGS2 - SlimICS Rom & Syiah Kernel
[Galaxy S II General] zapskull:
What do you want? A battery frindely setting or a performance beast?

If you wanna be battery friendly, take a longer sampling period. (With your current settings)

If you want a better response, lower the 'cpu load' (With your current settings)

I still have a responsive phone with economic settings:

CPU load 90%

Pump up 1

Pump down 2(or 3)

Sleep min @500 MHz

Sample time 40000(or 50k) up and 60000 down.

I have a nexus s

Envoyé depuis mon Crespo avec Tapatalk
[Galaxy S II General] :
Thank you mate :) I tried to swap pump up and down to 2 and 1, to avoid very little lags I experienced, but also increased a little bit sample time up to tame it a bit. As of now it runs great but with games it could be better, very little stutters happened while testing

Sent from my SGS2 - SlimICS Rom & Syiah Kernel
[Galaxy S II General] zapskull:
I switch to on deman and oc from 1GHz to 1.2 when I want to play a cpu demanding app

Envoyé depuis mon Crespo avec Tapatalk
[Galaxy S II General] 华丽的平凡:
Thanks for that great info. I did learn a lot from your post and other posts from XDA .But for my bad english ,I can't understand they completely.:D
[Galaxy S II General] Ankit Tulsian:
@Droidphile: I am using the latest siyah with pegasusq.I have sio for almost all earlier governor.As pegasusq is new governor for GSII which SIO will you recommend?

Thanks:-)
[Galaxy S II General] s2dh:
Quick question -

is it possible to dual boot the following -

Resurrection Remix v1.9 (ICS 4.0.4) (Siyah Kernel)

and a Miui Gingerbread ROM?
[Galaxy S II General] droidphile:
I/O scheduler does not affect governor performance. Effect of different i/o schedulers will be visible only during specific tasks - lot of DB write, data read from sdcard, etc. You can use any i/o scheduler with pegasusq.

Did you read my dual booting faqs? One ICS and another GB is not possible. Kernel partitions are shared as of now and dual boot is supported by ICS siyah kernel. So only ICS roms for dual booting.
[Galaxy S II General] LegendZenify:
Thanks for the answer and the great info.

So the relative aggressiveness of hotplug thresholds in stand hotplug changes with underclocking/overclocking?
[Galaxy S II General] droidphile:
Yes ofcourse. Stand Hotplug aims to measure load as a function of actual load, current frequency and maximum frequency. This means i) average load increases with higher current frequency and load on cpu. ii) And also - average load decreases with higher maximum frequency. Point (i) makes sense without further explanation. Point (ii) means when we have overclocking and higher max frequencies, there's more room and time to turn On second core. This also make sense.

Point (ii) could be one among the reasons that users generally feel max 1200 mhz on ICS is smoother and snappier than 1200 on gingerbread.
[Galaxy S II General] tghandour:
Droidphile, excellent and professional work as usual. Very informative and concise information with a wealth of information which I don't believe anyone else can do it but you.. I have to admit that I learned all about Governors, scedulers and a lot of other valuable information about Android from your original thread as well as this one.. :thumbup:

I am currently using latest Siyah 3.2.4 with Hydrog3n ICS 13.05 with Pegasusq. I like this Gov as I feel it gives a good battery and performance balance. I finished reading the Pegasusq section in Post 3 and there are hell of parameters to tweak this Gov. :eek:

Would you please supply parameters settings for Battery, Performance and Balanced as you did in your original great thread for On demand, Conservative, Lulz and others.

Thanks mate in advance :)
[Galaxy S II General] droidphile:
I will write some sample tweaks. At present there seems to be a problem where if we set any pegasusq parameter through script or adb, CPU is forced to stay on dual core mode - second does not turn off when it's supposed to. Once Gokhan solve this issue, i will test with different values and write sample tunable values. Even though there are many parameters in pegasusq, those to concentrate upon are hotplug_freq_1_1, hotplug_freq_2_0, hotplug_rq_1_1, hotplug_rq_2_0. (to control hotplugging). freq_step, cpu_up_rate and cpu_down_rate are also important w.r.t frequency scaling.
[Galaxy S II General] jojic88:
Great thread :)
[Galaxy S II General] ledpepper:
Thanks

Thanks droidphile,

I applaud you for the work you've put into your post and I thank you dearly for the information you've provided.

Well done mate.
[Galaxy S II General] danfalcas:
Awesome governor. I'm gonna test ir @1600mhz

Enviado desde mi GT-I9100 usando Tapatalk 2
[Galaxy S II General] bclark:
So if I use 8 step, 6 would be 200 correct?
[Galaxy S II General] droidphile:
Correct. 8 Steps is normally 1500 1400 1200 1000 800 500 200 100. 200 would be L6
[Galaxy S II General] rajlesta:
nice..top class thread..thanks mate :)
[Galaxy S II General] naveediftikhar:
Hey droidp thx for the great thread...now the issue..i used ur sample value of tweaking the touch screen freq and at 200 it started lagging alot...so thought i might try other values...btw m using 18 step latest siyah but whenever i set my touch screen value anyother than stock freq like 200,500,800 my phone crashes...its not the voltage as ive even tried over volting so what might be the prob here?
[Galaxy S II General] droidphile:
@naveediftikhar

Are you sure you're echoing correct value. Kmemhelper can crash or freeze the device if invalid values or offsets are passed.

For 18 steps table this should work

LVL=`cat /proc/kallsyms|grep " level\."|awk '{print $3}'`;kmemhelper -n $LVL -t int 14

Scaling minimum frequency should not be greater than 200mhz while setting screen touch freq to 200. Also make sure you're using latest Siyah that has kmemhelper support.