Battery Drain | Rodriguez Mod v1.1 + Eragon v1.8 - Elephone P9000 Questions & Answers

Hello,
I flashed Eragon v1.8 and the battery seemed fine; added Rodriguez Mod and the battery seems to drain ridiculously fast. I know it seems obvious to remove the mod but I do not want to as it's counterintuitive to remove something I hope(d) would improve it; not the contrary.
Below is a screen shot of my battery; I only just turned off the above option to see if anything improved and can honestly not tell a different right now. Please help.
http[colon]//s33.postimg[dot]org/r9jc6ck4v/13275419_1096234737107910_1784175897_o.jpg

Legless98 said:
Hello,
I flashed Eragon v1.8 and the battery seemed fine; added Rodriguez Mod and the battery seems to drain ridiculously fast. I know it seems obvious to remove the mod but I do not want to as it's counterintuitive to remove something I hope(d) would improve it; not the contrary.
Below is a screen shot of my battery; I only just turned off the above option to see if anything improved and can honestly not tell a different right now. Please help.
]http://s33.postimg.org/r9jc6ck4v/13275419_1096234737107910_1784175897_o.jpg
Click to expand...
Click to collapse
That mod is not really improving anything - most of his "tweaks" are build.prop modifications that are either outdated and no longer work (such as locking launcher in memory - that one hasn't worked since ICS) or actually have a detrimental effect on battery, as you've found out.
You should remove his mod.
Edit: Just to prove my point that he spams the build.prop - a section of the so called "tweaks" in his fix.sh script inside the zip:
Code:
echo "# Audio props BeatsAudio" >> /system/build.prop
echo "persist.sys.media.use-awesome=1" >> /system/build.prop
echo "sys.keep_app_1=com.zloban.beatsfx" >> /system/build.prop
echo "ro.audio.samplerate=48000" >> /system/build.prop
echo "ro.audio.pcm.samplerate=48000" >> /system/build.prop
echo "af.resampler.quality=255" >> /system/build.prop
echo "persist.af.resampler.quality=255" >> /system/build.prop
echo "af.resample=52000" >> /system/build.prop
echo "persist.audio.fluence.mode=endfire" >> /system/build.prop
echo "persist.audio.hp=true" >> /system/build.prop
echo "persist.audio.vr.enable=false" >> /system/build.prop
echo "persist.audio.handset.mic=digital" >> /system/build.prop
echo "persist.audio.lowlatency.rec=false" >> /system/build.prop
echo "dev.pm.dyn_samplingrate=1" >> /system/build.prop
echo "persist.dev.pm.dyn_samplingrate=1" >> /system/build.prop
sed -i '/deep_buffer {/,/}/s/^/#/' /system/etc/audio_policy.conf
echo "# Touchscreen Performance and scroll responsiveness" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "windowsmgr.max_events_per_sec=90" >> /system/build.prop
echo "view.touch_slop=2" >> /system/build.prop
echo "view.scroll_friction=10" >> /system/build.prop
echo "view.minimum_fling_velocity=25" >> /system/build.prop
echo "ro.max.fling_velocity=12000" >> /system/build.prop
echo "ro.min.fling_velocity=8000" >> /system/build.prop
echo "ro.min_pointer_dur=8" >> /system/build.prop
echo "touch.size.calibration=geometric" >> /system/build.prop
echo "touch.size.scale=100" >> /system/build.prop
echo "touch.pressure.calibration=amplitude" >> /system/build.prop
echo "touch.pressure.scale=0.001" >> /system/build.prop
echo "persist.service.lgospd.enable=0" >> /system/build.prop
echo "persist.service.pcsync.enable=0" >> /system/build.prop
echo "ro.ril.enable.a52=1" >> /system/build.prop
echo "ro.ril.enable.a53=0" >> /system/build.prop
echo "video.accelerate.hw=1" >> /system/build.prop
echo "# Saves some battery without reducing performances" >> /system/build.prop
echo "wifi.supplicant_scan_interval=497" >> /system/build.prop
echo "power.saving.mode=1" >> /system/build.prop
echo "ro.vold.umsdirtyratio=20" >> /system/build.prop
echo "ro.ril.disable.power.collapse=0" >> /system/build.prop
echo "profiler.force_disable_err_rpt=1" >> /system/build.prop
echo "profiler.force_disable_ulog=1" >> /system/build.prop
echo "dalvik.vm.checkjni=false" >> /system/build.prop
echo "dalvik.vm.execution-mode=int:jit" >> /system/build.prop
echo "ro.ril.power_collapse=1" >> /system/build.prop
echo "power_supply.wakeup=enable" >> /system/build.prop
echo "ro.mot.eri.losalert.delay=1000" >> /system/build.prop
echo "ro.config.hw_fast_dormancy=1" >> /system/build.prop
echo "ro.config.hw_power_saving=1" >> /system/build.prop
echo "ro.ril.fast.dormancy.rule=0" >> /system/build.prop
echo "dalvik.vm.verify-bytecode=false" >> /system/build.prop
echo "dalvik.vm.dexopt-flags=m=y,v=n,o=v,u=n" >> /system/build.prop
echo "vm.stat_interval=1" >> /system/build.prop
echo "# Increase general Performance" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "# DeepSleep Control" >> /system/build.prop
echo "ro.ril.sensor.sleep.control=1" >> /system/build.prop
echo "pm.sleep_mode=1" >> /system/build.prop
echo "# Increase camera's photo and video recording quality" >> /system/build.prop
echo "ro.media.dec.jpeg.memcap=8000000" >> /system/build.prop
echo "ro.media.enc.hprof.vid.bps=8000000" >> /system/build.prop
echo "ro.media.enc.hprof.vid.fps=65" >> /system/build.prop
echo "ro.media.enc.jpeg.quality=100,100,100" >> /system/build.prop
echo "ro.camcorder.videoModes=true" >> /system/build.prop
echo "ime_extend_row_keyboard=true" >> /system/build.prop
echo "ime_onehand_keyboard=true" >> /system/build.prop
echo "ime_split_keyboard=true" >> /system/build.prop
echo "ime_vibration_pattern=0:60" >> /system/build.prop
echo "ro.media.cam.preview.fps=0" >> /system/build.prop
echo "ro.media.capture.flash=led" >> /system/build.prop
echo "ro.media.capture.flashMinV=3300000" >> /system/build.prop
echo "ro.media.capture.torchIntensity=40" >> /system/build.prop
echo "ro.media.capture.flashIntensity=70" >> /system/build.prop
echo "ro.media.capture.maxres=8m" >> /system/build.prop
echo "ro.media.capture.fast.fps=4" >> /system/build.prop
echo "ro.media.capture.slow.fps=120" >> /system/build.prop
echo "ro.media.panorama.defres=3264x1840" >> /system/build.prop
echo "ro.media.panorama.frameres=1280x720" >> /system/build.prop
echo "ro.camcorder.videoModes=true" >> /system/build.prop
echo "# Disable Error reporting and logs" >> /system/build.prop
echo "profiler.force_disable_err_rpt=1" >> /system/build.prop
echo "profiler.force_disable_ulog=1" >> /system/build.prop
echo "logcat.live=disable" >> /system/build.prop
echo "ro.config.nocheckin=1" >> /system/build.prop
echo "# Disable the 'USB Debugging' Notification" >> /system/build.prop
echo "persist.adb.notify=0" >> /system/build.prop
echo "# Reduce the black screen time of the proximity sensor" >> /system/build.prop
echo "ro.lge.proximity.delay=15" >> /system/build.prop
echo "mot.proximity.delay=15" >> /system/build.prop
echo "# Smoother video streaming and tweak media" >> /system/build.prop
echo "media.stagefright.enable-player=true" >> /system/build.prop
echo "media.stagefright.enable-rtsp=true" >> /system/build.prop
echo "media.stagefright.enable-meta=true" >> /system/build.prop
echo "media.stagefright.enable-scan=true" >> /system/build.prop
echo "media.stagefright.enable-http=true" >> /system/build.prop
echo "media.stagefright.enable-aac=true" >> /system/build.prop
echo "media.stagefright.enable-qcp=true" >> /system/build.prop
echo "media.stagefright.enable-record=true" >> /system/build.prop
echo "# 3G signal and speed tweaks" >> /system/build.prop
echo "ro.ril.gprsclass=10" >> /system/build.prop
echo "ro.telephony.default_network=10" >> /system/build.prop
echo "persist.cust.tel.eons=1" >> /system/build.prop
echo "# Better call voice quality." >> /system/build.prop
echo "ro.ril.enable.amr.wideband=1" >> /system/build.prop
echo "# Better internet browsing & Speed" >> /system/build.prop
echo "net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960" >> /system/build.prop
echo "net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.hspa=6144,87380,524288,6144,163 84,262144" >> /system/build.prop
echo "net.tcp.buffersize.lte=524288,1048576,2097152,5242 88,1048576,2097152" >> /system/build.prop
echo "net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,8 7380,1048576" >> /system/build.prop
echo "net.tcp.buffersize.evdo_b=6144,87380,1048576,6144, 87380,1048576" >> /system/build.prop
echo "net.ipv4.ip_no_pmtu_disc=0" >> /system/build.prop
echo "net.ipv4.route.flush=1" >> /system/build.prop
echo "net.ipv4.tcp_ecn=0" >> /system/build.prop
echo "net.ipv4.tcp_fack=1" >> /system/build.prop
echo "net.ipv4.tcp_mem=187000 187000 187000" >> /system/build.prop
echo "net.ipv4.tcp_moderate_rcvbuf=1" >> /system/build.prop
echo "net.ipv4.tcp_no_metrics_save=1" >> /system/build.prop
echo "net.ipv4.tcp_rfc1337=1" >> /system/build.prop
echo "net.ipv4.tcp_rmem=4096 39000 187000" >> /system/build.prop
echo "net.ipv4.tcp_sack=1" >> /system/build.prop
echo "net.ipv4.tcp_timestamps=1" >> /system/build.prop
echo "net.ipv4.tcp_window_scaling=1" >> /system/build.prop
echo "net.ipv4.tcp_wmem=4096 39000 18700" >> /system/build.prop
echo "net.core.wmem_max=1048576" >> /system/build.prop
echo "net.core.rmem_max=1048576" >> /system/build.prop
echo "net.core.rmem_default=262144" >> /system/build.prop
echo "net.core.wmem_default=262144" >> /system/build.prop
echo "net.core.optmem_max=20480" >> /system/build.prop
echo "net.unix.max_dgram_qlen=50" >> /system/build.prop
echo "# Increase some Performance" >> /system/build.prop
echo "ro.secure=0" >> /system/build.prop
echo "persist.sys.use_16bpp_alpha=1" >> /system/build.prop
echo "ro.product.gpu.driver=1" >> /system/build.prop
echo "# Enable/Tweak GPU Acceleration" >> /system/build.prop
echo "debug.composition.type=c2d" >> /system/build.prop
echo "debug.egl.hw=1" >> /system/build.prop
echo "debug.enabletr=true" >> /system/build.prop
echo "debug.overlayui.enable=1" >> /system/build.prop
echo "debug.qctwa.preservebuf=1" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "debug.sf.hw=1" >> /system/build.prop
echo "dev.pm.dyn_samplingrate=1" >> /system/build.prop
echo "hw3d.force=1" >> /system/build.prop
echo "ro.config.disable.hw_accel=false" >> /system/build.prop
echo "ro.fb.mode=1" >> /system/build.prop
echo "ro.sf.compbypass.enable=0" >> /system/build.prop
echo "ro.vold.umsdirtyratio=20" >> /system/build.prop
echo "persist.sys.composition.type=c2d" >> /system/build.prop
echo "persist.sys.ui.hw=1" >> /system/build.prop
echo "# Force launcher into memory" >> /system/build.prop
echo "ro.HOME_APP_ADJ=1" >> /system/build.prop
echo "#Removes Ring Delay" >> /system/build.prop
echo "ro.telephony.call_ring.delay=0" >> /system/build.prop
echo "ring.delay=0" >> /system/build.prop

Jonny said:
That mod is not really improving anything - most of his "tweaks" are build.prop modifications that are either outdated and no longer work (such as locking launcher in memory - that one hasn't worked since ICS) or actually have a detrimental effect on battery, as you've found out.
You should remove his mod.
Edit: Just to prove my point that he spams the build.prop - a section of the so called "tweaks" in his fix.sh script inside the zip:
Code:
echo "# Audio props BeatsAudio" >> /system/build.prop
echo "persist.sys.media.use-awesome=1" >> /system/build.prop
echo "sys.keep_app_1=com.zloban.beatsfx" >> /system/build.prop
echo "ro.audio.samplerate=48000" >> /system/build.prop
echo "ro.audio.pcm.samplerate=48000" >> /system/build.prop
echo "af.resampler.quality=255" >> /system/build.prop
echo "persist.af.resampler.quality=255" >> /system/build.prop
echo "af.resample=52000" >> /system/build.prop
echo "persist.audio.fluence.mode=endfire" >> /system/build.prop
echo "persist.audio.hp=true" >> /system/build.prop
echo "persist.audio.vr.enable=false" >> /system/build.prop
echo "persist.audio.handset.mic=digital" >> /system/build.prop
echo "persist.audio.lowlatency.rec=false" >> /system/build.prop
echo "dev.pm.dyn_samplingrate=1" >> /system/build.prop
echo "persist.dev.pm.dyn_samplingrate=1" >> /system/build.prop
sed -i '/deep_buffer {/,/}/s/^/#/' /system/etc/audio_policy.conf
echo "# Touchscreen Performance and scroll responsiveness" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "windowsmgr.max_events_per_sec=90" >> /system/build.prop
echo "view.touch_slop=2" >> /system/build.prop
echo "view.scroll_friction=10" >> /system/build.prop
echo "view.minimum_fling_velocity=25" >> /system/build.prop
echo "ro.max.fling_velocity=12000" >> /system/build.prop
echo "ro.min.fling_velocity=8000" >> /system/build.prop
echo "ro.min_pointer_dur=8" >> /system/build.prop
echo "touch.size.calibration=geometric" >> /system/build.prop
echo "touch.size.scale=100" >> /system/build.prop
echo "touch.pressure.calibration=amplitude" >> /system/build.prop
echo "touch.pressure.scale=0.001" >> /system/build.prop
echo "persist.service.lgospd.enable=0" >> /system/build.prop
echo "persist.service.pcsync.enable=0" >> /system/build.prop
echo "ro.ril.enable.a52=1" >> /system/build.prop
echo "ro.ril.enable.a53=0" >> /system/build.prop
echo "video.accelerate.hw=1" >> /system/build.prop
echo "# Saves some battery without reducing performances" >> /system/build.prop
echo "wifi.supplicant_scan_interval=497" >> /system/build.prop
echo "power.saving.mode=1" >> /system/build.prop
echo "ro.vold.umsdirtyratio=20" >> /system/build.prop
echo "ro.ril.disable.power.collapse=0" >> /system/build.prop
echo "profiler.force_disable_err_rpt=1" >> /system/build.prop
echo "profiler.force_disable_ulog=1" >> /system/build.prop
echo "dalvik.vm.checkjni=false" >> /system/build.prop
echo "dalvik.vm.execution-mode=int:jit" >> /system/build.prop
echo "ro.ril.power_collapse=1" >> /system/build.prop
echo "power_supply.wakeup=enable" >> /system/build.prop
echo "ro.mot.eri.losalert.delay=1000" >> /system/build.prop
echo "ro.config.hw_fast_dormancy=1" >> /system/build.prop
echo "ro.config.hw_power_saving=1" >> /system/build.prop
echo "ro.ril.fast.dormancy.rule=0" >> /system/build.prop
echo "dalvik.vm.verify-bytecode=false" >> /system/build.prop
echo "dalvik.vm.dexopt-flags=m=y,v=n,o=v,u=n" >> /system/build.prop
echo "vm.stat_interval=1" >> /system/build.prop
echo "# Increase general Performance" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "# DeepSleep Control" >> /system/build.prop
echo "ro.ril.sensor.sleep.control=1" >> /system/build.prop
echo "pm.sleep_mode=1" >> /system/build.prop
echo "# Increase camera's photo and video recording quality" >> /system/build.prop
echo "ro.media.dec.jpeg.memcap=8000000" >> /system/build.prop
echo "ro.media.enc.hprof.vid.bps=8000000" >> /system/build.prop
echo "ro.media.enc.hprof.vid.fps=65" >> /system/build.prop
echo "ro.media.enc.jpeg.quality=100,100,100" >> /system/build.prop
echo "ro.camcorder.videoModes=true" >> /system/build.prop
echo "ime_extend_row_keyboard=true" >> /system/build.prop
echo "ime_onehand_keyboard=true" >> /system/build.prop
echo "ime_split_keyboard=true" >> /system/build.prop
echo "ime_vibration_pattern=0:60" >> /system/build.prop
echo "ro.media.cam.preview.fps=0" >> /system/build.prop
echo "ro.media.capture.flash=led" >> /system/build.prop
echo "ro.media.capture.flashMinV=3300000" >> /system/build.prop
echo "ro.media.capture.torchIntensity=40" >> /system/build.prop
echo "ro.media.capture.flashIntensity=70" >> /system/build.prop
echo "ro.media.capture.maxres=8m" >> /system/build.prop
echo "ro.media.capture.fast.fps=4" >> /system/build.prop
echo "ro.media.capture.slow.fps=120" >> /system/build.prop
echo "ro.media.panorama.defres=3264x1840" >> /system/build.prop
echo "ro.media.panorama.frameres=1280x720" >> /system/build.prop
echo "ro.camcorder.videoModes=true" >> /system/build.prop
echo "# Disable Error reporting and logs" >> /system/build.prop
echo "profiler.force_disable_err_rpt=1" >> /system/build.prop
echo "profiler.force_disable_ulog=1" >> /system/build.prop
echo "logcat.live=disable" >> /system/build.prop
echo "ro.config.nocheckin=1" >> /system/build.prop
echo "# Disable the 'USB Debugging' Notification" >> /system/build.prop
echo "persist.adb.notify=0" >> /system/build.prop
echo "# Reduce the black screen time of the proximity sensor" >> /system/build.prop
echo "ro.lge.proximity.delay=15" >> /system/build.prop
echo "mot.proximity.delay=15" >> /system/build.prop
echo "# Smoother video streaming and tweak media" >> /system/build.prop
echo "media.stagefright.enable-player=true" >> /system/build.prop
echo "media.stagefright.enable-rtsp=true" >> /system/build.prop
echo "media.stagefright.enable-meta=true" >> /system/build.prop
echo "media.stagefright.enable-scan=true" >> /system/build.prop
echo "media.stagefright.enable-http=true" >> /system/build.prop
echo "media.stagefright.enable-aac=true" >> /system/build.prop
echo "media.stagefright.enable-qcp=true" >> /system/build.prop
echo "media.stagefright.enable-record=true" >> /system/build.prop
echo "# 3G signal and speed tweaks" >> /system/build.prop
echo "ro.ril.gprsclass=10" >> /system/build.prop
echo "ro.telephony.default_network=10" >> /system/build.prop
echo "persist.cust.tel.eons=1" >> /system/build.prop
echo "# Better call voice quality." >> /system/build.prop
echo "ro.ril.enable.amr.wideband=1" >> /system/build.prop
echo "# Better internet browsing & Speed" >> /system/build.prop
echo "net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960" >> /system/build.prop
echo "net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960" >> /system/build.prop
echo "net.tcp.buffersize.hspa=6144,87380,524288,6144,163 84,262144" >> /system/build.prop
echo "net.tcp.buffersize.lte=524288,1048576,2097152,5242 88,1048576,2097152" >> /system/build.prop
echo "net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,8 7380,1048576" >> /system/build.prop
echo "net.tcp.buffersize.evdo_b=6144,87380,1048576,6144, 87380,1048576" >> /system/build.prop
echo "net.ipv4.ip_no_pmtu_disc=0" >> /system/build.prop
echo "net.ipv4.route.flush=1" >> /system/build.prop
echo "net.ipv4.tcp_ecn=0" >> /system/build.prop
echo "net.ipv4.tcp_fack=1" >> /system/build.prop
echo "net.ipv4.tcp_mem=187000 187000 187000" >> /system/build.prop
echo "net.ipv4.tcp_moderate_rcvbuf=1" >> /system/build.prop
echo "net.ipv4.tcp_no_metrics_save=1" >> /system/build.prop
echo "net.ipv4.tcp_rfc1337=1" >> /system/build.prop
echo "net.ipv4.tcp_rmem=4096 39000 187000" >> /system/build.prop
echo "net.ipv4.tcp_sack=1" >> /system/build.prop
echo "net.ipv4.tcp_timestamps=1" >> /system/build.prop
echo "net.ipv4.tcp_window_scaling=1" >> /system/build.prop
echo "net.ipv4.tcp_wmem=4096 39000 18700" >> /system/build.prop
echo "net.core.wmem_max=1048576" >> /system/build.prop
echo "net.core.rmem_max=1048576" >> /system/build.prop
echo "net.core.rmem_default=262144" >> /system/build.prop
echo "net.core.wmem_default=262144" >> /system/build.prop
echo "net.core.optmem_max=20480" >> /system/build.prop
echo "net.unix.max_dgram_qlen=50" >> /system/build.prop
echo "# Increase some Performance" >> /system/build.prop
echo "ro.secure=0" >> /system/build.prop
echo "persist.sys.use_16bpp_alpha=1" >> /system/build.prop
echo "ro.product.gpu.driver=1" >> /system/build.prop
echo "# Enable/Tweak GPU Acceleration" >> /system/build.prop
echo "debug.composition.type=c2d" >> /system/build.prop
echo "debug.egl.hw=1" >> /system/build.prop
echo "debug.enabletr=true" >> /system/build.prop
echo "debug.overlayui.enable=1" >> /system/build.prop
echo "debug.qctwa.preservebuf=1" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "debug.sf.hw=1" >> /system/build.prop
echo "dev.pm.dyn_samplingrate=1" >> /system/build.prop
echo "hw3d.force=1" >> /system/build.prop
echo "ro.config.disable.hw_accel=false" >> /system/build.prop
echo "ro.fb.mode=1" >> /system/build.prop
echo "ro.sf.compbypass.enable=0" >> /system/build.prop
echo "ro.vold.umsdirtyratio=20" >> /system/build.prop
echo "persist.sys.composition.type=c2d" >> /system/build.prop
echo "persist.sys.ui.hw=1" >> /system/build.prop
echo "# Force launcher into memory" >> /system/build.prop
echo "ro.HOME_APP_ADJ=1" >> /system/build.prop
echo "#Removes Ring Delay" >> /system/build.prop
echo "ro.telephony.call_ring.delay=0" >> /system/build.prop
echo "ring.delay=0" >> /system/build.prop
Click to expand...
Click to collapse
Thank you for this. I'll remove it ASAP. Shame I have to reflash ugh.

Related

[Q] Undervolt/overclock init.d script

I search in forum and write script
Code:
#!/system/bin/sh
echo '122880 800' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '245760 800' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '368640 800' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '460800 850' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '576000 850' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '652800 900' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '768000 900' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '806400 950' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '921600 950' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1024000 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1113000 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1209600 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1305600 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1401600 1150' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1516800 1200' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1612800 1250' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1708800 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1804800 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 1401600 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "ondemandx" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
When I put it in init.d folder, set permissions, it not working! When I paste text in terminal emulator, all works.
What I do wrong? Searching forum and reading another threads not help!
Kernel - Alliance 1.1 kernel full, ROM - Spacious, smooth and light ICS
This is ready posted, search better mate
Sent from my Neo V with Supercharged ICS 4.0.4
Pandemic said:
This is ready posted, search better mate
Sent from my Neo V with Supercharged ICS 4.0.4
Click to expand...
Click to collapse
If I can find solution, I will not ask! Here is many posted how to do, but I can't find, why it not working for me!
Solved!
In notepad++ rewrite all spaces, all works now!
emm, may i know, i wrote a script file
#!/system/bin/sh
echo '1024000' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo '1024000' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
and saved it as ScalingCPU, then copy it to init.d folder. then, i set the permission: ticked all 9 columns.
is that so?

Increasing Touch Sensitivity via the s89touch script from init.d

How do I edit that script's values to increase responsiveness?
They are like this:
#!/system/bin/sh
chmod -R 777 /sys/class/touch/switch/set_touchscreen;
echo 7035 > /sys/class/touch/switch/set_touchscreen;
echo 8002 > /sys/class/touch/switch/set_touchscreen;
echo 11000 > /sys/class/touch/switch/set_touchscreen;
echo 13060 > /sys/class/touch/switch/set_touchscreen;
echo 14005 > /sys/class/touch/switch/set_touchscreen;
chmod -R 444 /sys/class/touch/switch/set_touchscreen;
I am quite sure this is the correct file to edit!!
Please help!!
Anyone? ((

[Q] scripts for change build.prop

hi
i need a script for edit build.prop
i want a script that change lines and add them if they don't exist
http://forum.xda-developers.com/showpost.php?p=19093919&postcount=20
http://forum.xda-developers.com/showpost.php?p=25977898&postcount=15
but i can't understand why they don't work
i find this way and this works good with gscript but not work from cwm
simple sed method:
Code:
#!/bin/bash
sed -i '/linetobereplaced/c\replacedline.' /system/build.prop
EAGLEBOOY said:
hi
i need a script for edit build.prop
i want a script that change lines and add them if they don't exist
http://forum.xda-developers.com/showpost.php?p=19093919&postcount=20
http://forum.xda-developers.com/showpost.php?p=25977898&postcount=15
but i can't understand why they don't work
i find this way and this works good with gscript but not work from cwm
simple sed method:
Code:
#!/bin/bash
sed -i '/linetobereplaced/c\replacedline.' /system/build.prop
Click to expand...
Click to collapse
Yes I have been struggling with this one for a while and just had another look at the issues we face today
.... the answer is so simple you will kick yourself
The UnCoRuPtEd script needs a simple file replacing
Its the update-binary that is the issue, make sure you use the correct file for your mobile and put it into the META-INF\com\google\android
Mine now works a treat
This will help you
http://www.mediafire.com/download/bq910l5ww1zs2di/5.zip
Note the two parts
META-INF\com\google\android\updater-script
Code:
package_extract_file("MoHaMaD_tweaks.sh", "/tmp/MoHaMaD_tweaks.sh");
set_perm(0, 0, 0777, "/tmp/MoHaMaD_tweaks.sh");
run_program("/tmp/MoHaMaD_tweaks.sh", "");
and MoHaMaD_tweaks.sh
Code:
#!/sbin/sh
mkdir /sdcard/MoHaMaD
mkdir /sdcard/MoHaMaD/init.d_backup
cp /system/etc/init.d/* /sdcard/MoHaMaD/init.d_backup
cp /system/build.prop /sdcard/MoHaMaD/build.prop
echo "###################################" >> /system/build.prop
echo "##Build.prop tweaks edit MoHaMaD ##" >> /system/build.prop
echo "###################################" >> /system/build.prop
echo "persist.adb.notify=0" >> /system/build.prop
echo "persist.sys.usb.config=mass_storage,adb" >> /system/build.prop
echo "persist.sys.purgeable_assets=1" >> /system/build.prop
echo "wifi.supplicant_scan_interval=180" >> /system/build.prop
echo "windowsmgr.max_events_per_sec=200" >> /system/build.prop
echo "pm.sleep_mode=1" >> /system/build.prop
echo "ro.ril.disable.power.collapse=0" >> /system/build.prop
echo "ro.media.enc.jpeg.quality=100" >> /system/build.prop
echo "video.accelerate.hw=1" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "ro.kernel.android.checkjni=0" >> /system/build.prop
echo "ro.kernel.checkjni=0" >> /system/build.prop
echo "logcat.live=disable" >> /system/build.prop
echo "ro.config.nocheckin=1" >> /system/build.prop
echo "profiler.force_disable_err_rpt=1" >> /system/build.prop
echo "profiler.force_disable_ulog=1" >> /system/build.prop
echo "ro.HOME_APP_ADJ=1" >> /system/build.prop
echo "ro.mot.eri.losalert.delay=1000" >> /system/build.prop
sed -i 's/ro.product.locale.excluded=ar_EG ar_IL fa_IR iw_IL/ro.product.locale.excluded=ar_EG ar_IL iw_IL/g' /system/build.prop
rm -r /data/dalvik-cache/*
.MoHaMaD said:
This will help you
http://www.mediafire.com/download/bq910l5ww1zs2di/5.zip
Note the two parts
META-INF\com\google\android\updater-script
Code:
package_extract_file("MoHaMaD_tweaks.sh", "/tmp/MoHaMaD_tweaks.sh");
set_perm(0, 0, 0777, "/tmp/MoHaMaD_tweaks.sh");
run_program("/tmp/MoHaMaD_tweaks.sh", "");
and MoHaMaD_tweaks.sh
Code:
#!/sbin/sh
mkdir /sdcard/MoHaMaD
mkdir /sdcard/MoHaMaD/init.d_backup
cp /system/etc/init.d/* /sdcard/MoHaMaD/init.d_backup
cp /system/build.prop /sdcard/MoHaMaD/build.prop
echo "###################################" >> /system/build.prop
echo "##Build.prop tweaks edit MoHaMaD ##" >> /system/build.prop
echo "###################################" >> /system/build.prop
echo "persist.adb.notify=0" >> /system/build.prop
echo "persist.sys.usb.config=mass_storage,adb" >> /system/build.prop
echo "persist.sys.purgeable_assets=1" >> /system/build.prop
echo "wifi.supplicant_scan_interval=180" >> /system/build.prop
echo "windowsmgr.max_events_per_sec=200" >> /system/build.prop
echo "pm.sleep_mode=1" >> /system/build.prop
echo "ro.ril.disable.power.collapse=0" >> /system/build.prop
echo "ro.media.enc.jpeg.quality=100" >> /system/build.prop
echo "video.accelerate.hw=1" >> /system/build.prop
echo "debug.performance.tuning=1" >> /system/build.prop
echo "ro.kernel.android.checkjni=0" >> /system/build.prop
echo "ro.kernel.checkjni=0" >> /system/build.prop
echo "logcat.live=disable" >> /system/build.prop
echo "ro.config.nocheckin=1" >> /system/build.prop
echo "profiler.force_disable_err_rpt=1" >> /system/build.prop
echo "profiler.force_disable_ulog=1" >> /system/build.prop
echo "ro.HOME_APP_ADJ=1" >> /system/build.prop
echo "ro.mot.eri.losalert.delay=1000" >> /system/build.prop
sed -i 's/ro.product.locale.excluded=ar_EG ar_IL fa_IR iw_IL/ro.product.locale.excluded=ar_EG ar_IL iw_IL/g' /system/build.prop
rm -r /data/dalvik-cache/*
Click to expand...
Click to collapse
aaaahhhh but does the above script check for any entries already there to avoid duplicate entries in the build.prop
the script from UnCoRupTeD here http://forum.xda-developers.com/showpost.php?p=19093919&postcount=20
will make a backup of the build.prop and replace any entries found with the new ones
In my opinion UnCorUpTeD's script is better for the non-experts among us

Script to create swapfile

I save this code as ramswap.sh.. but when I try to execute using Terminal emulator with permission of course, it gives me error
Code:
dd if=/dev/zero of=/mnt/sdcard/swapfile bs=1048576 count=300
mkswap /mnt/sdcard/swapfile
swapon /mnt/sdcard/swapfile
echo "vm.swappiness=80" >> /etc/sysctl.conf
sysctl -p
echo "#!/system/bin/sh" >> /etc/init.d/99swapon
echo "sleep 75" >> /etc/init.d/99swapon
echo "swapon /mnt/sdcard/swapfile" >> /etc/init.d/99swapon
echo "sysctl -p" >> /etc/init.d/99swapon

[Q&A] [BOTH][SCRIPT] Make it Last/Speed it UP!

Q&A for [BOTH][SCRIPT] Make it Last/Speed it UP!
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [BOTH][SCRIPT] Make it Last/Speed it UP!. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Battery life script is not working
BytecodeMe said:
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!
Click to expand...
Click to collapse
The battery tweaks are not working on lg optimus l7 p705....
I"m using Mahdi Rom 4.4.4 and battery drains like crazy lost 1 % every 2 mins
I need an urgent fix plz help ??

Categories

Resources