[HTC Desire 500] KickaZz123:
Hot News

Hey Guys maybe i had hot Infos for one or the other.

First my English is terrible i know

Over a Month i found the boot script where i can activate or deactived mcdecision or Intelli-Plug

the file called init.qcom.post_boot.sh and it found in /system/etc

this file is awesome because you can scribe all your tweaks you know in this file.

inclouding minfree and adj parameter. But for that you have to edit the init.rc from your boot.img

init.rc is interesting too because you can set up your favorite build.prop tweaks

you have to find this line and i was comment it out when you add your favorite minfree and adj parameter later in the init.qcom.post_boot.sh :

# Memory management. Basic kernel parameters, and allow the high

# level system server to be able to adjust the kernel OOM driver

# parameters to match how it is managing things.

write /proc/sys/vm/overcommit_memory 1

write /proc/sys/vm/min_free_order_shift 4

write /proc/sys/vm/highmem_is_dirtyable 1

chown root system /sys/module/lowmemorykiller/parameters/adj

chmod 0664 /sys/module/lowmemorykiller/parameters/adj

chown root system /sys/module/lowmemorykiller/parameters/minfree

chmod 0664 /sys/module/lowmemorykiller/parameters/minfree

# Memory management. Basic kernel parameters, and allow the high

# level system server to be able to adjust the kernel OOM driver

# parameters to match how it is managing things.

write /proc/sys/vm/overcommit_memory 1

write /proc/sys/vm/min_free_order_shift 4

write /proc/sys/vm/highmem_is_dirtyable 1

# chown root system /sys/module/lowmemorykiller/parameters/adj

# chmod 0664 /sys/module/lowmemorykiller/parameters/adj

# chown root system /sys/module/lowmemorykiller/parameters/minfree

# chmod 0664 /sys/module/lowmemorykiller/parameters/minfree

These are actually my init.rc tweaks:

# Filesystem image public mount points.

mkdir /mnt/obb 0700 root system

mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000

write /proc/sys/kernel/panic_on_oops 1

write /proc/sys/kernel/hung_task_timeout_secs 30

write /proc/cpu/alignment 4

write /proc/sys/kernel/sched_shares_ratelimit 256000

write /proc/sys/kernel/sched_min_granularity_ns 100000

write /proc/sys/kernel/sched_features 24189

write /proc/sys/kernel/sched_latency_ns 200000

write /proc/sys/kernel/sched_wakeup_granularity_ns 0

write /proc/sys/kernel/sched_compat_yield 1

write /proc/sys/kernel/sched_child_runs_first 0

write /proc/sys/kernel/randomize_va_space 2

write /proc/sys/kernel/kptr_restrict 2

write /proc/sys/kernel/dmesg_restrict 1

write /proc/sys/vm/mmap_min_addr 32768

write /proc/sys/kernel/sched_rt_runtime_us 950000

write /proc/sys/kernel/sched_rt_period_us 1000000

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245760

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1209600

write /sys/module/intelli_plug/parameters/intelli_plug_active 1

write /proc/sys/kernel/random/write_wakeup_threshold 0

write /proc/sys/kernel/random/read_wakeup_threshold 8

write /proc/sys/kernel/write_wakeup_threshold 0

write /proc/sys/kernel/read_wakeup_threshold 8

write /proc/sys/kernel/panic 30

write /proc/sys/kernel/core_uses_pid 0

write /proc/sys/kernel/core_pattern core

write /proc/sys/kernel/core_pipe_limit 0

write /proc/sys/kernel/tainted 512

write /proc/sys/kernel/real-root-dev 0

write /proc/sys/kernel/print-fatal-signals 0

write /proc/sys/kernel/ctrl-alt-del 0

write /proc/sys/kernel/ftrace_enabled 1

write /proc/sys/kernel/ftrace_dump_on_oops 0

write /proc/sys/kernel/threads-max 10000

write /proc/sys/kernel/random.poolsize 4096

write /proc/sys/kernel/overflowuid 65534

write /proc/sys/kernel/overflowgid 65534

write /proc/sys/kernel/pid_max 32768

write /proc/sys/kernel/dmesg_restrict 0

