Kernel Optimizations - Galaxy S II Q&A, Help & Troubleshooting

If anyone is compiling a kernel, please unset CONFIG_UEVENT_HELPER_PATH.
It is currently set to /sbin/hotplug, which does not exist.
You might also set
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
somewhere in the initramfs.

What does these settings do?

lynx2k50 said:
What does these settings do?
Click to expand...
Click to collapse
if CONFIG_UEVENT_HELPER_PATH is set, then the kernel tries to execute that helper tool every time a hotplug event occurs. Unsetting it would save a lot of forks at boot time.
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).

Ah okay so i can expect better battery life (more sleep time) and a faster booting.
Well done, thanks.
I hope some devs are going to integreate it.

OK good point to try.
Added now on my Cognition 1.07
Code:
bash-4.1# cat /etc/init.d/90laptop.sh
#!/system/bin/sh
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

Code:
diff --git a/arch/arm/configs/c1_rev02_defconfig b/arch/arm/configs/c1_rev02_defconfig
index a7992c0..ccd06df 100644
--- a/arch/arm/configs/c1_rev02_defconfig
+++ b/arch/arm/configs/c1_rev02_defconfig
@@ -917,7 +917,7 @@ CONFIG_RFKILL_INPUT=y
#
# Generic Driver Options
#
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y

Can someone pls create a update.zip or else for the cognition rom?
Or a shirt instruction.
Sry for my englisch
from my SGS running MIUI 2.3.4

If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug

saturn_de said:
If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug
Click to expand...
Click to collapse
the first two might help. (does Solid State internal storage need "sleep" mode?)
but depending on when the custom script is run the last line may be useless here..

Does it only work with a CF-Kernel, i've tagraks kernel, and cant find any file in data/locel .
Greetz

