[Xperia Z Q&A, Help & Troubleshooting] venky716:
Hey, does build.prop and init.d tweaks improve battery life or is it just a placebo?

I have accumulated these from various sources and ROMs, can anyone tell me whether they actually work.

pm.sleep_mode=1

ro.ril.disable.power.collapse=0

ro.HOME_APP_ADJ=1

debug.performance.tuning=1

video.accelerate.hw=1

windowsmgr.max_events_per_sec=150

ro.media.enc.jpeg.quality=100

debug.qctwa.statusbar=1

debug.qctwa.preservebuf=1

com.qc.hardware=true

debug.qctwa.statusbar=1

debug.qctwa.preservebuf=1

ro.media.dec.jpeg.memcap=8000000

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

ro.max.fling_velocity=12000

ro.min.fling_velocity=8000

init.d:

#!/system/bin/sh

#permissions

sysrw

echo "Setting permissions"

echo "Setting /app & /framework permissions"

for file in /system/app/* /system/framework/* /data/app/*; do

chmod 644 $file

done

echo "Setting init.d permissions"

chmod 777 /system/etc/init.d

for file in /system/etc/init.d/*; do

echo " setting permissions (777) for $file"

chmod 777 $file

done

echo "500" > /proc/sys/vm/dirty_expire_centisecs

echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

sysctl -w vm.dirty_writeback_centisecs=3000

sysctl -w vm.dirty_expire_centisecs=500

#mount -t debugfs none /sys/kernel/debug

#echo NO_NEW_FAIR_SLEEPERS > /sys/kernel/debug/sched_features

#echo NO_NORMALIZED_SLEEPERS > /sys/kernel/debug/sched_features

echo "0" > /proc/sys/kernel/panic_on_oops

echo "0" > /proc/sys/vm/oom_kill_allocating_task

umount /sys/kernel/debug

#Clean Caches & improve app loading times

rm -r /cache/*.apk

rm -r /cache/*.tmp

rm -r /data/dalvik-cache/*.apk

rm -r /data/dalvik-cache/*.tmp

those were the common ones i also collected these

ro.ril.hsxpa=2

ro.ril.gprsclass=10

ro.ril.hep=1

ro.ril.enable.dtm=1

ro.ril.hsdpa.category=10

ro.ril.enable.a53=1

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

ro.ril.htcmaskw1.bitmask=4294967295

ro.ril.htcmaskw1=14449

ro.ril.hsupa.category=6

net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.hspa=6144,87380,524288,6144,16384,262144

net.tcp.buffersize.lte=524288,1048576,2097152,524288,1048576,2097152

net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,87380,1048576

net.tcp.buffersize.evdo_b=6144,87380,1048576,6144,87380,1048576

net.ipv4.tcp_ecn=0

net.ipv4.route.flush=1

net.ipv4.tcp_rfc1337=1

net.ipv4.ip_no_pmtu_disc=0

net.ipv4.tcp_sack=1

net.ipv4.tcp_fack=1

net.ipv4.tcp_window_scaling=1

net.ipv4.tcp_timestamps=1

net.ipv4.tcp_rmem=4096 39000 187000

net.ipv4.tcp_wmem=4096 39000 187000

net.ipv4.tcp_mem=187000 187000 187000

net.ipv4.tcp_no_metrics_save=1

net.ipv4.tcp_moderate_rcvbuf=1

persist.telephony.support.ipv6=1

persist.telephony.support.ipv4=1

ro.ril.enable.amr.wideband=1

ro.ril.hep=0

media.stagefright.enable-player=true

media.stagefright.enable-meta=true

media.stagefright.enable-scan=true

media.stagefright.enable-http=true

media.stagefright.enable-record=false

ro.ril.fast.dormancy.rule=0

ro.ril.enable.amr.wideband=1

persist.cust.tel.eons=1

ro.config.hw_fast_dormancy=1

ro.ril.hsxpa=2

ro.ril.gprsclass=12

ro.ril.enable.dtm=1

ro.ril.hsdpa.category=8

ro.ril.enable.a53=1

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

ro.ril.htcmaskw1.bitmask=4294967295

ro.ril.htcmaskw1=14449

ro.ril.hsupa.category=6

debug.qctwa.statusbar=1

debug.qctwa.preservebuf=1

com.qc.hardware=true

inid.d:

#!/system/bin/sh

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;

echo "8" > /proc/sys/vm/page-cluster;

echo "64000" > /proc/sys/kernel/msgmni;

echo "64000" > /proc/sys/kernel/msgmax;

echo "10" > /proc/sys/fs/lease-break-time;

echo "500,512000,64,2048" > /proc/sys/kernel/sem;

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

echo "500" > /proc/sys/vm/dirty_expire_centisecs

echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

LOOP=`ls -d /sys/block/loop*`;

RAM=`ls -d /sys/block/ram*`;

MMC=`ls -d /sys/block/mmc*`;

for j in $LOOP $RAM

do

echo "0" > $j/queue/rotational;

echo "2048" > $j/queue/read_ahead_kb;

done

I tried pretty much all but couldn't see any noticeable difference.

If anyone could tell me if they are helpful even a little bit i would gladly apply them.

Thanks