write /proc/sys/kernel/kptr_restrict 0

write /proc/sys/kernel/ngroups_max 65536

write /proc/sys/kernel/watchdog 1

write /proc/sys/kernel/watchdog_thresh 10

write /proc/sys/kernel/softlockup_panic 1

write /proc/sys/kernel/nmi_watchdog 1

write /proc/sys/kernel/randomize_va_space 1

write /proc/sys/kernel/hung_task_panic 0

write /proc/sys/kernel/hung_task_check_count 32768

write /proc/sys/kernel/hung_task_warnings 10

write /proc/sys/kernel/max_lock_depth 0

write /proc/sys/kernel/keys.maxkeys 200

write /proc/sys/kernel/keys.maxbytes 20000

write /proc/sys/kernel/keys.root_maxkeys 200

write /proc/sys/kernel/keys.root_maxbytes 20000

write /proc/sys/kernel/keys.gc_delay 300

write /proc/sys/kernel/perf_event_paranoid 1

write /proc/sys/kernel/perf_event_mlock_kb 516

write /proc/sys/kernel/perf_event_max_sample_rate 150000

write /proc/sys/kernel/blk_iopoll 1

write /proc/sys/kernel/shmmax 33554432

write /proc/sys/kernel/shmall 2097152

write /proc/sys/kernel/shmmni 4096

write /proc/sys/kernel/msgmax 8192

write /proc/sys/kernel/msgmni 1041

write /proc/sys/kernel/msgmnb 16384

write /proc/sys/kernel/auto_msgmni 1

write /sys/block/mmcblk1/queue/read_ahead_kb 2048

# Define TCP buffer sizes for various networks

# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,

setprop net.tcp.buffersize.default 6144,87380,110208,6144,16384,110208

setprop net.tcp.buffersize.wifi 262144,524288,1048576,262144,524288,1048576

setprop net.tcp.buffersize.lte 262144,524288,3145728,262144,524288,3145728

setprop net.tcp.buffersize.umts 6144,87380,110208,6144,16384,110208

setprop net.tcp.buffersize.hspap 6144,262144,1048576,6144,262144,1048576

setprop net.tcp.buffersize.hspa 6144,262144,1048576,6144,262144,1048576

setprop net.tcp.buffersize.hsupa 6144,262144,1048576,6144,262144,1048576

setprop net.tcp.buffersize.hsdpa 6144,262144,1048576,6144,262144,1048576

setprop net.tcp.buffersize.edge 6144,26280,35040,6144,16384,35040

setprop net.tcp.buffersize.gprs 6144,8760,11680,6144,8760,11680

setprop net.tcp.buffersize.evdo_b 6144,262144,1048576,6144,262144,1048576

setprop net.tcp.buffersize.evdo 6144,262144,1048576,6144,262144,1048576

setprop dev.silent_reboot 1

setprop htc.audio.swalt.mingain 14512

setprop hwui.disable_vsync true

setprop hwui.render_dirty_regions false

setprop sys.mem.max_hidden_apps 15

setprop video.accelerate.hw 1

setprop hw3d.force 1

setprop hw2d.force 1

setprop persist.sys.composition.type dyn

setprop persist.sys.NV_FPSLIMIT 60

setprop persist.sys.NV_POWERMODE 1

setprop persist.sys.NV_PROFVER 15

setprop persist.sys.NV_STEREOCTRL 0

setprop persist.sys.NV_STEREOSEPCHG 0

setprop persist.sys.NV_STEREOSEP 20

setprop debug.sf.showupdates 0

setprop debug.sf.showcpu 0

setprop debug.sf.showbackground 0

setprop debug.sf.showfps 0

setprop persist.sys.ui.hw 1

setprop ro.product.gpu.driver 1

setprop debug.egl.hw 1

setprop debug.egl.profiler 1

setprop debug.egl.buffcount 4

setprop debug.egl.swapinterval 0

setprop debug.hwui.render_dirty_regions false

setprop ro.config.disable.hw_accel false

setprop debug.enabletr true

setprop debug.enabletr 1

setprop debug.overlayui.enable 1

setprop debug.gr.swapinterval 0