saturn_de said:
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).
Click to expand...
Click to collapse
It doesn't go into sleep mode since it's not a spinning disk.
(Or you could look at it as always being in sleep mode when not in use - there's no spindown/spinup phase.)
So you're not gonna see any battery benefits from that.

Added into my installation on my handset. No way to test it whether it will increase stabilty nor speed, but it does tidy thinngs up.

Related

[DISCUSSION]PerfectPeso by trettet!

Ok,this is weird.Why his topic was closed?
http://forum.xda-developers.com/showthread.php?t=1382033
I noticed that his website was blocked by SOPA.Why?The download links were mediafire links,no MU.Also Android is open source,and in his ROM it wasn't any paid app by default(i mean in system/app).What's going on?Is mediafire gonna be taken down?I noticed that it barely works.But why topic closed?
The reason is, maybe link was associate with megaupload...
Sent from my Galaxy Nexus using Tapatalk
he used mediafire links...
Marius Cristian said:
Ok,this is weird.Why his topic was closed?
http://forum.xda-developers.com/showthread.php?t=1382033
I noticed that his website was blocked by SOPA.Why?The download links were mediafire links,no MU.Also Android is open source,and in his ROM it wasn't any paid app by default(i mean in system/app).What's going on?Is mediafire gonna be taken down?I noticed that it barely works.But why topic closed?
Click to expand...
Click to collapse
i tot SOPA was shelved for the moment?
Sorry if this is OT.
But I would like to share some bugs I found while using 1.1A as I didn't upgrade to 1.4 as the links were down. Can you verify whether these are faced by any of you !
1. It takes time to wake up from the lock screen. ie even after a hard key press the screen wakes up after say 3-4 secs.
2. Data connection works with flaws. 2G/3G data seems to be buggy.
3. The notification power widget and power widget doesnt work properly. ie, even if i disable/enable Data/Orientation Lock the effect is not applied. I cant even change it in settings. Only solution is a reboot.
4. Incoming call button issues. (Solved in later versions)
Other than these, the rom is pretty stable.
umm I didn't had any of those bugs in v1.1a.actually it was one of the best version because of kernel, except few graphical bugs.anyway,look on last page/page before that of the rom,pm rosuvladut and ask him to upload rom v1.4 to 4shared or another.if he doesn't have it anymore send me a pm and I will upload v1.3 for you when I get home.i personally am lazy to upgrade to v1.4 because the changes are too insignificant.you can upgrade rom manager by yourself, instead of root browser use root explorer.about super charger I don't use it so for me v1.3=v1.4
anyone knows more about why his topic was closed? we could add other download links and that's it.
Sent from my LG-P500 using Tapatalk
I checked back in dev thread to see if any of the down links where updated. Was surprised to see no post by trettet about site being down, then noticed thread was locked. Hope all is well.
tread closed? why!
Anyone know why the notifications won't stop making noise until I view them...the sound is very annoying when it doesn't stop? I only want the notification sound once. Awesome ROM btw.
Sent from my LG-P500 using Tapatalk
i was about to flash 1.4 in my phone and then... closed thread, site down... =/
i have the link for pp1.4 posted by soberspine at mediafire:
http://www.mediafire.com/?udbvyy0j1oan0gv
but i don't have the fix (phone.apk) and gapps... can someone upload it?
also, where is trettet? do you think the thread was closed by him? or a forum admin closed it?
betoqm said:
i was about to flash 1.4 in my phone and then... closed thread, site down... =/
i have the link for pp1.4 posted by soberspine at mediafire:
http://www.mediafire.com/?udbvyy0j1oan0gv
but i don't have the fix (phone.apk) and gapps... can someone upload it?
also, where is trettet? do you think the thread was closed by him? or a forum admin closed it?
Click to expand...
Click to collapse
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
EDIt:
anyways I'm tired of bug reports and fixing it and everything anyway
trettet said:
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
Click to expand...
Click to collapse
talking about him!
does it mean you will not work on perfectpeso anymore?
i know have your work copied can be frustrating! but common, if i was you, i wouldn't give a sh*t... if there are modders copying your work, it means you have done a awesome job and we all recognize it!
again, we are all waiting for the next releases of perfectpeso!
betoqm said:
talking about him!
does it mean you will not work on perfectpeso anymore?
i know have your work copied can be frustrating! but common, if i was you, i wouldn't give a sh*t... if there are modders copying your work, it means you have done a awesome job and we all recognize it!
again, we are all waiting for the next releases of perfectpeso!
Click to expand...
Click to collapse
I will work on perfectpeso but won't be release on public, until Official CM7 Stable is out xD
@trettet could u please atleast give the links for the latest gapps :/
PHONEFIX.ZIP (v1.3 [ not sure ] and v1.4 [works perfectly]
Latest Gapps [works with all versions]
Aspee's Fix (works with v1.3 and v1.4)
As for the people who steal his work...you can all go to hell.
Trettet if you want I'll remove the files.I thought is nice for the people to enjoy your work.
trettet said:
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
EDIt:
anyways I'm tired of bug reports and fixing it and everything anyway
Click to expand...
Click to collapse
NightlyfourE?
Sent from my LG-P500 using Tapatalk
manuvarghese said:
Sorry if this is OT.
But I would like to share some bugs I found while using 1.1A as I didn't upgrade to 1.4 as the links were down. Can you verify whether these are faced by any of you !
1. It takes time to wake up from the lock screen. ie even after a hard key press the screen wakes up after say 3-4 secs.
2. Data connection works with flaws. 2G/3G data seems to be buggy.
3. The notification power widget and power widget doesnt work properly. ie, even if i disable/enable Data/Orientation Lock the effect is not applied. I cant even change it in settings. Only solution is a reboot.
4. Incoming call button issues. (Solved in later versions)
Other than these, the rom is pretty stable.
Click to expand...
Click to collapse
Did you flash over without full wipe? Or changed patches now and then? I had these problem long ago bcos of one of above said reasons....a clean wipe has none of the above mentioned bugs .. I'm pretty sure of what I'm saying!
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
NightlyfourE?
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
Why NightlyFourE I only use two tweak gov ( maxiumtweak and he removed it )+ remount in init.d
This
#!/system/bin/sh
# Governor Tweaks for Ondemand, Conservative, SmartassV2
# Ondemand
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
fi;
# Conservative
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
# SmartassV2
if [ -e /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq ]; then
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
if [ "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`" -eq 200000 ]; then
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
else
echo "100000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
fi;
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq;
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "80" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "0" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
fi;
Click to expand...
Click to collapse
And
#!/system/bin/sh
for k in $(busybox mount | grep relatime | cut -d " " -f3)
do
sync
busybox mount -o remount,noatime,nodiratime $k
done
for k in $(busybox mount | grep barrier | cut -d " " -f3)
do
sync
busybox mount -o remount,barrier=0 $k
done
Click to expand...
Click to collapse
And I have credit to trettet
If you think i coppy I will remove two this script
@eee I just asked cos there are no other roms except yours based on official cm.7. 2 with ics looks..
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
@eee I just asked cos there are no other roms except yours based on official cm.7. 2 with ics looks..
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
I don't understand what you say

[Q] How to set-up and troubleshoot init.d scripts?

I have a Nexus 4, running CM10.1 and Faux123's latest kernel. I want to use an init.d script to set the governor, tuneables, and other things instead of an app (all of the apps I've tried have an issue with permissions/settings not sticking, plus I take any opportunity to eliminate 3d party apps when possible).
Running into some issues getting this to work right, hoping someone can help --
My init.d script successfully applies the following on boot: stop mpdecision, choose FIOPS as the I/O scheduler, put the GPU clock max at 400 mHz. However, any commands I have in the script that are related to the CPU governor, parameters, and eco mode/snake charmer do not work.
I thought I had put my script (named "userinit.sh", placed in /data/local) in the wrong place or something, but like I said it successfully stops mpdecision on boot, sets the i/o to FIOPS and makes the read-ahead 2048kb, and sets the GPU max to 400 mHz -- none of the other commands work though. Any ideas?
Running Cyanogenmod 10.1 nightlies with 002b6 faux kernel. I've also set the permissions of the file to 755 (rwxr-xr-x), is that right?
My script looks like this (the ones in green work fine, the rest in red don't work):
#!/system/bin/sh
su
stop mpdecision
echo "intellidemand" > /sys/devices/system/cpu/cpu0/scaling_governor
echo 594000 > /sys/devices/system/cpu/cpu0/scaling_min_freq
echo 1350000 > /sys/devices/system/cpu/cpu0/scaling_max_freq
echo 1 > /sys/devices/system/cpu/cpufreq/intellidemand/eco_mode
echo 1350000 > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_active_max_freq
echo 1026000 > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_inactive_max_freq
echo 1350000 > /sys/kernel/msm_cpufreq_limit/cpufreq_limit
echo "fiops" > /sys/block/mmcblk0/queue/scheduler
echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb
echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
I would love any advice on what steps I need to take to get this working correctly, as well as any info about init.d scripts generally, I threw this one together after some Googling but who knows if its even in the right format. Thanks!

button backlight disabler

Use at your own risk, i am not responsible for anything happening to your device
What it does
This flashable zip turns your button backlight off permanantly.
it just changes your hw_config.sh file to disable backlight.
Steps
for your own safety please make a backup, in case something happens.
reboot into cwm
flash the zip
Downloads for bbl disabler.
active
lww
mini
mini pro
ray
If u want to get the light back,
active
lww
mini
mini pro
ray
in case it didn't work, edit your hw_config file found in system/etc
find this line: echo 1 > $dev/button-backlight/max_current
and set it to
Active: echo 8000 > $dev/button-backlight/max_current
lww: echo 1500 > $dev/button-backlight/max_current
mini pro: echo 500 > $dev/button-backlight/max_current
ray: echo 50 > $dev/button-backlight/max_current
for mini find these two lines
echo 1 > $dev/button-backlight-rgb1/max_current
echo 1 > $dev/button-backlight-rgb2/max_current
change to
echo 8000 > $dev/button-backlight-rgb1/max_current
echo 8000 > $dev/button-backlight-rgb2/max_current
okay
I have an easier way
put it in init.d
Code:
echo 1 > /sys/class/leds/button-backlight-rgb1/max_current;
echo 1 > /sys/class/leds/button-backlight-rgb2/max_current;
Re: Testers for button backlight disabler
Gustavo RD78 said:
okay
I have an easier way
put it in init.d
Code:
echo 1 > /sys/class/leds/button-backlight-rgb1/max_current;
echo 1 > /sys/class/leds/button-backlight-rgb2/max_current;
Click to expand...
Click to collapse
Add it at the last or change something??
Edit: I get a feeling u use a mini(others dont have 2 button backlights rgb1 and rgb2)
Don't forget to hit thanks
Add the lines in a script that you already have or add this script :good:
Note: this is not a flash zip
Gustavo RD78 said:
Add the lines in a script that you already have or add this script :good:
Note: this is not a flash zip
Click to expand...
Click to collapse
thanks for the info and the file
but..i still think mine's easier, just a simple flash when you flash a new rom
could you please try it and confirm it works?
thanks

My tuning script for Axon7 very good balanced.

My tuning script very good balanced.
For the kernel with zzmoove gov and fiops io scheduler.
I run the script with Tasker.
But you can copy it to /system/etc/init.d/
Don't forget, set it to 0755 perms
//
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
chmod 644 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo '0' > /sys/module/msm_performance/parameters/touchboost
echo '30' > /sys/module/cpu_boost/parameters/input_boost_ms
echo '0' > /sys/block/sda/queue/iostats
echo '0' > /sys/block/mmcblk0/queue/iostats
echo '4' > /sys/kernel/autosmp/conf/max_cpus
echo '2048' > /sys/block/sda/queue/read_ahead_kb
echo 'fiops' > /sys/block/sda/queue/scheduler
echo 'fiops' > /sys/block/mmcblk0/queue/scheduler
echo '1' > /sys/kernel/autosmp/conf/cycle_down
echo '0:844800' > /sys/module/cpu_boost/parameters/input_boost_freq
echo '2:940800' > /sys/module/cpu_boost/parameters/input_boost_freq
//
SOT 8 hour or more
AICP and Llama kernel Non EAS 0.5.
How is the performance on synthetics like antutu, games, and ui smoothness?
nfsmw_gr said:
How is the performance on synthetics like antutu, games, and ui smoothness?
Click to expand...
Click to collapse
Geek bench 4, single core 1682, multi cores 4190.
No laggy. I am happy. You can try it. ?
7hour Sot, very simple, if you don't play game.
denf666 said:
Geek bench 4, single core 1682, multi cores 4190.
No laggy. I am happy. You can try it. ?
7hour Sot, very simple, if you don't play game.
Click to expand...
Click to collapse
A Profile for kernel Adiutor would be nice. Much easier to handle and to adjust if needed.
stock rom is very good.İ think flash custom rom not needed.This phone's best thing is speaker.
i think My SoT is good
Edit : No lag of course this is sd820 .
atakan33 said:
stock rom is very good.İ think flash custom rom not needed.This phone's best thing is speaker.
i think My SoT is goo
Edit : No lag of course this is sd820 .
Click to expand...
Click to collapse
Which version?
yeah i agree on a kernel auditor profile but will it work with other ROMS?
denf666 said:
Which version?
Click to expand...
Click to collapse
B05 or B06 nougat
gecko702 said:
yeah i agree on a kernel auditor profile but will it work with other ROMS?
Click to expand...
Click to collapse
this is the KA profile. Enjoy.
{"version":1,"profile":{"commands":[{"path":"\/sys\/devices\/system\/cpu\/cpu%d\/cpufreq\/scaling_governor2","command":"#{\"path\":\"\\\/sys\\\/devices\\\/system\\\/cpu\\\/cpu%d\\\/cpufreq\\\/scaling_governor\",\"value\":\"zzmoove\",\"min\":2,\"max\":3,\"bigCpus\":[2,3],\"LITTLECpus\":[0,1],\"corectlmin\":2}"},{"path":"\/sys\/devices\/system\/cpu\/cpu%d\/cpufreq\/scaling_governor0","command":"#{\"path\":\"\\\/sys\\\/devices\\\/system\\\/cpu\\\/cpu%d\\\/cpufreq\\\/scaling_governor\",\"value\":\"zzmoove\",\"min\":0,\"max\":1,\"bigCpus\":[2,3],\"LITTLECpus\":[0,1],\"corectlmin\":2}"},{"path":"\/sys\/module\/msm_performance\/parameters\/touchboost","command":"echo '0' > \/sys\/module\/msm_performance\/parameters\/touchboost"},{"path":"\/sys\/module\/cpu_boost\/parameters\/input_boost_ms","command":"echo '30' > \/sys\/module\/cpu_boost\/parameters\/input_boost_ms"},{"path":"\/sys\/block\/sda\/queue\/iostats","command":"echo '0' > \/sys\/block\/sda\/queue\/iostats"},{"path":"\/sys\/block\/mmcblk0\/queue\/iostats","command":"echo '0' > \/sys\/block\/mmcblk0\/queue\/iostats"},{"path":"\/sys\/kernel\/autosmp\/conf\/max_cpus","command":"echo '4' > \/sys\/kernel\/autosmp\/conf\/max_cpus"},{"path":"\/sys\/block\/sda\/queue\/read_ahead_kb","command":"echo '2048' > \/sys\/block\/sda\/queue\/read_ahead_kb"},{"path":"\/sys\/block\/sda\/queue\/scheduler","command":"echo 'fiops' > \/sys\/block\/sda\/queue\/scheduler"},{"path":"\/sys\/block\/mmcblk0\/queue\/scheduler","command":"echo 'fiops' > \/sys\/block\/mmcblk0\/queue\/scheduler"},{"path":"\/sys\/kernel\/autosmp\/conf\/cycle_down","command":"echo '1' > \/sys\/kernel\/autosmp\/conf\/cycle_down"},{"path":"\/sys\/module\/cpu_boost\/parameters\/input_boost_freq0","command":"echo '0:844800' > \/sys\/module\/cpu_boost\/parameters\/input_boost_freq"},{"path":"\/sys\/module\/cpu_boost\/parameters\/input_boost_freq2","command":"echo '2:940800' > \/sys\/module\/cpu_boost\/parameters\/input_boost_freq"}]}}
Here is a created profile everyone could import.
Just unzip and import afterwards through kernel Adiutor.
http://cloud.tapatalk.com/s/59e6649a10013/TuneZZmoove.zip
SilentEYE said:
Here is a created profile everyone could import.
Just unzip and import afterwards through kernel Adiutor.
http://cloud.tapatalk.com/s/59e6649a10013/TuneZZmoove.zip
Click to expand...
Click to collapse
Are u using this profile?
denf666 said:
Are u using this profile?
Click to expand...
Click to collapse
Yes I applied it yesterday and testing it out now on llama 0.5 kernel.
Script noob here. Be gentle.
Any tips for using with EX Kernel Manager? I have never messed with scripts. I added the json to see what would happen. Magisk log shows TuneZZmoove executing but I get no output when running in EXKM. Then again, that may be normal.
Researching in the meantime.....
Cablespider said:
Script noob here. Be gentle.
Any tips for using with EX Kernel Manager? I have never messed with scripts. I added the json to see what would happen. Magisk log shows TuneZZmoove executing but I get no output when running in EXKM. Then again, that may be normal.
Researching in the meantime.....
Click to expand...
Click to collapse
KA Profil is only for KA, but you can run the script with Tasker or init.d.
Hi,
can I use this script on AMD stock rom with stock kernel? if yes, how....?
My SOT is max 3,5-4hours...too bda for me...
thx
kraljan66 said:
Hi,
can I use this script on AMD stock rom with stock kernel? if yes, how....?
My SOT is max 3,5-4hours...too bda for me...
thx
Click to expand...
Click to collapse
This is only for kernel with zzmoove and fiops support.
ok thy, maybe stupid question, but is any kernel with supprot as you write for this rom/stock...? I have not see yet here...
kraljan66 said:
ok thy, maybe stupid question, but is any kernel with supprot as you write for this rom/stock...? I have not see yet here...
Click to expand...
Click to collapse
Just tested on LOS based Rom.
I added it to init.d for the time being. Will test after this charge.

Speed Mod for the Lgv20 Stock Oreo & image retention fix + Boeffla Wakelock blocker (root only)

STANDARD DISCLAIMER: I am not responsible for any damages caused to your phone. Use the mod at your own risk there is no warranty or guarantee.
I made this mod to speed up the phone. Thermal throttling is enabled. This mod runs post boot before Stock Oreo get's loaded. No need for Kernel Adiutor, The speed mod will make all the tweaks for the Lgv20 to run at it's maximum performance & prolong the battery life.
Note: Flashing this mod when running the Lemon_Drop rom, will remove Zram. To fix just flash the latest version of Auto_Debloat again. I made this page before the Speed Mod was included in Auto_Debloat.
Updated on 12-27-22
You can just flash on top of older versions to update
This twrp mod only touches two files:
"/system/vendor/bin/init.qcom.post_boot.sh" permissions are 0 2000 0755
"/system/media/display/calib.cfg" permissions are 0 0 0644
You can back them up before install, or just flash the latest uninstaller.
Requirements:
TWRP
Lgv20 msm8996 aka Qualcomm Snapdragon 820
Stock Oreo 8.0
ezV2020 Kernel Stock Oreo 8.0 Kernel, This is what makes this Speed Mod possible
Uninstall Kernel Adiutor
How to install?
Download the version you want to use. If your not sure what version you want, v4.2 is good. It is the speed mod and will fix the image retention issue on the Lgv20 phone, on start up.
You may also want Boeffla_Wakelock_blocker_readme.zip with v5.4, instructions on how to use the Boeffla Wakelock blocker.
Flash in twrp wipe dalvik cache and reboot.
All the versions have the latest speed mod. Flash on top of older versions to update.
v3.28 Speed mod only
v4.28 speed mod + image retention fix lgv20
v5.28 speed mod + image retention fix lgv20 + Boeffla Wakelock blocker
Update notes
New v3.28
change GPU governor to msm-adreno-tz with default 133mhz
New 3.27
Removed the GPU tweaks and adjusted the idle timer that should speed up the GPU also with out the battery drain I was experiencing.
New v3.26
Adjusted the GPU tweaks so they do not use too much power but still provide a performance boost.
New v3.25
Added some GPU tweaks
New v3.24
Fixed a type in last speed mod.
New v3.23
Changed the rq_affinity to number 2. That should speed up the eMMC drive and sdcard.
New v3.22
All new interactive governor settings.
New v3.21
Tweaked the interactive governor settings.
New v3.20
Changed governor to interactive, increased speed & increased battery life.
New v3.19
Fixed some things with the TCP Speed mod
New v3.18
Added a TCP speed mod to speed up internet.
New v3.17
Changed the TCP Algorithm to cubic. May speed up internet and make it more stable. I have an issue with Wifi Calling where the voice will cut in and out sometimes. This may fix that issue.
New v3.16
Changed GPU Governor to Simple_Ondmand reduced the power level to save battery power.
New v3.15
Trying to save a little bit of battery life without sacrificing speed.
New v3.14
Added disk scheduler to noop for micro sdcard.
New v3.13
fixed image retention issue on v4.13 and v5.13 it's the best I can fix.
New v3.12
Change disk scheduler to noop. Some other tweaks to improve speed and battery life.
New v3.11
This should speed up the phone a little bit more. Should also save battery life. I tweaked the sched_upmigrate and sched_downmigrate. The up is set to 95% and down is set to 90%. So if a task is using more that 95% of cpu it will go the big cpu and vice versa.
New v3.10
Tweaked the Entropy tweak a little bit.
New v3.9
Added an entropy tweak. This should improve the speed of the phone and prevent lag.
New v3.8
Changed the disk speed tweaks. Much faster now.
New v3.7
Some tweaks, some fixes. haha lazy to note it should be faster that other versions.
New v3.6
Some more kernel tweaks, and an internet kernel speed tweak. I think it's faster.
New v3.5 Speed Mod
It's faster, changed the cpu sample rate to 19000 that seems to be in the butter zone. What's odd is, my music sounds amazing with this version. I think I am keeping this one.
New v3.4 Speed Mod
Changed disk scheduler from noop to deadline, deadline prioritises reads over writes so it should improve performance a little bit.
As for the Auto Brightness fix, I made it more sensitive. If you are in the house and set a brightness to say 30, then go out side in direct sun light it will change to 100, but if you go back into the house it should change back to 30 or what ever setting you have chosen.
You need the latest version of the Uninstaller to uninstall this version.
New v3.3 Speed Mod
Changed ondemand governor back to 95% on cpu usage before it kicks up to full speed, might save a little battery power.
v4.3 & v5.3 found stock calib.cfg that file will fix the Auto Brightness issue on the Lgv20 running stock Oreo, aka Assertive Display.
What is a Sunlight or Assertive Display? - Gary explains
You need the latest uninstaller to uninstall this version. Flash on top of older versions to update. enjoy
New v3.2 Speed Mod
Tweaked disk cache settings, it's faster than v3.1. I updated v4.2 and v5.2 changed the KCAL settings, drastically improved contrast and colors & no image retention. Flash on top of older versions to update.
Red = 250
Green = 250
Blue = 235
Minimum = 35
Saturation = 27
Hue = 1520
Value = 112
Contract = 132
New v3.1 speed mod
Changed the ondemand governor sample rate 20000. Took me awhile to find the perfect sample rate, but I found it. Also Increased the read ahead on microsd card to 512k. This is the most well optimized version I have ever made. Good battery life and increased speed.
New v2.6 speed mod
Changed the Sample rate of the Ondemand Governor. Should extend battery life.
New v2.5 version of speed mod
Changed the read ahead to 256k for all drives. Tweaked the speed of the eMMC drive a little. It should be faster than v2.4.
New v2.4 version of speed mod.
I was able to increase the speed of the eMMC drive so apps load quicker. Also increased battery life. Sometimes I update this speed mod like once a month, so you may want to check back to see if there is an update.
Credits, A Special Thank You
@ezzony - for the ezV2020 kernel. XDA
@askermk2000 - for the MK2000 kernel. XDA
@helf for the KCAL settings in v4.2 & v5.2 XDA
@rawe_etc for the TCP Speed mod XDA
at MiguelNdeCarvalho for the Stock calib.cfg aka auto brightness fix github
at Gary Sims over at androidauthority.com on what Assertive Display is.
at amitwh for the interactive governor settings for the msm8996 Github
And everyone else that I may have missed that helped with the Lgv20.
Thank you all, for helping make the Lgv20 phone one of the best rooted phones of all time.
What does The Speed Mod look like?
#Speed Mod 3.28
# configure governor settings for little cluster
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif
echo 19000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay
echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
echo 20000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate
echo 729600 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy
echo 80 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 19000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
echo 79000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis
echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/ignore_hispeed_on_notif
# online CPU2
echo 1 > /sys/devices/system/cpu/cpu2/online
# configure governor settings for big cluster
echo "interactive" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_sched_load
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_migration_notif
echo "19000 1400000:39000 1700000:19000 2100000:79000" > /sys/devices/system/cpu/cpu2/cpufreq/interactive/above_hispeed_delay
echo 90 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/go_hispeed_load
echo 20000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_rate
echo 1248000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/hispeed_freq
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/io_is_busy
echo "85 1500000:90 1800000:70 2100000:95" > /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 19000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/min_sample_time
echo 79000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/max_freq_hysteresis
echo 300000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif
# GPU change governor to msm-adreno-tz with default 133mhz
echo msm-adreno-tz > /sys/class/kgsl/kgsl-3d0/devfreq/governor
echo 6 > /sys/class/kgsl/kgsl-3d0/default_pwrlevel
# re-enable thermal and BCL hotplug
echo 1 > /sys/module/msm_thermal/core_control/enabled
echo -n disable > /sys/devices/soc/soc:qcom,bcl/mode
echo $bcl_hotplug_mask > /sys/devices/soc/soc:qcom,bcl/hotplug_mask
echo $bcl_soc_hotplug_mask > /sys/devices/soc/soc:qcom,bcl/hotplug_soc_mask
echo -n enable > /sys/devices/soc/soc:qcom,bcl/mode
# recover offlined_mask in thermal.
echo 0 > /sys/module/msm_thermal/core_control/force_unmask
# Set the eMMC drive scheduler to noop
echo noop | tee /sys/block/sd*/queue/scheduler >/dev/null
echo 0 | tee /sys/block/sd*/queue/add_random >/dev/null
echo 256 | tee /sys/block/sd*/queue/read_ahead_kb >/dev/null
echo 0 | tee /sys/block/sd*/queue/rotational >/dev/null
echo 64 | tee /sys/block/sd*/queue/nr_requests >/dev/null
echo 1 | tee /sys/block/sd*/queue/iostats >/dev/null
echo 2 | tee /sys/block/sd*/queue/rq_affinity >/dev/null
# Set sdcard scheduler to noop
echo noop > /sys/block/mmcblk0/queue/scheduler
echo 0 > /sys/block/mmcblk0/queue/add_random
echo 256 > /sys/block/mmcblk0/queue/read_ahead_kb
echo 0 > /sys/block/mmcblk0/queue/rotational
echo 64 > /sys/block/mmcblk0/queue/nr_requests
echo 1 > /sys/block/mmcblk0/queue/iostats
echo 2 > /sys/block/mmcblk0/queue/rq_affinity
# Enable LPM D3
echo N > /sys/module/lpm_levels/parameters/sleep_disabled
# Disable Adaptive LMK
echo 0 > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
#echo 81250 > /sys/module/lowmemorykiller/parameters/vmpressure_file_min
# Disable sync wakee policy tunable
echo 0 > /proc/sys/kernel/sched_prefer_sync_wakee_to_waker
# Kernel based tweaks
echo 0 > /proc/sys/kernel/compat-log
echo 0 > /proc/sys/kernel/panic
echo 0 > /proc/sys/kernel/panic_on_oops
echo 0 > /proc/sys/kernel/perf_cpu_time_max_percent
echo 10 > /proc/sys/fs/lease-break-time
echo 3 > /proc/sys/kernel/sched_spill_nr_run
echo 15 > /proc/sys/kernel/sched_init_task_load
echo 1 > /proc/sys/net/ipv4/tcp_ecn
echo 3 > /proc/sys/net/ipv4/tcp_fastopen
echo 95 > /proc/sys/kernel/sched_upmigrate
echo 0 > /proc/sys/kernel/sched_upmigrate_min_nice
echo 1 > /proc/sys/kernel/sched_restrict_cluster_spill
echo 90 > /proc/sys/kernel/sched_downmigrate
echo 5 > /proc/sys/kernel/sched_small_wakee_task_load
echo 30 > /proc/sys/kernel/sched_big_waker_task_load
echo 1 > /proc/sys/kernel/sched_enable_thread_grouping
# Limit kernel printk console log
echo "0 0 0 0" > /proc/sys/kernel/printk
# Disable exception-trace logs
echo 0 > /proc/sys/debug/exception-trace
# Entropy speed tweaks
echo 64 > /proc/sys/kernel/random/read_wakeup_threshold
echo 3072 > /proc/sys/kernel/random/write_wakeup_threshold
echo 60 > /proc/sys/kernel/random/urandom_min_reseed_secs
# Enable Dynamic Fsync for increased performance
echo 1 > /sys/kernel/dyn_fsync/Dyn_fsync_active
# TCP speed tweaks
echo "2097152" > /proc/sys/fs/file-max
echo "cubic" > /proc/sys/net/ipv4/tcp_congestion_control
echo "60000" > /proc/sys/net/ipv4/tcp_max_orphans
echo "1" > /proc/sys/net/ipv4/tcp_no_metrics_save
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling
echo "1" > /proc/sys/net/ipv4/tcp_timestamps
echo "1" > /proc/sys/net/ipv4/tcp_sack
echo "10240" > /proc/sys/net/ipv4/tcp_max_syn_backlog
echo "1" > /proc/sys/net/ipv4/tcp_mtu_probing
echo "2" > /proc/sys/net/ipv4/tcp_synack_retries
echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range
echo "1" > /proc/sys/net/ipv4/tcp_rfc1337
echo "15" > /proc/sys/net/ipv4/tcp_fin_timeout
echo "1024" > /proc/sys/net/core/somaxconn
echo "65536" > /proc/sys/net/core/netdev_max_backlog
echo "6291456" > /proc/sys/net/core/optmem_max
echo "65536 131072 262144" > /proc/sys/net/ipv4/tcp_mem
echo "65536 131072 262144" > /proc/sys/net/ipv4/udp_mem
echo "6291456" > /proc/sys/net/core/rmem_default
echo "6291456" > /proc/sys/net/core/rmem_max
echo "16384" > /proc/sys/net/ipv4/udp_rmem_min
echo "1572864" > /proc/sys/net/core/wmem_default
echo "1572864" > /proc/sys/net/core/wmem_max
echo "16384" > /proc/sys/net/ipv4/udp_wmem_min
echo "1440000" > /proc/sys/net/ipv4/tcp_max_tw_buckets
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse
#End of speed mod 3.28
Got 1.4 done. My phone runs so much faster now, it's like having a brand new phone. Version 1.4 should be the final version. Recommended: Everyone that downloaded the previous versions install the new v1.4
Hey everyone, I had fun making theses. Enjoy
v1.5 Speed mod only
v1.6 speed mod + image retention fix lgv20
v1.7 speed mod + image retention fix lgv20 + Google quick search wakelock block.
v1.8 speed mod + image retention fix lgv20 + Ultimate Battery savings mode
Just flashed 1.7.1. Will report back once I get to use it for a bit. Thanks!
Finally there is a solution of image retention for non-root v20, I only unlock BL and have TWRP, flashed it then reboot and never see the image retention again.
Very appreciate for your development!!!
H990DS 8.0 V20B+ezV2020+This Mod v4.2
stvc said:
Finally there is a solution of image retention for non-root v20, I only unlock BL and have TWRP, flashed it then reboot and never see the image retention again.
Very appreciate for your development!!!
H990DS 8.0 V20B+ezV2020+This Mod v4.2
Click to expand...
Click to collapse
Your welcome, glad you like it.
Hey everyone I just got done with speed mod 2.1 Tweaked Ondemand governor for faster performance.
Updated all the speed mods v2.5
New v2.6 speed mod
Changed the Sample rate of the Ondemand Governor. Should extend battery life.
to upgrade, just flash over older versions, wipe dalvik cache & reboot.
New v3.2 Speed Mod
Tweaked disk cache settings, it's faster than v3.1. I updated v4.2 and v5.2 changed the KCAL settings, drastically improved contrast and colors & no image retention. Flash on top of older versions to update.
Red = 250
Green = 250
Blue = 235
Minimum = 35
Saturation = 27
Hue = 1520
Value = 112
Contract = 132
New v3.3 Speed Mod
Changed ondemand governor back to 95% on cpu usage before it kicks up to full speed, might save a little battery power.
v4.3 & v5.3 found stock calib.cfg that file will fix the Auto Brightness issue on the Lgv20 running stock Oreo, aka Assertive Display.
What is a Sunlight or Assertive Display? - Gary explains
You need the latest uninstaller to uninstall this version. Flash on top of older versions to update. enjoy
I am still working on the Auto Brightness fix, I think it needs to be more sensitive. So there will be updates. Just letting everyone know I am working on this.
New v3.4 Speed Mod
Changed disk scheduler from noop to deadline, deadline prioritises reads over writes so it should improve performance a little bit.
As for the Auto Brightness fix, I made it a lot more sensitive. If you are in the house and set a brightness to say 30, then go out side in direct sun light it will change to 100, but if you go back into the house it should change back to 30 or what ever setting you have chosen.
You need the latest version of the Uninstaller to uninstall this version.
Thanks for the mods. I've got a newly rooted VS995 and just loaded v3.4 but noticed my Antutu CPU score dropped by a decent amount. I'm charging up the phone to re-run the benchmark to see if it was a fluke. Did you happen to benchmark before/after numbers?
nickb2b said:
Thanks for the mods. I've got a newly rooted VS995 and just loaded v3.4 but noticed my Antutu CPU score dropped by a decent amount. I'm charging up the phone to re-run the benchmark to see if it was a fluke. Did you happen to benchmark before/after numbers?
Click to expand...
Click to collapse
Your welcome, I had fun making them.
No I didn't run any benchmarks, It just seems like it's faster to me.
nickb2b said:
Thanks for the mods. I've got a newly rooted VS995 and just loaded v3.4 but noticed my Antutu CPU score dropped by a decent amount. I'm charging up the phone to re-run the benchmark to see if it was a fluke. Did you happen to benchmark before/after numbers?
Click to expand...
Click to collapse
You got me thanking now lol. I will run that test on my phone and see if I can duplicate your issue. The speed mod is still a work in progress. I can try a different cpu governor also and see if that helps. Rite now I am using Ondemand. Thank you for bringing this to my attention. I will look into this.
nickb2b said:
Thanks for the mods. I've got a newly rooted VS995 and just loaded v3.4 but noticed my Antutu CPU score dropped by a decent amount. I'm charging up the phone to re-run the benchmark to see if it was a fluke. Did you happen to benchmark before/after numbers?
Click to expand...
Click to collapse
The thing with benchmark programs that there is just so many variables to take into consideration.
But this is what I found out with GeekBench 5
With Speed Mod v5.5
I made some changes have not uploaded it yet.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is stock with a lower battery count also.
As you can see they are almost the same. But the Lgv20 phone is not a fast phone to start with. But I think the speed mods do help even if it's just a little bit.
New v3.5 Speed Mod
It's faster, changed the cpu sample rate to 19000 that seems to be in the butter zone.
Thanks, I'll dl geekbench and give it a shot.

Categories

Resources