yashsingh1/xdaforums huggingface dataset:
[Android General] Tzfardaya:
[MENTION=1363323]vomer[/MENTION], [MENTION=2918197]The Gingerbread Man[/MENTION]

okay, two things gentlemen...

one, here is a script to backup all the fku tunables (except voltage, and colour, I don't believe that they should be in a swappable file setup)

and secondly, a cleaned up version of my full tunable script (had quite a few typos in patch names.. hopefully I caught them all this time)

also, I've included in the zip a third script that is a backup of my current settings... unfortunately since I only have one n5 I can't test that it will be properly applied to other devices, could I get one of you two to run it for me and see if everything gets set properly?

all-in-one-tunable.sh <-- the script to adjust every franco setting (except tcp congestion avoidance) and a basic description of nearly every tunable

needs to be edited before it will actually do anything.. Currently just one large sh script with no executable lines.. everything

everything is a comment...

backup-script.sh <-- pulls a copy of all your current settings and places it in /sdcard/settings_backup/backup.sh

tzf-test.sh <-- a test run of backup-script.sh on my device, please run it on yours and let me know what happens, any error messages
[Android General] Tzfardaya:
how'd it go? were you able to get the file?
[Android General] jahoys:
sorry. forgot to quote you so you would be alerted per my reply. as i said on post #699, all is good thanks to you kindly putting up that link. i'm on r36 now. do you know how to increase the auto brightness? a bit too dim for me. thanks again!
[Android General] Tzfardaya:
there's a toggle for that inthe paid fku, (which I highly recommend you get)

but if you can't there is a shell command you can run, but needs to be ran every time you reboot...

it's

echo 0 > /sys/module/lm3630_bl/parameters/backlight_dimmer
[Android General] jahoys:
i do have the paid version. where is the toggle located. can't seem to find it. thanks
[Android General] Tzfardaya:
In kernel settings, backlight dimmer...

Check for an update to FKU, Franco pushed a new production and a quick fix earlier today..
[Android General] jahoys:
i see the Backlight Dimmer. do i just set it to Enabled and nothing else? thanks.
[Android General] Tzfardaya:
Disabled, and maybe toggle set on boot for it...

Remember you will learn need to turn the screen off for the change to take effect, and it only affects the low light levels of the autobrightness system..
[Android General] jahoys:
ok. thanks for everything. :o
[Android General] The Gingerbread Man:
Thanks for your time and effort in this, I'll give it a try after work. I did notice a typo of the word governor somewhere around the GPU section.
[Android General] deedeeceleb:
I'm using r203 on my N4 and r12 on my N7 2013, but I only have the option to edit first level in hotplug settings in Franco kernel app 11.4.

Got two more options to edit when using r201. Is there an update out I didn't receive yet?

Thanks in advance!!

Gesendet von meinem Nexus 4 mit Tapatalk
[Android General] Tzfardaya:
oops sorry, most of what vomer, tgm, and I have been talking about settings wise was for the n5, the same options should be coming to the n4 and n7 soon... I guess I shouldn't have brought my scripts over to this thread, since it applies to all the franco devices whereas the scripts we've been talking about have been n5 specific...
[Android General] deedeeceleb:
I didn't use any scripts and I'm using gingerbreads settings on n4 and n7 (the ones he posted for n7 2013) since n7 and n4 have nearly identical hardware. Just wondered about the disappearing options in fku hotplug control :)

Although thanks for your reply and your work in here!!!

Gesendet von meinem Nexus 4 mit Tapatalk
[Android General] Tzfardaya:
probably has to do with the newer fku versions... may have dropped the tunable files in preparation for the next kernel release...

are the setting options the same on the n4 and the n7?
[Android General] deedeeceleb:
N7 only had first level control like n4 running with r203.

R201 gave me three options to edit in hotplug settings. Everything tested with 11.4. But it isn't annoying me that much as I'm able to change first level (load threshold). Just wondered about :) thank you

Gesendet von meinem Nexus 4 mit Tapatalk
[Android General] Tzfardaya:
[MENTION=2918197]The Gingerbread Man[/MENTION]

so, first off, thank you for linking in those posts from osm0sis... I learned where the file for controlling the tcp congestion algorithm was from them..

now added to by backup script.. ;) so, we can now backup via that script every option settable via fku. and reapply them to the same device or share configs across devices...