setprop debug.gr.numframebuffers 3

setprop ro.tether.denied false

setprop qemu.hw.mainkeys 0

setprop ro.config.disable.hw_accel false

setprop ro.config.hw_menu_unlockscreen false

setprop lpa.decode false

setprop lpa30.decode false

setprop htc.audio.alt.enable 0

setprop htc.audio.hac.enable 0

setprop persist.htc.audio.pcm.samplerate 44100

setprop persist.htc.audio.pcm.channels 2

setprop dalvik.vm.heapgrowthlimit 64m

setprop dalvik.vm.heapsize 256m

setprop ro.ril.disable.power.collapse 0

setprop wifi.supplicant_scan_interval 180

setprop ro.config.htc.enableCOTA 0

setprop debug.sf.nobootanimation 1

setprop dev.bootcomplete 1

setprop windowsmgr.max_events_per_sec 150

setprop dev.pm.dyn_samplingrate 1

setprop debug.mdpcomp.maxlayer 0

setprop persist.sys.use_dithering 1

setprop persist.sys.purgeable_assets 1

setprop ro.debuggable 1

setprop ro.secure 0

setprop debug.performance.tuning 1

setprop persist.cust.tel.eons 1

setprop com.qc.hardware 1

setprop debug.qc.hardware true

setprop debug.qctwa.statusbar 1

setprop debug.enabletr 1

setprop debug.kill_allocating_task 0

setprop ro.min_pointer_dur 1

setprop ro.config.hw_fast_dormancy 1

setprop dalvik.vm.verify-bytecode false

setprop dalvik.vm.dexopt-data-only 1

setprop dalvik.vm.checkjni 0

setprop dalvik.vm.checkjni false

setprop dalvik.vm.check-dex-sum false

setprop dalvik.vm.jniopts warnonly

setprop dalvik.vm.jmiopts forcecopy

setprop dalvik.vm.execution-mode int:fast

setprop dalvik.vm.lockprof.threshold 500

setprop dalvik.gc.type precise

setprop dalvik.vm.heapstartsize 8m

setprop net.rmnet0.dns1 8.8.8.8

setprop net.rmnet0.dns2 8.8.4.4

setprop net.ppp0.dns1 8.8.8.8

setprop net.ppp0.dns2 8.8.4.4

setprop net.dns1 8.8.8.8

setprop net.dns2 8.8.4.4

setprop media.stagefright.enable-player true

setprop media.stagefright.enable-meta true

setprop media.stagefright.enable-scan true

setprop media.stagefright.enable-http true

setprop media.stagefright.enable-aac true

setprop media.stagefright.enable-qcp true

setprop media.stagefright.enable-record true

setprop ro.kernel.checkjni 0

setprop ro.kernel.android.checkjni 0

setprop ro.config.htc.nocheckin 1

setprop ro.config.nocheckin 1

setprop ro.config.ehrpd true

setprop ro.ril.hep 0

setprop ro.wmt.blcr.enable 0

setprop logcat.live disable

setprop profiler.force_disable_ulog 1

setprop profiler.force_disable_err_rpt 1

setprop persist.android.strictmode 0

setprop ro.sf.compbypass.enable 0

setprop ro.vold.umsdirtyratio 20

setprop pm.sleep_mode 1

setprop usb_wakeup enable

setprop power_supply.wakeup enable

setprop ro.config.hw_power_saving 1

setprop ro.config.hw_fast_dormancy 1

setprop ro.config.hw_quickpoweron true

setprop ro.config.hwfeature_wakeupkey 0

setprop ro.ril.sensor.sleep.control 1

setprop ro.mot.buttonlight.timeout 0

setprop proximity_incall enable

setprop ring.delay 0

setprop mot.proximity.delay 25

setprop touch.presure.scale 0.001

setprop persist.service.lgospd.enable 0

setprop persist.service.pcsync.enable 0

setprop persist.data_netmgrd_nint 8

setprop persist.data_netmgrd_mtu 1482

setprop persist.telephony.support.ipv6 1

setprop persist.telephony.support.ipv4 1

setprop ro.product.multi_touch_enabled true

setprop ro.product.max_num_touch 2

