yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG V10 Android Development] famewolf:
Is your dangerously script (and the other too I suppose) targeted at marshmallow, lollipop or both? I'm running it with marshmallow and have not seen any issues but I might not be taking full advantage if it was targeted for lollipop.

Any additional apps you recommend in conjunction with your script? Kernel Aditur, A battery monitor other than the default built in marshmallow one?

I also wondered if you had any generic versions for devices with 2gb and 1gb of ram? I liked the results and wouldn't mind running the same tweaks on my older devices but obviously things like zram need to stay on etc.
[T-Mobile LG V10 Android Development] sabresfan:
Flashed dangerous on CM12 for fun and everything is smooth. Thanks again.
[T-Mobile LG V10 Android Development] sabresfan:
Great work.
[T-Mobile LG V10 Android Development] archlimitless:
this script and "[GUIDE] Advanced Interactive Governor Tweaks; Buttery smooth and insane battery life!"

this and that script like a same, for fixed Qualcomm battery drain solution and make more smooth....

Which one is better?
[T-Mobile LG V10 Android Development] neobdium:
Code:

cd /sdcard

no such file...

i replace the file manualy and backup it manualy (faster and better)
[T-Mobile LG V10 Android Development] dannieloco:
Whats the permission you used after you placed this file manually?
[T-Mobile LG V10 Android Development] demkantor:
I would assume 0644 as per instructions

Using a command line is manual... Do you mean you used a GUI?
[T-Mobile LG V10 Android Development] neobdium:
Root Explorer

[IMG="0644"]http://www.theandroidsoul.com/wp-content/uploads/2015/04/Set-0644-Permissions-from-ES-File-Explorer.png[/IMG]
[T-Mobile LG V10 Android Development] luchosw4:
Hey Guys, I'm brand new to the LG V10 and I was hoping this would improve my battery life, but when I try to do the Following on Root Explorer or ASTRO, I get a permissions error message, any thoughts?

I haven't rooted the phone, could that be the problem?

Thnx!
[T-Mobile LG V10 Android Development] in99flames:
Yes you must be rooted. Youre going to be accessing a system folder.
[T-Mobile LG V10 Android Development] demoncamber:
[MENTION=7372544]warBeard_actual[/MENTION]

Hey buddy, is there any way you could upload a new version omitting the governor and scheduler tweaks?

Or If I copy over your original tweak file and then adjust my own governor and I/O scheduler settings will they stick?
[T-Mobile LG V10 Android Development] lgipad:
Hey everyone, I am not really knowledgeable in this type of things, but can these tweaks fix issues in LG V10 such as vertical split screen flickering? I am already out of warranty and am looking for options to fix my phone. I am thinking that if one can change the hardware settings, it can fix the issue since it is temperature related. Thank you in advance.
[T-Mobile LG V10 Android Development] spartan268:
No. These changes wouldn't help at all since it only changes the behavior of the governor, kernel, i/o. All of which plays no role in the screen.
[T-Mobile LG V10 Android Development] dleclair:
Thanks for posting this, did the upgrade this morning. I previously had Ex Kernel Manager with the Butterfly configuration but this seems much smoother and consistent.
[T-Mobile LG V10 Android Development] warBeard_actual:
Hey guys, quick update. I've got an Axon 7 now and am moving my focus to that device. If you guys have anything you'd like me to do for you, shoot me a PM and I'll make some changes when I get around to it.

Cheers
[T-Mobile LG V10 Android Development] phi303:
What if I've got L Speed installed, does it need to be uninstalled first beforehand?
[T-Mobile LG V10 Android Development] spartan268:
Interesting I wonder if you're the same guy that was on reddit I replied too earlier lol.

Regardless the two can be used in conjunction but it depends on the tweaks you did in L speed. I'd imagine things like ram management may conflict. Nothing phone breaking would happen of course. Feel free to experiment :)
[T-Mobile LG V10 Android Development] warBeard_actual:
Hey guys, been a while huh?

Got an update coming for you.
[T-Mobile LG V10 Android Development] spartan268:
No freaking way. I'm actually excited you don't even know. Can't wait :)

