Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
flak0
Old
(Last edited by flak0; 23rd June 2012 at 04:48 AM.)
#1  
flak0's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 1,256
Join Date: Jan 2009
Location: Pembroke Pines , FL

 
DONATE TO ME
Default [MOD] LAG FREE g2X + dalvik fix

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://forum.xda-developers.com/show....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

[B]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
Attached Files
File Type: zip lagfree.zip - [Click for QR Code] (2.1 KB, 2227 views)
Tmobile GS3
Rom: Stock Rooted H2
Almost Project Butter ICS
8 GB SD
Calculate Pi: .1 Seconds @ 1500Mhz
LinPack Benchmark:

Retired Phones:
G2X
G2
DAY-1 Nexus One

Bounty Link for LG CAM on GB:
Check out the thread and discussion here
Use this to Donate to the Project Itself for all of those involved in the hardwork Jface,Doniqq, and myself
The Following 33 Users Say Thank You to flak0 For This Useful Post: [ Click to Expand ]
 
candleworth7808
Old
#2  
candleworth7808's Avatar
Senior Member
Thanks Meter 181
Posts: 322
Join Date: Jul 2011
Location: Ft. Lauderdale
Butter leaking G2X and popcorn=movie night

Sent from my LG-P999 using xda premium
 
flak0
Old
#3  
flak0's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 1,256
Join Date: Jan 2009
Location: Pembroke Pines , FL

 
DONATE TO ME
Quote:
Originally Posted by candleworth7808 View Post
Butter leaking G2X and popcorn=movie night

Sent from my LG-P999 using xda premium
Damn skippy lol

Sent from my LG-P999 using xda premium
Tmobile GS3
Rom: Stock Rooted H2
Almost Project Butter ICS
8 GB SD
Calculate Pi: .1 Seconds @ 1500Mhz
LinPack Benchmark:

Retired Phones:
G2X
G2
DAY-1 Nexus One

Bounty Link for LG CAM on GB:
Check out the thread and discussion here
Use this to Donate to the Project Itself for all of those involved in the hardwork Jface,Doniqq, and myself
 
huy_gm
Old
#4  
huy_gm's Avatar
Senior Member
Thanks Meter 27
Posts: 133
Join Date: May 2012
Location: Ho Chi Minh
i will definitely try this.
 
jim.k.yee
Old
#5  
jim.k.yee's Avatar
Member
Thanks Meter 12
Posts: 61
Join Date: Jan 2012
Location: New York

 
DONATE TO ME
This might convince me to go back to the world of ICS
The Following User Says Thank You to jim.k.yee For This Useful Post: [ Click to Expand ]
 
huy_gm
Old
#6  
huy_gm's Avatar
Senior Member
Thanks Meter 27
Posts: 133
Join Date: May 2012
Location: Ho Chi Minh
how can i test for how much it is better from before, i mean is there a specific way to see butter leaking, like scrolling in specific area or something

sr for my bad English.
 
flak0
Old
#7  
flak0's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 1,256
Join Date: Jan 2009
Location: Pembroke Pines , FL

 
DONATE TO ME
Quote:
Originally Posted by huy_gm View Post
how can i test for how much it is better from before, i mean is there a specific way to see butter leaking, like scrolling in specific area or something

sr for my bad English.
Its just FAA St , oops I'm tipsy

Sent from my LG-P999 using xda premium
Tmobile GS3
Rom: Stock Rooted H2
Almost Project Butter ICS
8 GB SD
Calculate Pi: .1 Seconds @ 1500Mhz
LinPack Benchmark:

Retired Phones:
G2X
G2
DAY-1 Nexus One

Bounty Link for LG CAM on GB:
Check out the thread and discussion here
Use this to Donate to the Project Itself for all of those involved in the hardwork Jface,Doniqq, and myself
 
flak0
Old
#8  
flak0's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 1,256
Join Date: Jan 2009
Location: Pembroke Pines , FL

 
DONATE TO ME
Not related to the thread but I'm the OP and I'm getting tipsayyy lol
Click image for larger version

Name:	uploadfromtaptalk1340429481112.jpg
Views:	3723
Size:	96.9 KB
ID:	1149365
Bud light Platinum + Hangover 2

Sent from my LG-P999 using xda premium
Tmobile GS3
Rom: Stock Rooted H2
Almost Project Butter ICS
8 GB SD
Calculate Pi: .1 Seconds @ 1500Mhz
LinPack Benchmark:

Retired Phones:
G2X
G2
DAY-1 Nexus One

Bounty Link for LG CAM on GB:
Check out the thread and discussion here
Use this to Donate to the Project Itself for all of those involved in the hardwork Jface,Doniqq, and myself
The Following User Says Thank You to flak0 For This Useful Post: [ Click to Expand ]
 
noahk423
Old
#9  
noahk423's Avatar
Senior Member
Thanks Meter 182
Posts: 536
Join Date: Sep 2011
Quote:
Originally Posted by flak0 View Post
Not related to the thread but I'm the OP and I'm getting tipsayyy lol
Attachment 1149365
Bud light Platinum + Hangover 2

Sent from my LG-P999 using xda premium
Heck yeah! Have fun mane! Hangover 2 is always the best! And thanks for this script dude, its running as smooth as ever.

Sent from my LG-P999 using XDA
Devices: Nexus 4 CM10.1 -&- Nexus 7 CM10.1
Past Devices: G2x-P999
 
flak0
Old
#10  
flak0's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 1,256
Join Date: Jan 2009
Location: Pembroke Pines , FL

 
DONATE TO ME
Quote:
Originally Posted by noahk423 View Post
Heck yeah! Have fun mane! Hangover 2 is always the best! And thanks for this script dude, its running as smooth as ever.

Sent from my LG-P999 using XDA
ur welcome. maybe just maybe i might start developing again.... i got the i7 quad core overclocked at my old house.. hmmm

Sent from my Transformer Prime TF201 using xda premium
Tmobile GS3
Rom: Stock Rooted H2
Almost Project Butter ICS
8 GB SD
Calculate Pi: .1 Seconds @ 1500Mhz
LinPack Benchmark:

Retired Phones:
G2X
G2
DAY-1 Nexus One

Bounty Link for LG CAM on GB:
Check out the thread and discussion here
Use this to Donate to the Project Itself for all of those involved in the hardwork Jface,Doniqq, and myself

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...