setprop ro.ril.set.mtu1472 1

setprop ro.telephony.call_ring.delay 0

setprop ro.mot.eri.losalert.delay 1000

setprop ro.sec.proximity.delay 0

setprop ro.lge.proximity.delay 25

setprop ro.use_data_netmgrd true

setprop ro.media.dec.jpeg.memcap 8000000

setprop ro.media.enc.hprof.vid.bps 8000000

setprop ro.media.capture.maxres 8m

setprop ro.media.panorama.defres 3264x1840

setprop ro.media.panorama.frameres 1280x720

setprop ro.camcorder.videoModes true

setprop ro.media.enc.hprof.vid.fps 65

setprop ro.media.enc.jpeg.quality 100

setprop ro.media.dec.aud.wma.enabled 1

setprop ro.media.dec.vid.wmv.enabled 1

setprop ro.media.cam.preview.fps 0

setprop ro.media.codec_priority_for_thumb so

setprop ro.ril.htcmaskw1.bitmask 4294967295

setprop ro.ril.htcmaskw1 268449905

setprop ro.ril.enable.3g.prefix 1

setprop ro.ril.enable.gea3 1

setprop persist.ril.uart.flowctrl 10

setprop ro.ril.enable.fd.plmn.prefix 23402,23410,23411

setprop ro.ril.def.agps.feature 1

# Assign TCP buffer thresholds to be ceiling value of technology maximums

# Increased technology maximums should be reflected here.

# write /proc/sys/net/core/rmem_max 16777216

# write /proc/sys/net/core/wmem_max 16777216

write /proc/sys/net/core/rmem_max 1048576

write /proc/sys/net/core/wmem_max 1048576

i only post the changes i made.

Now we come to init.qcom.post_boot.sh.

to deactived mpdecision at boot you must at the end this add:

# Post-setup services

case "$target" in

"msm7627a")

#start mpdecision

stop mpdecision

;;

esac

This is actually the to init.qcom.post_boot.sh i use:

target=`getprop ro.board.platform`

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 "SmartassV2" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

;;

esac

case "$target" in

"msm7627a")

echo "0,176,352,588,705,1000" > /sys/module/lowmemorykiller/parameters/adj

echo "7680,12800,51200,56320,61440,70400" > /sys/module/lowmemorykiller/parameters/minfree

;;

esac

case "$target" in

"msm7201a_ffa" | "msm7201a_surf")

echo "0,176,352,588,705,1000" > /sys/module/lowmemorykiller/parameters/adj

echo "7680,12800,51200,56320,61440,70400" > /sys/module/lowmemorykiller/parameters/minfree

;;

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

"msm7627_ffa" | "msm7627_surf" | "msm7627a")

echo "0,176,352,588,705,1000" > /sys/module/lowmemorykiller/parameters/adj

echo "7680,12800,51200,56320,61440,70400" > /sys/module/lowmemorykiller/parameters/minfree

echo 245760000 > /sys/class/kgsl/kgsl-3d0/max_gpuclk

echo 2 > /sys/devices/system/cpu/sched_mc_power_savings

echo "fiops" > /sys/block/mmcblk1/queue/scheduler

echo fiops > /sys/block/mmcblk1/queue/scheduler

echo "sio" > /sys/block/mmcblk0/queue/scheduler

echo sio > /sys/block/mmcblk0/queue/scheduler

echo 2048 > /sys/block/mmcblk1/queue/read_ahead_kb

echo "2048" > /sys/block/mmcblk1/queue/read_ahead_kb

echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb

echo "2048" > /sys/block/mmcblk0/queue/read_ahead_kb

echo 500 > /sys/block/mmcblk0/queue/iosched/async_read_expire

echo 1000 > /sys/block/mmcblk0/queue/iosched/async_write_expire

echo 250 > /sys/block/mmcblk0/queue/iosched/sync_read_expire

echo 500 > /sys/block/mmcblk0/queue/iosched/sync_write_expire

echo 1 > /sys/block/mmcblk0/queue/iosched/fifo_batch

echo 1 > /sys/block/mmcblk0/queue/iosched/writes_starved

echo 3 > /sys/block/mmcblk1/queue/iosched/async_scale

