yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] vomer:
Here we go, I think I have finally finished the init.d script for my settings.

This makes your life easier as you don't need to apply these settings in the app manually now.

VomerTweaks allows you to get insane battery life with minimal/no performance impact. Who doesn't like that!?

NOTE: franco's app does A LOT MORE and I highly recommend you buy it and support his work :good:

Note: Users on STOCK ROMs will need these BUSYBOX & INIT.D apps to enable automatic application on boot.

Features:

CPU Under clock

GPU Under clock

Hotplug Optimizations

Color Profile Application

Governor Optimizations

Vibration amp set to 75 (default is 100)

What do I need?

All downloads: http://192.227.135.147/get/VomerTweaks/N5/

If you flash a new ROM/update - you will need to re-do the steps below as the script will get erased in the process

Let's Roll!

Method 1: Flash via Recovery (easiest)

Note: Please ensure you are running TWRP v2.7.0.0 or higher when trying this method.

Thanks to @no.one.writeme for help with the script

Simply flash vomertweaks_flashable.zip using TWRP (I do not use CWM so I recommend you use TWRP with this file)

Method 1a: Manual init.d Application

Open your file manager, go to your root directory, and remount your /system partition as RW instead of RO.

Once the /system is mounted as RW we can move our script to the init.d folder and change the scripts permissions.

The init.d folder is located here:

/system/etc/init.d

Move the downloaded script to this folder

The name of your script determines the order in which it is executed. The first two characters determine the order of execution. The ordering is as follows - numbers from 0-99, then letters from A-Z. I have already named the script for you and does not need a re-name unless you really want to change the sequence. I have it set to execute first because I want to get kernel tweaks done as early as possible.

Now, long-press it and select "Change Permissions" (or however this is done in your file manager).

Give User, Group, and Other read, write, and execute permissions (755). See Screenshot

Your init.d script will now optimize your device to my tweaks quickly and efficiently at every boot ;)

Method 2: Manual Execution

If you like doing this manually:

Open Terminal Emulator

Type: su -

Type: sh /sdcard/Download/01VomerTweaks

You will see a pause/delay of 20 seconds and then all things should be set for you

Method 3: Using Tasker

App: https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en

All you need to make sure is that you have root for this method. The settings will be applied automatically on every boot.

Download the VomerTweaks TASKER PROFILE: VTApplication.prf.xml

Import the profile in Tasker (how-to in case you need) and turn it on

Please do report any issues you might face (it's unlikely) :)

Special thanks to @franciscofranco @The Gingerbread Man @bigknowz @Tzfardaya and everyone else who contributed for their help :good:

If you would like to support my work donate to me via BitCoin:
[Nexus 5 Original Android Development] The Gingerbread Man:
As you seem to be online for now I said a while back in the thread that setting headset gain at -1 or any other number makes no difference, might be worth while changing so on nexus 5 that the least possible value is -1. Changing it in + seems to work
[Nexus 5 Original Android Development] GodSlayer:
I don't experience any audio problems with headphones, but I do experience some stutter in Chrome and even in the UI.

Any ideas on how to solve?
[Nexus 5 Original Android Development] Tzfardaya:
Unfortunately, neither you nor franciscofranco, or that Web link were able to explain Why, In the test case I was running (which is what Franco was replying to with that comment) killing background tasks is a bad thing... Given that the test was to see if a memory leak was kernel related or userspace related... Have nothing running in the background and see if memory usage still crept up over time with the device idle and no apps running...
[Nexus 5 Original Android Development] jordirpz:
[MENTION=1363323]vomer[/MENTION]

Can you post screenshot of 777 permissions please?

Thanks

vía n7II r-paco
[Nexus 5 Original Android Development] Tzfardaya:
[MENTION=1363323]vomer[/MENTION]

With your profile set via init.d, does it show correctly in fku? You settings, not the kernel defaults? (I know you can't change the init.d file via fku though..)

---------- Post added at 01:40 PM ---------- Previous post was at 01:39 PM ----------

777 equates to rwxrwxrwx (read/write/execute for owner, group, world)
[Nexus 5 Original Android Development] vomer:
Yes, it is my understanding that FKU should show the set values as it is reading from the same source
[Nexus 5 Original Android Development] bigknowz:
Header

You might want to add the following header to your script, [MENTION=4544860]osm0sis[/MENTION] came up with the wait in the GNex thread

#!/system/bin/sh
# chmod -R 755 /system/etc/init.d
# wait for android os
until [ `pidof com.android.systemui` ]; do
sleep 1
done;
sleep 25;
[Nexus 5 Original Android Development] vomer:
Oh awesome thanks for the tip! Adding now :good:

edit - done! pls re-download
[Nexus 5 Original Android Development] carlese:
Reverted back to r32 again.. BT was not working fine with my car system..
[Nexus 5 Original Android Development] jordirpz:
When i reboot my phone with you script, and open fku, i think the values are the same. I m correct?

vía n7II r-paco
[Nexus 5 Original Android Development] vomer:
check what the max cpu is set at? It should be 1497... if it is then things are good
[Nexus 5 Original Android Development] jordirpz:
I m sorry
[Nexus 5 Original Android Development] sirovai:
Wow
[Nexus 5 Original Android Development] vomer:
Weird... let me look into it :eek:
[Nexus 5 Original Android Development] nitzer71:
Nooby question... I just got a new car and connected for the first time my N5 using Bluetooth. I noticed that the volume is very low compared to the radio or CD player in my car. Is there any gain I need to set in FKU or somewhere else? Thanks for your kind help.
[Nexus 5 Original Android Development] GooGooMuck:
On my device, the "scaling_max_freq" is only on cpu0 and cpu1. I think they might regulate the other 2 cores (2&3) since in my own init.d script I only have lines pertaining to cpu0/cpu1 and all four cores show the same max freq. Originally I had four lines, 1 for each core, the same as you but after looking at the filesystem and seeing that there were only entries for cpu0/cpu1 I commented out the others and all was still good.

---------- Post added at 03:19 PM ---------- Previous post was at 03:17 PM ----------

I know int.d support is built into the kernel img, but might have to be activated in whatever rom you are using. if it is, double check that all permissions are set correctly.
[Nexus 5 Original Android Development] vomer:
fixed :) good catch :good:
[Nexus 5 Original Android Development] sordna:
Could this possibly delay startup of the phone?

Hmm, I'll probably wait for the FKU script feature, since I would want to call my custom commands right after FKU does its settings. I might even have a script play a sound to tell me FKU is done / has applied the color profile, etc!

Anyone know how to play a sound from a script?
[Nexus 5 Original Android Development] drdrewdown:
no it wont delay the phone booting up heh
[Nexus 5 Original Android Development] jordirpz:
Double check? Where? Sorry i understand

vía n7II r-paco
[Nexus 5 Original Android Development] Tzfardaya:
Yeah, I just posted the paths to the appropriate folders, and like I said, I didn't have the time to test if they were linked or not... I figured 0/2 and 1/3 would be linked...
[Nexus 5 Original Android Development] vomer:
no it is simply giving time for the system to boot before doing things. Let's not mess around with things and get carried away please :) that code is causing script problems I think so I am looking into it ...
[Nexus 5 Original Android Development] ironjon:
[MENTION=1363323]vomer[/MENTION] I'm missing something

That
[Nexus 5 Original Android Development] The Gingerbread Man:
Sorry man I know alot of posts quoting you right now.

I can't actually fit all the stuff about init.d stuff into the nexus 5 specific post, hit max char limit lol!

Anyway way you reckon it can be condensed? If I can help it I don't want to ask for more posts to be inserted to my faq
[Nexus 5 Original Android Development] vomer:
I will send you something soon :)

Yup there is some bug... Looking into it

Sent from my Nexus 5
[Nexus 5 Original Android Development] :
Is there a way to alter the auto brightness? Lowest wetting is a bit too dark for me.
[Nexus 5 Original Android Development] vomer:
Edit: fixes almost done :) just need to figure out the path to load_threshold... Anyone got that handy?

Sent from my Nexus 5
[Nexus 5 Original Android Development] Piereligio:
TrueRGBv6.6 edited. So it will be tested again.

I changed a lot of values, really many! The spots were to have a more gradual brightness curve, with no banding, but mostly with an always constant brightness growing along a black/white gradient. Now I'll test it again. At home it seems to be okay, tomorrow on the bus I'll check again. Here in Italy are 11.08PM, and I'm going to bed. Keep tuned! ;)
[Nexus 5 Original Android Development] PetritH:
Lets make a deal.. don't show up until its done... I started reading I thought there will be a link in the end.. lol
[Nexus 5 Original Android Development] Piereligio:
Ahahah it feeds hype! :p
[Nexus 5 Original Android Development] granets:
is there OTG support with this kernel? because I'm on r34 and rascarlo vanilla ROM and I don't have OTG
[Nexus 5 Original Android Development] vomer:
Allright guys all fixed up :) please go ahead and re download the script and replace the old file. Should be all good ;)

Sent from my Nexus 5
[Nexus 5 Original Android Development] P.Mobile:
dobt kno bout anyone else but r34 is running so great for me!! best battery life out of any other builds and it HELLA! smooth.. thanks Franco:good:
[Nexus 5 Original Android Development] Tzfardaya:
I know this is pretty basic, but have you adjusted the volume on your phone while BT is connected? That changes the volume on BT as well...

Otg is same as stock, need a utility like stickmount to mount filesystems for you, other devices like keybkards/mice should work out of the box...
[Nexus 5 Original Android Development] studdmufin:
R34 and auto brightness is fine and lowest brightness does not flicker. Love it!
[Nexus 5 Original Android Development] amphi66:
Nice job, but how does your script "play nice" with the FKU which is also trying to adjust these settings? (although the Hotplug adjustment is not yet available in the released version)

Does it become critical to insure that the FKU settings mirror yours? If so, what is the benefit of the script?

Thanks!
[Nexus 5 Original Android Development] vomer:
Do not use FKU to change settings for cpu, Governer and hot plug and GPU. Those are set by my script. Just disable set on boot for those in FKU.

The script just makes application of my settings simpler/faster

Sent from my Nexus 5
[Nexus 5 Original Android Development] pkelly517:
Yay!

You should never, or even ever, give a root owned script 777 permissions.

Giving someone rwx permissions in the /system directory is a security hole that's pretty damn big.

Just FYI.
[Nexus 5 Original Android Development] jordirpz:
[MENTION=1363323]vomer[/MENTION]

Works fine, good job. Thanks!

vía n7II r-paco
[Nexus 5 Original Android Development] Zyphur:
[MENTION=1363323]vomer[/MENTION] When I activate your script, would the max cpu stats and such be loaded into Trickster? try to check if it's working properly for me but no fku yet. Any other way to check?
[Nexus 5 Original Android Development] vomer:
FYI - there is something wrong with this part:

until [ `pidof com.android.systemui` ]; do sleep 1 done; sleep 25;

Need to figure out what... something to do with the done statement

---------- Post added at 06:31 PM ---------- Previous post was at 06:30 PM ----------

yes trickster should show the right values (1497 for CPU / 320 for GPU)

Make sure you check permissions and also have the latest version downloaded
[Nexus 5 Original Android Development] Zyphur:
Followed every step and unchecked all 4 trickster set on boot options. Still maxing at 2.2 for me :confused:
[Nexus 5 Original Android Development] linqdesires:
r34 here.. my n5 is getting hot, just down the back camera. don't know why. I was using Google earth a little bit, but with no stress... quite odd
[Nexus 5 Original Android Development] vomer:
Allright guys... update #3 to the script is done. Last one since now things seem to all be perfect :)

Added a 20 second delay in the execution because I noticed some settings were not being applied right on boot. This should fix that :)

Link is in sig :)

@Zyphur make sure you have permissions set correctly: http://i.imgur.com/UB7tY3J.jpg
[Nexus 5 Original Android Development] amphi66:
Thanks for your earlier reply. I assume you are not addressing cores 3 & 4 (cpu2 & cpu3) as if they are to kick in due to load need we would want them at max anyway?
[Nexus 5 Original Android Development] vomer:
That's correct. I do not think there is any need to limit them as the main management cores seem to be 0 and 1.
[Nexus 5 Original Android Development] Zyphur:
It's all set. All the same as what you posted. :confused:

There a way to check outside of trickster/fku?
[Nexus 5 Original Android Development] vomer:
Well any cpu app will show you the same thing - it's just reading the values. Just means you messed up somewhere.

Do this:

- Delete old file from the init.d folder

- Re-download latest script from my link.. make sure the name is correct and has no extension

- Move the script to init.d folder

- Change permissions as shown

- REBOOT - wait 30secs after phone is done rebooting - check app

If it still does not work - then it could be your ROM not allowing init.d scripts
[Nexus 5 Original Android Development] Tzfardaya:
[MENTION=1363323]vomer[/MENTION]

just did some quick and dirty testing on manually setting the max frequencies...

looks like all 4 cores are linked.. Setting the max freq on core 0 locks all 4 to that max...

