[LG Optimus 4X HD] ottomanhero:
Looking for ways to improve my phone, I came up with the idea of playing around with kernel variables/sysctl and I've found the best values for our phone with some help from the internet.So this is not your average 'universal' script.It has values all tweaked best for our phone.

The script is now compatible with any ROM&kernel, even ICS/Lollipop.

This flashable contains 4 init.d scripts, adblock file.

There are also optional downloads as listed HERE

Info on scripts :

Sysctl tweaks

​

Performance:​

Focused on improving gaming performance without hurting battery.

While it will barely effect your benchmarks (most noticeable in quadrant) it will reduce stuttering and make the games more responsive overall.

Removes some huge stutters, effectiveness may vary between kernels.

Battery Life :​

These settings do not reduce your battery life, they are rather 'fixes'.

As of V2 there are now a few settings that'll improve battery life without degrading performance.

Tweaks

​

Deadline

I/O scheduler as default with it's configuration optimized for our phone

Mount options

for overall better I/O performance

Softer KSM

: Less scans compared to default settings, puts less load on CPU.

Apps load noticeably faster

Out of memory settings

(8,16,32,64,128,192,256) which doesn't ruin multitasking while saving more RAM for caching, increasing performance&battery in general.

Filesystem trimming

: This is like defragmenting your HDD.While it's completly different, it's effects are similiar.You don't trim, performance goes down. (was supposedly fixed in android 4.3.x but I still get some lags which are fixed only by trimming.Last time I trimmed 98% of the empty space was trimmed.) If you want to learn how bad it is to not trim, google "nexus 7"(uses tegra 3 chipset) it is a life saver for their users.

Cleanup script

​

This script deletes logs, temporary files and app caches every boot.In long term it's very useful as you can have countless of logs, temp files laying around eating up your space.

NEW !

​

Sqlite optimize script

​

This script vacuums/reindexes database files in your phone at every boot.Resulting in faster app load for apps which use databases.

You might be wondering why there is no zipaligning.It is because kitkat doesn't support it even if you manuallly put the binary there.

All credit goes to slaid480 on this one.Sqlite binary & init.d script is taken from his great work, fly on mod.

Adblocker

​

This file blocks some common advertises.

Again, all credit goes to slaid480 on this one.This file was taken from his great work, fly on mod.

Downloads :

Download the script : Ottoman's scripts V2.2

Optional downloads : Note that build tweaks, sony bravia engine and sony clearaudio downloads are

on this post

Changelog

NOTE FOR NON-KITKAT USERS : If you

aren't

on kitkat, you need to flash an additional file AFTER you flash the script.[Lollipop users don't have additional steps for now and this script IS compatible with lollipop.] (this means you have to download both the script itself and an additional file from below, if you are not a kitkat user.)

Choose the file depending on your android version and flash it AFTER you flash the script itself :

Jellybean 4.3 http://xdaforums.com/attachment.php?attachmentid=2187824&d=1376469987

Jellybean 4.2 http://xdaforums.com/attachment.php?attachmentid=2187823&d=1376469962

Source of additional files : http://xdaforums.com/showthread.php?t=2226373

Credit goes to slaid480 for ad blocker & sqlite script and binary.

You are free to distribute these scripts as long as you give credit.

Installation instructions

:

Flash the script,

Flash the optional files you've downloaded,

Flash the additional file you've downloaded depending on your android version. (SKIP IF ON KITKAT)

Uninstallation instructions

:

Use any root explorer to browse to /system/etc/init.d

Delete the four files "ZZ99Sysctl, ZZ99Tweaks, ZZ99Cleanup, sqlite_optimization"

Bravia engine has it's uninstaller on downloads post.

Benchmark on Mourta's Liquidsmooth 3.2 with kernel 3.4.These settings applied, interactive governor, deadline I/O scheduler and around 150 user apps installed, on ART.(Never had I/O performance this high.)

XDA:DevDB Information

[TWEAKS][Android 4.2 to 5.1][V2.2]Collection of scripts tweaked best for our phone!, Tool/Utility for the LG Optimus 4X HD

Contributors

ottomanhero

Version Information

Status: Stable

Current Stable Version: V2.2

Stable Release Date: 2015-01-11

Created 2015-02-22

Last Updated 2015-06-27