echo 1 > /sys/block/mmcblk1/queue/iosched/read_scale

echo 2 > /sys/block/mmcblk1/queue/iosched/sync_scale

echo 1 > /sys/block/mmcblk1/queue/iosched/write_scale

echo 0 > /sys/block/mmcblk0/queue/iostats

echo 0 > /sys/block/mmcblk1/queue/iostats

echo 0 > /sys/block/mmcblk0/queue/rotational

echo 8192 > /sys/block/mmcblk0/queue/nr_requests

echo 0 > /sys/block/mmcblk1/queue/rotational

echo 8192 > /sys/block/mmcblk1/queue/nr_requests

echo 500 512000 64 2048 > /proc/sys/kernel/sem

echo 33554432 > /proc/sys/kernel/shmmax

#33554432,268435456

echo 2097152 > /proc/sys/kernel/shmall

#2097152,16777216

echo 4096 > /proc/sys/kernel/shmmni

echo 1041 > /proc/sys/kernel/msgmni

#1041,64000

echo 8192 > /proc/sys/kernel/msgmax

#8192,64000

echo 1 > /proc/sys/kernel/softlockup_panic

#1,0

echo 30 > /proc/sys/kernel/panic

echo 0 > /proc/sys/kernel/core_uses_pid

echo "core" > /proc/sys/kernel/core_pattern

echo core > /proc/sys/kernel/core_pattern

echo 0 > /proc/sys/kernel/core_pipe_limit

echo 512 > /proc/sys/kernel/tainted

echo 0 > /proc/sys/kernel/real-root-dev

echo 0 > /proc/sys/kernel/print-fatal-signals

echo 0 > /proc/sys/kernel/ctrl-alt-del

echo 1 > /proc/sys/kernel/ftrace_enabled

echo 0 > /proc/sys/kernel/ftrace_dump_on_oops

echo 10000 > /proc/sys/kernel/threads-max

echo 4096 > /proc/sys/kernel/random.poolsize

echo 65534 > /proc/sys/kernel/overflowuid

echo 65534 > /proc/sys/kernel/overflowgid

echo 32768 > /proc/sys/kernel/pid_max

echo 1 > /proc/sys/kernel/panic_on_oops

echo 0 > /proc/sys/kernel/dmesg_restrict

echo 0 > /proc/sys/kernel/kptr_restrict

echo 65536 > /proc/sys/kernel/ngroups_max

echo 1 > /proc/sys/kernel/watchdog

echo 10 > /proc/sys/kernel/watchdog_thresh

echo 1 > /proc/sys/kernel/nmi_watchdog

echo 1 > /proc/sys/kernel/randomize_va_space

echo 0 > /proc/sys/kernel/hung_task_panic

echo 32768 > /proc/sys/kernel/hung_task_check_count

echo 10 > /proc/sys/kernel/hung_task_warnings

echo 0 > /proc/sys/kernel/max_lock_depth

echo 200 > /proc/sys/kernel/keys.maxkeys

echo 20000 > /proc/sys/kernel/keys.maxbytes

echo 200 > /proc/sys/kernel/keys.root_maxkeys

echo 20000 > /proc/sys/kernel/keys.root_maxbytes

echo 300 > /proc/sys/kernel/keys.gc_delay

echo 1 > /proc/sys/kernel/perf_event_paranoid

echo 516 > /proc/sys/kernel/perf_event_mlock_kb

echo 150000 > /proc/sys/kernel/perf_event_max_sample_rate

echo 1 > /proc/sys/kernel/blk_iopoll

echo 16384 > /proc/sys/kernel/msgmnb

echo 1 > /proc/sys/kernel/auto_msgmni

echo 99 > /proc/sys/vm/dirty_ratio

echo 30 > /proc/sys/vm/dirty_background_ratio

echo 3 > /proc/sys/vm/page-cluster

echo 1000 > /proc/sys/vm/dirty_expire_centisecs

echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

echo 1 > /proc/sys/vm/oom_kill_allocating_task

#1,0

echo 0 > /proc/sys/vm/panic_on_oom

echo 30 > /proc/sys/vm/dirty_background_ratio