setting a max on core 1,2, or 3 has no effect... Too bad, I was looking forward to messing around with varying max clocks.. :(

Haven't looked at your script yet though, could you pm me a list of all the tunable paths/files we've determined so far? I'm going to start digging through the phone and would rather not duplicate effort we've already made... (or all the paths in your script already?)
[Nexus 5 Original Android Development] Zyphur:
No idea why its not working, I've done everything. What file explorer did you use btw?
[Nexus 5 Original Android Development] vomer:
https://play.google.com/store/apps/details?id=com.rhmsoft.fm

or the one included in rom toolbox pro

edit: do you have set on boot enabled in FKU?

---------- Post added at 07:35 PM ---------- Previous post was at 07:32 PM ----------

PM sent.

It could also be based on how the kernel functions. I personally do not think we need to worry too much about that much granular control.. let the kernel do its thing :)
[Nexus 5 Original Android Development] occtec:
Can someone please shed some light on the difference between Francos display control app which can be downloaded via the play store and the color control app which comes with fku updater? Surely you don't need to have both, is one better than the other?

Cheers
[Nexus 5 Original Android Development] The Gingerbread Man:
Just to let everyone know that reducing max cpu speed to 1497mhz, GPU 320 mhz, hot plug 100 doesn't reduce android to laggy pile of crap. Set games which require more with period app mode. Iv done some editing to my personal settings, including adding a little extra voltage, per app modes, global system settings & misc settings. Link as ever in sig
[Nexus 5 Original Android Development] Zyphur:
No set on boot. Double checked permissions in FileManager and ES, all set to what you put. No idea why it won't stick.
[Nexus 5 Original Android Development] Tzfardaya:
Nah, It's usually a hardware level thing for that...

for a time in the pc world you couldn't even have different cores on a single processor chip running at different clock speeds (all the cores, well.. both at the time, would adjust up or down... all locked to the same freq, if you had two processors, separate chips, you could have separate frequencies)

so I'm not surprised that while modern cpus allow each core to operate at a separate frequency, the max is set to the processor, not the core...

And thanks for the list.

Going to look through your init.d script in a few minutes... currently watching the Doctor fight the Daleks again with Harry and Sarah

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

I'm coming in a little late, but... what rom do you use?
[Nexus 5 Original Android Development] Zyphur:
stock 4.4.2 .
[Nexus 5 Original Android Development] The Gingerbread Man:
OT is any one else facing reboots using chrome beta?
[Nexus 5 Original Android Development] vomer:
Haven't noticed anything today ...

Sent from my Nexus 7
[Nexus 5 Original Android Development] Tzfardaya:
[MENTION=1363323]vomer[/MENTION] what rom do you run?

It was my understanding that stock android didn't support init.d system out of the box...

I'm running some tests to check if my stock 4.4.2 works or not..
[Nexus 5 Original Android Development] :
Hey I'm having issues installing r34. I tried flashing it and once my phone boots all google services fc and won't work if i try to open them. I go back to stock kernel and everything works again. I tried installing it through FKU and same issues happen. Is anyone else experiencing this?
[Nexus 5 Original Android Development] vomer:
I am on paranoid android.

Sent from my Nexus 7
[Nexus 5 Original Android Development] amphi66:
Hotplug seems to be the big variable here. Franco has a 60 default for R34, Vomer uses 80, and Gingerbread Man sets at 100. From what research I could do I believe 100 keeps all cores fully on-line, although they don't use much battery if not tasked. Unless I am fully backwards.
[Nexus 5 Original Android Development] The Gingerbread Man:
Seems to late to edit as ready you responded but to ask directly to Franco, have you done something to change undervolt sensitivity on the latest build?

Every time I launch an app using a per app mode to allow full 2.3ghz I'm getting reboots, even after increasing voltages. I know you might say undervolt isn't supported etc but today I've had at least 6 reboots with the settings iv found stable until today

Just to edit this to be a little more clear

Normally I use Max 1.5ghz, per app modes if I need more; for chrome or camera which are the apps I keep getting reboots with. Everything is stable under 1.5ghz for normal usage
[Nexus 5 Original Android Development] adrman:
Been running r34 for the day. The auto brightness was great in the daytime hours, but it seemed to be making too many adjustments in low light environments. I've since turned it off and restored Luxe with TiBu. I think I prefer the latter. It'll be good when Franco gets a chance to implement a toggle for it in FKU. Otherwise, r34 seems very smooth.
[Nexus 5 Original Android Development] asm19:
Don't work for me. In folder init.d also have the superuser script, so it should work.

