1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Simply STUNNING 5.4 tweaks for all

Discussion in 'ChevyNo1' started by metalspring, Jun 17, 2011.

  1. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    I have discovered a number of different performance and battery enhancement tweaks throughout the forums here and I'm bringing all of them into one thread for easy access...I take no claims on making these, I'm merely passing on the info

    Credits to Zeppelinrox for most of these tweaks, also credit to overmind for many of the build.prop tweaks

    ***BE SURE TO DO A BACKUP BEFORE THESE JUST IN CASE***

    First is an 01sysctl mod just erase everything in the /etc/init.d/01sysctl file and copy/paste this in and make sure to return the permissions back- they should match all the other files permissions in there and a blank line at the end

    #!/system/bin/sh

    #ChevyNo1
    echo 4096 > /sys/devices/virtual/bdi/179:0/read_ahead_kb

    sysctl -p
    #
    #Disable normalized sleeper
    #
    mount -t debugfs none /sys/kernel/debug;
    echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features;
    #
    # Memory management
    # http://forum.xda-developers.com/showthread.php?t=813309
    sysctl -w vm.swappiness=0;
    sysctl -w vm.oom_kill_allocating_task=0;
    sysctl -w vm.panic_on_oom=0;
    sysctl -w vm.dirty_background_ratio=60;
    sysctl -w vm.dirty_ratio=95;
    sysctl -w vm.min_free_kbytes=4096;
    sysctl -w vm.vfs_cache_pressure=10;
    sysctl -w kernel.panic=0;
    sysctl -w kernel.panic_on_oops=1;
    sysctl -w kernel.msgmni=2048;
    sysctl -w kernel.msgmax=64000;
    sysctl -w kernel.shmmax=268435456;
    sysctl -w kernel.sem='500 512000 64 2048';
    sysctl -w kernel.sched_features=24189;
    sysctl -w kernel.hung_task_timeout_secs=0;
    sysctl -w kernel.sched_latency_ns=18000000;
    sysctl -w kernel.sched_min_granularity_ns=1500000;
    sysctl -w kernel.sched_wakeup_granularity_ns=3000000;
    sysctl -w kernel.sched_compat_yield=1;
    sysctl -w kernel.sched_shares_ratelimit=256000;
    sysctl -w kernel.sched_child_runs_first=0;
    sysctl -w kernel.threads-max=5000;
    sysctl -w net.core.wmem_max=524288;
    sysctl -w net.core.rmem_max=524288;
    sysctl -w net.ipv4.tcp_tw_recycle=1;
    sysctl -w net.ipv4.tcp_rmem='6144 87380 524288';
    sysctl -w net.ipv4.tcp_wmem='6144 87380 524288';

    # Tweak cfq io scheduler
    # http://forum.xda-developers.com/showthread.php?p=12445735
    # http://intl.feedfury.com/content/47077504-tweak-skript-f-r-android-spica.html
    # http://forum.xda-developers.com/showthread.php?p=4806456

    for i in $(ls -d /sys/block/*);
    do
    echo "cfq" > $i/queue/scheduler;
    done;

    for i in $(ls -d /sys/block/*);
    do
    echo "0" > $i/queue/rotational;
    echo "1" > $i/queue/iosched/low_latency;
    echo "1" > $i/queue/iosched/back_seek_penalty;
    echo "1000000000" > $i/queue/iosched/back_seek_max;
    echo "0" > $i/queue/iosched/slice_idle;
    echo "512" > $i/queue/nr_requests;
    echo "1" > $i/queue/iosched/fifo_batch;
    echo "16" > $i/queue/iosched/quantum;
    done;

    for i in $(ls -d /sys/block/*);
    do
    echo "noop" > $i/queue/scheduler;
    done;

    # Remount all partitions with noatime
    for k in $(busybox mount | grep relatime | cut -d " " -f3);
    do
    sync;
    busybox mount -o remount,noatime $k;
    done;

    # Misc tweaks for battery life
    sysctl -w vm.dirty_writeback_centisecs=2000;
    sysctl -w vm.dirty_expire_centisecs=1000;
    Last edited: Jun 18, 2011
  2. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    Part 2 is the /system/build.prop same way as the sysctl tweaks just return the build.prop permissions to rw--r---r--- and be sure to leave a blank line at the end

    # begin build properties
    # autogenerated by buildinfo.sh
    ro.build.id=FRG83D
    ro.build.display.id=Simply Stunning v5.4 Built from Source Code - 05-31-2011
    ro.build.version.incremental=75603
    ro.build.version.sdk=10
    ro.build.version.codename=REL
    ro.build.version.release=2.3.4
    ro.build.date=Sun May 29 17:29:15 EDT 2011
    ro.build.date.utc=1289367602
    ro.build.type=user
    ro.build.user=chevyno1
    ro.build.host=chevyno1-ubuntu
    ro.build.tags=release-keys
    ro.product.model=Droid
    ro.product.brand=verizon
    ro.product.name=voles
    ro.product.device=sholes
    ro.product.board=sholes
    ro.product.cpu.abi=armeabi-v7a
    ro.product.cpu.abi2=armeabi
    ro.product.manufacturer=Motorola
    ro.product.locale.language=hdpi
    ro.product.locale.region=
    ro.wifi.channels=
    ro.board.platform=omap3
    # ro.build.product is obsolete; use ro.product.device
    ro.build.product=sholes
    # Do not try to parse ro.build.description or .fingerprint
    ro.build.description=voles-user 2.2.1 FRG83D 75603 release-keys
    ro.build.fingerprint=verizon/voles/sholes/sholes:2.2.1/FRG83D/75603:user/release-keys

    # This defines the max event window manager can
    # handle in 1 s. We may adjust this # for performance
    # reason later
    windowsmgr.max_events_per_sec=260
    # end build properties
    #
    # system.prop for generic sdk
    #

    rild.libpath=/system/lib/libmoto_ril.so
    rild.libargs=-d /dev/ttyS0
    ro.sf.lcd_density=240

    # Optimize TCP Stack for faster speeds
    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

    # Battery Savings (Sleep Mode)
    ro.ril.disable.power.collapse=0
    pm.sleep_mode=1

    # Render UI through GPU instead of CPU
    # Comment out if this causes laggy UI (it should speed up UI)
    debug.sf.hw=1

    # Proximit sensor screen off delay
    mot.proximity.delay=75

    # Default network type.
    # 4 => CDMA / EVDO.
    ro.telephony.default_network=4

    # When moving through zones or losing signal, having a delay
    # smooths out constant disconnects and reconnects, which in turn
    # saves a ton of battery life!
    ro.mot.eri.losalert.delay=1000

    wifi.interface = tiwlan0
    # Time between scans in seconds. Keep it high to minimize battery drain.
    # This only affects the case in which there are remembered access points,
    # but none are in range.
    wifi.supplicant_scan_interval = 360

    # Indicate carrier OTA SP number schema
    # refer to frameworks/base/telephony/java/com/android/
    # internal/telephony/cdma/CDMAPhone.java for the schema:
    ro.cdma.otaspnumschema=SELC,1,80,99

    # The OpenGL ES API level that is natively supported by this device.
    # This is a 16.16 fixed point number
    ro.opengles.version = 131072

    # This is a high density device with more memory, so larger vm heaps for it.
    dalvik.vm.startheapsize=10m
    dalvik.vm.heapsize=44m
    #
    # ADDITIONAL_BUILD_PROPERTIES
    #
    ro.com.android.wifi-watchlist=GoogleGuest
    ro.error.receiver.system.apps=com.google.android.feedback
    ro.setupwizard.enterprise_mode=1
    ro.com.google.clientidbase=android-verizon
    ro.com.google.locationfeatures=1
    ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
    ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
    ro.cdma.home.operator.numeric=310004
    ro.cdma.home.operator.alpha=Verizon
    ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83
    ro.cdma.data_retry_config=default_randomization=2000,0,0,120000,180000,540000,960000
    ro.config.vc_call_vol_steps=7
    ro.cdma.otaspnumschema=SELC,1,80,99
    ro.telephony.call_ring.multiple=false
    ro.telephony.call_ring.delay=500
    ro.url.safetylegal=http://www.motorola.com/staticfiles/Support/legal/?model=A855
    ro.setupwizard.enable_bypass=1
    ro.media.dec.jpeg.memcap=20000000
    dalvik.vm.lockprof.threshold=500
    dalvik.vm.dexopt-flags=m=y
    keyguard.no_require_sim=true
    ro.rommanager.developerid=ChevyNo1
    ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
    ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
    ro.com.google.clientidbase=android-google
    ro.com.android.wifi-watchlist=GoogleGuest
    ro.setupwizard.enterprise_mode=1
    ro.com.android.dateformat=MM-dd-yyyy
    ro.com.android.dataroaming=false
    ro.config.ringtone=Playa.ogg
    ro.config.notification_sound=regulus.ogg
    ro.config.alarm_alert=Alarm_Beep_03.ogg
    ro.modversion=Simply Stunning 5.4
    ro.kernel.android.checkjni=0
    ro.setupwizard.mode=OPTIONAL
    dalvik.vm.dexopt-flags=m=y
    net.bt.name=Android
    dalvik.vm.stack-trace-file=/data/anr/traces.txt

    # Begin SimplyStunning Settings
    default.color=black
    ro.compcache.default=18
    ro.HOME_APP_ADJ=1
    # End SimplyStunning Settings
    Last edited: Jun 17, 2011
  3. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    And lastly add these lines to the beginning of /data/local.prop for an extra boost in 3g speeds and returning the permissions back again making sure to leave a blank line at the end

    ro.ril.hsxpa=3
    ro.ril.gprsclass=12
    ro.ril.hep=1
    ro.ril.enable.dtm=1
    ro.ril.hsdpa.category=28
    ro.ril.enable.a53=1
    ro.ril.enable.3g.prefix=1
    ro.ril.htcmaskw1.bitmask = 4294967295
    ro.ril.htcmaskw1 = 14449
    ro.ril.hsupa.category = 9
  4. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    These may take a few reboots to take effect btw...and sorry if its a little messy, I posted from my phone

    Sent from my Droid using DroidForums
  5. 666ogre666
    Offline

    666ogre666 New Member

    Joined:
    Feb 25, 2010
    Messages:
    583
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    New Jersey
    Isn't that what Chevy does for his rom? I feel like that's the point of a custom rom to begin with.

    Sent from my Droid using DroidForums
  6. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    Yes and no, these type of modifications are quite as universally compatible like the build.prop ones in particular but they mostly work for everyone, the local.prop 3g tweaks he might not have even known about since they have to do more with the radio rather than the rom itself and the sysctl mods are from a lot of different sources and many have tested and tweaked them, so, for one he might not have had time to mess with them much anyway and secondly lots of Linux knowledgeable people have had plenty of time to tweak them

    Personally the 3g tweaks are awesome...I went from 1.1Mbps-1.5Mbps download speeds up past 2Mbps and even some 2.6Mbps speeds (tested with speedtest.net app and website)

    Sent from my Droid using DroidForums
  7. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    And I'm actually hoping Chevy himself could chime in and see what he thinks

    Sent from my Droid using DroidForums
  8. Sixonefour
    Offline

    Sixonefour New Member

    Joined:
    Sep 12, 2010
    Messages:
    211
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Ohio
    How about a quick 'how-to' for us less knowledgeable folks?
  9. Jasko
    Offline

    Jasko New Member

    Joined:
    Jan 30, 2010
    Messages:
    327
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    South Florida
    lol, I second this.

    But thanks for all your help though, MS.
  10. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    Ok ignore the second post then, that one has a few less stable edits...
    For the first post make sure to have root explorer or similar root file manager. Copy the lines, then use your file manager to go to /system/etc/init.d and long press on the file 01sysctl and open it in the file editor and delete everything in it, then paste those lines in and saving it (make sure system is mounted rw first) then double check they stuck by viewing the file as text...if they did then reboot

    Depending on your file manager you might have to change the files permissions to others rw and user rw before editing and then change them back after you've edited...should look like rwxr-x---

    Sent from my Droid using DroidForums
    Last edited: Jun 17, 2011
  11. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    sixonefour???? Franklin County, Ohio I presume?
  12. Trigger
    Offline

    Trigger New Member

    Joined:
    Jan 15, 2011
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Livingston, TX
    Are these the same tweaks you posted the files for in the Chevy ROM thread?

    Tappin' and Talkin' on my OG Droid
    Rooted: RZRecovery
    ROM: ChevyNo1 SS v5.4
    Kernel: ChevyNo1 LV125-1000mhz
    Theme: MBK's TruBlue HoneyGingerComb with his Matrix Pulldown
    ZeppelinRox V6 Supercharger Script
  13. undroid
    Offline

    undroid New Member

    Joined:
    Jun 5, 2010
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    0
    In part 1, right after you echo cfs to /sys/block/* you then echo noop. That is basically disabling the cfs tweaks as you are changing the scheduler to noop.

    Sent from my Droid using DroidForums
  14. bigeric828
    Offline

    bigeric828 New Member

    Joined:
    Mar 8, 2011
    Messages:
    510
    Likes Received:
    1
    Trophy Points:
    0
    thx alot metal spring. good ish bro.
  15. Sixonefour
    Offline

    Sixonefour New Member

    Joined:
    Sep 12, 2010
    Messages:
    211
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Ohio
    Yes, Columbus.
  16. bigeric828
    Offline

    bigeric828 New Member

    Joined:
    Mar 8, 2011
    Messages:
    510
    Likes Received:
    1
    Trophy Points:
    0
    is the "optimize tcp" section right? it just seems weird.
  17. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Nice, from Marion myself but in the Army and stationed in Hawaii.

    Sent from my Droid using DroidForums
  18. meishkov
    Offline

    meishkov New Member

    Joined:
    Feb 12, 2010
    Messages:
    957
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Sterling Heights, MI
    Hell yea metalspring. This is the stuff I've been looking for and love to see. dancedroid
  19. bigeric828
    Offline

    bigeric828 New Member

    Joined:
    Mar 8, 2011
    Messages:
    510
    Likes Received:
    1
    Trophy Points:
    0
    god damn, still no improvements in 3g with the tweak. I just cant get it to work.
  20. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Really sucks that people that are still having this 3G issue. I really wish it would happen to me so I could try to troubleshoot it.
Search tags for this page

android tcp tweaks

,
best tweak kernel/threads-max
,
cdma /evdo tweaks and mods
,
dalvik vm optimization using sysctl tweaks
,

disable android sleepers

,

disable normalize sleeper

,

disable normalized sleeper

,

droid charge cfs tweak

,

evdo tweak internet xda

,

net enhacent tweaks xda

,
ro.telephony.default network settings
,
rom api level modification
,

set netbuffersize evdo

,

xda gprs stack roms

,
xda tweak internet cdma evdo