echo 655540 > /proc/sys/vm/max_map_count

echo 4 > /proc/sys/vm/min_free_order_shift

echo 0 > /proc/sys/vm/laptop_mode

echo 1 > /proc/sys/vm/block_dump

#1,0

echo 1 > /proc/sys/vm/oom_dump_tasks

echo 0 > /proc/sys/vm/swappiness

#0,20

echo 0 > /proc/sys/vm/drop_caches

#0,3

echo 1215752192 > /proc/sys/vm/vfs_cache_pressure

echo 0 > /proc/sys/vm/dirty_background_bytes

echo 0 > /proc/sys/vm/dirty_bytes

echo 32 > /proc/sys/vm/lowmem_reserve_ratio

echo 32768 > /proc/sys/vm/mmap_min_addr

echo 1 > /proc/sys/vm/stat_interval

echo 204 > /proc/sys/vm/mmap_min_addr

echo 0 > /proc/sys/vm/scan_unevictable_pages

echo 45 > /proc/sys/fs/lease-break-time

#45,10

echo 65536 > /proc/sys/fs/file-max

echo 16384 > /proc/sys/fs/inotify/max_queued_events

#16384,32000

echo 128 > /proc/sys/fs/inotify/max_user_instances

#128,256

echo 8192 > /proc/sys/fs/inotify/max_user_watches

#8192,10240

echo 1053696 > /proc/sys/fs/nr_open

echo 65534 > /proc/sys/fs/overflowgid

echo 1 > /proc/sys/fs/leases-enable

echo 65536 > /proc/sys/fs/aio-max-nr

echo 1 > /proc/sys/fs/leases_enable

echo 65536 > /proc/sys/fs/aio_max_nr

echo 45738 > /proc/sys/fs/epoll/max_user_watches

echo 0 > /proc/sys/fs/suid_dumpable

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts

echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses

echo 2000 65000 > /proc/sys/net/ipv4/ip_local_port_range

echo 1024 > /proc/sys/net/ipv4/tcp_max_syn_backlog

echo 0 > /proc/sys/net/ipv4/tcp_low_latency

echo 0 > /proc/sys/net/ipv4/tcp_slow_start_after_idle

echo cubic > /proc/sys/net/ipv4/tcp_congestion_control

echo 1 > /proc/sys/net/ipv4/tcp_syncookies

echo 1 > /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_dsack

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 60 > /proc/sys/net/ipv4/tcp_keepalive_intvl

echo 600 > /proc/sys/net/ipv4/tcp_fin_timeout

echo 1 > /proc/sys/net/ipv4/tcp_moderate_rcvbuf

echo 1 > /proc/sys/net/ipv4/route/flush

echo 1 > /proc/sys/net/ipv4/tcp_rfc1337

echo 0 > /proc/sys/net/ipv4/ip_no_pmtu_disc

echo 0 > /proc/sys/net/ipv4/tcp_ecn

echo 6144 87380 1048576 > /proc/sys/net/ipv4/tcp_wmem

echo 6144 87380 1048576 > /proc/sys/net/ipv4/tcp_rmem

#	echo 57344 57344 524288 > /proc/sys/net/ipv4/tcp_mem

#	echo 57344 57344 524288 > /proc/sys/net/ipv4/udp_mem

echo 65536 131072 262144 > /proc/sys/net/ipv4/tcp_mem

echo 65536 131072 262144 > /proc/sys/net/ipv4/udp_mem

#	echo 6144 > /proc/sys/net/ipv4/udp_rmem_min

#	echo 6144 > /proc/sys/net/ipv4/udp_wmem_min

echo 16384 > /proc/sys/net/ipv4/udp_rmem_min

echo 16384 > /proc/sys/net/ipv4/udp_wmem_min

echo 1 > /proc/sys/net/ipv4/tcp_fack

echo 2 > /proc/sys/net/ipv4/tcp_synack_retries

echo 2 > /proc/sys/net/ipv4/tcp_syn_retries

echo 1 > /proc/sys/net/ipv4/tcp_no_metrics_save

echo 300 > /proc/sys/net/ipv4/tcp_keepalive_time

