[G4 General] kessaras:
Feature list​

- sets hostname to LG-G4 something that was missing at first from lineage/aosp 7.1.1 (maybe i will remove that)

- Better mount point flags

- Internal storage:

nomerges

nr_requests

lower safe read_ahead_kb

cfq scheduler

cfq scheduler tweaks

remove add_random (if its enabled in the kernel by default)

rq_affinity

- external storage:

nomerges

nr_requests

lower safe read_ahead_kb

cfq scheduler

cfq scheduler tweaks

remove add_random (if its enabled in the kernel by default)

rq_affinity

- Net and virtual memory:

tcp_congestion_control

disable_ipv6

dirty_writeback_centisecs

dirty_expire_centisecs

dirty_background_ratio

dirty_ratio

drop_caches

kernel.panic

min_free_kbytes

overcommit_ratio

panic_on_oom

swappiness 0 #llama doesn't have zram feature, it's useless on Lg G4

vfs_cache_pressure

- CPU customisations ~depends on your choice of script~

balanced ~doesn't make any cpu changes~

less ~for less battery drain, cpu rests more~

more-less ~for a lot less battery drain, but with a big lag (will soon try fix stability and smoothness)~

performance ~for full cpu power, but rest when the screen is off~

- Kernel customisations

msm_thermal ~off on battery save / on and set a safe temp. for performance~

lowmemorykiller

read_wakeup_threshold

write_wakeup_threshold

hotplug customisation

- Only the safe internet customisations

tcp_timestamps

tcp_tw_reuse

tcp_sack

tcp_tw_recycle

tcp_window_scaling

tcp_keepalive_probes

tcp_keepalive_intvl

tcp_fin_timeout

For stock based roms follow the guide in post #2

How to "install" it ? Simple

1.unzip

2.place it in /system/etc/init.d

adb root
adb remount
adb push <your tweak> system/etc/init.d/

3.change its permissions to 755

4.lastly change owner:group to root:shell

adb shell
su
mount -o remount rw /system
chmod 755 /system/etc/init.d/<your tweak>
chown root:shell /system/etc/init.d/<your tweak>

If you don't have a pc, type in a terminal inside your g4

su
mount -o rw remount /system
chmod 755 /system/etc/init.d/<your tweak>
chown root:shell /system/etc/init.d/<your tweak>

Those of you that use the new systemless root method of chainfire you can put the script in /system/su.d or in /su/su.d with permissions 700 (same permissions at folder and script) and set owner:group to root:root

Those of you that use the new magisk root method you can put the script in /magisk/.core/service.d/ with the same permissions and ownership as in init.d

Those coming using search bar and don't have this phone and this kernel, don't try it, unless you know what to edit to "fit" your own kernel.

These tweaks aren't just for faster easy setting up our phone, they are more useful for those that don't want to have root access ON, for various personal reasons. They can apply those settings on boot and setup their phone without the need of root and an app asking for root.

Easy removal: delete the script and reboot.

And never use more than one of these scripts inside init.d

Careful, some stock based roms have preinstalled some scripts inside init.d by default.

Those must be removed after flashing Llama Sweet Kernel. They are not compatible and they cause instability !

BIG Thanks to this genius

[MENTION=5776465]genesixxbf3[/MENTION]

for his kernel to our lg g4.

XDA:DevDB Information

[Tweaks][MM/N][H815][H811]Kernel Tweaks[CM/STOCK/AOSP], Tool/Utility for the LG G4

Contributors

kessaras, genesixxbf3

Version Information

Status: Stable

Created 2016-12-09

Last Updated 2017-04-25