Edit: just realized you uploaded the file already. Gonna take a read through it and then possibly apply it tonight. Hopefully I don't bootloop
[T-Mobile LG V10 Android Development] neobdium:
Cant wait! ?
[T-Mobile LG V10 Android Development] spartan268:
So far so good! Feels just as smooth as the previous one if not better. I also took the liberty in including the "dangerously" versioned edits and throwing it onto the new one. Big cluster usage is unexpecting lower than I thought but the little cluster seems to be pretty aggressive which I don't really mind too much. My high snapchat usage probably contributes to it jumping to 1440 so much. But I have so many questions about the decisions you made and how it even meshed together so well.. But I'll let you do your work :)
[T-Mobile LG V10 Android Development] in99flames:
Sweeeeeet gonna implement this today or tomorrow!
[T-Mobile LG V10 Android Development] Mat441:
yay!!!!! Can't wait!!
[T-Mobile LG V10 Android Development] nathanski:
How does this run on the new N 7.0 update

Guess I'm going to run the mod and see.. Will post back if I get something worthy of being commented... Well it runs can post back no issues .. Note to be made was I'm using magisk and couldn't run the rename and file swap with phone booted so I went into recovery added . back to my factory file copied the modes file over then used 0644 to change its properties in the recovery file manager...
[T-Mobile LG V10 Android Development] qwertyuipo:
Does it still work on nougat ?

Gửi từ LG-H901 của tôi bằng cách sử dụng Tapatalk
[T-Mobile LG V10 Android Development] popwar:
Im also wondering if it works with Nougat
[T-Mobile LG V10 Android Development] Amd4life:
Works fine on my device, running nougat
[T-Mobile LG V10 Android Development] lordkiller347:
Wow I got a score increase of over 5000 in antutu!! Thank you!!!
[T-Mobile LG V10 Android Development] br0adband:
Finally got the V10 I've been waiting on and now making use of this apparently awesome set of tweaks from warBeard_actual and I appreciate the time and effort put into all this.

I've been through the thread twice now and I'm giving the "Dangerously" version a go at the moment and wondering if anyone else can comment on the usage of that version. I don't see a lot of discussion as to what's changed exactly in that version but considering the script itself is much smaller (12.9K vs 19.2K for the "normal" script) I have to wonder what's going on. I'll take some time to look over both for the differences as it's a learning process obviously.

Also one other thing:

I saw a mention earlier in this thread talking about reducing the delay for a double-tap to wake the device in the build.prop known as:

persist.sensors.knock_delay

and that if the default of 1000 is reduced to 500 the screen should wake faster. At the moment I'm running the stock T-Mobile 30b ROM but it is rooted and I do have TWRP 3.0.2 installed and that all works just fine. But if I alter that one build.prop entry - just that one single entry - to 500 and then save it and double-verify that the build.prop has permissions of 644 (using fx File Explorer and Root Explorer as well) the V10 will bootloop.

Seems I can't alter that one build.prop entry or else it'll simply refuse to boot - I fixed the issue by replacing the build.prop with the stock one (which was saved as build.prop.bak so I'm good but I sure wonder why it won't allow me to alter that one setting, the V10 does wake kinda slow from a double-tap and I never knew it could be "sped up" in that respect.

Anyway, fantastic work on this, I just installed the "Dangerously" version and now I'll have to see how things work out over a few days.

Also: since the Dangerously version is from May 2016 and the latest updated script is from May 2017, has anyone made a test or done anything to discover if one is better than the other (in most respects)? Just curious...
[T-Mobile LG V10 Android Development] serpent android:
Bro how to root t mobile running nougat qnd install twrp
[T-Mobile LG V10 Android Development] dimm0k:
toot toot!
[T-Mobile LG V10 Android Development] 17mm:
is their any way you can add some framework for putting the internal wifi into monitor mode?

---------- Post added at 01:59 PM ---------- Previous post was at 01:57 PM ----------

i used this technique on the latest nougat update 30c for tmo https://xdaforums.com/tmobile-lg-v10/general/root-h901-nougat-t3773942

twrp and rooted works great
[T-Mobile LG V10 Android Development] TecknoFreak:
I'm assuming this will work on G4 as well. But my question is will this work with a custom CM kernel? Or is it just for stock?
[T-Mobile LG V10 Android Development] SIGMAxB:
Disreguard
[T-Mobile LG V10 Android Development] WillyPillow:
Since it disables zram, the easiest way is to run the command "free" and see if the swap sections are all zero.
[T-Mobile LG V10 Android Development] dgross1123:
Any confirmation for h900
[T-Mobile LG V10 Android Development] i42o:
doesn't do much. Ran it for three days on h900 and i noticed battery drain while in standby..

Did not see much of a difference in performance.
[T-Mobile LG V10 Android Development] rirozizo:
wrong. swap is a completely different thing.

swap is always 0 except if you manually turn it on via an app, or a swap partition on your storage plus a script.
[T-Mobile LG V10 Android Development] warBeard_actual:
You should see something like this: see attachment...

zRAM is enabled by default, and I've made some more changes since the other day in light of some user logs and stats submitted. I will upload it later tonight.

For those not noticing a difference, or stating battery life has been worse, remember your performance increase comes with a small hit on battery, and your power saving is ALWAYS minimal. This isn't intended toprovide you an extra hour of screen on time.

Remember your consistence in usage highly impacts day to day battery drain.

I've tested this for about a month now, the effects of it are not huge, but there nonetheless.

I would encourage anybody to carefully monitor their usage and formally test for yourself before concluding it isn't for you.

But, either way, take it or leave it. I'm offering merely a small, simple yet effective mod with this.
[T-Mobile LG V10 Android Development] rirozizo:
And I thank you for that :) :good:

simple_ondemand isn't found here on my G4 running a stock CM kernel. It might be there on the stock G4 ROM though, I've never checked that out. But do you think this will do any kind of damage if I applied this on my current state? Or will it just ignore the line that switches governors?

EDIT: IGNORE ALL THIS! Didn't notice at first it was a GPU governor, which is there on CM... sowwy!
[T-Mobile LG V10 Android Development] warBeard_actual:
Yes, correct. It is a GPU governor. And it should be available with the Adreno 400 series GPU's.

Either way, new file has been uploaded, and there is now a changelog in post #2.
[T-Mobile LG V10 Android Development] danstheman7:
I'll be trying the new file for sure, but just as a confirmation, the first file resulted in about 2 hours and 40 minutes of SOT which is quite a bit lower than my general average of 3hr20min, especially considering how I also use Greenify for most apps. I'll give this second file a shot since you say you made changes. Thanks.
[T-Mobile LG V10 Android Development] patalao:
I've tried the first release and what I've noticed is that the big cores jump more often than the little ones, wich makes a higher drain on battery because the big one is power hungry.

It doesn't jump to higher frequencies but uses much more the big cores as you can see on screenshot below.

Enviado do meu LG-H815 através de Tapatalk
[T-Mobile LG V10 Android Development] WillyPillow:
Zram is basically swap on a special device (/dev/block/zram0)
[T-Mobile LG V10 Android Development] warBeard_actual:
Another change

Interesting, your pictures are actually showing the opposite of what you said, if I am reading that right. Both are spending the majority of their time at the 800 MHz range, and the bigger cores are used less, it seems. What I'm going to do, is updated the hispeed_freq to something of a lower value, and adjust the above_hispeed_delay to a value twice the timer rate for cores 4 and 5... This should reduce CPU spikes and take care of low load a little better for the bigger cores.

Thanks for the screenshots, very useful info.

EDIT*** updated the link, give that one a shot. Should be quite noticeable. :good:
[T-Mobile LG V10 Android Development] rirozizo:
And again, I stand corrected. I was either drunk or I had a stupidity spike.

You're right, zRAM is basically swap!
[T-Mobile LG V10 Android Development] HNIC702:
I need help guys. I keep getting no such file or Directory. What am i doing wrong? Is the file not in the proper location?
[T-Mobile LG V10 Android Development] patalao:
If you see the percentage of every frequencies in both screenshots you see that little core basically uses the lower frequencie and the 800mhz one on the majority of time.

On big core there are more frequencies in use with a bigger percentage of use compared to little one.

The little one should beave as the big one is beaving and vice versa.

The new update seems to beave that way as shown :

I modified some parameters to my needs.

And on next update I would put 0 on multi_boost_freq.

No matter what other settings you have, if you have multi_boost_freq active the cpu will always scale to that frequency more often.

Enviado do meu LG-H815 através de Tapatalk

---------- Post added at 09:00 AM ---------- Previous post was at 08:57 AM ----------

Just use a root explorer and put the file on proper location and give the proper permissions.

After that just reboot, and your done.

Enviado do meu LG-H815 através de Tapatalk
[T-Mobile LG V10 Android Development] WillyPillow:
[MENTION=7372544]warBeard_actual[/MENTION]

Um, are you sure you had updated the links? They seem to be the same for me...

EDIT: For the record, I also experienced idle drain like [MENTION=5591114]i42o[/MENTION]
[T-Mobile LG V10 Android Development] amoot329:
Yeah I downloaded the 2nd update yesterday and it had been updated again (3rd?). Checked the checksum and both files are identical?
[T-Mobile LG V10 Android Development] warBeard_actual:
EDIT**** Made some more changes last night, going to test this last half of the week, and post an update. Check out the attached photos...

