These values come from Dev Legend Calkulin and were originally for the HTC One X, but they work marvelously on the HTC EVO 4G LTE. Don't know how to make a flashable zip to implement this, but here we go.
A lot of this code is already in the post_boot.sh file and is simply repeating it, which has no gain. It seemed to work great for me, but then again it could be a placebo. A lot of people are saying that it wont modify our phones, but as always YMMV
Instructions
1. Connect your phone to your PC via adb and type
Code:
adb pull /system/etc/init.qcom.post_boot.sh
2. Open up the file we just pulled with Notepad+ and insert this at the very bottom
Code:
###############################
######MULTITASKING MOD#######
###############################
target=`getprop ro.board.platform`
hardware=`getprop ro.hardware`
case "$target" in
"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_surf" | "msm7627a" | \
"qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "qsd8650a_st1x")
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
;;
esac
case "$target" in
"msm7627a")
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
;;
esac
case "$target" in
"msm7201a_ffa" | "msm7201a_surf")
echo 500000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
;;
esac
case "$target" in
"msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
echo 75000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo 1 > /sys/module/pm2/parameters/idle_sleep_mode
;;
esac
case "$target" in
"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_surf" | "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "msm7627a" )
echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
;;
esac
case "$target" in
"msm8660" | "msm8660_csfb")
echo 1 > /sys/module/rpm_resources/enable_low_power/L2_cache
echo 1 > /sys/module/rpm_resources/enable_low_power/pxo
echo 2 > /sys/module/rpm_resources/enable_low_power/vdd_dig
echo 2 > /sys/module/rpm_resources/enable_low_power/vdd_mem
echo 1 > /sys/module/rpm_resources/enable_low_power/rpm_cpu
echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/idle_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
echo 4 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
chown system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
chown root.system /sys/devices/system/cpu/mfreq
chmod 220 /sys/devices/system/cpu/mfreq
chown root.system /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu1/online
;;
esac
case "$target" in
"msm8960")
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
echo 4 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
chown system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
chown root.system /sys/devices/system/cpu/mfreq
chmod 220 /sys/devices/system/cpu/mfreq
chown root.system /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu1/online
chown system /sys/power/perflock
chown system /sys/power/cpufreq_ceiling
chown system /sys/module/restart/parameters/notify_efs_sync
echo "0,1,2,4,7,15" > /sys/module/lowmemorykiller/parameters/adj
case "$hardware" in "elite")
echo "2048,3072,4096,6144,7168,20480" > /sys/module/lowmemorykiller/parameters/minfree
;;
esac
case "$hardware" in "ville")
echo "7946,9953,11960,14008,16015,25108" > /sys/module/lowmemorykiller/parameters/minfree
;;
esac
chown radio.system /sys/module/modem_8960/parameters/enable_modem_ssr
;;
esac
case "$target" in
"msm7627_ffa" | "msm7627_surf" | "msm7627a")
echo 25000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
;;
esac
case "$target" in
"qsd8250_surf" | "qsd8250_ffa" | "qsd8650a_st1x")
echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
;;
esac
case "$target" in
"qsd8650a_st1x")
mount -t debugfs none /sys/kernel/debug
;;
esac
chown system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
emmc_boot=`getprop ro.emmc`
case "$emmc_boot"
in "1")
chown system /sys/devices/platform/rs300000a7.65536/force_sync
chown system /sys/devices/platform/rs300000a7.65536/sync_sts
chown system /sys/devices/platform/rs300100a7.65536/force_sync
chown system /sys/devices/platform/rs300100a7.65536/sync_sts
;;
esac
# Post-setup services
case "$target" in
"msm8660")
start mpdecision
;;
"msm8960")
# Disable ETB tracing and turn off QDSS clocks
# must be prior to mpdecision (see below)
stop mpdecision
echo 1 > /sys/devices/system/cpu/cpu1/online
echo "1\0" > /dev/msm_ptm
echo "0\0" > /dev/msm_ptm
echo 0 > /sys/devices/system/cpu/cpu1/online
start mpdecision
;;
esac
case "$target" in
"msm8660" | "msm8660_csfb")
start thermald
;;
esac
#####################
####MultitaskEnd######
####################
3. Open up terminal/command prompt again and type this
Code:
adb push init.qcom.post_boot.sh /system/etc/
4. Reboot your device
5. Profit!
Great! Thanks for this. I'm perfectly content with Sense 4's aggressive settings at the time being because I'm such a minimal user, but should I ever need to change that, I'll come here for sure.
Thanks for the DIY type of post. Always great to learn how to do these things rather than have it done for us in flashable zips.
Sweet, hopefully this gets baked in a Rom or made into a flashable zip. I myself am not happy with the constant reloads when multitasking, but am afraid to do this mod myself
Sent from my EVO using Xparent Blue Tapatalk 2
Nice!
Sent from my EVO using Xparent ICS Tapatalk 2
Testing it out. I'll see what changes. Thanks!
Baked in and uploading now! will post a link in Team Nocturnal OTA thread in 15 minutes or so.
Edit. Taking link down for now.
Looks like you left the section that actually changes the minfree values as is from the One X as the case statements are for ville or elite only so it wouldn't change anything for us since our hardware is jet. I had diff'd the V2 mod and the undo script posted and the only differences between the two were the minfree and adj values so I believe that's all that's really needed. Adding all this to the end of our existing script would just duplicate code and only change the adj values.
Edit: Here's the diff output.
--- Multitasking Mod V2/system/etc/init.qcom.post_boot.sh
+++ Undo/system/etc/init.qcom.post_boot.sh
@@ -119,9 +119,9 @@
chown system /sys/power/perflock
chown system /sys/power/cpufreq_ceiling
chown system /sys/module/restart/parameters/notify_efs_sync
- echo "0,1,2,4,7,15" > /sys/module/lowmemorykiller/parameters/adj
+ echo "0,2,4,7,9,12" > /sys/module/lowmemorykiller/parameters/adj
case "$hardware" in "elite")
- echo "2048,3072,4096,6144,7168,20480" > /sys/module/lowmemorykiller/parameters/minfree
+ echo "7746,9720,11694,13742,15715,24709" > /sys/module/lowmemorykiller/parameters/minfree
;;
esac
case "$hardware" in "ville")
Sent from my EVO using Tapatalk 2
Not sure if I understand what this is supposed to do. I did it correctly, and tried loading a video on youtube. Multitasking out of the app and back in, it reloads the video still. Is that not what it's supposed to avoid?
Thanks bro!!! Good stuff!!
Sent from my EVO using XDA Premium App
Youtube app will always do that.
Ladicx said:
Sweet, hopefully this gets baked in a Rom or made into a flashable zip. I myself am not happy with the constant reloads when multitasking, but am afraid to do this mod myself
Sent from my EVO using Xparent Blue Tapatalk 2
Click to expand...
Click to collapse
pretty straight forward stuff if you have a good app like root explorer or root browser. added this in literally 30 seconds.
Sent from your mother's bedroom on my LTE
Had trouble pushing it back, but sent it to my SDcard, then renamed the old one, pasted, changed permissions, and boom, worked. Multitasking seems much better now.
dude2k5 said:
Had trouble pushing it back, but sent it to my SDcard, then renamed the old one, pasted, changed permissions, and boom, worked. Multitasking seems much better now.
Click to expand...
Click to collapse
I aways have trouble pushing files or running "adb remount" but you can reboot into TWRP recovery and mount system and push that way too.
Wow didn't know Calk moved over to ATT....
Saw some of his posts talking about it being likely related to the GPU...and said it was nothing to do with Sense....
While I'd prefer him over here, least doing work for the att OneX will transfer here easily!
Sent from my EVO using xda premium
Are we supposed to just copy/paste that? With the smiley faces?
Yes the smiley is just the forum detecting the characters
Sent from my EVO using Tapatalk 2
Spyderekz said:
Yes the smiley is just the forum detecting the characters
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
Just looked at this from my PC and i feel like a [email protected] XD
Can it be made into a flashable zip?
Sent from my EVO using xda app-developers app
Rocklee99 said:
Can it be made into a flashable zip?
Sent from my EVO using xda app-developers app
Click to expand...
Click to collapse
nothing against you, more a rant in general, seems the point of learning is lost in xda, today.
...but it could be done but would require some creative scripting since each ROM is different, but why not try to do it yourself? or wait for mikey to bake into meanROM since he updates it almost daily, lately.
If someone could give me a little help doing this right from my phone using root explorer or astro I'dgive it a shot..scrosler has a zip for this mod over on the hox forum but it didn't play nice with my phone
Related
Okay guys, I made some kernel tweaks that work on any ROM, and on the ROMs I have tried, improve battery life/performance.
THE BATTERY SAVER SCRIPT WILL NOT IMPROVE QUADRANT SCORES!
THIS SCRIPT WILL BE UPDATED FREQUENTLY!
Last update 7/11
Latest update notes: Focused more on battery life.
Battery stats on Liquid Smooth 1.5 with script:
{
"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"
}
Prerequisites:
Have root access
An app that can run scripts on boot, like Script Manger, located here:
https://play.google....ptmanager&hl=en
INSTRUCTIONS:
If using Script Manager:
1. Navigate to file.
2.Open as Script/Executable.
3.Set it to run at boot and as SU.
4.Save
5. Reboot.
If using ROM Toolbox:
1. Select "Scripter"
2.Select new script
3. Copy and paste script into Scripter
4. Select "At Boot"
5. Reboot
Make it Last script:
Code:
#!/system/bin/sh
echo "500,512000,64,2048" > /proc/sys/kernel/sem
echo "3072" > /proc/sys/kernel/msgmni
echo "74000" > /proc/sys/kernel/msgmax
echo "3072" > /proc/sys/kernel/shmmni
echo "2268435456" > /proc/sys/kernel/shmmax
echo "16777216" > /proc/sys/kernel/shmall
echo "400000" > /proc/sys/kernel/sched_min_granularity_ns
echo "256" > /proc/sys/kernel/random/write_wakeup_threshold
echo "256" > /proc/sys/kernel/random/read_wakeup_threshold
echo "5" > /proc/sys/kernel/panic
echo "575810" > /proc/sys/kernel/threads-max
echo "1" > /proc/sys/kernel/panic_on_oops
echo "25" > /proc/sys/kernel/hung_task_timeout_secs
echo "600000" > /proc/sys/kernel/sched_latency_ns
echo "2000000" > /proc/sys/kernel/sched_wakeup_granularity_ns
echo "1" > /proc/sys/kernel/sched_compat_yield
echo "0" > /proc/sys/kernel/sched_child_runs_first
echo "0" > /proc/sys/kernel/hung_task_timeout_secs
echo "0" > /proc/sys/vm/oom_kill_allocating_task
#end of /kernel , start of /fs
echo "10240" > /proc/sys/fs/inotify/max_user_watches
echo "256" > /proc/sys/fs/inotify/max_user_instances
echo "32000" > /proc/sys/fs/inotify/max_queued_events
echo "15" > /proc/sys/fs/lease-break-time
echo "165164" > /proc/sys/fs/file-max
echo "1053696" > /proc/sys/fs/nr_open
#end of /fs, start of /vm
echo "0" > /proc/sys/vm/oom_kill_allocating_task
echo "4" > /proc/sys/vm/min_free_order_shift
echo "1" > /proc/sys/vm/overcommit_memory
echo "2" > /proc/sys/vm/panic_on_oom
echo "8" > /proc/sys/vm/page-cluster
echo "3" > /proc/sys/vm/drop_caches
echo "0" > /proc/sys/vm/oom_kill_allocating_task
echo "2048" > /proc/sys/vm/min_free_kbytes
echo "20" > /proc/sys/vm/vfs_cache_pressure
echo "80" > /proc/sys/vm/dirty_background_ratio
echo "90" > /proc/sys/vm/dirty_ratio
echo "3700" > /proc/sys/vm/dirty_writeback_centisecs
echo "2100" > /proc/sys/vm/dirty_expire_centisecs
echo "0" > /proc/sys/vm/laptop_mode
echo "0" > /proc/sys/vm/block_dump
echo "0" > /proc/sys/vm/swappiness
IF THESE SCRIPTS DON'T WORK, USE THIS ONE.
Find them HERE
STEP 1. Under File, select DOWNLOAD.
STEP 2. Find a way to get it to your phone,make sure it's not opened in any text editors, until it's on your phone.
STEP 3. Follow other instructions
All credit ofr the above script goes to housas08
Latest update notes: enabled ZRAM(compressed RAM), loads SIO I/O if available, also loads the hotplugx governor and SIO on boot. Ups read and write speeds all around, file system speedups, enables multi threading, tweaks to the hotplug and hotplugx governor, and more. You might get random reboots using this script, you might only get a coupke and then they will stop or they'll never stop. Inform me if you consistent random reboots.
Credit to zepelinrox for minfreee and adj valueshttp://forum.xda-developers.com/showthread.php?t=991276
Credit to whirleyes for theKernel Modules.
GET THE SIO I/O SCHEDULER AND THE HOTPLUGX GOVERNOR HERE!
I HIGHLY RECOMMEND THEM FOR PERFORMANCE!
Speed it UP! script:
Code:
#!/system/bin/sh
# Load SIO I/O and hotplugx governor
insmod /system/lib/modules/cpufreq_hotplugX.ko
insmod /system/lib/modules/sio-iosched.ko
echo "700000" > /proc/sys/kernel/sched_latency_ns
echo "300000" > /proc/sys/kernel/sched_min_granularity_ns
echo "26188" > /proc/sys/kernel/sched_features
#writes more pages to disc, when given oppurtunity
echo "8" > /proc/sys/vm/page-cluster
#drop all cahces when given oppurtunity
echo "3" > /proc/sys/vm/drop_caches
#Keep 4MB in memory
echo "4096" > /proc/sys/vm/min_free_kbytes
#Dump Vfs cache less
echo "20" > /proc/sys/vm/vfs_cache_pressure
echo "80" > /proc/sys/vm/dirty_background_ratio
#How much dirty data there must be to write to disc
echo "90" > /proc/sys/vm/dirty_ratio
#How often writeback daemons wakeup to write data to disc.
echo "900" > /proc/sys/vm/dirty_writeback_centisecs
#How old 'dirty" data has to be to be written to disc
echo "800" > /proc/sys/vm/dirty_expire_centisecs
#^^^^^^Both expressed in 100th of second^^^^^^
echo "20" > /proc/sys/vm/swappiness
#faster sdcard read speed
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
#enable multi threading
echo "1" > /proc/sys/kernel/multi_threading
# file system speedups
mount -o remount,noauto_da_alloc /system /system
mount -o remount,noauto_da_alloc /data /data
mount -o remount,noauto_da_alloc /cache /cache
# disable logcat - performance boost & save memory,comment, reboot for logcat.
rm /dev/log/main
#sets cpu governor to hotplug, is most intelligent
echo "hotplug" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "950" > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency
#decreases sampling rate, stops lag and saves battery
echo "500000" > /sys/devices/system/cpu/cpufreq/hotplug/sampling_rate
echo "75" > /sys/devices/system/cpu/cpufreq/hotplug/up_threshold
echo "45" > /sys/devices/system/cpu/cpufreq/hotplug/down_threshold
echo "15" > /sys/devices/system/cpu/cpufreq/hotplug/hotplug_out_sampling_periods
echo "5" > /sys/devices/system/cpu/cpufreq/hotplug/hotplug_in_sampling_periods
#sets I/O scheduler to SIO, considered best
echo "sio" > /sys/block/mmcblk0/queue/scheduler
echo "sio" > /sys/block/mmcblk1/queue/scheduler
#Sets read and write on I/O sceduler to max.
echo "2048" > /sys/block/mmcblk0/queue/read_ahead_kb
echo "2048" > /sys/block/mmcblk1/queue/read_ahead_kb
#will merge tasks if able
echo "1" > /sys/block/mmcblk0/queue/nomerges
echo "1" > /sys/block/mmcblk1/queue/nomerges
echo "1" > /sys/block/mmcblk0/queue/low_latency
echo "1" > /sys/block/mmcblk1/queue/low_latency
echo "256" > /sys/block/mmcblk0/queue/nr_requests
echo "256" > /sys/block/mmcblk1/queue/nr_requests
echo "2048" > /sys/block/mmcblk0/bdi/read_ahead_kb
echo "2048" > /sys/block/mmcblk1/bdi/read_ahead_kb
echo "256" > /sys/block/zram0/bdi
#cache cleaner
rm -r /cache/*.apk
rm -r /cache/*.tmp
rm -r /data/dalvik-cache/*.apk
rm -r /data/dalvik-cache/*.tmp
#doesn't verify bus info, faster I/O
echo "N" > /sys/bus/hid/drivers/motorola/module/parameters/mot_pass_through_mt_input
echo "256" > /sys/class/bdi/default/read_ahead_kb
#faster scroll speed
echo "64" > /sys/bus/hid/drivers/magicmouse/scroll_speed
#performance boost in read/write when heap is at 4MB.
echo "4096" > /sys/block/mmcblk0/queue/optimal_io_size
echo "4096" > /sys/block/mmcblk1/queue/optimal_io_size
#better memory mangement
echo "2048,4096,43008,47104,51456,55808" > /sys/module/lowmemorykiller/parameters/minfree
#OOM fixes , shoould see awesome increase in multitasking
echo "0,3,6,10,12,15" > /sys/module/lowmemorykiller/parameters/adj
#net speed tweaks
echo "0" > /proc/sys/net/ipv4/tcp_timestamps
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse
echo "1" > /proc/sys/net/ipv4/tcp_sack
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout
echo "404480" > /proc/sys/net/core/wmem_max
echo "404480" > /proc/sys/net/core/rmem_max
echo "256960" > /proc/sys/net/core/rmem_default
echo "256960" > /proc/sys/net/core/wmem_default
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem
# Enable ZRAM compressed memory.
if [ -e /sys/block/zram0/disksize ] ; then
$LOG -p i "Enabling compressed RAM functionality (ZRAM)"
echo $((120*2048*2048)) > /sys/block/zram0/disksize
busybox mkswap /dev/block/zram0
busybox swapon /dev/block/zram0
fi
You will definitely see a boost in performance when running the following script.
For this to work, either run this code at boot with an app like ROM Toolbox.
Or run the attached file at boot with an app like Script Manager.
Thank you to PureMotive for the battery saving kernel tweaks to make compatible and tweak for this phone. and this thread by him
http://forum.xda-developers.com/showthread.php?t=1621808
If you can, please donate:
Donate!
Or at least leave me a thanks.
<<<<<<<<<<<<<<<
Enjoy!
Your link is broken
This can be added to my BootMenu boot script.
Do have any details on what each line improve??
maybe add comment before each line
whirleyes said:
Your link is broken
This can be added to my BootMenu boot script.
Do have any details on what each line improve??
maybe add comment before each line
Click to expand...
Click to collapse
I might comment this in the future, but I don't have the time right now. I'll fix the link to the forum in the morning, the script download is operational.
I'll suffice it to say that these tweaks make the kernel write to disc less, using less battery, but decreasing performance.
Sent from my DROID RAZR using XDA
So far: Running your script, CPU set to 800mhz max, felt no performance decrease. We'll see how this works in the future. Battery drain on EU kernel is terrible. I hope this helps a bit. Thank you!
dtrail1 said:
So far: Running your script, CPU set to 800mhz max, felt no performance decrease. We'll see how this works in the future. Battery drain on EU kernel is terrible. I hope this helps a bit. Thank you!
Click to expand...
Click to collapse
Yeah, us OG RAZR guts have to deal with crappy battery life. That's why I made this script, please post your findings.
Sent from my DROID RAZR using XDA
Can you make and update.zip that makes the script works?If this is possible ;s i'm a little newbie
luizfilipel said:
Can you make and update.zip that makes the script works?If this is possible ;s i'm a little newbie
Click to expand...
Click to collapse
Unfortunately, I don't have the skill to do so, if somebody with this skill would like to put together a flashable .zip, then I would be grateful.
Script updated, now has kernel tweaks for performance!
Enjoy!
sorry, a little question from noobs...
it should run both? or just pick one of it?
teradaz said:
sorry, a little question from noobs...
it should run both? or just pick one of it?
Click to expand...
Click to collapse
Just pick one, they contradict each other in values, so if you try to run both there will be issues in what gets applied.
Leviathan26 said:
Just pick one, they contradict each other in values, so if you try to run both there will be issues in what gets applied.
Click to expand...
Click to collapse
thank you...
doesn't work for me:
luizfilipel said:
Can you make and update.zip that makes the script works?If this is possible ;s i'm a little newbie
Click to expand...
Click to collapse
it would be useless, since you have to run the script each time you reboot your phone.
Turkishflavor said:
doesn't work for me:
Click to expand...
Click to collapse
Use the option in Script Manager to run on boot. Then reboot your phone. And the values will be applied.
sevenup30 said:
it would be useless, since you have to run the script each time you reboot your phone.
Click to expand...
Click to collapse
The updater script would probably look for an Init.d folder and run it from there on every boot, if it was there anyway.
Sent from my DROID RAZR using XDA
Leviathan26 said:
Yeah, us OG RAZR guts have to deal with crappy battery life. That's why I made this script, please post your findings.
Sent from my DROID RAZR using XDA
Click to expand...
Click to collapse
Some feedback: there are really improvements in battery life! Now I can rum the EU leak with 3G all the time and it doesn't eat the battery that much... No performancy decrease so far..
Gesendet von meinem XT910 mit Tapatalk 2
dtrail1 said:
Some feedback: there are really improvements in battery life! Now I can rum the EU leak with 3G all the time and it doesn't eat the battery that much... No performancy decrease so far..
Gesendet von meinem XT910 mit Tapatalk 2
Click to expand...
Click to collapse
Awesome! Can you take a screenshot so I can put it in the OP?
Leviathan26 said:
Awesome! Can you take a screenshot so I can put it in the OP?
Click to expand...
Click to collapse
But ive just charged it 3 hours ago and iam using it all the time. Screen on is 2 hours.
This is an older one without tweaks...
Gesendet von meinem XT910 mit Tapatalk 2
Your kernel tweaks, they are like governors? If so why is it not possible to have smartassv2 for example?
As well, did you started to work on this because of this?
Anyway, good job and I'll let you know about my experience with your tweaks =)
An1mA said:
Your kernel tweaks, they are like governors? If so why is it not possible to have smartassv2 for example?
As well, did you started to work on this because of this?
Anyway, good job and I'll let you know about my experience with your tweaks =)
Click to expand...
Click to collapse
Governors are different to tweak scripts. A governor drives the CPU directly to its needed configuration, speed on processes or things like that. This script makes the kernel working different on some processes.
---------- Post added at 12:05 AM ---------- Previous post was at 12:02 AM ----------
@OP: You added a second script. Can we run them both or better one of them alone?
dtrail1 said:
Governors are different to tweak scripts. A governor drives the CPU directly to its needed configuration, speed on processes or things like that. This script makes the kernel working different on some processes.
---------- Post added at 12:05 AM ---------- Previous post was at 12:02 AM ----------
@OP: You added a second script. Can we run them both or better one of them alone?
Click to expand...
Click to collapse
Just run one at a time, they contradict each other in values. And the performance script is going to be getting an update later today.
Hi everyone,
I have just one question to ask:
In every init.d file that I've found, it's been divided-- some lines are with semicolons, others are one. Most have both, which confuses me greatly...
AND they're right next to each other; for example, in the Pimp My Rom tweaks,
The S10vm tweak has all but one semicolon-ed:
Code:
#!/system/bin/sh
echo "4096" > /proc/sys/vm/min_free_kbytes;
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/panic_on_oom;
echo "0" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/swappiness;
echo "50" > /proc/sys/vm/vfs_cache_pressure;
echo "90" > /proc/sys/vm/dirty_ratio;
echo "70" > /proc/sys/vm/dirty_background_ratio
In the S36iosched file, almost none are semicoloned:
Code:
#!/system/bin/sh
mount -o remount,rw /sys /sys;
mount -o remount,rw /system /system;
echo 2 > /sys/block/mmcblk0/queue/iosched/fifo_batch
echo 2230 > /sys/block/mmcblk0/queue/iosched/write_expire
echo 300 > /sys/block/mmcblk0/queue/iosched/read_expire
echo 2230 > /sys/block/mmcblk0/queue/iosched/async_write_expire
echo 300 > /sys/block/mmcblk0/queue/iosched/async_read_expire
echo 2 > /sys/block/mmcblk0/queue/iosched/writes_starved
echo 2230 > /sys/block/mmcblk0/queue/iosched/sync_write_expire
echo 300 > /sys/block/mmcblk0/queue/iosched/sync_read_expire
mount -o remount,ro /system /system
mount -o remount,ro /sys /sys
It's driving me nuts (I'm compiling my own init.d file) and I'm not sure whether to include the semicolon or not >__>
Thanks for your definitive response; it is very much appreciated!
The semicolon is a command separator. If command are separated by a new line, you don't need a semicolon. Inserting one won't make any difference.
Sent from my Nexus 7
BillGoss said:
The semicolon is a command separator. If command are separated by a new line, you don't need a semicolon. Inserting one won't make any difference.
Sent from my Nexus 7
Click to expand...
Click to collapse
Okay, thanks for your response! It's much clearer now.
Code:
# ------------------------------------------------------------ #
# | 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 "10" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential;
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 "10" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/down_differential;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
echo "10" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;
fi;
# ------------------------------------------------------------ #
# | OndemandX | #
# ------------------------------------------------------------ #
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/ondemandx/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/ondemandx/up_threshold;
echo "10" > /sys/devices/system/cpu/cpu0/cpufreq/ondemandx/down_differential;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/ondemandx/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/ondemandx/up_threshold;
echo "10" > /sys/devices/system/cpu/cpu1/cpufreq/ondemandx/down_differential;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/ondemandx/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/ondemandx/up_threshold;
echo "10" > /sys/devices/system/cpu/cpufreq/ondemandx/down_differential;
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 "75" > /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 "75" > /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 "75" > /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;
# ------------------------------------------------------------ #
# | lulzactive | #
# ------------------------------------------------------------ #
if [ -e /sys/devices/system/cpu/cpufreq/lulzactive/inc_cpu_load ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/lulzactive/inc_cpu_load;
echo "1" > /sys/devices/system/cpu/cpufreq/lulzactive/pump_down_step;
fi;
# ------------------------------------------------------------ #
# | smartassV2 | #
# ------------------------------------------------------------ #
if [ -e /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq ]; then
echo "500000" > /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 "75" > /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;
# ------------------------------------------------------------ #
# | Abyssplug | #
# ------------------------------------------------------------ #
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/up_threshold;
echo "40" > /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/down_threshold;
echo "5" > /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/hotplug_in_sampling_periods;
echo "20" > /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/hotplug_out_sampling_periods;
echo "10" > /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/io_is_busy;
echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/abyssplug/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/up_threshold;
echo "40" > /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/down_threshold;
echo "5" > /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/hotplug_in_sampling_periods;
echo "20" > /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/hotplug_out_sampling_periods;
echo "10" > /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/io_is_busy;
echo "20000" > /sys/devices/system/cpu/cpu1/cpufreq/abyssplug/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/abyssplug/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/abyssplug/up_threshold;
echo "40" > /sys/devices/system/cpu/cpufreq/abyssplug/down_threshold;
echo "5" > /sys/devices/system/cpu/cpufreq/abyssplug/hotplug_in_sampling_periods;
echo "20" > /sys/devices/system/cpu/cpufreq/abyssplug/hotplug_out_sampling_periods;
echo "10" > /sys/devices/system/cpu/cpufreq/abyssplug/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/abyssplug/io_is_busy;
echo "20000" > /sys/devices/system/cpu/cpufreq/abyssplug/sampling_rate;
fi;
# ------------------------------------------------------------ #
# | Pegasusq | #
# ------------------------------------------------------------ #
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/up_threshold;
echo "10" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/io_is_busy;
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/sampling_down_factor;
echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/sampling_rate;
echo "100" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/freq_step;
echo "5" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/cpu_up_rate;
echo "20" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/cpu_down_rate;
echo "100000" > /sys/devices/system/cpu/cpu0/cpufreq/pegasusq/freq_for_responsiveness;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/up_threshold;
echo "10" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/io_is_busy;
echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/sampling_down_factor;
echo "20000" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/sampling_rate;
echo "100" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/freq_step;
echo "5" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/cpu_up_rate;
echo "20" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/cpu_down_rate;
echo "100000" > /sys/devices/system/cpu/cpu1/cpufreq/pegasusq/freq_for_responsiveness;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold;
echo "10" > /sys/devices/system/cpu/cpufreq/pegasusq/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy;
echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor;
echo "20000" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate;
echo "100" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_step;
echo "5" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_rate;
echo "20" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate;
echo "100000" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness;
fi;
# ------------------------------------------------------------ #
# | Hotplug | #
# ------------------------------------------------------------ #
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/hotplug/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/hotplug/up_threshold;
echo "40" > /sys/devices/system/cpu/cpu0/cpufreq/hotplug/down_threshold;
echo "5" > /sys/devices/system/cpu/cpu0/cpufreq/hotplug/hotplug_in_sampling_periods;
echo "20" > /sys/devices/system/cpu/cpu0/cpufreq/hotplug/hotplug_out_sampling_periods;
echo "10" > /sys/devices/system/cpu/cpu0/cpufreq/hotplug/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/hotplug/io_is_busy;
echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/hotplug/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/hotplug/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/hotplug/up_threshold;
echo "40" > /sys/devices/system/cpu/cpu1/cpufreq/hotplug/down_threshold;
echo "5" > /sys/devices/system/cpu/cpu1/cpufreq/hotplug/hotplug_in_sampling_periods;
echo "20" > /sys/devices/system/cpu/cpu1/cpufreq/hotplug/hotplug_out_sampling_periods;
echo "10" > /sys/devices/system/cpu/cpu1/cpufreq/hotplug/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/hotplug/io_is_busy;
echo "20000" > /sys/devices/system/cpu/cpu1/cpufreq/hotplug/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/hotplug/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/hotplug/up_threshold;
echo "40" > /sys/devices/system/cpu/cpufreq/hotplug/down_threshold;
echo "5" > /sys/devices/system/cpu/cpufreq/hotplug/hotplug_in_sampling_periods;
echo "20" > /sys/devices/system/cpu/cpufreq/hotplug/hotplug_out_sampling_periods;
echo "10" > /sys/devices/system/cpu/cpufreq/hotplug/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/hotplug/io_is_busy;
echo "20000" > /sys/devices/system/cpu/cpufreq/hotplug/sampling_rate;
fi;
Why you dont post it in 1 thread?
You have already another one like this here: http://forum.xda-developers.com/showthread.php?p=40315705
:::[ Pandemic Quote.:: Im The Godfather Of St Octane TF Packs !!
Press Thanks If You Like My Work/Advice !!!
Pandemic said:
Why you dont post it in 1 thread?
You have already another one like this here: http://forum.xda-developers.com/showthread.php?p=40315705
:::[ Pandemic Quote.:: Im The Godfather Of St Octane TF Packs !!
Press Thanks If You Like My Work/Advice !!!
Click to expand...
Click to collapse
Bro ... I Can't Post This One in that thread
Because this is not build.prop tweaks as you know
and it's only for expert because this is very very sensitive ..
Noel Macwan said:
Bro ... I Can't Post This One in that thread
Because this is not build.prop tweaks as you know
and it's only for expert because this is very very sensitive ..
Click to expand...
Click to collapse
Ooh ok, but you can set a title above it and this and all your tweaks belongs in general because this is no theme/app
:::[ Pandemic Quote.:: Im The Godfather Of St Octane TF Packs !!
Press Thanks If You Like My Work/Advice !!!
Pandemic said:
Ooh ok, but you can set a title above it and this and all your tweaks belongs in general because this is no theme/app
:::[ Pandemic Quote.:: Im The Godfather Of St Octane TF Packs !!
Press Thanks If You Like My Work/Advice !!!
Click to expand...
Click to collapse
Ok I'll tell to moderator to move it
Sent from my C6603 using xda premium
Noel Macwan said:
Ok I'll tell to moderator to move it
Sent from my C6603 using xda premium
Click to expand...
Click to collapse
Ok thanks, you can report it by your own on non urgent and explain that you want it in general topic and then all in one with all your tweaks here
You messed up the whole themes/apps thread now
:::[ Pandemic Quote.:: Im The Godfather Of St Octane TF Packs !!
Press Thanks If You Like My Work/Advice !!!
Hi, can you explain where we must to edit this for to have more governors mode, build props...??
Thanks
good job we take intoaccount his script :good:
dragxdk said:
Hi, can you explain where we must to edit this for to have more governors mode, build props...??
Thanks
Click to expand...
Click to collapse
/system/bin/sh
Is this OK for mid range devices?
Sent from my Xperia U using xda app-developers app
Noel Macwan said:
/system/bin/sh
Click to expand...
Click to collapse
How to add? Is it work with stock rom locked bootloader?
Boonen said:
How to add? Is it work with stock rom locked bootloader?
Click to expand...
Click to collapse
Yes..
/System/bin/sh
Sent from my C6603 using xda premium
Noel Macwan said:
Yes..
/System/bin/sh
Sent from my C6603 using xda premium
Click to expand...
Click to collapse
Ok. But How?
Boonen said:
Ok. But How?
Click to expand...
Click to collapse
You need to edit them
Sent from my C6603 using xda premium
Noel Macwan said:
You need to edit them
Sent from my C6603 using xda premium
Click to expand...
Click to collapse
With texit editor (Root explorer) just copy and save?
{
"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"
}
Boonen said:
With texit editor (Root explorer) just copy and save?
Click to expand...
Click to collapse
Here You Go !!
Noel Macwan said:
Here You Go !!
Click to expand...
Click to collapse
Thanks! If i use other build.prop just flash this "[MOD][UPDATE][TURBO POWER]Increase Performance.zip"? Or need to add this line to build.prop?
Boonen said:
Thanks! If i use other build.prop just flash this "[MOD][UPDATE][TURBO POWER]Increase Performance.zip"? Or need to add this line to build.prop?
Click to expand...
Click to collapse
Just flash that
Sent from my C6603 using xda premium
Noel Macwan said:
Just flash that
Sent from my C6603 using xda premium
Click to expand...
Click to collapse
I flash this zip, and i have ZN6 Settings.apk with CPU Settings but i don't see new governor. Why? I don't add to build.prop tweaks and i don't edit sh file. I use this 1.5 build.prop. How tu use new governor?
I am using this setting.
echo "0,1,4,6,13,15" > /sys/module/lowmemorykiller/parameters/adj
echo "4000,5000,6000,10000,15000,20000" > /sys/module/lowmemorykiller/parameters/minfree
I see other members using 1000,2000,... or lower for minfree.
If I use my value for my neo, firefox closes when I load some image heavy page.
If I use lower value for my neo, it reboots in the same situation.
It is pretty strange. Please give some advises.
p.s. my vm.min_free_kbytes is 4096, related?
For stable use system use and low battery drain
echo 0 > /proc/sys/vm/oom_kill_allocating_task
echo 1 > /proc/sys/vm/vfs_cache_pressure
echo 95 > /proc/sys/vm/dirty_ratio
echo 80 > /proc/sys/vm/dirty_background_ratio
echo 0 > /proc/sys/vm/block_dump
echo 1 > /proc/sys/vm/overcommit_memory
echo 80 > /proc/sys/vm/overcommit_ratio
echo 3 > /proc/sys/vm/page-cluster
echo 0 > /proc/sys/vm/panic_on_oom
echo 0 > /proc/sys/vm/dirty_expire_centisecs
echo 0 > /proc/sys/vm/dirty_writeback_centisecs
echo "10" > /proc/sys/fs/lease-break-time
echo 3 > /proc/sys/vm/drop_caches
Click to expand...
Click to collapse
for performance
echo 1 > /proc/sys/vm/oom_kill_allocating_task
echo 100 > /proc/sys/vm/vfs_cache_pressure
echo 10 > /proc/sys/vm/dirty_ratio
echo 4 > /proc/sys/vm/dirty_background_ratio
echo 0 > /proc/sys/vm/block_dump
echo 1 > /proc/sys/vm/overcommit_memory
echo 100 > /proc/sys/vm/overcommit_ratio
echo 3 > /proc/sys/vm/page-cluster
echo 0 > /proc/sys/vm/panic_on_oom
echo 3000 > /proc/sys/vm/dirty_expire_centisecs
echo 1000 > /proc/sys/vm/dirty_writeback_centisecs
echo "10" > /proc/sys/fs/lease-break-time
echo 3 > /proc/sys/vm/drop_caches
echo "256,512,4096,11120,25360,33300" > /sys/module/lowmemorykiller/parameters/minfree
Click to expand...
Click to collapse
you can copy this to file without extention end run into terminal/shell exec sh path_to_your_file
try this and give me a feedback. On rom i use it's give a very good scores
invidian1 said:
For stable use system use and low battery drain
for performance
you can copy this to file without extention end run into terminal/shell exec sh path_to_your_file
try this and give me a feedback. On rom i use it's give a very good scores
Click to expand...
Click to collapse
Can we make a file and put this init.d folder??
Sent from my MT11i using xda premium
vishal_android freak said:
Can we make a file and put this init.d folder??
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Of course, plese I added smartassv2 setting to this scripts too. But they will not work if you didn't choose smartassv2 as Your Governor. Delete ".txt" and push one of them to init.d folder.
Please is there anyway to make a flashable script or cron script that will make @zeppelinrox Sclean script (clear dalvik cache & reboot) to run once each week from the xbin or bin folder?
slimcyril said:
Please is there anyway to make a flashable script or cron script that will make @zeppelinrox Sclean script (clear dalvik cache & reboot) to run once each week from the xbin or bin folder?
Click to expand...
Click to collapse
there should be a way but to make things easier just do it in your recovery. that sounds better for me
reyscott1968 said:
there should be a way but to make things easier just do it in your recovery. that sounds better for me
Click to expand...
Click to collapse
I know it could be done in the recovery & some apps like lucky patcher could also do it but I just want to automate it to be executed at the same time & day each week so I don't have to worry about doing it manually
slimcyril said:
I know it could be done in the recovery & some apps like lucky patcher could also do it but I just want to automate it to be executed at the same & day each week so I don't have to worry about doing it manually
Click to expand...
Click to collapse
i dnt mind spending few minutes every week for this task. and this is my own opinion tho
Lol I understand you @reyscott1968 I have a script that's called xposed log cleaner that clears all xposed logs every 5hrs & it made life very easy so I don't have to do it anymore. Here's a copy of the the script I have in my xbin that I need to be executed once a week at same day & time;
#!/system/bin/sh
#
# SuperClean & ReStart Script (Wipe Dalvik Cache & Reboot) created by zeppelinrox.
#
line=================================================
clear
echo ""
echo $line
echo " -=SuperClean & ReStart=- by -=zeppelinrox=-"
echo $line
echo ""
sleep 1
id=`id`; id=`echo ${id#*=}`; id=`echo ${id%%\(*}`; id=`echo ${id%% *}`
if [ "$id" != "0" ] && [ "$id" != "root" ]; then
sleep 2
echo " You are NOT running this script as root..."
echo ""
sleep 3
echo $line
echo " ...No SuperUser for you!!"
echo $line
echo ""
sleep 3
echo " ...Please Run as Root and try again..."
echo ""
echo $line
echo ""
sleep 3
exit 69
fi
echo " Commencing SuperClean & ReStart!"
echo ""
sleep 2
for cachedir in /*/dalvik-*; do rm -r /$cachedir/* 2>/dev/null; done
echo " All cleaned up and ready to..."
echo ""
sleep 2
echo $line
echo " !!POOF!!"
echo $line
echo ""
sleep 2
busybox sync
if [ -f "/proc/sys/kernel/sysrq" ]; then
echo 1 > /proc/sys/kernel/sysrq 2>/dev/null
echo b > /proc/sysrq-trigger 2>/dev/null
fi
echo " If it don't go poofie, just reboot manually!"
echo ""
reboot; busybox reboot
echo " ==========================="
echo " ) SuperClean Completed! ("
echo " ==========================="
echo ""
exit 0
http://forum.xda-developers.com/showthread.php?t=2700146