all my scripts are missing now is proper descriptions for what 3 tunables are..
[Android General] Punkid:
can you please elaborate a little on how headset gain and headphone volume settings work? like what do they DO under the hood. And i read you saying that the last 2 volume levels cause distortion. A little explanation please?
[Android General] Tzfardaya:
Basically they just "spoof" the amplifier into increasing the volume... Unfortunately, if the volume is increased past what the amplifier can handle, it starts clipping.
[Android General] Punkid:
What's the difference between the two settings
[Android General] The Gingerbread Man:
I'm not exactly sure how to explain but my best attempt is gain has control over something to do with mastering the decibel level which increases the volume. Volume boost is just telling the amp to increase the volume out put but without using a button press, ie volume step 5 becomes step 7, step 9 becomes 11 and so on. If someone who actually knows about audio was they could probably explain better than that.
[Android General] Peanuts.:
I noticed you changed the load threshold & go hispeed freq to 90. How's the new settings going?
[Android General] The Gingerbread Man:
OK overall but with my job I'm in different places all the time so its difficult to guage battery properly unless im at home. Those changes just make it a little smoother, tiny bit easier to use a little more speed. Its in % load 0-100 so I changed it by 5%
[Android General] outofthisworld:
I'm noticing less lag on one or two apps that needed a bit more speed. BBC News, Tapatalk and Twitter. All three load photos and a lot of text so could do with a performance boost.

I will probably keep 90 on both.

I wonder whether I can keep 95 on the go hispeed freq but put 90 on the load threshold? (All other settings remaining the same as gingerbread man)
[Android General] The Gingerbread Man:
If you keep hot plug threshold the same as hi speed load (90-90) it means when you reach the required system load you will activate the other 2 cores as you get boosted to hi speed freq

If you keep lower hot plug than go hi speed load (90-95) then you on line other 2 cores before you reach hi speed load which triggers the boost to hi speed freq. So you would online and off line those cores quite quickly.

If you had higher hot plug than go hi speed load (95-90) you would find it a little harder to online the other cores, but still get boosted to go hi speed freq. So you would have a boost, then if load sustained and increased then the other cores come on.

I'm not sure which is the best / most battery efficient way really, it depends. With my rough explanation you might try a few different things. Of course the values can be changed to any you like but the closer to 0 you go the more battery you use, the closer to 100 you go you could find lag.

Go hi speed load, load % required to need to hi speed freq. Lower value uses more battery

Hi speed freq, CPU speed to boost to when hi speed load met. Lower value uses less battery but less speed

Hot plug, load % required to online more cores. Lower value uses more battery

Then of course there's the other case 4 cores always on at lower speeds is meant to be better battery than 2 at higher speeds. My current n5 settings I'm trying an experiment of using very low speed but using 90 for hi speed load and hot plug.

Its quite difficult to explain easily so I hope that roughly makes sense.
[Android General] aLNG:
from my understanding, both loads are used differently.

from cpufreq_interactive.c

if (cpu_load >= go_hispeed_load) {
if (pcpu->target_freq < hispeed_freq)
new_freq = hispeed_freq;
...
}

this is how cpu_load calculated:

pcpu->cputime_speedadj += active_time * pcpu->policy->cur;
...
do_div(cputime_speedadj, delta_time);
loadadjfreq = (unsigned int)cputime_speedadj * 100;
cpu_load = loadadjfreq / pcpu->target_freq;

in mako_hotplug.c

cur_load = get_cpu_load(cpu);
if (cur_load >= t->load_threshold) {
...
}

so this is how cur_load calculated:

cur_load = 100 * (wall_time - idle_time) / wall_time;

(wall_time - idle_time) / wall_time ==> active-time / (active-time + idle-time)

return (cur_load * policy.cur) / policy.max;

policy.cur == current freq; policy.max == max freq

to summarize:

cpu-load calculated in interacitve governor -> aggresiv

cpu-load calculated in mako-hotplug -> conservative

why? let try with concrete example:

lets say in 1 sec 600ms cpu is active and 400ms in idle. 500ms active with 1190400 KHz (touch boosted) and 100ms with 960000 KHz.

in interactive gov:

pcpu->cputime_speedadj += active_time * pcpu->policy->cur; == (500000 us x 1190400 KHz) + (100000 us x 960000 KHz) = 691200 000000

do_div(cputime_speedadj, delta_time); == 691200 000000 / 1 000000 us = 691200

loadadjfreq = (unsigned int)cputime_speedadj * 100; == 691200 x 100 = 69120000