echo 0 > /proc/sys/net/ipv4/ip_forward

echo 0 > /proc/sys/net/ipv4/ip_dynaddr

echo 1440000 > /proc/sys/net/ipv4/tcp_max_tw_buckets

echo 16384 > /proc/sys/net/ipv4/tcp_max_orphans

echo 0 > /proc/sys/net/ipv4/tcp_orphan_retries

echo 512000 > /proc/sys/net/ipv4/ipfrag_high_thresh

echo 446464 > /proc/sys/net/ipv4/ipfrag_low_thresh

echo 3 > /proc/sys/net/ipv4/tcp_reordering

echo 15 > /proc/sys/net/ipv4/tcp_retries2

echo 3 > /proc/sys/net/ipv4/tcp_retries1

echo 1 > /proc/sys/net/ipv6/route/flush

echo 2048 > /proc/sys/net/ipv4/neigh/default/gc_thresh3

echo 1024 > /proc/sys/net/ipv4/neigh/default/gc_thresh2

echo 32 > /proc/sys/net/ipv4/neigh/default/gc_thresh1

echo 30 > /proc/sys/net/ipv4/neigh/default/gc_interval

echo 96 > /proc/sys/net/ipv4/neigh/default/proxy_qlen

echo 6 > /proc/sys/net/ipv4/neigh/default/unres_qlen

echo 0 > /proc/sys/net/ipv4/conf/default/accept_source_route

echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route

echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects

echo 0 > /proc/sys/net/ipv4/conf/default/accept_redirects

echo 0 > /proc/sys/net/ipv4/conf/all/secure_redirects

echo 0 > /proc/sys/net/ipv4/conf/default/secure_redirects

echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter

echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter

echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects

echo 0 > /proc/sys/net/ipv4/conf/default/send_redirects

echo 1 > /proc/sys/net/ipv4/conf/all/log_martians

echo 1 > /proc/sys/net/ipv4/conf/default/log_martians

echo 2097152 > /proc/sys/net/core/rmem_max

echo 2097152 > /proc/sys/net/core/wmem_max

#16777216,1048576,2097152

echo 131072 > /proc/sys/net/core/rmem_default

echo 131072 > /proc/sys/net/core/wmem_default

#131072,262144

echo 65536 > /proc/sys/net/core/optmem_max

#65536,20480

echo 4096 > /proc/sys/net/core/netdev_max_backlog

#4096,2500

echo 32768 > /proc/sys/net/core/somaxconn

#32768,65536

echo 64 > /proc/sys/net/core/dev_weight

echo 50 > /proc/sys/net/unix/max_dgram_qlen

echo 2 > /proc/sys/net/ipv6/default/use/tempaddr

echo 1 > /proc/sys/net/ipv6/conf/all/use/tempaddr

echo -1 > /proc/sys/net/ipv6/conf/lo/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/ifb0/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/ifb1/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet0/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet1/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet2/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet3/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet4/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet5/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet6/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/rmnet7/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio0/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio1/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio2/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio3/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio4/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio5/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio6/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/rmnet_sdio7/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/sit0/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/p2p0/use/tempaddr

echo 2 > /proc/sys/net/ipv6/conf/wlan0/use/tempaddr

echo 0 > /proc/sys/net/ipv6/conf/default/router/solicitations

echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra_rtr_pref

echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra_pinfo

echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra_defrtr

echo 0 > /proc/sys/net/ipv6/conf/default/autoconf

echo 0 > /proc/sys/net/ipv6/conf/default/dad_transmits

echo 1 > /proc/sys/net/ipv6/conf/default/max_addresses

;;

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

"msm7627a")

#start mpdecision

stop mpdecision

;;

esac

I testing intelli-plug over a Month. Don`t actived eco mode when you want to use all your cores.

Intelli-plug is a big battery safe year but maybe i will switch back to mpdecision.

Why?

When you hear music with viper 4 android and use your phone as a router the music stuttering with intelli-plug.

I`don`t know why...for high load mdecision is better but for daily use intelli-plug.

Battery safe is large. 30-45 Minutes hear Music i only lost 3-4 % Power but with mpdecison >10%