Stock 4.4.2
[Nexus 5 Original Android Development] Tzfardaya:
[MENTION=4287681]Zyphur[/MENTION], [MENTION=1363323]vomer[/MENTION]

Yeah, it looks like stock rom doesn't have support for the init.d system...

needs support in kernel and rom..

I had to use an init.d app from the play store to get any init.d scripts to run on boot...

---------- Post added at 06:35 PM ---------- Previous post was at 06:31 PM ----------

looks like stock doesn't have full support for the init.d subsystem.
[Nexus 5 Original Android Development] Zyphur:
[MENTION=1363323]vomer[/MENTION] [MENTION=4860519]Tzfardaya[/MENTION] [MENTION=4628926]asm19[/MENTION]

I installed this app which enables init.d and it now works perfectly. https://play.google.com/store/apps/details?id=com.broodplank.initdtoggler

Maybe add a note of it in your post for stock rom users to install this?

Thanks.

[MENTION=3292224]franciscofranco[/MENTION] Been on r34 for a day now, haven't encountered any issues.
[Nexus 5 Original Android Development] aow1980:
To [MENTION=1363323]vomer[/MENTION], [MENTION=1240506]thegingerbreadman[/MENTION], The great developer Franco and all the others who treat and post great findings and settings. Thank you very much.

Been running r34 since first test and have had no real issues other than those of my own fault. Works great.
[Nexus 5 Original Android Development] The Gingerbread Man:
Thanks, its nice to hear positive feed back for a change, I'm sure Franco will be pleased too! Just to update everyone here iv done some edittimg to my own personal settings which may or may not be of uses to you, link in sig
[Nexus 5 Original Android Development] aow1980:
I'm using a mix of yours, [MENTION=1363323]vomer[/MENTION]s and some tinkering of my own. Once I leave it alone enough to get good results I'll post some of mine.
[Nexus 5 Original Android Development] willblake13:
I have never had a smart phone's battery last so long. You my friend are a god.
[Nexus 5 Original Android Development] The Gingerbread Man:
Sounds good! Don't be afraid to set hotplug threshold too 100 (duel core mode) for general android use, use per app mode when you need more. Iv just started this today and hopefully shall be able to get some battery stats up tomorrow
[Nexus 5 Original Android Development] aow1980:
That's what I'm trying now. Probably should put in the fku lounge but while I'm here. Do you set apps like google+ and Facebook with per app mode.?
[Nexus 5 Original Android Development] Zyphur:
Now that I have Vomer's script working and finally picked up the paid Franco app, I need to look into these color profiles. Damn there's a lot. I know it will change from screen to screen, but is there a 'top 3 to try' so to speak?
[Nexus 5 Original Android Development] occtec:
If anyone can give me some instructions how to create and upload a lastkmsg I will be happy to assist as I have just had my first reboot on r34 running PA latest beta
[Nexus 5 Original Android Development] Tzfardaya:
yeah, I installed a similar one for my tests... now I'm trying to write a tasker profile to emulate an init.d system... so I don't need to keep remounting /system every time I want to make a change to an init script... :P

---------- Post added at 07:22 PM ---------- Previous post was at 07:21 PM ----------

easiest way is with syslog (play store app) to grab it...
[Nexus 5 Original Android Development] occtec:
Thanks mate
[Nexus 5 Original Android Development] PetritH:
get this http://d-h.st/Jvu

put it to franco color profiles folder and you will never change it again :)
[Nexus 5 Original Android Development] m52 power!:
Whenever I try to play asphalt 8 it crashes to launcher within 5 seconds of racing. I've tried increasing CPU voltage, turn GPU and CPU mhz down but no luck.
[Nexus 5 Original Android Development] The Gingerbread Man:
No, the system wide settings and per app mode app modes apps (with settings) are all shown in my settings post

Each display is a little different keep trying profiles till you find one you really like

For future reference for any other users this info is in post 2 of my learner lounge thread
[Nexus 5 Original Android Development] perrocaliente:
Yup nothing happened.
[Nexus 5 Original Android Development] occtec:
Thanks mate and love your color profile in fku app. Cheers
[Nexus 5 Original Android Development] The Gingerbread Man:
Thanks! Which one are you using?
[Nexus 5 Original Android Development] occtec:
V4
[Nexus 5 Original Android Development] Zyphur:
In honor of your FAQ post teaching me how to do it, I am trying out your 32(V1) first :p

I believe it's the latest in the dropbox.