Links only change their name if they move into a different folder on drive or if the name of the file changes.

They've been updated, trust.

The next one will be early next week, and is going to have quite a bit of new things added. Screen off profiles, etc.
[T-Mobile LG V10 Android Development] danstheman7:
Installed the most recent, SOT is around 3 hours or so with 5ish percent left. Definitely an improvement from the previous file, looking forward to the changes to come! Thanks again!
[T-Mobile LG V10 Android Development] patalao:
After a cicle of battery here are my stats with your second upload and some changes from my side to serve my needs on G4.

Rom: Assics Rom v1. 3

Kernel: imperium kernel 2.6

Apps for battery: Greenify and Doze settings editor

My stats with some gaming and data always changing between wifi and 4G because of bad wifi on work.

Waiting for your new update to test.
[T-Mobile LG V10 Android Development] warBeard_actual:
I might add, for you, specifically, that I would do maybe some comparison tests with the stock file, and mine, on the stock kernel. You are running Android 6.0 (I can tell by your screen on time ss) and you are not only using a different ROM, but a different kernel than stock as well.

Users simply be aware of this, as results vary across versions of Android, inherently. Just test your own device, and monitor improvement or degradation.

That being said, this looks good, and I'm sure you will be pleased with the next iteration of the shell scripts. I've been running them today and the results have been excellent.
[T-Mobile LG V10 Android Development] supergear:
Quick note date should red 4/6/2016

---------- Post added at 07:04 PM ---------- Previous post was at 07:03 PM ----------

*Read
[T-Mobile LG V10 Android Development] warBeard_actual:
Fixed it. You'd think that the time in front of a terminal would mean that no mistakes are ever made.... sometimes it is the reason. lol

thx

After a full charge of testing, here are the first test results, keep in mind yours may still vary, but this was an improvement of about 34 minutes of screen on time for me (see screenshots)
[T-Mobile LG V10 Android Development] danstheman7:
Looks great to me! When will you post this new edit? Looking forward to it!
[T-Mobile LG V10 Android Development] Charliebill33:
So, I remain unsure as to what to do; none of my init.qcom match the post_boot; while the post_boot is referenced by something else. So should I remove the post_boot I have and then wedge in your new post_boot amongst the init.qcom directions? Any help would be appreciated.
[T-Mobile LG V10 Android Development] ousoonerchase:
Same question here. After applying the new folder and setting permissions, and reboot, I checked kernel adiutor and it's not showing the new CPU governor is what is being used. I haven't changed any settings other than applying the file you provided, and kernel adiutor is not set to apply on boot. What am I missing?

Edit: added pictures
[T-Mobile LG V10 Android Development] warBeard_actual:
First question, is what device and OS are you using? If you have an MSM8992, the file should be there, unless you removed it. Did you try to execute the terminal instructions in the OP?

Same reply for you as for CharlieBill. Did you already try to follow the OP instructions.

Bottom line is that if you are using a device that has the MSM8992, you should have this file built into your /system/etc.

The update is coming tomorrow, I have been doing some extensive testing the last few days with very positive results. I'm currently looking at 17 hours off the charger, at 17% battery, with close to 6 hours screen on time. This is another improvement for my own device, given my own usage on a daily basis.

I will be putting up a build.prop file as well, with some more instructions for the proper implementation of the post_boot.sh file - specifically, dealing with the stock zram modules (there is another file in /system/etc that should be removed completely if you are using this mod for your device.)

EDIT*** added some photos here... I'll post the new file tomorrow
[T-Mobile LG V10 Android Development] warBeard_actual:
OP and file updated, make sure you read post #2 as well.
[T-Mobile LG V10 Android Development] Charliebill33:
Warbeard, I'm using a TMO LG V10 with the MSM8992 SoC. I'm running Siraltus deodexed ROM (thread in TMO V10). I wiped and clean flashed yesterday and wiped again.

I have yet to see or find the file and I have read the OP (several times) and with the Terminal Emulator I've gotten about 2/3's through before it says the file I'm referencing isn't there.

