yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] justanothercrowd:
Wake lag is different than lag. wake lag is effected all the custom kernels and its probably a src issue. My phone flies with my kernel and with this hack i get 2500-2900 quadrant scores on a small overclock. We need to do away with ext2 though. At least with init.d we can have it check the file system without getting a race condition and failing.

A better fix will be on the way most likely using ext4 and custom kernel...ONCE I and the other devs im working with figure out the wake_lag...then custom kernel is the only way to go to implement a PROPER solution that wont cause corruption and will be fully stable. Because fix is NOT fully stable. Start getting weird issues...its most likely this fix. The phone isn't unmounting it cleanly or checking for errors

And honestly...I flashed back to stock today and it is fairly hard to tell the difference in speed. Media scan is a hair quicker. Quadrant is making up 90% of the score bc of the file benchmark and its not all that fast. The nexus has higher CPU etc. So this isnt an accurate representation of real life use.

I never had bad lag stock anyways...even with TONS of applications loaded.
[Vibrant Android Development] zimphishmonger:
Thanks for the info. Def can't wait till you guys figure out the wake lag. I added a file system check on boot, to help with the corruption issue, until you guys can put together a proper fix. It's def just a band aid though
[Vibrant Android Development] jtguthrie1:
Help?

Can i get a step by step?? a Noob here. . im on the vibrant and for some reason my Quadrant went to 746 lol.
[Vibrant Android Development] zimphishmonger:
That means its not working. Try the original version or the one touch apk version.
[Vibrant Android Development] motorjonny:
Mine feels way faster with this fix and no errors so far.... Snappier than a dragon ;-)

Thanks!

Sent from my head
[Vibrant Android Development] jtguthrie1:
Tried that. One click says . . .is ur

Sdcard mounted?
[Vibrant Android Development] Kryptyx:
No complaints here, easy solution - thanks!
[Vibrant Android Development] gravis86:
I ran the original method and am getting 2240. This works great! Thanks guys.
[Vibrant Android Development] rhcp011235:
With the one click i made. When you get the pop-up to close or wait.

just click wait. It thinks the app has hung. Because its taking too long. its making a 1G file. Just hit wait.

please give me some feedback.

Thanks!
[Vibrant Android Development] jtguthrie1:
Says. . Error update extract, is your sdcard working?
[Vibrant Android Development] Tempestrs4:
Ended up just doing it through terminal. Couldn't get the apk to work. 2243 on quadrant. Market and all apps are blazing fast. Thanks a ton! All that's left to fix is the stupid Gps.
[Vibrant Android Development] zimphishmonger:
A great addition to your app would be to allow for a setting to adjust the size of the virtual file system, I'm using 600mb to save room got apps
[Vibrant Android Development] rhcp011235:
Working now on fix :) please wait.

Ok this should work.

http://dl.dropbox.com/u/2708097/RyanZA_V4.apk

Please if it asks you to close/wait. To click wait. the script takes 5-10 mins to run. we all know this. so just click wait. and it will reboot your phone on its own at the end.

Please let me know results.
[Vibrant Android Development] nanim0n:
can i still test it even if i already did it the original way? will it overwrite it?
[Vibrant Android Development] Goog1e Phone:
Google apps seem to load A LOT faster. Market and Gmail are blazing. Other apps seem to be normal so far. 2100+ on Quadrant if that even matters.
[Vibrant Android Development] rhcp011235:
Yes, You can test the undo + redo :) if you want.
[Vibrant Android Development] thang422:
I dl the v4 apk... but its still loading when i click on it...and I clicked wait... and its been 20 mins.... what should i do ?
[Vibrant Android Development] rhcp011235:
Give a bit. lets see.

I see no problems with it.
[Vibrant Android Development] Goog1e Phone:
First error I ran into: google maps froze and I had to pull out my battery.
[Vibrant Android Development] silox2000:
I'm in the same boat as thang422, going on about 20mins here as well. I'll keep watching it.
[Vibrant Android Development] thang422:
Its black screen now...
[Vibrant Android Development] silox2000:
It's still running. Logged in via adb shell and ran a top. I still see the process running. Logged out of adb and disconnected the USB to see if that was the problem, but not so far. My SystemPanel that has been logging for about a week now shows 0seconds CPU time on the RyanZA app. Not sure if that is normal or not, but it seems to be freezing as soon as you hit the button(button was frozen a highlighted blue the entire time).
[Vibrant Android Development] silox2000:
Forced closed after almost 40mins of waiting
[Vibrant Android Development] silox2000:
Decided to use your terminal *nix script and ran it manually on the phone, very quick(about 2mins). Quadrant score of 2170 now and market is ridiculous fast as reported by others. Very nice!
[Vibrant Android Development] rhcp011235:
When you rebooted did it work?
[Vibrant Android Development] ELFungi:
I'm also getting the problem of Google Maps freezing when I try to get My Location. Have to wait awhile for a Force Close message to pop up.

Edit: It seems like removing this lag-fix got work again.
[Vibrant Android Development] robertwind89:
Got a question I did the fix through usb, everything was fine but after I rebooted I would c the samsung screen then nothing but black, I was able do get into dl mode and flash back to stock firmware, but I would really like to utilize this lag fix, any one have an idea y this would happen. I was using stock firmware with the version of busy box that the was suggested
[Vibrant Android Development] lando123:
Also getting freeze with google maps.
[Vibrant Android Development] brandnewsimmy:
Wow this kicked this phone up in speed like crazy. Started around 900 with stock, then bumped up to like 1300 with data2sd, then with this got to 2100. Seems to be good so far. I do not have any issues with Google Maps finding my location either, it works just like it always did.
[Vibrant Android Development] Calcvictim:
Can the OP explain to me what is being done in the script, I read it but some things are unfamiliar to me.

From what I understand a loop device is a pseudo device that allows a file system to be treated like a block/raw device, is that correct? After which a file system is created on that block device, so that in reality means that there is an extra layer of processing that is done because now if something is written it get's written on an ext2 file system but in reality it get's written on a RFS file system?

I write shell scripts as part of my job and have never encountered loop devices before, I think the solutions is very clever and kudos to the OP for coming up with it.

I am wandering why does the file system need to be 1Gb, is it a precaution for future use, can someone get away with using say 512MB instead?

Also because this fix works I think the problem is not with RFS but something else since underneath the loop device everything is stored in RFS.
[Vibrant Android Development] skater4690:
Ok did the fix last nightand all was great until this morning I ended a call with my gf and shortly after my phone rebooted and got stuck in a boot loop wouldn't make it past the S it froze and would reset to the vibrantscreen. I pulled the battery for about 30 seconds put it back in and everything works again. Just sharing this info with yall.
[Vibrant Android Development] zimphishmonger:
My random issue: All last night the "missing sd" notification kept going off, the ringer that occurs if you receive a phone call or msg while mounted. The ever annoying triple beep....ended up nandroiding back to shut it up, strange issue though
[Vibrant Android Development] xplanowestx:
After applying the Batch file fix (couldn't get one click to work as well) I went from an 853 quadrant to a 2275 after reboot. Walked over to my friend with a nexus one w/ 2.2 and showed him. First thing that came out of his mouth was " wait wait how'd you do that, wonder if they have this for my phone." Thought it was pretty funny after he was talking crap on how bad the I/O was on our phone. Thanks for this great fix.
[Vibrant Android Development] sync3:
Issues...

I believe the issues u all are running into is because of ext2 corruption...as stated earlier..
[Vibrant Android Development] tdtylert:
Okay so apk v2 it asks me for superuser permission I allow then asks me to to foreclose or wait I hit wait and nothing and apk v4 just asks me to foreclose or wait i hit wait and nothing, just letting you know
[Vibrant Android Development] JLundberg:
do I need to be on a completly stock rom or can I use Deodexed? (2 other have asked this question but I didn't see a reply) I tried the apk versions and had no luck. I then went on to the terminal nix version and it seemed to install fine but when I rebooted I got nothing but a black screen.

Please let me knw the base version and settings I need to be at to run this feature.

I have the correct box ver and was set in usb debug... (I have read through this site several times but trying the ways suggested has not worked.

Please help.

regards,

John
[Vibrant Android Development] silox2000:
Also experiencing Google Maps freezing.
[Vibrant Android Development] scpieps:
Just so you all know, I have not applied this fix and my google maps freezes regularly when going to "My Location." I then have to do a battery pull to get it working again. I think this may have something to do with the GPS problems, rather than the lag fix.
[Vibrant Android Development] Raceves:
My Maps are fine.
[Vibrant Android Development] allareconnected:
Will this work even if I have the folders set up 4 jac kernel partition???

Just curious if this will also fix the folders if we have jac's mod???
[Vibrant Android Development] allareconnected:
Perform this via update??? Sorry 4 noob question...

Do this via update I guess???
[Vibrant Android Development] bromat80:
Fwiw my google maps has been working fine all day.
[Vibrant Android Development] angryPirate12:
12 hours after install, my phone went into a boot loop, after a restart i got black screen... thank god for nandroid
[Vibrant Android Development] RyanZA:
Hey Vibrantees!

Good to know this fix works on your devices too!

Any chance you could open source this app you've made? Would be awesome! :D

Almost right on the loopback - We are making a regular file on RFS and then using the loopback device, we are building a virtual filesystem inside that file. There is indeed an extra layer of processing, and a native filesystem would probably be even faster than this fix. Awesome hardware - even when going through layers of abstraction, the I/O still kills everything else on the market. :)

File system uses 1GB because that is the biggest safe file size to use. (/data is only 2GB big) 512MB will work just fine, but you will have less space for applications.

RFS is the problem! RFS is not buffering disk writes, and seems to be very slow in general. If you decrease the block size of the EXT2 from 4KB down to 512, you end up with the same speed that RFS gives. So it is possible that samsung have simply misconfigured RFS, and made the block size too small. Or it could be something else. ;)
[Vibrant Android Development] adamparker17:
2284 quadrant score!
[Vibrant Android Development] silox2000:
Reverted back(in the car mind you, lol) as I was not only having freezing issues with maps, but Tasker as well(love that app).
[Vibrant Android Development] darkoutsider:
2286 Quadrant while flashed over Eugene's Mod.
[Vibrant Android Development] Maverick777:
Is there any reason to be concerned that this mod uses an EXT2 partition? If my phone freezes and I need to take the battery out to reset, will this risk corrupting the OS?

Another related question is, would it be possible to make this mod use an EXT3/4 partition instead of EXT2?
[Vibrant Android Development] 18.4009:
I honestly don't know if my experience is due to the ext2 file system or what but during normal use it just rebooted and then went into a boot loop. Had to start from scratch to get it going again.
[Vibrant Android Development] joe.kerwin:
Got this working via terminal. Although I got my quadrant scores in the 22xx range. Now i'm worried seeing people have long term bad results. Linpack acts screwy and this does still hang up at times, or maybe i'm just expecting too much from it (widgets, screens etc)
[Vibrant Android Development] zimphishmonger:
Yes, you need to be worried about data corruption, but not to your OS or the /system partition. You would corrupt your dalvik-cache or data, still not good.

I am waiting for an EXT4 or a journaled method of doing this hack, as its still too uinstable for long term use. Random (and I mean random) glitches and bugs occur because of the slow corruption of EXT2, even if you check it for errors on each boot (as I do)
[Vibrant Android Development] anomalous3:
I got ext4 working using mke2fs kanged from cyanogen. Runs nicely.
[Vibrant Android Development] zimphishmonger:
Would you mind sharing it? Ive bee trying to get EXT4 working for the past 2 days....even attempting to modify your ext2 version w/o luck. Thanks a lot!
[Vibrant Android Development] Maverick777:
Wow, would you mind sharing? EXT4 with this mod would be amazing!

An EXT4 apk would be the ultimate solution until 2.2 arrives.

I've reverted to stock after trying this mod. Although the speed is mind boggling, I can't risk the corruption from EXT2. I've already done that before with the other lag fix that uses EXT2.
[Vibrant Android Development] DrunKenG:
Benchmarks?
[Vibrant Android Development] rhcp011235:
As far as i know. Vibrant doesnt even support EXT4 without jac's kernel.

So you'd need to flash some kernel to get it work.

STOCK:

$ cat filesystems

nodev	sysfs

nodev	rootfs

nodev	bdev

nodev	proc

nodev	cgroup

nodev	binfmt_misc

nodev	sockfs

nodev	pipefs

nodev	anon_inodefs

nodev	tmpfs

nodev	inotifyfs

nodev	devpts

ext3

ext2

cramfs

nodev	ramfs

vfat

msdos

romfs

rfs

j4fs
[Vibrant Android Development] ELFungi:
It would be nice if you could apply this to your ROM in the next update if you can.

On second thought, maybe just ext3 until the wake-up screen lag is fixed for JAC's kernel. :rolleyes:
[Vibrant Android Development] skeeedup:
does unlag fix restore the phone to the previous (before lagfix was applied) state? basucally i wanna know if it removes any created partitions it may have made. will restoring a previous rom manager backup also "erase" any changes lagfix has made?
[Vibrant Android Development] zimphishmonger:
Can you share your EXT4 method for those of us that are using JAC's kernel, and can add scripts to init.d to mount it properly.
[Vibrant Android Development] millerliteguy:
Trying your one click app..I have a rooted Tmobile and when I run your app the I agree button stays blue after pressed and nothing happening so far...been 20min..
[Vibrant Android Development] anomalous3:
You'll need to rename the attached cmke2fs.txt to simply "cmke2fs" and put it in /system/bin. Chmod it to 755 also.

I named it cmke2fs because there's already a busybox symlink for mke2fs that doesn't do ext4. Then, from ADB (I prefer adb because you can do stuff step by step and you know if something went wrong. )

#busybox dd if=/dev/zero of=/data/linux.ex2 bs=1M count=0 seek=1000
#busybox mknod /dev/loop0 b 7 0
#busybox losetup /dev/loop0 /data/linux.ex2
#cmke2fs -T ext4 -b 4096 /dev/loop0
#mkdir /data/ext2data
#mkdir /data/ext2data/data/
#mkdir /data/ext2data/system/
#mkdir /data/ext2data/dalvik-cache/
#mount -t ext4 -o noatime,nodiratime,errors=continue /dev/loop0 /data/ext2data
#busybox cp -rp /data/data/* /data/ext2data/data;
#busybox cp -rp /data/system/* /data/ext2data/system;
#busybox cp -rp /data/dalvik-cache/* /data/ext2data/dalvik-cache;
#busybox mount -o bind /data/ext2data/data /data/data;
#busybox mount -o bind /data/ext2data/system /data/system;
#busybox mount -o bind /data/ext2data/dalvik-cache /data/dalvik-cache;

Then rename the attached 07a2sd.txt to just "07a2sd" and put it in /system/etc/init.d and chmod it to 755.

Too busy to make an autoscripted version and there's so many configurations out there at the moment that some experience and judgement is required to implement this properly.
[Vibrant Android Development] bagayas:
Ok tried your one click on a Deodexed phone (just to see if it will work). Ran into the same problem others are seeing (long wait time). After about 30 mins I forced close and rebooted. It did not take. Quadrant scores still around 1100.

Will flash back to stock and try one click again.
[Vibrant Android Development] masr1979:
AAAAAAAAAH Damn it, go to the gym? mess with my phone? go to the gym? mess with my phone?
[Vibrant Android Development] rhcp011235:
Thanks. I honestly dont know. Im just executing the files via SU.

just like ADB would. There is no time-out on the command seq.

shrug. I guess dont use it. I dont get whats wrong. Maybe it cant be done because the script takes soo long.
[Vibrant Android Development] bagayas:
No prob. Appreciate you trying to make it easy. I'm almost done flashing back to stock then i'll try again. I'll let you know how it goes.
[Vibrant Android Development] mattox59:
Success!

I just used the terminal method and success! WOW! 2012 first score! market flies! 2142 after reboot WOOHOO.......
[Vibrant Android Development] joe.kerwin:
So this isn't reliable for long? Should I revert back or will there most likely be an additional hack for more stability?
[Vibrant Android Development] rmarquez1974:
complains about my sd card

Ok, I just rooted my phone (Vibrant) and have done nothing else except remove the annoying start/shutdown sounds. When I try the one click method for this, it complains about my sdcard not being ready. Do I have to do the ext method first?

How do I go about getting this to work? I had adb for the mt3g 32b, but it can't find this phone, and fast boot doesn't find the new phone...

On another side note, terminal doesn't let me backspace...
[Vibrant Android Development] Raceves:
Can anyone tell me how to undo this? It randomly went through the Media Scanning thing and I have never seen it do that on its own before so I think it's due to this 'fix.'

I applied this by following these steps:

http://xdaforums.com/showpost.php?p=7585656&postcount=89

What do I need to do in order to remove this by using Terminal App? Thanks.
[Vibrant Android Development] Jakemall:
Same here....
[Vibrant Android Development] shoong512:
Memory Issues?

I just did it and it works fine. went from 797 --> 2205, however it keeps prompting me with low memory. can someone advise what to do? it's stored on my internal.
[Vibrant Android Development] terminatorxman:
what would be the reverse, go back to normal using the terminal.

Used the following but how do I go back?? What are the command in ADB or Terminal

If you are having problems with ADB you can make this hack through Terminal App. First copy this three files to the root of you phone memory through the computer.

1. createlagfix.txt (rename it to createlagfix.sh)

2. userinit.sh

3. playlogos1

Then go to terminal emulator (download from Market if you don't have it) and type:

1. "su" - accept on the prompt for superuser permissions

2. "cd \sdcard"

3. "sh createlagfix.sh" - let it finish see warning below

4. "Reboot"

All command without the quotes and hit enter after each command. That it just watch it run through, it take a couple of minutes to run. Don't let the screen go off. Also don't use swype keyboard to type this commands, change to regular keyboard.

Hope it helps
[Vibrant Android Development] mikey98277:
Had to go back

I installed using first fix, not the apk, went great went from 888 to 2100, then about 5 hours later my market just kept telling me that there was a network error, kept freezing my phone, had to pull the battery a few times, also was getting a low space notification telling me i was low on space, but looked in settings and said i had 95mb of space left, dont know what was causing issue , i uninstall-ed the hack, and everything is back to normal, just a little slower than the hack allowed, but wasnt worth the problems it was causing. Hope the ext4 comes out, maybe issues will be resolved by then.
[Vibrant Android Development] shoong512:
How To using RyanZA's One Click Fix Method

ALL FILES CAN BE DOWNLOADED FROM RYANZA'S ORIGINAL POST!

Samsung Vibrant Galaxy S Specs:

Stock 2.1 Rom with Root

1.17.1 BusyBox installed

*** MAKE SURE YOU ARE ROOTED AND THAT YOU DO HAVE BUSYBOX 1.17.1 INSTALLED.

Needed on the PC before starting:

Windows 7 64-bit (you don't need this, but this is what I'm running on)

Samsung USB Drivers Installed

RyanZA's Zip File provided on his post

Before you begin, make sure you have what is listed above installed:

1. Before connect your phone to your PC, go to Settings>Applications>Development and make sure that the USB debug box is checked.

2. When Step 1 is complete, connect your Samsung Vibrant to your PC, however DO NOT MOUNT YOUR PHONE, IF YOU HAVE THE SAMSUNG USB DRIVERS INSTALLED, YOUR PC SHOULD RECOGNIZE YOUR PHONE WITHOUT THE MOUNT

3. Locate RyanZA's zip folder that you downloaded. Locate the file lagfixme.bat and double click that file and follow instructions prompted on your PC Screen. Let it run and do it's thing and you're done!

**TO UNDO THIS, FOLLOW THE SAME STEPS AND JUST RUN THE unlagfixme.bat FILE

Enjoy! I hope I answered a lot of questions.

Everything does work for me after restart! I went from 7xx-2xxx. I've ran the quadrant test a few times and have received different numbers, but it is a big big improvement.

*Update: I wiped my phone and re-did the process. now I have extra 750Mbs for downloading apps. So far everything is running silky smooth!
[Vibrant Android Development] cwalker29:
ok i just did the unlagfix just because alot of people talking about messing up your phone in the long run ****.. so i will wait until a more stable method to come out... until then keep us good people posted!!
[Vibrant Android Development] shoong512:
Yes. The unlag fix just removes and restores everything that was done to it.
[Vibrant Android Development] daddysays:
Running this lag fix for over 24 hours now, lots of use since then, running fast and smooth, no fc's on google maps or any of that.

I dont know why people keep telling people to use the latest version of busybox. This is incorrect. It only works with 1.17. I actually "bricked" my phone and had to reinstall stock, then root, then add 1.17 busybox then install and everything went smooth.

Maybe that is the best way, doing it from as close to stock as possible.

Quadrant = 2272

Market = ridiculously fast

Did GPS fix I found on here (might have been for captivate?) there were two methods, did both, get gps signal in about 1.5 seconds!

All in all this is worth it, but would at least do a factory reset first, if not just flash stock to your phone.
[Vibrant Android Development] shoong512:
Did you run into low memory issues?
[Vibrant Android Development] d_bot:
could never get the app to work, did it from adb. quadrant score before:~900 quadrant score after:~1900

GPS: still sux, Compass: still whack (didnt think this would fix these two issues anyways)

Phone is fast, mostly notice it loading apps, and going back to the home. I had one issue with maps, where it froze gmaps, but havent had it since.
[Vibrant Android Development] daddysays:
I have not seen any issues, I loaded all the apps i had before (probably only like 20) But i put about 8 games on it today, including asphalt, which downloads a 100mb file on top of it once installed. Everything runs fine. Havent checked where my space is, but havent had any messages or issues.

I also did the manual one click method, not the apk.