cpu_load = loadadjfreq / pcpu->target_freq; == 69120000 / target_freq -> cpu_load = 100 % for target_freq = 691200 KHz; so for info target_freq will be calculated depends on target_load.

in mako-hotplug:

cur_load = 100 * (wall_time - idle_time) / wall_time; == 100 x 600000 us / 1000000 us = 60 %

if current freq = 960000 KHz; and max freq = 1574400 KHz

return (cur_load * policy.cur) / policy.max; == 60 x 960000 KHz / 1574400 KHz = 36.5 %

it can be that my understanding is wrong, +francisco ? but the way these loads threshold being used are different.
[Android General] The Gingerbread Man:
Thanks aLNG although that is waaay beyond me I appreciate the time for a very detailed explanation!

Everyone else, new CPU settings to try and edits to my PAMs for nexus 5!
[Android General] wardawgmalvicious:
I don't believe it. The Gingerbread Man I know, he knows everything. What have you done to The Gingerbread Man!?

-wardawgmalvicious

Rooted N5/N7 2nd Gen

MultiROM TWRP

Franco Kernel

Stock 4.4.2 w/ GB & XUI

-Sent using Tapatalk

---------- Post added 27th March 2014 at 12:04 AM ---------- Previous post was 26th March 2014 at 11:55 PM ----------

Also I was trying to look at your signature through Tapatalk on my Nexus 5, it won't load up. I was trying to see your new settings lol.

And I just saw you do Security too lol. That's pretty cool cuz I do that and LE in the military lol. Does your job do a lot of sitting around doing nothing? I've been to a few places and its different everywhere, but I'm always interested in someone else's line of work that's similar to mine

Sorry for rambling lol.

Edit: How are you finding your new CPU/kernel settings or whatever they are called lol. I liked your old ones, they got me some pretty awesome battery life, and I'm going to try your new ones soon, but just wondering how you like them?

-wardawgmalvicious

Rooted N5/N7 2nd Gen

MultiROM TWRP

Franco Kernel

Stock 4.4.2 w/ GB & XUI

-Sent using Tapatalk
[Android General] The Gingerbread Man:
Well I won't pretend to know everything but I know a little about most things haha

My job is retail security, CCTV, patrols, catching thieving little wànkers stealing stuff and some customer relations... Youl have enlighten me on what LE stands for in MP as I don't have a clue, your job probably is better than mine though hahaha

New CPU settings going OK, I fancied a change as there are some which on paper are very similar so I wanted mine to be mine if that makes sense. Battery usage will be a little more increased but also so will performance. I'll try to get report later on. My phone is Charing at work now, for some reason my nexus QI charger decided it didn't want to charge the battery. Over all I'm happy with these settings though, they pretty much make it so I don't really need to use per app modes so much unless for emulation games / very light things. I don't have any games which need the quad core gaming Pam I have set up, I just set it to add the other end of extreame performance on, with my daily settings being somewhere in the middle
[Android General] wardawgmalvicious:
Well you know more than I do for sure lol. I'm always lookin in this thread for any pointers.

And ah OK, so like loss prevention it sounds like, but I see patrols on there so probably more so. And MP is Military Police, and LE is Law Enforcement. I'm almost done with my contract though, so I'm I'm the market for a new job.

And as for your new settings, when you say battery is increased, do you mean the battery life has gotten better or has the usage increased the battery usage? Just trying to clarify. As for Per apps I disabled it and with your old settings I never has any lag, except during the last level of Smash Hit I think, but it would've lagged on any setting, it was pretty intense.

I'll be looking forward to your reports on the new settings! Thanks for sharing.

-wardawgmalvicious

Rooted N5/N7 2nd Gen

MultiROM TWRP

Franco Kernel

Stock 4.4.2 w/ GB & XUI

-Sent using Tapatalk
[Android General] The Gingerbread Man:
Ah I see, well good luck with your new job!

Just to clarify about what I meant, these setting probably will use a little more battery than the other ones as max speed is higher, input boost is increased, lower go hi speed load and faster GPU. All those will give a boost to performance though. If you like my old ones, this set is like that but with more speed. Maybe try that game again with this set. Battery won't be effected by much. That's often the trade off more performance often costs in battery life, but remember we are still under clocking to 1.5 GHz which is much lower than the stock 2.3ghz. GPU is still lower than stock. See what you think :)
[Android General] wardawgmalvicious:
Thanks I appreciate it! I'll need luck finding one I think lol.

