yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] RyanZA:
The lag fix does a lot of work, while being plugged into a PC and charging. This will make it warmer...

Wait a bit and it will slowly cool back down...
[Galaxy S I9000 Android Development] Tayutama:
Haven't really looked at that since i keep reflashing my phone atm.

It's 2.3.1 that is included.

EDIT: update_v2.2_ext3_with_root.zip coming soon.

Btw RyanZA... any idea why the following doesn't work?

LOOPBACK=/dev/loop0
IMAGE_FILE=/data/image.ex2
MOUNTPOINT=/data/data-ext2
LOG_FILE=/data/logs/zipalign.log

busybox mknod $LOOPBACK b 7 1;
busybox losetup $LOOPBACK $IMAGE_FILE;
busybox mkdir -p $MOUNTPOINT;
busybox mkdir -p /data/logs;
e2fsck -p -f -v $LOOPBACK > /data/logs/e2fsck_result.txt;
mount -t ext2 -o noatime,nodiratime,errors=continue $LOOPBACK $MOUNTPOINT;

for i in app data system dalvik-cache; do
mount -o bind $MOUNTPOINT/$i /data/$i;
done;

# Zipalign
if [ -e /system/bin/zipalign ]; then
if [ ! -d /data/logs ]; then
mkdir -p /data/logs;
fi;

if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