I'll try again tomorrow. With next week's V10 Marshmallow rollout, will these tweaks stick or be over-ridden by the new code?
[T-Mobile LG V10 Android Development] Amd4life:
Running the same siraltus rom, and the files ARE present. Try using root explorer to move the files manually. Its must easier that way. Just make sure you change the permissions properly
[T-Mobile LG V10 Android Development] Charliebill33:
Please pardon the ignorance. I found the post_boot file and made the change using root explorer. I've checked permissions on the post_boot and they are enabled, I also set the zramswap to .bak (per OP). I moved the downloaded post_boot file to the etc folder before deleting the original post_boot file.

Based upon the above, my remaining question is: should the post_boot file have grown to 97 KB; when the original file was 64 (and change), while the downloaded post_boot file was 14 (and change)?
[T-Mobile LG V10 Android Development] RussianBear:
Anyone having their flash randomly turn on with this mod?
[T-Mobile LG V10 Android Development] SIGMAxB:
I haven't maybe some conflicting xposed mod
[T-Mobile LG V10 Android Development] warBeard_actual:
Agreed with the previous poster, completely unrelated to anything I did.
[T-Mobile LG V10 Android Development] llawen:
Double checked and file was moved to system/ECT will see how it goes. Thanks.

The phone does feel snappier
[T-Mobile LG V10 Android Development] RussianBear:
Must've been an operator error...
[T-Mobile LG V10 Android Development] warBeard_actual:
Operating the device operationally...
[T-Mobile LG V10 Android Development] Nandroid28:
Great battery...

Enviado de meu LG-H818 usando Tapatalk
[T-Mobile LG V10 Android Development] ZDeuce2:
I just want to get back to the 6-8 hours sot that I was getting... Errrr... Not sure what I effed up, but can't get back there

Common sense isn't all that common
[T-Mobile LG V10 Android Development] dimm0k:
I understand your reasoning for disabling zRAM, but isn't it more beneficial if you want to multitask more apps? without it, apps would be removed from memory more sooner? just asking since this subject of zRAM kind of eludes me...
[T-Mobile LG V10 Android Development] greekunit690:
What am I doing wrong???
[T-Mobile LG V10 Android Development] WillyPillow:
Well, we have 4GB of RAM, which should be more than enough anyway.
[T-Mobile LG V10 Android Development] dimm0k:
I understand that... but I'm just wondering what zRAM would do if it was left enabled...
[T-Mobile LG V10 Android Development] warBeard_actual:
zRAM is not a terrible thing - for devices where resources are limited. The problem is that it is simply a waste of time and CPU cycles on a system with plenty of memory to be shared. I am largely a power user, pushing the device to it's limits in about every way you could imagine - gaming, apps, specifically background usage is what I'm talking about - and I don't even come close to reaching the boundaries here. Linux does a good job of taking out the garbage for you if you tune it up a bit.

I wouldn't worry about the zRAM, but do as you please.
[T-Mobile LG V10 Android Development] dimm0k:
The only thing I notice from time to time is there's a system_server process that goes nuts on CPU usage and was wondering if zRAM was the culprit? it would seem that it is likely, but that's the other thing I can't be certain of other than it'll pop up for couple of minutes and goes away... after the first time this happens, my device isn't as snappy as it was until a fresh reboot. for example if I open a link in GMail that opens up Chrome, which then opens up a 3rd party app that triggers way more CPU usage than it should...
[T-Mobile LG V10 Android Development] Nandroid28:
Better battery life on my lg g4...

??

Enviado de meu LG-H818 usando Tapatalk
[T-Mobile LG V10 Android Development] warBeard_actual:
Excellent results there. Similar results have been seen on several friend's (of mine) G4s. Awesome.

EDIT***** OP updated, new file uploaded. Please see post #2 for a changelog.
[T-Mobile LG V10 Android Development] joaste:
Thanks for the updated file. :good:

Do we still need to do this:

***VERY IMPORTANT, you need to navigate to the /system/etc folder on your device, and rename the file "init.lge.zramswap.sh" to "init.lge.zramswap.sh.bak" so it does not run at boot.

If so, it would be good to put it in the instructions and not just in the second changelog.

Just a suggestion :D
[T-Mobile LG V10 Android Development] warBeard_actual:
Agreed. I will update this for you, if you have already done it, no need to.
[T-Mobile LG V10 Android Development] amoot329:
If I flash the gummy kernel, would it affect this tweak in any way? I'll be making a nandroid backup just in case. Will test it out for a bit.
[T-Mobile LG V10 Android Development] llawen:
Great battery and phone is a beast. Good work. Thanks
[T-Mobile LG V10 Android Development] warBeard_actual:
What was your screen on time?