Anyways thanks for clarifying, because I thought it would cost a little more battery due to some of the increases in your settings, but at the same time I thought you might have found a magical way to improve performance and battery at the same time lol. You are The Gingerbread Man.

But I will definitely try these new settings out and see how it goes and let you know! Appreciate everything!

-wardawgmalvicious

Rooted N5/N7 2nd Gen

MultiROM TWRP

Franco Kernel

Stock 4.4.2 w/ GB & XUI

-Sent using Tapatalk
[Android General] xfrancis14:
Delete
[Android General] larsonalux:
Who can tell me the best settings for this kernel, having a good performance and battery saving? Thanks I have a nexus 4 and FK r204
[Android General] Tzfardaya:
Really is no best that we can give you... It comes down to how you use you phone, what radios and backends you have running (wifi, bluetooth, Google search etc etc)

All we can suggest is underclocking to where you feel the device starting to get a little sluggish, then bump the frequency back up one...

All the rest of the settings just help control how the frequency scales up or down...
[Android General] The Gingerbread Man:
Edits to CPU settings and pams
[Android General] gtanner00:
Can anyone tell me about Franco's screen brightness feature I heard he implemented for n5? Is it also in the new r204 for n4?
[Android General] The Gingerbread Man:
Not sure, I didn't see it mentioned in the change log. Does your screen seem dimmer at minimum brightness?
[Android General] gtanner00:
Not sure what you mean. I use auto brightness which goes down to the normal level.
[Android General] The Gingerbread Man:
I thought you were asking if the screen goes dimmer than before, a couple of devices have this feature. If you want more control over auto brightness there's apps like LUX which I think let you change the values.
[Android General] gtanner00:
Yeah what I wanted to know was: 1 what is this feature all about? And 2. Is it on the nexus 4. I guess I know both answers now.
[Android General] FormeriPhoney:
Newbie to Nexus devices here. Received my Nexus 5 yesterday.. Rooted and unlocked today.

Currently running stock with xposed and gravity box.

Not thrilled with both battery life and colors on device. My questions are...

1. Is there a "stable" version of this kernel, if so which one which one of most reliable?

2. If I flash FK, and want to return to stock kernel, what is the correct path to do so?

3. I purchased Francos FK updater today. Is that the app I need to change color profiles? I feel like the stock is a little washed out.

Thanks
[Android General] Tzfardaya:
ha ha, same questions here?

1) always run the latest kernel version unless you have a specific reason not to.

2) Directions are in the first few posts, feel free to read them and learn. :p

3) answered this question in the main kernel thread at the same time I gave you the link to this one...

This thread has answered most of the more common questions (that's why tgm wrote this one, to help clean up the main thread)

Go back, read the first post, and the relevant few posts after (Universal and Nexus 5 specific)

While we are usually more than willing to help people who have issues, we do (usually) expect them to do some work on their own, spoon feeding is frowned upon...
[Android General] FormeriPhoney:
Oh, I thought you meant to ask this question in this thread instead, so that's what I did. Thanks regardless.

---------- Post added at 11:46 PM ---------- Previous post was at 11:05 PM ----------

If I make a nandroid backup of stock rom & kernel, and flash this kernel... When I restore my nandroid, I will return to stock settings?
[Android General] sordna:
Yes.
[Android General] shawnaye:
Hey could anyone help me regarding ViPER4Android?

I heard about it from this thread and thought actual n5 users would be able to help best.

For the love of God I can't get it to work on my phone.

Could you guys tell me what you did to get the app to work on your phone?

I'm using poweramp as my music player btw.
[Android General] The Gingerbread Man:
Some one pointed me to a zip of it, https://drive.google.com/file/d/0B2ar5BB6clkDbXgwaG1reTl4bWs/edit?usp=docslist_api flash in recovery. Reboot, settings/sound/music effects/ select viper. Then use titanium or similar to freeze stock musicfx.apk. open viper, install the driver and reboot. Go to your music player and disable any other eq (like power amp has its own). Then you can check its working by playing music and change various settings.
[Android General] The Gingerbread Man:
Hi and welcome, if you really have come from from an iPhone your in for a treat here!

Your questions, the latest is always generally always the best, sometimes people have favourites though.

If you look on Franco's server there's a copy of stock kernel, you can use the Franco app to flash it back.

Franco's app has the colour controls built in, you should see the tab, when you find a favourite set on boot.

While I don't mind people asking questions of they are unsure about stuff as that's the general purpose of this thread you would find all the info you want in post 1, 2 & 3.

Just to let everyone else know I'm away this weekend, a weekend of rugby, food and cider. I probably won't be around much within a few hours. Have a good weekend all!
[Android General] peikojose:
Hi. Hope you enjoy your weekend. Would be nice if you can keep your old settings and put names to them. For example, I would like to know why what settings you got more battery. Best regards.
[Android General] fajarlazuarding:
Anyone here tested 2 core vs 4 core online all time on nexus 4? Care to share the settings?

Sorry if i my question is not related to this thread purpose. Thanks in advance :)
[Android General] gtanner00:
I tried 4 cores for a while but I realized that this, while beneficial to some users was not the best setting for my usage pattern.

