yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] Kjeldmis:
Gotta say, I love what you have done with this script. Very easy install. Quadrant scores were about 2000 for my phone.

Everything runs better, and it does not have the 1-2 sec delay when unlocking the phone. No space issues either, for the moment. No issues running apps, nothing. Ill keep you posted if I find any errors.

And feel free to say if any of you want me to test something for you.
[Galaxy S I9000 Android Development] turbosix:
:mad: titanium backup didnt give me the newest version apparently. unlagfixed, updated busybox, lets try this again...
[Galaxy S I9000 Android Development] braintheboss:
I have linux and using VM adb commands do not work. I'm doing it manually in linux but I get the permission error. I have busybox 1.17.1 and USB mode enabled.
[Galaxy S I9000 Android Development] raimondomartire:
thanks but i can't remove samset lagfix. when i apply you .bat i watch

===============================================================

===============================================================

One Click Lag Fix for Galaxy S I9000

===============================================================

===============================================================

__________________________________________________________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

113 KB/s (1741 bytes in 0.015s)

2 KB/s (56 bytes in 0.020s)

13 KB/s (177 bytes in 0.013s)

Now running lag fix. On your device, select allow root privledges!"

Creating 1GB file to store data inside. This could take a long time...

Creating loopback, you may see an error that it already exists. Ignore that erro

r.

Linking loopback to the 1GB file store

Creating the EXT2 filesystem

Creating a mountpoint for files, you may see an error that it already exists. Ig

nore that error.

Mounting device

Copying data across

Clearing out any old backups, ignore any errors

Backing up old data

Linking to fast ext2

Now setting up reboot support

Moving boot animation

Copying over init scripts

Setting up permissions

All Complete!

Script complete!
[Galaxy S I9000 Android Development] TMC_Sherpa:
You sir are a man among men. 2190 on my Captivate after a reboot. I did this in a terminal (at work no Win boxes handy) and the only thing I had to mess with was your dd command. I used

dd if=/dev/zero of=/data/linux.ex2 bs=1024 count=1048576

from one of your other posts as it didn't like the one in the script.

Oh yeah, next time don't use numbers in the directories, flipping back and forth on the keyboard is a pain ;)
[Galaxy S I9000 Android Development] MetalWeirdo:
After 4 reboots only got 2009 , with JM5, wich firmware gets better scores ?
[Galaxy S I9000 Android Development] FadeFx:
i think its also a little device dependent...
[Galaxy S I9000 Android Development] lex_87:
Another happy chappy here :) everything seems much smoother now.

Quadrant went from ~800 to ~2200

Thanks very much to everyone who's helped on this lag fix, really appreciate it!
[Galaxy S I9000 Android Development] stockfeed:
ok, i get this, and after reboot i only get 800ish on quadrant. and ideas? the whole process takes about 4 seconds.

===============================================================

===============================================================

One Click Lag Fix for Galaxy S I9000

===============================================================

===============================================================

__________________________________________________________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

5 KB/s (1741 bytes in 0.327s)

3 KB/s (56 bytes in 0.015s)

11 KB/s (177 bytes in 0.015s)

Now running lag fix. On your device, select allow root privledges!"

Creating 1GB file to store data inside. This could take a long time...

Creating loopback, you may see an error that it already exists. Ignore that erro

r.

Linking loopback to the 1GB file store

Creating the EXT2 filesystem

Creating a mountpoint for files, you may see an error that it already exists. Ig

nore that error.

Mounting device

Copying data across

Clearing out any old backups, ignore any errors

Backing up old data

Linking to fast ext2

Now setting up reboot support

Moving boot animation

Copying over init scripts

Setting up permissions

All Complete!

Script complete!

Press any key to continue . . .
[Galaxy S I9000 Android Development] droidal:
Your not gonna get much better than that MW.:)
[Galaxy S I9000 Android Development] turbosix:
****, quadrant went from 1995 to 2175 but i still get the error. :mad:

so i'm guessing i need to unlagfix then go into terminal and enter these commands?
[Galaxy S I9000 Android Development] reetska:
Has anyone actually tried the unlagfixme.bat to see if it reverts the files back to their normal location?
[Galaxy S I9000 Android Development] fredphoesh:
Hi, guys

I am not sure if what has just happened to my phone is at all related, but

I replaced my battery, and when rebooting, I got non-stop LauncherPro FC's... had to make TwLauncher default. But then I saw my google sync was lost, no contacts, and had to register at Market again! Weird! After re-registering, I went to Sync in settings and saw there was a problem with google sync. I disabled then reabled it, then rebooted the phone and re-instated LauncherPro as the home screen, and all my settings were fine, everything normal again, but a very weird scare. :eek:

Id love to know what on earth that was about.

Tx

Mark.
[Galaxy S I9000 Android Development] BigWorldJust:
Nevermind I got it to work now :D.
[Galaxy S I9000 Android Development] turbosix:
well, it does say this:

One Click Lag Fix for Galaxy S I9000
============================================================
__________________________________________________________
Pushing required files to /sdcard This is internal SD Card Please wait.
* daemon not running. starting it now *
* daemon started successfully *
2 KB/s (0 bytes in 515.000s)
Now running remove lag fix. On your device, select allow root privledges!"
Removing symlinks
[B]Copying data back from EXT2 to RFS[/B]
[Galaxy S I9000 Android Development] RyanZA:
I tested this a few times before releasing, by jumping back and forth and watching my quadrant scores go up and down, and everything seemed 100%. No complaints about it not working yet, either. (Although I don't think too many people have actually undone this lag fix yet. ;) )
[Galaxy S I9000 Android Development] MetalWeirdo:
MW ? What does that mean ?
[Galaxy S I9000 Android Development] fredphoesh:
why salvage samset?

Hi there.

Big question, why would you want to keep SamSet?

Its far more convenient to flash ONCE to WJM5, apply this fix and be done. I cant see what SamNet adds... unless you like the orange theme look...

Mark.
[Galaxy S I9000 Android Development] fredphoesh:
I had that once.

Ryan, you should add something in your page 1 about how your phone screen must be on, and you must press "Allow" when superuser pops up during the process. I once had this fail and the phone screen was off, I had not responded to the superuser request.

tot siens,

Mark.
[Galaxy S I9000 Android Development] woeds:
Found a downside: making a backup using ROM Manager takes ages, it backs up the entire 1GB .ex2 file. :)
[Galaxy S I9000 Android Development] JuWa:
MetalWeirdo? :D
[Galaxy S I9000 Android Development] D.Rosendahl:
No, no and no! I thought I made myself clear earlier. It depends a little bit on what kind of journaling RFS has implemented but your performance result points into a logical journaling system. I may be over my head here but this seems to give that files can get corrupted (atleast get data loss) even if the file system itself survives.

And whatever, the only thing you can be totally sure of is that unpredictable things can happen when you do things like this and dont have the code for RFS. If you think your data is safe you better think again. If you think its worth the risk, go ahead, but do NOT tell people is it safe.

Normal reboots will normally not result in data corruption in a ext2 partition, it will be unmounted by the linux kernel. However, sudden powerloss can (not have to) do that.
[Galaxy S I9000 Android Development] droidal:
MW=MetalWeirdo. Excuse my shorthand.

2009 is great and about as good as your gonna get is all I'm sayin.
[Galaxy S I9000 Android Development] raulcota:
error running batch file

FYI - for some reason my computer thought there were multiple andriod devices asnd I was not running an emulator, weird. The error was

error: more than one device and emulator

I had to edit the batch file and change the adb commands to:

adb -d kill-server

adb -d push createlagfix.txt /sdcard/createlagfix.sh

adb -d push playlogos1 /sdcard/playlogos1

adb -d push userinit.sh /sdcard/userinit.sh

adb -d shell su -c "/system/bin/sh /sdcard/createlagfix.sh"

adb -d kill-server

Adding the -d tells adb to go directly to the USB connected device. It worked fine after that. Thanks for this!!!
[Galaxy S I9000 Android Development] Vascariz:
I'd like to get some clarity around this before I install this and recommend SGS to my friends!

Is there any way of making it more robust?

Also if bad things happen such as data corruption is it fixable by a factory reset? Or is it more permanent damage?
[Galaxy S I9000 Android Development] supercurio:
Sure, ext3 require more resources due to the journaling, but ext2 is quite a bad idea because i'ts so unsafe.

Basically, you pop out the battery and... you've probably lost data !

This is even more severe because you mount filesystem as a loop, and you have 2x buffers.

But your remark about noatime is right ;)

On my test on ext3 loop for /data/data, lag appeared after a bit more than a day of use. Usual lags, you know.

I choose ext3 for safety and the fact that in the stock kernel, and as a linux sysadmin and user for years, I insist on the fact that ext2 is a really bad idea for anything except read only partitions.

You will loose data with ext2 !
[Galaxy S I9000 Android Development] hcarrega:
1790 in quadrant standart running jp3
[Galaxy S I9000 Android Development] Tayutama:
Don't know if you mind me posting this here RyanZA, but i made a update.zip out of your script. NOTE THIS ONLY WORKS ON 2.1

What this update.zip file does is that it copies a few files to your internal sdcard and installs ASE which can be used to run .sh files without the need to use a terminal.

There are 3 scripts included:

LagFix1024.sh - Makes a 1GB file on /data

LagFix512.sh - Makes a 512MB file on /data

RemoveFix.sh - Removes the lagfix

This also includes BusyBox 1.17.1 so no need to install that first.

Testet this on JM1
[Galaxy S I9000 Android Development] jaju123:
I got 2120 in quadrant on JM5.

Very speedy lag fix and easy to do after a wipe and the install of the root/busybox combo. Thanks.
[Galaxy S I9000 Android Development] JuWa:
2237 quadrant on JM5. Great fix! :)
[Galaxy S I9000 Android Development] morfic:
morfic@othris ~/RyanZAEXT2LagFix ALPHA 1 $ cat userinit.sh

busybox mknod /dev/loop0 b 7 0;

busybox losetup /dev/loop0 /data/linux.ex2;

mkdir /data/ext2data;

mount -t ext2 -o noatime,nodiratime,errors=continue /dev/loop0 /data/ext2data;

morfic@othris ~/RyanZAEXT2LagFix ALPHA 1 $

If userinit.sh does so little, we could change the lagfixme script to just move tihngs to an external sd partition, link the same and make userinit.sh to mount that instead of the loop mounting, what's the end result of that?

Only reason i haven't done it yet is the lgo file i would move around, seems everytime there is a lot of i9000 stuff mentioned some Vibrant user gets burned :> don't want to be that user, if some Vibrant users use this all and could let me know this is safe (and forgive me i didn't see their posts of confirmation), i'd be much more inclined to do this.

Can't say my Vibrant is lagging much at all, i do like the idea of seeing an IO benchmark go up though.

what about ext2? yaffs2?
[Galaxy S I9000 Android Development] daigoro64:
Please check for "mkfs.ext2" not found in your output. This could be a reason for your issue.
[Galaxy S I9000 Android Development] hq83:
i already closed it.

yes i understand its alpha. :)
[Galaxy S I9000 Android Development] WGPaf:
Does this fix erase all data ?
[Galaxy S I9000 Android Development] RyanZA:
Nope, all your data is copied across! When you run the unlagfixme, it will also copy your data across.
[Galaxy S I9000 Android Development] hq83:
yes i got tat.

mkfs.ext2: applet not found

what should i do next?

trying to uninstall and try again now..
[Galaxy S I9000 Android Development] jodue:
of course not!

ups, too slow but @hq83:

you have to install busybox from the market and update to the newest version!
[Galaxy S I9000 Android Development] FadeFx:
seems to be no or wrong version of busybox you should use 1.17.1
[Galaxy S I9000 Android Development] Croak:
Install Busybox 1.17 with the Busybox apk file.

99.999999% of all issues with this fix are due to not having Busybox installed properly.
[Galaxy S I9000 Android Development] RyanZA:
Check out the requirements section in the first post. It has a link to the right version of busybox that you need.

EDIT: Where do people get bad versions of busybox from anyway? The one from the one click root seems to have mkfs.ext2 even though its an old version...
[Galaxy S I9000 Android Development] hq83:
ok.

doing uninstalling now and trying again with 1.17

it was running 1.18 before this.
[Galaxy S I9000 Android Development] yaz00us:
Your script works well on Froyo 2.2 JP3.

With this fix I get 1778 points in QUADRANT(~1000 without fix).

Thanks.

L.E. 1891 points after second run.
[Galaxy S I9000 Android Development] dan 6a:
+1 I installed erismarket fix and thought the latest market version would be fine BUT you need this version

PLEASE MAKE THIS CLEAR IN PAGE ONE,everyone is tripping up on this :)
[Galaxy S I9000 Android Development] borchgrevink:
You just install busybox apk as an ordinary app and does nothing else with it?

What is "Windoews box to run script in"? Ordinari cmd line gui?

Also: What about the user posting that the lag reappeared after some time?

Thanks
[Galaxy S I9000 Android Development] ttik:
Done. Working like a charm.

Thank you very much!!

quadrant score is 2042 on JG4
[Galaxy S I9000 Android Development] hargibi:
10 char 10 char
[Galaxy S I9000 Android Development] daigoro64:
+1: quadrant score 2091 on JM5.
[Galaxy S I9000 Android Development] FadeFx:
we will see, we have only one user reporting this so far...
[Galaxy S I9000 Android Development] borchgrevink:
Thanks.

Can I safely unroot my device after applying fix (and root again if I want to remove fix later)?

Anyone tested on fw jf3?

Also: I have 100+ apps installed. Possible to check if I have enough space on the new partition?
[Galaxy S I9000 Android Development] hargibi:
Hmm it takes about 1 second to do the lagfix?

it says where its creating a 1gb file it could take a long time but mine is instant?

ANy idea?

no other errors that i can see

================================================== =============

================================================== =============

One Click Lag Fix for Galaxy S I9000

================================================== =============

================================================== =============

__________________________________________________ ________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

94 KB/s (1741 bytes in 0.018s)

2 KB/s (56 bytes in 0.021s)

13 KB/s (177 bytes in 0.013s)

Now running lag fix. On your device, select allow root privledges!"

Creating 1GB file to store data inside. This could take a long time...

Creating loopback, you may see an error that it already exists. Ignore that erro

r.

Linking loopback to the 1GB file store

Creating the EXT2 filesystem

Creating a mountpoint for files, you may see an error that it already exists. Ig

nore that error.

Mounting device

Copying data across

Clearing out any old backups, ignore any errors

Backing up old data

Linking to fast ext2

Now setting up reboot support

Moving boot animation

Copying over init scripts

Setting up permissions

All Complete!

Script complete!

* server not running *

Tryck ned valfri tangent för att fortsätta...
[Galaxy S I9000 Android Development] hq83:
got a 2100+ score now.

yup we need v1.17 for the busybox.
[Galaxy S I9000 Android Development] braintheboss:
Everything is now fixed. It works on linux. 2158
[Galaxy S I9000 Android Development] Sputnik.:
So I tried it 5 times with JM2 and JM5 with and without Samset, it definetly doesn't work on my phone!

The program says that everything went fine, but still no score over 900

Busybox

After the last try the phone doesn't even boot up anymore...

I give up, Samset is pretty fast too
[Galaxy S I9000 Android Development] aboad20:
===============================================================

===============================================================

One Click Lag Fix for Galaxy S I9000

===============================================================

===============================================================

__________________________________________________________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

5 KB/s (1741 bytes in 0.307s)

3 KB/s (56 bytes in 0.014s)

12 KB/s (177 bytes in 0.014s)

Now running lag fix. On your device, select allow root privledges!"

Creating 1GB file to store data inside. This could take a long time...

0+0 records in

0+0 records out

0 bytes (0B) copied, 25.461449 seconds, 0B/s

Creating loopback, you may see an error that it already exists. Ignore that erro

r.

Linking loopback to the 1GB file store

Creating the EXT2 filesystem

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

64000 inodes, 256000 blocks

12800 blocks (5%) reserved for the super user

First data block=0

Maximum filesystem blocks=4194304

8 block groups

32768 blocks per group, 32768 fragments per group

8000 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376

Creating a mountpoint for files, you may see an error that it already exists. Ig

nore that error.

mkdir failed for /data/ext2data, File exists

Mounting device

Copying data across

Clearing out any old backups, ignore any errors

Backing up old data

Linking to fast ext2

Now setting up reboot support

Moving boot animation

Copying over init scripts

Setting up permissions

All Complete!

Script complete!

* server not running *

Press any key to continue . . .
[Galaxy S I9000 Android Development] rp88:
I used ubuntu and everything worked great. Here's what I did:

First copy over: createlagfix.txt, playlogos1, userinit.sh to your phones /sdcard/ folder (note: thats not your external user removable sdcard). Easiest way to transfer the files would be to mount your phone as a mass storage drive.

Second rename createlagfix.txt that you just copied onto your phone to createlagfix.sh

Third, here are the commands that i invoked in terminal under linux:

user@Laptop:~$ '/home/user/Android/tools/adb' kill-server

user@Laptop:~$ '/home/user/Android/tools/adb' shell su -c "/system/bin/sh /sdcard/createlagfix.sh"

user@Laptop:~$ '/home/user/Android/tools/adb' kill-server

Just make sure to replace '/home/user/Android/tools/adb' with the location you have your copy of adb stored....

If you still get permission errors maybe you aren't rooted, or when superuser permissions asked to allow or deny, you may have accidently hit deny. Just go to you phones applications list, find Superuser permissions, then allow the process called "Unknown", and do the third step again.
[Galaxy S I9000 Android Development] trustinhate:
thanks for this lag fix. my quadrant score went from 906 to 2235!
[Galaxy S I9000 Android Development] morfic:
isn't it sl4a now? (formerly ASE)

anyway, wrap what to do in this: (and avoid the temp file)

#!/system/bin/sh
if [ "$(/system/xbin/busybox id -u)" == "0" ]; then

[your stuff here]

else
echo -e "Getting root privileges\n"
su<$0
fi

This self promotion was in a comment about running ase/sl4a stuff as root (Issue 184, linked to fromt heir faq). Obviously what you have would work, just thought i share it, as i like how clean it makes the scripts.

thanks for the update.zip, just going to slap your script into ase/sl4a, still thinking i will use userinit.sh to ultimately mount mmcblk1p2 instead of the loop mounted stuff.
[Galaxy S I9000 Android Development] Tayutama:
Couldn't remember what the new names was :)

Still working on getting upto date with my linux again since it's a few years since i last used it so that is why i used a temp.sh file :)

Personally i don't use this myself as i'm running JP3 with runs pretty decent with no lagfix at all.
[Galaxy S I9000 Android Development] MetalWeirdo:
LOL, thanks..

You think that with JM2 I will get better results ? Wich firmware do you recommend ?
[Galaxy S I9000 Android Development] Alagaros:
Boom and thumbs up for this well deserved fix m8

I have a SGS Vodafone NL with 16GB internal sd runnin with JM2 firmware/Eclair 2.1. First go i tried with the newest busybox 2.5 or something from the Android market and my quadrant score was still stuck at 833, i received the denied errors aswell so then i did the unlagfix :). I manually installed the 1.71 one and now my quadrant score is rockin over 2051.

Everything runs smooth and instant.

p.s i had some denied acces errors for the first 2 tries but here in holland they say the third one should make it count and so it did :)
[Galaxy S I9000 Android Development] Vascariz:
So basically without ext2 we are stuck with a laggy samsng galaxy s? So with ext 3, this internal fix and appkiller lag is still noticeable? What a letdown.... Mght have to recommend iPhone to my friends!
[Galaxy S I9000 Android Development] BigWorldJust:
Yeah my quadrant went from 811 to 2243, thanks alot.
[Galaxy S I9000 Android Development] Roy Ngan:
I can't change my static wallpaper (by select picture from gallery), not sure if this the firmware XWJM5 or 1-click lag fix, anyone has similar issue?
[Galaxy S I9000 Android Development] Croak:
I had heard you guys over there tended to give up too easily, but...

:)

But seriously, it's a marked improvement in day-to-day use over stock, doesn't have space issues like the NAND fix, and doesn't require an external SD to always be plugged in.

The benchmark is just a good way to verify that the hack has been applied. And making your friends with Froyo Snapdragon devices green with envy when you run Quadrant for them. :)
[Galaxy S I9000 Android Development] Mull1s:
Still, it isnt hardware related so im pretty damn sure that Samsung have been looking into this for a while already..
[Galaxy S I9000 Android Development] cba1986:
If i apply this fix and install a new application, i have re apply the fix?
[Galaxy S I9000 Android Development] JuWa:
I had same issue. I rebooted my phone and it works now.
[Galaxy S I9000 Android Development] HolyGigi:
Another happy customer: 2164 with the standard firmware XJF5

Before, i had about 900 score.

First time didnt work for me though, i had to reaply the busybox with the bootloader posted here. Would be great if you could sticky that in your first post.

1. use the update.zip here

2. run the .bat

3. say thanks in the forum :)
[Galaxy S I9000 Android Development] turbonutter:
\o/

2569 @ 1.2 \o/ \o/ \o/
[Galaxy S I9000 Android Development] M4r1k:
Only one word: Fantastic!

Thanks ;)
[Galaxy S I9000 Android Development] AdamDowning:
Just done this fix, very easy. No work at all. Makes phone ALOT faster.