[Guide]G4 Lag-free Marshmallow

bg_man

Senior Member
Apr 28, 2010
267
65
48
Sofia
I was very disappointed with my brand new G4.
It was lagging more than previous G3.
So after a month of testing various ROMs, kernels, governors and settings, I found a working setup eventually.

Prerequisites:

G4 Rooted
Marshmallow 20C - it's introduce less lag than 20D/E versions
Ex kernel manager (paid) - needs for automation. You can manually enter the required settings with Kernel Auditor, e.g., but this will require a lot of typing.
Any stable kernel should do the job. Tested are SuperXE and Imperium.

1. Let's do a little housekeeping
Get rid of bloatware you don't use. But be careful and mind what you will need.
If you froze vpndialogs.apk you won't be able to make a VPN connection e.g.
Based of my phone usage I froze:
Code:
com.hy.system.fontserver
com.android.LGSetupWizard
com.lge.sizechangable.weather.platform
com.lge.appbox.client
com.lge.lgdmsclient
com.lge.springcleaning
com.lge.matics
com.lge.myplace.engine
com.google.android.marvin.talkback
com.lge.launcher2.theme.optimus
com.lge.smartcover
com.lge.exchange
com.google.android.gm
com.lge.ia.task.smartsetting
com.lge.smartconfig
com.lge.lgmapui
com.lge.doyouknow
com.google.android.music
com.android.printspooler
com.rsupport.rsperm
com.uei.lg.quicksetsdk.irblaster
com.lge.gnsspostest
com.lge.eula
com.lge.gcuv
com.lge.concierge
com.google.android.apps.plus
com.lge.sizechangable.weather.theme.optimus
com.android.facelock
com.android.chrome
com.google.android.videos
com.lge.updatecenter
com.lge.filemanager
com.android.wallpaper.livepicker
com.lge.ia
com.lge.myplace
com.lge.sizechangable.weather
com.android.calculator2
com.google.android.apps.books
com.lge.eulaprovider
com.lge.wernicke
com.lge.videoplayer
com.lge.ime.theme.black
com.lge.lgsetupwizard.eula
com.lge.ia.task.s4urecommender
com.lge.email
com.lge.ia.task.informant
com.google.android.play.games
com.google.android.apps.magazines
com.lge.snappage
Disable MLT:
Enter hidden menu:*#546368#*815#
SVC Menu->LDB->MLT off

2. Theory
When digging around I found an excellent guide to Interactive governor tweaking by soniCron:
http://forum.xda-developers.com/nexus-5x/general/guide-advanced-interactive-governor-t3269557
And the most interesting part is the Nexus 5x is equipped with the same CPU as G4.
And thanks to Alcolawl who made the Ex kernel manager scripts:
http://forum.xda-developers.com/showpost.php?p=64645746&postcount=900
we can automate the task.
I tested all profiles and found the ButterFly profile works best for me.
But of course you can test them all.

3. Tuning
So download ButterFly profile for Nexus 5x from the link above.
Remove the .txt extension and copy the file in Ex kernel manager gov_profile folder:
/storage/emulated/0/ElementalX/gov_profiles
Code:
Open Ex kernel manage, select CPU menu and:
CPU governor -> interactive
CPU governor (Cluster 2) -> interactive
Governor options... -> LOAD -> ButterFly
Apply on boot
Sit and enjoy your lag-free G4.

Credits:soniCron, Alcolawl

If you liked my efforts please press the Thanks button and if it's possible buy me a beer :D
 

nitrous²

Senior Member
Jun 4, 2010
1,742
1,000
143
The Grid
But MM is draining to much battery... and is not well optimized on some games. Thats why I downgrade to LP
That's not how it works. The OS has no obligation to adapt to old app versions. It's the applications (games) which have to adapt to newer OS iterations. So if anything is at fault, then it's the apps. Not the OS.

BTW: If you can't find the ElementalX/gov_profiles folder, you can just create it in the root directory of your internal user storage.
 
Last edited:

imcass

Senior Member
Oct 11, 2013
140
34
0
Lisbon
Thanks for the info.
Currently trying out Silverfish on Imperium kernel , since I don't do gaming and such, just basic text/calls and some FB, Instagram, Tapatalk and Reddit.
Hopefully this will finally get me closer to 4h of SOT, I always get around 3/3.5 on a good day.
 

Killerdog

Senior Member
Aug 15, 2009
266
94
0
Cannes
i test your settings, but the "scrolling lag" still be here, with some app the horizontal and vertical scrolling is very laggy.
ex: news republic, appy geek and tapatalk.
When you scroll into main category it's ok, but when you go to a thread it's very laggy for some seconds, and when the loading process is finish, it very smooth.

for the rest i will report with my own usage later
 

patalao

Senior Member
Jan 24, 2009
1,204
953
0
Feira
That should be a problem of the app, not the phone.
Tapatalk is not very friendly when it comes to smoothness, but that's a problem of the app itself.
The same should be with the other app you have such as many more out there.