Theoretically, having 4 cores online all the time will save battery because the 3rd and 4th core do not have to hot plug on and off all the time. The idea is that the extra power required to run all cores all the time (usually on lowest frequency) is actually lower that turning them on and off repeatedly.

In my case, I looked at my core usage on a floating performance monitor and realized that I rarely ever need 4 cores anyways. My phone rarely hotplugs up because my apps and ROM are not resource intensive. I instead choose to raise "load threshold" to 65 and "high load counter" to 30.
[Android General] fajarlazuarding:
Are you underclocking?

I currently use 80 for load threshold, is it too high?

I'm trying 30 to high load counter now, and yeah my 2 other cores don't even "on" at least for now. Thanks.
[Android General] gtanner00:
No I do not underclock.
[Android General] osm0sis:
Finally finished my own undervolting! I went to the nearest 25mV increment.

384mhz: 700 mV

486mhz: 700 mV

594mhz: 725 mV

702mhz: 775 mV

810mhz: 800 mV

918mhz: 825 mV

1026mhz: 875 mV

1134mhz: 875 mV

1242mhz: 900 mV

1350mhz: 925 mV

1458mhz: 925 mV

1512mhz: 950 mV

1620mhz: 975 mV

1728mhz: 1025 mV

Pretty close to some I saw you post before but looks like you raised your lower ones since. :)
[Android General] The Gingerbread Man:
Those are some really good savings off defaults! Especially at at the very low ones and I though I did well to get -75mv off. Nice to see you in here also :)
[Android General] osm0sis:
OT but have you tried this on your N7 '13 yet?

http://xdaforums.com/nexus-4/general/4-4-4-4-x-qualcomm-optimized-dalvik-t2546120

I don't usually put much faith in benchmarks, but running stock I flashed both and it boosted my AnTuTu score by 5000 points. That can't all be spiderwebs and magick. ;)

I also tried the updated Adreno drivers, but they didn't make much difference in scores:

http://xdaforums.com/showthread.php?t=2665832
[Android General] The Gingerbread Man:
Nah iv been using art so I don't think it will make any difference to me, if you haven't tried art then you should think about trying that. Less CPU usage and battery life is a little better and apps open faster and makes your launcher feel like iOS
[Android General] osm0sis:
This makes Dalvik actually more optimized/faster than ART. Also, I tried ART for a while and if you look in the logcat it's full of errors; Google's got a lot of work to do in my opinion and I don't want to be using things that are half-baked and full of bugs. ;)

If you want to use just the bionic patch, that works regardless of runtime and provides some significant improvements, though not nearly as much as the Dalvik. :good:

I think it's pretty cool someone thought to grab the closed-source Qualcomm optimized binaries and libraries from the Moto X where we can't have them on Nexus devices. :)
[Android General] gtanner00:
[MENTION=2918197]The Gingerbread Man[/MENTION]

You should try out CTfrommn's (ex developer of PSX ) builds of his velocity ROM for your hammerhead or flo where he imports hundreds of the latest ART optimizations from the android open master, something no other ROM does.

Chad, the developer has moved away from XDA so the ROM is basically a Google drive folder with downloads and an updated change log here https://drive.google.com/folderview...&usp=sharing&tid=0BzX_bRKRGmexa3pwSmVkMU04czA and a limited support forum here

http://www.purespeedx.net/index.php/Thread/216-Velocity/?pageNo=31

Anybody who is looking for something a little bit different than the current selection of Roms on XDA should look no further. Oh and I have to mention the developer is staunchly against the use of Xposed for good reason (it wrecks all of his optimizations) so this the first ART-only ROM.

Last but not least. It works fantastic with Franco kernel.
[Android General] Empty Hand:
Good to see you here. When are you picking up a N5?