+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22
Like Tree3Likes

Thread: [ROM] Some Tweaks from chinese BlueBox Custom Rom

  1. #11
    HeSaid's Avatar
    Currently Offline 1.5 Cupcake ***
    Join Date
    Jan 2012
    Location
    Southwest Florida, USA
    Posts
    185
    Points
    2,110.74
    @closertozero
    Here ya go, my friend:
    Free large file exchange service without size limits

  2. The Following User Says Thank You to HeSaid For This Useful Post:

    Beebop (05-05-2012)

  3. Geekbuying 728
  4. #12
    closertozero's Avatar
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Location
    Sweden, Home of freedom and bravery
    Posts
    42
    Points
    456.57
    @HeSaid: Thanks a bunch, made my day (and possibly ruined my evening, lol)

  5. The Following User Says Thank You to closertozero For This Useful Post:

    Jammer (05-06-2012)

  6. #13
    daddelkopp's Avatar
    Currently Offline Beta *
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    15
    Points
    189.92
    Open the zip file and take a look to the folder system\etc\init.d . You will see 5 files which tweaks ... something

    These scripts are opened by calibration.sh which called by the updater-script.

    I don't understand most of this code but I hope someone find this usefull.

    Swap

    Code:
    #!/system/bin/sh
    
    ####################
    SWAP=/data/swap
    SIZE=128
    ####################
    
    if [ -d /sys/block/mmcblk2/mmcblk2p2 ];
    then
    		/system/bin/busybox swapon /dev/block/mmcblk2p2
    		/system/bin/busybox -w vm.swappiness=85
    	if [ -f  $SWAP ];
    	then
    		/system/bin/busybox rm $SWAP
    	fi
    else
    	if [ ! -f  $SWAP ];
    	then
    		/system/bin/busybox dd if=/dev/zero of=$SWAP bs=1M count=$SIZE
    	fi
    		/system/bin/busybox chmod 600 $SWAP
    		/system/bin/busybox mkswap $SWAP
    		/system/bin/busybox swapon $SWAP
    		/system/bin/busybox -w vm.swappiness=85
    fi
    Tweaks


    Code:
    #!/system/bin/sh
    ##########################################
    #remounting the file systems with noatime and nodiratime flags to save battery and CPU cycles
    ##########################################
    for k in $(/system/bin/busybox mount | /system/bin/busybox grep relatime | /system/bin/busybox cut -d " " -f3)
    do
    sync
    /system/bin/busybox mount -o remount,noatime $k
    done
    
    ##########################################
    # Optimize the cfq/bfq I/O scheduler for flash memory (defaults are designed for spinning harddisks).
    # Lower the idle wait, re-enable the low latency mode, remove the penalty for back-seeks,
    # and explicitly tell the kernel that the storage is not a spinning disk.
    ##########################################
    MMC=`/system/bin/busybox ls -d /sys/block/mmc*`;
    ZRM=`/system/bin/busybox ls -d /sys/block/zram*`;
    for i in $MMC $ZRM;
    do
    	/system/bin/busybox echo "cfq" > $i/queue/scheduler; 
    done
    ##########################################
    # Optimize non-rotating storage; 
    ##########################################
    for i in $MMC $ZRM;
    do
    	#IMPORTANT!
    	if [ -e $i/queue/rotational ] 
    	then
    		/system/bin/busybox echo 0 > $i/queue/rotational; 
    	fi;
    	if [ -e $i/queue/nr_requests ]
    	then
    		/system/bin/busybox echo 1024 > $i/queue/nr_requests; # for starters: keep it sane
    	fi;
    	#CFQ specific
    	if [ -e $i/queue/iosched/back_seek_penalty ] 
    	then 
    		/system/bin/busybox echo 1 > $i/queue/iosched/back_seek_penalty;
    	fi;
    	#CFQ specific
    	if [ -e $i/queue/iosched/low_latency ] 
    	then
    		/system/bin/busybox echo 1 > $i/queue/iosched/low_latency;
    	fi;
    	#CFQ Specific
    	if [ -e $i/queue/iosched/slice_idle ]
    	then 
    		/system/bin/busybox echo 1 > $i/queue/iosched/slice_idle; # previous: 1
    	fi;
    	# deadline/VR/SIO scheduler specific
    	if [ -e $i/queue/iosched/fifo_batch ]
    	then
    		/system/bin/busybox echo 1 > $i/queue/iosched/fifo_batch;
    	fi;
    	if [ -e $i/queue/iosched/writes_starved ]
    	then
    		/system/bin/busybox echo 1 > $i/queue/iosched/writes_starved;
    	fi;
    	#CFQ specific
    	if [ -e $i/queue/iosched/quantum ]
    	then
    		/system/bin/busybox echo 8 > $i/queue/iosched/quantum;
    	fi;
    	#VR Specific
    	if [ -e $i/queue/iosched/rev_penalty ]
    	then
    		/system/bin/busybox echo 1 > $i/queue/iosched/rev_penalty;
    	fi;
    	if [ -e $i/queue/rq_affinity ]
    	then
    	/system/bin/busybox echo "1"   >  $i/queue/rq_affinity;   
    	fi;
    done;
    ##########################################
    # Optimize for readahead; 
    ##########################################
    for i in $MMC $ZRM; 
    do
    	if [ -e $i/queue/read_ahead_kb ]
    	then
    		/system/bin/busybox echo 512 >  $i/queue/read_ahead_kb; 
    	fi;                               
    done;
    ##########################################
    #disable iostats to reduce overhead
    ##########################################
    for k in $MMC $ZRM;
    do
    	if [ -e $i/queue/iostats ]
    	then
    		/system/bin/busybox echo 0 > $k/queue/iostats;
    	fi;
    done;
    
    /system/bin/busybox echo 3 > /proc/sys/vm/page-cluster;
    /system/bin/busybox echo 0 > /proc/sys/vm/laptop_mode;
    /system/bin/busybox echo 300 > /proc/sys/vm/dirty_expire_centisecs;
    /system/bin/busybox echo 300 > /proc/sys/vm/dirty_writeback_centisecs; 
    /system/bin/busybox echo 20 > /proc/sys/vm/dirty_background_ratio; 
    /system/bin/busybox echo 30 > /proc/sys/vm/dirty_ratio; # 40 # 90
    /system/bin/busybox echo 100 > /proc/sys/vm/vfs_cache_pressure;
    /system/bin/busybox echo 1 > /proc/sys/vm/overcommit_memory;
    /system/bin/busybox echo 100 > /proc/sys/vm/overcommit_ratio;
    /system/bin/busybox echo 90 > /proc/sys/vm/swappiness;
    /system/bin/busybox echo 2048 > /proc/sys/vm/min_free_kbytes;
    /system/bin/busybox echo 2000000 > /proc/sys/kernel/sched_min_granularity_ns;
    /system/bin/busybox echo 10000000 > /proc/sys/kernel/sched_latency_ns;
    /system/bin/busybox echo 0 > /proc/sys/kernel/sched_wakeup_granularity_ns;
    /system/bin/busybox echo 24319 > /proc/sys/kernel/sched_features;
    /system/bin/busybox echo 100000 > /proc/sys/kernel/sched_rt_period_us;
    /system/bin/busybox echo 95000 > /proc/sys/kernel/sched_rt_runtime_us;
    /system/bin/busybox echo 725000 > /proc/sys/kernel/sched_shares_ratelimit;
    /system/bin/busybox echo 0 > /proc/sys/vm/panic_on_oom;
    /system/bin/busybox echo 0 > /proc/sys/kernel/tainted;
    /system/bin/busybox echo 3 > /proc/sys/vm/drop_caches;
    /system/bin/busybox echo 3 > /proc/sys/vm/page-cluster;
    /system/bin/busybox echo 10 > /proc/sys/fs/lease-break-time;
    
    setprop ro.telephony.call_ring.delay 750; # let's minimize the time Android waits until it rings on a call
    ##########################################
    #internet speed tweaks
    ##########################################
    /system/bin/busybox echo 0 > /proc/sys/net/ipv4/tcp_timestamps;
    /system/bin/busybox echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse;
    /system/bin/busybox echo 1 > /proc/sys/net/ipv4/tcp_sack;
    /system/bin/busybox echo 1 > /proc/sys/net/ipv4/tcp_dsack;
    /system/bin/busybox echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle;
    /system/bin/busybox echo 1 > /proc/sys/net/ipv4/tcp_window_scaling;
    /system/bin/busybox echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes;
    /system/bin/busybox echo 30 > /proc/sys/net/ipv4/tcp_keepalive_intvl;
    /system/bin/busybox echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout;
    /system/bin/busybox echo 524288 > /proc/sys/net/core/wmem_max;
    /system/bin/busybox echo 524288 > /proc/sys/net/core/rmem_max;
    /system/bin/busybox echo 256960 > /proc/sys/net/core/rmem_default;
    /system/bin/busybox echo 256960 > /proc/sys/net/core/wmem_default;
    /system/bin/busybox echo 4096 16384 404480 > /proc/sys/net/ipv4/tcp_wmem;
    /system/bin/busybox echo 4096 87380 404480 > /proc/sys/net/ipv4/tcp_rmem;
    setprop net.tcp.buffersize.default 4096,87380,256960,4096,16384,256960;
    setprop net.tcp.buffersize.wifi 4095,87380,256960,4096,16384,256960;
    setprop net.tcp.buffersize.umts 4094,87380,256960,4096,16384,256960;
    setprop net.tcp.buffersize.gprs 4094,87380,256960,4096,16384,256960;
    setprop net.tcp.buffersize.edge 4094,87380,256960,4096,16384,256960;
    ##########################################
    # Configure the server to ignore broadcast pings and smurf attacks:
    # (smurf-attacks)
    ##########################################
    /system/bin/busybox echo "1" >  /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts; # default
    if [ -e /proc/sys/net/ipv6/icmp_echo_ignore_broadcasts ]
    then
    	/system/bin/busybox echo "1" >  /proc/sys/net/ipv6/icmp_echo_ignore_broadcasts; # default
    fi;
    ##########################################
    # When the server is heavily loaded or has many clients with bad connections with high
    # latency, it can result in an increase in half-open connections. This is common for Web
    # servers, especially when there are a lot of dial-up users. These half-open connections are
    # stored in the backlog connections queue. You should set this value to at least 4096. (The
    # default is 1024.)
    # Setting this value is useful even if your server does not receive this kind of connection,
    # because it can still be protected from a DoS (syn-flood) attack.
    ##########################################
    /system/bin/busybox echo 4096 > /proc/sys/net/ipv4/tcp_max_syn_backlog; # default: 128
    ##########################################
    # Increase the number of outstanding syn requests allowed.
    # Note: some people (including myself) have used tcp_syncookies to handle the problem of too many legitimate outstanding SYNs. 
    ##########################################
    /system/bin/busybox echo "2500" > /proc/sys/net/core/netdev_max_backlog; # default: 1000
    ##########################################
    # Optimize sqlite
    ##########################################
    for i in \
    `find /data -iname "*.db"`; 
    do \
    	sqlite3 $i 'VACUUM;'; 
    done;
    
    if [ -e /proc/sys/kernel/rr_interval ]
    then
    	# BFS;
    	/system/bin/busybox echo 6 > /proc/sys/kernel/rr_interval;
    	/system/bin/busybox echo 100 > /proc/sys/kernel/iso_cpu;
    fi;
    ##########################################
    # TWEAKS: low-latency features [issues with auto-rotation & stuff]
    ##########################################
    /system/bin/busybox echo "now enabling the low-latency functionality of CFS provided by"
    /system/bin/busybox echo "Mathieu Desnoyers & Peter Zijlstra, sponsored by Nokia"
    
    for opt in DYN_MIN_VRUNTIME \
            NO_FAIR_SLEEPERS FAIR_SLEEPERS_INTERACTIVE FAIR_SLEEPERS_TIMER \
            INTERACTIVE TIMER \
            INTERACTIVE_FORK_EXPEDITED TIMER_FORK_EXPEDITED;
    do /system/bin/busybox echo $opt > /sys/kernel/debug/sched_features;
    done
    
    /system/bin/busybox echo "low-latency for CFS activated ..."
    /system/bin/busybox echo "done"
    Rambooster

    Code:
    #!/system/bin/sh
    # DarkyROM 2011 - Joël Staub (darkyy)
    # This will stabilize the memory leaks in Gingerbread and other ROMs.
    
    if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
    	echo "Modifying minfree parameters"
    		echo "2560,4096,6144,17408,19456,23552" > /sys/module/lowmemorykiller/parameters/minfree
    	else
    		echo "minfree not found"
    fi
    Novo 7 Paladin / ROM 28.06.2012 / Root, Clean & Apps installed with NesiaPaladin Gamma v0.1

  7. #14
    daddelkopp's Avatar
    Currently Offline Beta *
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    15
    Points
    189.92
    Smoothness

    Code:
    #!/system/bin/sh
    
    ###### Loopy Smoothness Tweak for Ainol 7 Paladin (Experimental) #######
    
    # Debug: stage 1
    echo "Loopy debug: $(date)"
    echo "Loopy debug: 1/2 (Initiate)"
    
    sleep 3
    renice 18 `pidof kswapd0` # please give credit and thanks to loopy for this line if it works
    
        sleep 20
    
        ### Launcher apps ###
        renice -20 `pidof com.android.launcher` # Launcher
    
        ### System apps ###
        renice -19 `pidof com.android.mms` # Text message app
        renice -19 `pidof com.google.android.inputmethod.latin` # keyboard
        renice -15 `pidof com.sec.android.app.controlpanel` # Task manager
        renice -15 `pidof com.android.systemui` # Status bar
        renice -9 `pidof com.android.settings` # Settings menu
        renice -9 `pidof com.android.browser` # Browser app
        renice -9 `pidof com.android.vending` # Market app
        renice -6 `pidof com.google.android.youtube` # YouTube app
        renice -6 `pidof com.google.android.apps.maps` # Maps
        renice -3 `pidof android.process.acore`
        renice -3 `pidof android.process.media`
    
        ### Memory management kernel thread ###
        renice 19 `pidof kswapd0` # please give credit and thanks to loopy for this line if it works
    
    # Debug: stage 2
    echo "Loopy debug: 2/2 (Done)"
    Banner

    Code:
    #!/system/bin/sh
    ######################################
    # Init.d Tweaks edited by: pinkflozd
    ######################################
    
    export TERMINFO=/etc/terminfo
    export TERM=linux
    
    /system/bin/tune2fs -o journal_data_writeback /dev/block/mmcblk0p1
    /system/bin/tune2fs -o journal_data_writeback /dev/block/mmcblk0p2
    /system/bin/tune2fs -o journal_data_writeback /dev/block/mmcblk0p3
    
    /system/bin/busybox mount -o remount,noatime,noauto_da_alloc,nodiratime,barrier=0 /system
    /system/bin/busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0 /data
    /system/bin/busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0 /cache
    
    # mount rw for init.d scripts
    /system/bin/busybox mount -o remount,rw -t auto /system;
    
    if [ ! -h /system/xbin/adduser ];
    	then
    		/system/bin/busybox --install -s /system/xbin
    		/system/bin/busybox rm /system/xbin/su
    		/system/bin/busybox ln -s /system/bin/su /system/xbin/su
    	fi
    	
    if [ ! -h /system/xbin/dropbear ];
    	then
    		/system/bin/busybox ln -s /system/xbin/dropbearmulti /system/xbin/dropbear
    		/system/bin/busybox ln -s /system/xbin/dropbearmulti /system/xbin/dropbearkey
    #		/system/bin/busybox ln -s /system/xbin/dropbearmulti /system/xbin/scp
    #		/system/bin/busybox ln -s /system/xbin/dropbearmulti /system/xbin/sftp-server
    		/system/bin/busybox ln -s /system/xbin/dropbearmulti /system/xbin/dbclient
    		/system/bin/busybox ln -s /system/xbin/dropbearmulti /system/xbin/dropbearconvert
    	fi
    
    # Load sysctl.conf
    /system/bin/busybox sysctl -p
    Novo 7 Paladin / ROM 28.06.2012 / Root, Clean & Apps installed with NesiaPaladin Gamma v0.1

  8. #15
    Currently Offline 2.0/2.1 Eclair ***
    Join Date
    Feb 2012
    Posts
    265
    Points
    3,312.15
    @Hesaid, ty , started 3 hours ago , just woke up and checked it and still 3 hours to go, can turn this stupid computer off now ! lol

  9. The Following User Says Thank You to Jammer For This Useful Post:

    tatubias (05-06-2012)

  10. #16
    closertozero's Avatar
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Location
    Sweden, Home of freedom and bravery
    Posts
    42
    Points
    456.57
    If it wasn't for the battery-indicator bug I would've kept this one. I found it to be noticably more responsive than earlier ones and less wifi-drops as well. I'm looking forward to the next rom from xxsl, if the battery-indicator works as supposed

  11. #17
    Currently Offline Beta *
    Join Date
    Apr 2012
    Location
    South Africa :)
    Posts
    13
    Points
    134.41
    Hey does this have flash working 100% ? would be awesome to test this. (love testing new roms/tweaks :P makes me feel like a little kid with a new toy haha ) Hmmm the DalvikVM is a pretty scary thing to mess with, is the tweak working well? can anyone report any majour problems or crashes? thanks

  12. #18
    closertozero's Avatar
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Location
    Sweden, Home of freedom and bravery
    Posts
    42
    Points
    456.57
    Quote Originally Posted by DrTricky View Post
    Hey does this have flash working 100% ? would be awesome to test this. (love testing new roms/tweaks :P makes me feel like a little kid with a new toy haha ) Hmmm the DalvikVM is a pretty scary thing to mess with, is the tweak working well? can anyone report any majour problems or crashes? thanks
    I don't know if it works under all circumstances, but for me, flash has worked everytime I've needed it.

    Big problem is still the battery-indicator always at 100% (except when charging, then it sticks at 99%). But I hear not everyone gets that bug.

  13. #19
    Currently Offline 1.5 Cupcake ***
    Join Date
    Jan 2012
    Posts
    158
    Points
    1,501.76
    I am one of the lucky ones, I am liking the mod so far, but I want to be able to dig in deeper, try to mellow out phantom touches, lock down wifi drivers, etc.

    I wish I had source code, that would make it a lot easier.

  14. #20
    Currently Offline Android 1.0 ***
    Join Date
    Feb 2012
    Posts
    94
    Points
    1,035.37
    Quote Originally Posted by closertozero View Post
    I don't know if it works under all circumstances, but for me, flash has worked everytime I've needed it.

    Big problem is still the battery-indicator always at 100% (except when charging, then it sticks at 99%). But I hear not everyone gets that bug.
    It's not just that your battery stats need wiping or something is it?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts