[MOD] LAG FREE g2X + dalvik fix

Search This thread

playerunknown

Member
Mar 25, 2008
14
0
This might be a dumb question, but how do I get SManager to automatically run the tune.sh on reboot?

EDIT: IT was a dumb question. lol. Got it
 
Last edited:

playerunknown

Member
Mar 25, 2008
14
0
Is this right?

0
0
50
0
20000
70
20000
0
0
32
65530
10240
4
4096
0
1
0
1
50
3
0
0
0
1
0
200

My last number is different than everyone else's. Not sure if it makes a difference, but I did OC to 1500MhZ before applying this fix.
 

davidjz87

Senior Member
Feb 8, 2010
122
5
i tried using this on cm7 nightly 9-30-12 but got stuck at LG screen after reboot. ive done it to other roms with out issue
 

Pain-N-Panic

Senior Member
Mar 24, 2013
1,731
625
Droid
Google Pixel 7 Pro
how can I tell if the script is running correctly when I use Smanager? I ran the app as root, hit the root icon (green droid pirate with crossbones) and hit run.....after that all is says underneath is "tuned."
 
Last edited:

Pain-N-Panic

Senior Member
Mar 24, 2013
1,731
625
Droid
Google Pixel 7 Pro
I originally added this mod with the downloadable build.prop and tune file. I have to say I think it slowed down my phone more than anything. Afterwards, I modified my ROM's build.prop manually (im running eaglesblood 4.0.4) and I'll be honest its way faster. Scrolling through the menus is buttery smooth. Transitions even seem quicker. Great mod.
 
  • Like
Reactions: Zombienick420

Pain-N-Panic

Senior Member
Mar 24, 2013
1,731
625
Droid
Google Pixel 7 Pro
Nice! I love MIUI but the fact that every time I turn my phone off I have to go to hell and back to get it sync the correct date and time is not worth having on my phone.
Went back to 4.0.4 eaglesblood. Most stable hackfest of ICS I have used on my phone, love it.
 

zeth006

Senior Member
Dec 30, 2010
173
35
Got far as the part where I need to run the script manager on the tune file, but I keep getting notices like "cannot create /proc/sys/vm/swappiness: permission denied." Does this apply to the G2x as well?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    So far for the past two months or so we have been having the wonderful devs build some pretty awesome ICS Roms. I have been lucky enough with the rest of those on the g2x threads to benefit from Owains awesome ICS builds especially the latest linaro build. Now the one issue with ICS lately is the memory leaks and the lag that slows the phone down to a crawl. The lag on my phone especially got me looking through the internet and doing research on why it could be happening. I first found out that the implementation of Zram on ICS did not work correctly with our devices. This around the time I decided to disable the Zram on the ICS build from OWAin which at first when disabled it worked a little while but then it would start to slow down again. This is when I started messing with the build.prop and started messing around with the dalvik dexopt flags. I could probably go on and on but i will cut it short here. Now I am proud to present to you the lag free -dalvik fix. I obtained the following script with permission from batoo and his thread from the ATP forums. Link: http://xdaforums.com/showthread.php?t=1721799
    . The dalvik dexopt flag change were found through research of android and the internet. Below is the procedure to get some serious butter melted from our G2x along with a smooth ride. There are two files you need: 1.modified build.prop or do manual fix 2.tune.sh script (script manager recommended)

    NANDROID-BACK UP- YOU HAVE WARNED

    Step 1: Download lagfree.zip below
    Step 2: Extract to sdcard or internal storage
    Step 3: assuming your using a rooted file browser. back up your current build.prop
    Step 4: place the extracted build.prop in system folder and set permissions to RW-R-R
    Step 5: reboot into reocvery and wipe dalvik cache
    Step 6: reboot, dalvik cache will rebuild
    Step 7: use Script manager or whatever app and run the tune.sh make sure you run with SU permissions. Reboot will disable script, run at every boot or set it with script manager
    Step 6: Enjoy the buttery smooth g2x

    -Manual Mode --
    Open build.prop and add the following
    change dalvik.vm.dexopt-flags=m=y TO
    dalvik.vm.dexopt-flags=m=y,v=n,o=v,u=n
    right below add
    dalvik.vm.execution-mode=int:jit
    then change windowsmgr.max_events_per_sec = 300
    comment out with #
    dalvik.vm.heapgrowthlimit
    then save
    then goto step 5 above.

    Please provide feedback nd enjoy....

    now im off to get drunk...


    Sent from my Transformer Prime TF201 using xda premium
    3
    Anyone that's going to do this on HFS needs to do it manually or you will miss out on the other build prop mods... thanks again flac0! Helps out a lot!!

    Same on domination how ever it will be included in the next release

    Thanks flac0

    Sent from my HTC One X using xda premium
    2
    Sweet... hey let me ask you, where did you host that image? im not familiar with the google user content url... is that g+ or something?

    picasa, its the embed image option when you choose how to link a photo.
    2
    Flashable zip ready for automatic installation:

    pastime1971 said:
    tony and i have worked out a flashable zip of init.d script + build.prop mod
    there are two types of installations. choose one you like.

    * system installation *
    buttery-system.zip : edits /system/build.prop & installs /system/etc/init.d/99tune
    to revert it, simply re-flash ROM.
    you have to flash this every time you flash a ROM.

    * user installation *
    buttery-local.zip : edits /data/local.prop & installs /data/local/userinit.d/99tune
    buttery-local-remove.zip : reverts /data/local.prop & removes /data/local/userinit.d/99tune
    this changes /data/ and therefore, the effect is permanent unless you change it manually, which is the reason for buttery-local-remove.zip

    # do a nandroid backup always.
    # it probes if ROM is GB or ICS and apply mod accordingly. (only tested on ICS. please test it and feedback on GB.)
    # to check if it is working, do the following in terminal
    Code:
    getprop | grep dalvik
    getprop cm.buttery.active
    cat /proc/sys/vm/*

    !!! this script is based on vork kernel installer. the credit goes to vork team (benee and kiljacken)
    Please give pastime1971 a "Thanks" at the following post: original post by pastime1971
    2
    Will this work on the rooted v21y stock rom?

    Should work for any Rom it does not change anything in-depth