echo "Starting Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
for apk in /data/app/*.apk ; do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ]; then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ]; then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
echo "Automatic ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
fi;

For some reason it won't mount on boot and just gives me a black screen :(

Weird part is that it's all mounted right before it reboots and going to use that userinit.sh
[Galaxy S I9000 Android Development] RyanZA:
Those are usually the app's fault for being badly coded. You see those same lags on other android phones too with some apps.

They do SD Card I/O in the main event thread, instead of putting up a progress bar and doing it in a background thread like they're meant to. Blame the app developers. ;)
[Galaxy S I9000 Android Development] aurelm:
Hello and thanks for the effort. However I am running into some issues.

Before I installed the fisrt version I had 1.7Gb of free mem internal. After I had 450. Installing new apps decreased the memory until I had 300 left. For some reason, without insalling anything the memory kept getting lower until I started to have warnings. I decided to run the unlagfix script and after that I only had 1Gb of memory left. Where did all the memory go ?

Then I ran the 2.2 version of the script. While the script was running I had a lot of apps crashing on the phote (root privileges, titanium backup..) until the phone turned black. However the script ran fine and the phone restarted.

Now I have 25mb on the internal memory. Uninstalling apps did not help (I assume they are now all moved to the big file). Should I worry ? How do I clear up mem ?

Edit: as expected, I can no longer install new apps "not enough memory" And uninstalling 100mb of apps did not help (still 25Mb).
[Galaxy S I9000 Android Development] RyanZA:
Nope... no idea. e2fsck should be fine since it was before the reboot. Only thing I can think of, is that the script is too long or there is some specific character in the script that it doesn't like... Can't you see anything in logcat?
[Galaxy S I9000 Android Development] kanooo:
Thankyou very much, total noob, quadrant score 2145 :D
[Galaxy S I9000 Android Development] RyanZA:
Not sure, sorry. :(

BTW, doing a zipalign on boot seems silly. Most android devs will zipalign their app before uploading it to the market. If they don't, doing it once after installing it is enough. Doing it on every boot seems like a waste. (Well it's only checking it, but still)
[Galaxy S I9000 Android Development] Tayutama:
Ok minor progress..

Seems like it gets to mount -t ext2 -o noatime,nodiratime,errors=continue $LOOPBACK $MOUNTPOINT;

but stops before it does that command.

Reason i can say this without running logcat is because it makes the /data/logs folder and runs e2fsck and makes the output of the check.

Ill get the log and past it here in a min
[Galaxy S I9000 Android Development] Crizthakidd:
someone halp with the low space problem. and after uninstal the space is also gone somewhere idk where -_-
[Galaxy S I9000 Android Development] Tayutama:
Run the attached zip file and post back the result please.
[Galaxy S I9000 Android Development] asci:
Sorry but many people asked for it, but I wasn't able to find the answer:

Upgrading from 2-2 to 2-3 should I remove 2-2 first?

Thx!
[Galaxy S I9000 Android Development] Crizthakidd:
error. more than one device and emulator

acsi, use the unlag frmo ur 2-2 and run 2-3
[Galaxy S I9000 Android Development] Tayutama:
huh?

you got an emulator running also or 2 phones connected?
[Galaxy S I9000 Android Development] bucklino:
Thanks for reply......

But I have noticed the increase in temperature of the battery even after 48 hours of use (wifi, calls, apps) after applying V 2-3 .....
[Galaxy S I9000 Android Development] donnykim:
I am doing something wrong, i searched for similiar problem but couldn't check how it was solved.

JM5+Samset 1.9d+ one-click lagfix 2.3 : rooted, unmounted int sd, debug mode, BS installed but FC

JM5+ root : same FC

What do I wrong here? I read all kind of advice and follwed:confused:
[Galaxy S I9000 Android Development] frankencat:
I am noticing this too. Also it seems like battery consumption is up, my phone is not lasting as long as it was before I applied the new lag fix.
[Galaxy S I9000 Android Development] RyanZA:
I'm not seeing it here... but that doesn't mean it's not happening.

Could you try remove the lag fix, and see if the temp goes down after?

The main draw on battery is radios and display. Since the lag fix doesn't touch either of these, it probably isn't causing your issues. Even if the lag fix could make the IO controller run permanently, the extra drain would not be enough to affect battery temp, as the drain from the IO controller is so low. (I think it actually runs 100% of the time anyway.)
[Galaxy S I9000 Android Development] Tayutama:
Got ext4 running in one of my test zips RyanZA :)

On a kernel that only supports ext2 and ext3

Only one problem... doesn't mount on boot :(
[Galaxy S I9000 Android Development] OGC313:
Doesn't request root permission?!
[Galaxy S I9000 Android Development] RyanZA:
You probably need to start up the module yourself somehow... what are the speeds like?
[Galaxy S I9000 Android Development] gwwaters:
Small change...

I noticed when browsing through the code that the "final" install place is the directory /data/lagfixtemp. Since this is not a temporary install and is somewhat permanent would it be better to name that directory "/data/lagfix"? Just a thought from a fellow coder/sysadmin. It might also be nice to drop a short README and perhaps the uninstaller in that directory as well.
[Galaxy S I9000 Android Development] Tayutama:
using insmod to load the modules

Both when it makes the files and that and under boot... just won't mount under boot though... and logcat said nothing of use...

Right before reboot:

$ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 162.8M 0 162.8M 0% /dev
df: /mnt/.lfs: Function not implemented
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/stl9 275.8M 252.2M 23.6M 91% /system
/dev/block/mmcblk0p2 1.9G 507.0M 1.4G 26% /data
/dev/block/stl10 127.2M 1.2M 126.1M 1% /dbdata
/dev/block/stl11 30.1M 12.0K 30.1M 0% /cache
/dev/block/stl3 5.9M 4.0M 1.9M 68% /efs
/dev/block//vold/179:1
5.8G 616.4M 5.2G 10% /sdcard
/dev/block//vold/179:9
7.4G 6.9G 495.7M 93% /sdcard/sd
/dev/loop0 484.3M 39.5M 444.9M 8% /data/data-ext4
/dev/loop0 484.3M 39.5M 444.9M 8% /data/app
/dev/loop0 484.3M 39.5M 444.9M 8% /data/app-private
/dev/loop0 484.3M 39.5M 444.9M 8% /data/data
/dev/loop0 484.3M 39.5M 444.9M 8% /data/system
/dev/loop0 484.3M 39.5M 444.9M 8% /data/dalvik-cache
$

And:

/dev/loop0 on /data/data-ext4 type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
/dev/loop0 on /data/app type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
/dev/loop0 on /data/app-private type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
/dev/loop0 on /data/data type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
/dev/loop0 on /data/system type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
/dev/loop0 on /data/dalvik-cache type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)

After boot:

$ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 162.8M 0 162.8M 0% /dev
df: /mnt/.lfs: Function not implemented
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/stl9 275.8M 252.2M 23.6M 91% /system
/dev/block/mmcblk0p2 1.9G 525.1M 1.4G 27% /data
/dev/block/stl10 127.2M 1.2M 126.1M 1% /dbdata
/dev/block/stl11 30.1M 12.0K 30.1M 0% /cache
/dev/block/stl3 5.9M 4.0M 1.9M 68% /efs
/dev/block//vold/179:1
5.8G 116.4M 5.7G 2% /sdcard
/dev/block//vold/179:9
7.4G 6.9G 495.7M 93% /sdcard/sd
$

Direct that to RyanZA ;)
[Galaxy S I9000 Android Development] DReaMoR:
It all went fine, but now my T-Mobile Internet wont work @ my Galaxy S anymore.

Normal calling works flawless.

Didn't mess with any settings, after the root & Lag fix.

phone is really fast now, but i need my internet on it ofcourse.

already checked my APN settings, they are fine too.

any suggestions ?

Edit : after unlagfix-ing my phone, internet works fine again.

I'm confused, how this fix is affecting my internet settings :s
[Galaxy S I9000 Android Development] Tayutama:
Right got ext4 working.

Quadrant before Titanium backup: 1760

Quadrant after Titanium backup: 1819

Overall system feels pretty nice and fast.

Hmm that was a new problem that i haven't hear of before.

Tbh i'm kinda blank on that one when your APN settings looks fine.

Ryan: you got any ideas about that one?
[Galaxy S I9000 Android Development] Kil:
Tried deleting the APN and re-setting it?
[Galaxy S I9000 Android Development] chvybeatsford:
Sorry if this was asked

But does this at all affect wireless settings.? Before running lagfix i had just got my phone to connect to my router properly.(download speeds 15mbps). Now i can barley hit 4mbps.
[Galaxy S I9000 Android Development] bucklino:
Does launcher pro works in this lagfix 2-3?

Im running tw for now, but i think launcher pro better and faster than tw...

IS IT also faster with this lagfix?
[Galaxy S I9000 Android Development] michael0702:
This is working fantastic, my phone just got alot faster.

Launcher pro working perfect after fix.

My DL from wifi is the same as before lag fix.
[Galaxy S I9000 Android Development] DReaMoR:
did the alternative installation :

Chainfire has a .NET version of this fix with some nice features - http://xdaforums.com/showthread.php?t=751513

And now all is fine, T-Mobile internet is still working , and Quadrant score is 2146, very nice.

Still no id why this lag fix stopped my internet , but it is all solved now.

Thanks all.
[Galaxy S I9000 Android Development] busteroid:
Hi! Can I uninstall 2.2 without a computer? Dont.have one computer right now :)
[Galaxy S I9000 Android Development] dungtran88:
I've install Click Lag Fix 2.3, but everytim I boot my phone up, after the vibrant logo and the boot up sound, the screen stay back for like 1mins before it boot up to the home screen. Does anyone has this issue or know a way to solve this issue?
[Galaxy S I9000 Android Development] Tayutama:
If you mean RyanZA's 2.2 then no.

Try and run the attached file, and paste the result here.
[Galaxy S I9000 Android Development] RyanZA:
I have been more interested in finding the best possible method so far, and less in getting everything neat and tidy with checks. ;)

I believe the methods are pretty much as good as they're going to get at this point (barring EXT4 being awesome... how are the benchmark scores on EXT4 tayu?), so I'll switch over to making very clean fixes as I get time. This means a .apk that you can sideload onto your device (or download from the market) that will just run (and do proper tests, and give you the option to root / busybox your phone) and make sure everything works.

If I get the time, I'll try put together a version of my oneclicklagfix 1.0 (since it's simple) using the APK system by tomorrowish.
[Galaxy S I9000 Android Development] chenax:
Hi! I also have font issue. After I changed system font style, it always use the default font

My current firmware is dxjf4.

Thank you
[Galaxy S I9000 Android Development] RyanZA:
I think it is running a check on your filesystem. Do you have a very large number of apps installed?

Mine seems to boot up instantly with ~25 apps, but they're mostly small ones. If this is the issue, then there is nothing we can do, since it's pretty good for it to scan your files for errors. At least that is what they tell me. :D
[Galaxy S I9000 Android Development] Gothic Touch:
Thanx you!!

This really gave a new boost 4 my SGS!! Thanx you so much 4 this!! Just wondering that does this give me a full nand unlock too?? Sorry but i'm not so good about this yet, that's why i'm asking stupid questions...lol
[Galaxy S I9000 Android Development] RyanZA:
Gonna need more info than this. I do Settings->Display->Phone Font. It asks me to reboot when I change it, and when my phone comes back up, the new font is running.

Which font, how are you activating it, etc?
[Galaxy S I9000 Android Development] RyanZA:
I don't even know what a nand unlock is. :D
[Galaxy S I9000 Android Development] Tayutama:
Like i posted earlier Ryan :)

Right got ext4 working.

Quadrant before Titanium backup: 1760

Quadrant after Titanium backup: 1819

Overall system feels pretty nice and fast.

Btw this was on JG8 (Africa)
[Galaxy S I9000 Android Development] odyssey61:
I would suggest you reflash and start afresh. Running 2.2 over the top of the earlier version gave me a black screen on reboot. Flashing fixed it.
[Galaxy S I9000 Android Development] chenax:
Hi! I do the same way as you "Settings->Display->Phone Font" and reboot but font wasn't change.

I tried all 3 system fonts in my phone those are Choco cooky, Cool jazz, and Rosemary. All 3 font were not work after reboot.

May problem come from different firmware?

cheers
[Galaxy S I9000 Android Development] dungtran88:
when i run the checksum I got this error

----------------------------------------------------------------------------

C:\Documents and Settings\User\Desktop\vibrant\Check mounts>adb shell df -h

-h: No such file or directory

C:\Documents and Settings\User\Desktop\vibrant\Check mounts>pause

Press any key to continue . . .

-----------------------------------------------------------------------
[Galaxy S I9000 Android Development] Tayutama:
Right... my mistake on thinking busybox was symlinked :)

Try this file then:
[Galaxy S I9000 Android Development] Tayutama:
Just tried to change the system front the same way on my ext2 fix and worked just fine.

I'm on JG8 (Africa) firmware atm.
[Galaxy S I9000 Android Development] creator2456:
CHANGE FONTS

There are two threads going in the Vibrant section on this.

Here has the fonts the community has created.

http://xdaforums.com/showthread.php?t=748916

Here has directions on how to make your own (takes 5-10 minutes).

http://xdaforums.com/showthread.php?t=745345
[Galaxy S I9000 Android Development] dis169:
Just installed 2-3, nice and easy. Getting quadrant scores of 2000 to 2200, running jm1 :-)

Oddly there might be a bit of stutter when swyping screens but even if there is (i could be imaging it), it's a small price to pay to get rid if the lag :-)
[Galaxy S I9000 Android Development] dungtran88:
I restart my phone couple mins ago before this post is posted and all my apps that i install after the lagfix 2.3 are currupted. I will ODIN flash my phone and do everything over again. Also I'm using Samsung Vibrant not i9000 so dont know if that is the problem.
[Galaxy S I9000 Android Development] Adevem:
it seems that after applying the v2.3 fix, my screen will be stuck as black randomly, still able to receive calls but unable to answer. as it's a constant black screen, only a hard reboot works... annoying.
[Galaxy S I9000 Android Development] Tayutama:
hmm no idea tbh.

Don't have any people with a vibrant testing for me, but got 1 that sometimes test the zip's on his captivate.
[Galaxy S I9000 Android Development] Adevem:
well as soon as i said it, my phone hangs lol. hope it's just my problem for some reason!
[Galaxy S I9000 Android Development] dungtran88:
Do you have any suggestion???

I'm going to install all the apps i want then i'l apply the lagfix and see that will happen. Im done installing all the apps, and now apply the lagfix 2.3, I will post the report when its done, hope that pin point out something.
[Galaxy S I9000 Android Development] Zilch25:
Funny you should mention that... come back to the thread and give me the advertised test stuf :) You can't just leave something like that in there and make me WAIT!

... My F5ing finger is getting sore :(
[Galaxy S I9000 Android Development] dungtran88:
This is the report after running the lagfix 2.3 on samsung vibrant. After finish apply the lagfix, it still take forever to go to the home screen.
[Galaxy S I9000 Android Development] Tayutama:
Hmm looks like it completes it like it should...

try and run the attached file when it hangs on boot.

I want to see if it mounts the file at all or not
[Galaxy S I9000 Android Development] dungtran88:
here are the result of the script. Also all the apps that i install are broken.

blk_screen_before_goto_home.txt = first boot with long black screen

2_blk_screen_before_goto_home.txt = 2nd boot with long black screen.
[Galaxy S I9000 Android Development] Dimitri_010:
Hi...new poster here.

i just flashed Tayutama's one click lag fix...however, once i click the sl4a app and try to install..it says -- cannot open sh: no such file.

help?
[Galaxy S I9000 Android Development] Tayutama:
Hmm wondering since the space used inside the file we made is geting bigger.

Do you know how much your app took up before in size before the fix?

Also no problems with mounting so....

Not that much into RyanZA's version of the script since i redid some part of it for my update.zips so we might end up having to wait on him
[Galaxy S I9000 Android Development] bogdan81:
but faster conventionality and ext2 or ext3? :confused:
[Galaxy S I9000 Android Development] Tayutama:
huh? what do you mean?
[Galaxy S I9000 Android Development] bogdan81:
with the method RyanZAEXT2 v2-3 Quandrant from 21xx instead with update_v2.1_eclair_ext3 15xx alone. Why?
[Galaxy S I9000 Android Development] Tayutama:
Ahh reason RyanZA's fix gives higher score is because it's ext2

And the reason ext3 gives lower is because it has journaling. Meaning that it can restore lost data. ext4 then gets higher score then ext but still lower then ext2
[Galaxy S I9000 Android Development] bogdan81:
then for speed agrees ext2? Thank you!
[Galaxy S I9000 Android Development] Tayutama:
Download the attached file.

Put your phone into debugging mode and connect it to your comp.

Run the 2 files included in the download (I hope it's windows you are on)

Post result here.
[Galaxy S I9000 Android Development] Gothic Touch:
Linpack test results

Hiya!!

I just did a Linpack test for my SGS and it gave me 8,445Mlflops/s...i don't know is it good or bad....but anyway..
[Galaxy S I9000 Android Development] bioweb:
Unlagfixed the 1.0 fix, applied the 2.3 fix and Quadrant score is down about 150 points compared to 1.0. I've noticed this is due to the 2D and 3D test losing a couple of fps on average.

Strange that this lagfix has a small impact on the 2D and 3D performance in the test.

Gonna reinstall Quadrant to see if that fixes anything, if not I'll still keep this fix as the phone feels just as fast as the 1.0 lagfix.
[Galaxy S I9000 Android Development] Tayutama:
That is the normal Linpack score for eclair builts on Galasy S. Only way to increase that is by using JIT
[Galaxy S I9000 Android Development] lafaya:
I discovered a problem with this fix. For some reason the phone is randomly rebooting and not responding to touch. Anyone else having this issue?
[Galaxy S I9000 Android Development] Porto412:
I have reflashed everything and went from JM2 to JM5.

Rooted it and used the 2.3 lagfix.

I have no wakeup lag (was caused by the 1.2Ghz overclock kernel), sweeping is going quite smooth and installing apps is going perfectly, no corrupt apps whatsoever. The phone feels very fast and have no to very minimal lag.

quadrant scores around 2240.

With the overclock patch it scores nearly 2700 but the wakeup lag is quite frustrating because when I received a call, I could also wait 5 seconds before I got the screen and I could answer it... :(

Great job!
[Galaxy S I9000 Android Development] waterballoon:
Okay I've got a problem here... yesterday night I tried installing the lag fix 2.3; everything WAS going fine, until when the phone rebooted, and then it just got stuck in a blank screen.

I did a factory reset, and so it's all right now... but, what could be wrong? All the requirements were met... I'm suspecting I might not have enough space in /system/lib... I'm using JM2 firmware; can anyone confirm u can use this lag fix with a JM2 firmware?

Also, another problem was that after factory resetting, I see "lagfixtemp" in my SD card, does this mean the lag fix was successfully done?

To test that, I decided to use the Quandrant, however I remembered that I've forgotten to back up my last round of apps, which included the quadrant thing.. so I went to the market, and this is where the REAL problem does.

There's something wrong in connecting to Google server... when I tried to set up my Market & GMail again, it just gets an error that my phone can't find a reliable server or something, but everything else is working - E-Mail, Facebook, Twitter, Foursquare, Internet... everything's wroking fine except the Google-related services.

God, how do I get myself out of this mess ><"
[Galaxy S I9000 Android Development] vintneol:
Hey guys, I'm quite new to this, I've already followed those steps, but I did not see any permission request on my phone, although it appeared completed in my laptop screen
[Galaxy S I9000 Android Development] Porto412:
@Waterballoon,

I can confirm that this fix has to be working normal on JM2; I used this FW before my current JM5, which I installed exactly the same way as described below. It should work this way.

I did a clean install of JM2. With clean I mean very clean... after the install I backed up some personal files from the internal SDcard and formatted it so no traces from a (corrupt) previous lagfix install was present. Then I rooted the thing with the 1-click rootkit, ran this lagfix 2.3 and after that I restored my backed up apps with Titanium... also installed some newer apps from the Market.
[Galaxy S I9000 Android Development] waterballoon:
thank you. I don't know what's wrong then.. ><" maybe I'll try doing it again ^^

EDIT: Okay, so I'm trying to apply the lag fix again, and this message comes up...

"Copying libraries...

cp: write error: no space left on device"

that line repeats about 5 times, and then it says a f ew more lines before

"We will now create a temp. EXT2 partition /sdcard... this will take a long time.."

, so is the "no space left on device" thing why my lag fix failed? omg what's wrong

EDIT 2: okay so I've tried to do it again.. it seems to work this time, seeing how I have a notice for low memory space on phone notice... BUT. I still can't determine cos I can't even access the market due to the google server problem (this is frustrating me SO MUCH)... but the low space has force deleted many of my apps... so I uninstalled the lag fix, and now I'm gonna do a factory reset and install all my backups... don't think I'll be going for this anymore; it seems to have a problem (I think it's my fault though; I just dunno what I did wrong...)... ><
[Galaxy S I9000 Android Development] RyanZA:
If you wait a awhile, maybe a day or 2, I should have a much easier to use version out. Might want to wait for it. :)