yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Giobio:
@ lanchon or who knows

I used your kernel a few weeks ago on my S2 but I got no improvement (I knew that it could happen, as you wroten down on OP).

Now I see the kernel fixes new bugs. Is suggesting to flash it again?
[Galaxy S II Android Development] chrhei:
Sorry, I'm confused now. In which order I have to flash. FPBug-20171218 for i9100 doesn't support TRIM?
[Galaxy S II Android Development] Saber:
No. You should flash the kernel with the fpbug fix and trim together. (In android file host, navigate folders and you should find folders marked with 'trim' and 'fpbug fix'. You will notice the link to download the old trim kernels will have 'no fpbug fix' and 'not recommended' for the folder name. No need to flash them seperately.

---------- Post added at 10:03 AM ---------- Previous post was at 09:58 AM ----------

Did you use the lagfix app to trim the partitions? Remember that the performance may not be hugely different after using lanchons kernel, but it becomes noticeable as you use your device more (after long periods of time or after adding and removing lots of files on your phone).
[Galaxy S II Android Development] Giobio:
[MENTION=5811506]gsstudios[/MENTION]

Yes, I do. But as I did not see any improvement, but worst values, under lanchon suggest, I back to previous one. I did not wait the long period you're talking on.

I'd like to know if this is a different kernel respect to the one of lagfix and if is flashablein a normal way or it before needs to do any procedure or anyelse....
[Galaxy S II Android Development] tcbr10:
Is flashable via the normal way.
[Galaxy S II Android Development] Saber:
Does this help? Download link: https://www.androidfilehost.com/?w=files&flid=22984

Yes, you can flash over existing trim kernel using cwm.

---------- Post added at 10:22 AM ---------- Previous post was at 10:20 AM ----------

The this is a combination of the trim and fpbug fix. Nothing else and it is still based on stock cm kernel and it is still made by lanchon. Only difference between the one you are using and the newer kernel is just the additional sd card fix.
[Galaxy S II Android Development] Lanchon:
u should flash an fpbug fixed kernel. you can flash that, or that plus trim. your choice, i published the two
[Galaxy S II Android Development] Giobio:
yes, thanks, I saw them. Are they comprensive of zeitferne work too? I read lot of posts and now I'm a little confused....
[Galaxy S II Android Development] Lanchon:
no, they have my fix
[Galaxy S II Android Development] Shahan_mik3:
I am the 1000th person to thank you :D
[Galaxy S II Android Development] Lanchon:
:) much appreciated!
[Galaxy S II Android Development] AMelbye:
Just out of curiosity: The poll says that 3 out of the 85 (or so) people that tried it had their devices bricked. Which revisions were they on?

Keep up the good work! :good:
[Galaxy S II Android Development] Lanchon:
good question!

IMHO... no one got bricked!!! look at the history of those guys, complete xda n00bs i think. they never posted a message explaining, complaining, asking for help or warning others! can you believe that? they also didnt send private messages.

only reported case of problems came from a guy who dd'ed whatever over his bootloader partition! whatever he had done, he recovered his phone, so it wasnt brickbug. brickbug bricks are effectively forever.

if you ask me, these 3 guys just thought the wording of the option was funny. damn trolls! lol
[Galaxy S II Android Development] AMelbye:
Exactly what I thought. I've been searching this thread and others, and have not been able to find any evidence of a device getting bricked.

Great work! :good:
[Galaxy S II Android Development] ahmedelhofy:
[MENTION=4141005]Lanchon[/MENTION] : Gustavo's latest kernel (23/12) stated that TRIM is now supported... Is there something to detect if the system is trimmed or not.... I'm new to this trim thing...

---------- Post added at 02:36 AM ---------- Previous post was at 02:17 AM ----------

I took a more deep look at the OP, found this script that I should use... Here is the result (that's on gustavo's kernel)... Am I trimmed now ?

Oh, BTW... I will be flashing a different PIT file in a few days that would change the size of the system partition... I should retrim after flashing the different pit file, right ?

---------- Post added at 02:45 AM ---------- Previous post was at 02:36 AM ----------

After using the script and restarting... I lost my Sim card, no imei, no baseband... Going back to stock kernel fixed the issue... I have no idea what was the problem from.. Gonna try yours now

---------- Post added at 03:07 AM ---------- Previous post was at 02:45 AM ----------

Used yours.. Flashed.. Trimmed using the script... Rebooted...everything seems fine so far....

So since Gustavo's kernel supports trim now, can I flash it over yours... Do I have to reuse the trimming script ?
[Galaxy S II Android Development] Lanchon:
i dont know if [MENTION=4217277]Gustavo_s[/MENTION] kernel has all the needed patches to make trim safe. these patches are discussed in my other trim thread, the main one, that no one ever looks into.

it so happened that CM had all the needed ones already but i dont know about other kernels. naively applying my change to another kernel can make it brick devices. i should post a warning in this thread probably, cause the other thread is linked but noone reads it, and i never expected someone would merge into mainstream without asking me anything.
[Galaxy S II Android Development] Giobio:
You did and continue to do a great work, all the xda users, I'm sure, say that. Last days there was a frenetic race to patching, developing, create, adjusting kernels from your part, from who helped you (and us) to get a better kernel. Now, and this is my point of view, there are too kernels around, one uselful to trim, one to fpbug, one fused, your versions, the one of almost two more developers....I don't understand now wich one to use, wich one is the older etc...
[Galaxy S II Android Development] Lanchon:
haha its true! good thing i dont have these devices or i wouldnt know what to put in them either! :)

my trim kernel if u want trim and are running CM

or if u dont, the kernel u were using before (but with fpbug fix now)
[Galaxy S II Android Development] Giobio:
And your trim kernel is the same to use with lagfix....etc or it is changed?
[Galaxy S II Android Development] Lanchon:
same thing, only now has fpbug fix
[Galaxy S II Android Development] drdays:
I flashed this "kernel-Lanchon-TRIM-FPBug-20141221-cm-11-20141218-NIGHTLY-i9100.zip" over the latest CM11 nightly (24th December nightly) without wipe. Run lag fix app and trimmed all the partition options. But I do not see any significant changes in response /feel and the numbers agree with me (according to the benchmark app).

Before trimming:

After trimming:

Maybe I'm not doing something right.

The internal storage is vfat formatted.
[Galaxy S II Android Development] Lanchon:
UPDATE: Dic 25, 2014: a holiday present!!! as kernel maintainers swiftly acted to patch PFBug, [MENTION=4217277]Gustavo_s[/MENTION] took the plunge and merged TRIM support in his latest kernel. finally a more mainstream kernel is getting this functionality, hopefully i will be able to discontinue my kernels soon!

EDIT: i have verified that his kernel is as safe as mine regarding TRIM. :)
[Galaxy S II Android Development] Lanchon:
i added section "When things do not work" to the OP to explain your case.
[Galaxy S II Android Development] ahmedelhofy:
Great... Although.. I had issue with trimming on Gustavo's, every time.. I always lose my baseband... But it seems like fixing permissions from recovery fix it... Never faced that on your kernel..
[Galaxy S II Android Development] Lanchon:
well, what i mean by safe is that it wont brick your device. i dont know what could be wrong that causes the corruption. in any case just in case everybody should have an efs backup outside of their phones, just in case.
[Galaxy S II Android Development] HypedLT:
Apologies for the wrong poll vote, I did it by accident. My phone has got a brickbug and after flashing your kernel all is ok.

So, I would like to thank you for your great findings, now the phone is faster and more responsive!!
[Galaxy S II Android Development] Notor1ouS-:
so whats the latest and most stable kernel for cm11 m12? (trim needed)

i guess this?:

kernel-Lanchon-TRIM-FPBug-20141221-cm-11-20141115-SNAPSHOT-M12-i9100.zip

im currently using one with "Old CM-Lanchon-TRIM - NOT RECOMMENDED - No FPBug fix", should i update it?
[Galaxy S II Android Development] olarf:
Yes go for it , run perfect on my daughters phone!

Gesendet von meinem GT-I9295 mit Tapatalk
[Galaxy S II Android Development] Notor1ouS-:
ok thank you!

iam just asking cause it has to run quite stable, my mother is using the S2. :P
[Galaxy S II Android Development] olarf:
So far it works bug free here and before it was buggy. My daughter is very happy since I flash the fix and beside no bugs the battery least now more then a day. So she is 100% satisfied with the combination you plan to flash (12.15 M12 with trimm FP fix kernel)

Gesendet von meinem GT-I9295 mit Tapatalk
[Galaxy S II Android Development] Notor1ouS-:
just flashed it and its perfect, seems slightly smoother too.

one last question: is there any recommended modem for this kernel with cm11 ? currently the device is running with i9100BOLP modem version. should i change it?
[Galaxy S II Android Development] JimboAccy:
Just flashed the trim kernel after I checked my emmc (see screenshot) and it appears as though my Antutu benchmark score has dropped? :( Attached screenshots before and after the flash.. Have I done something wrong?

JimboAccy
[Galaxy S II Android Development] Acid0057:
That happened to me too. But run the test a few times. Also depending on your use and age of the phone it might not require much trimming. Also have you ran the lag fix app? Or trimmed via the terminal?

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] souler456:
I'll just ask here since TRIM is the topic here...

How can I know if the Kernel has TRIM feature? Like... What system file should I find to assure that the Kernel has TRIM feature? Enlighten me... :confused:

:D :) ;) :good:
[Galaxy S II Android Development] Lanchon:
1) most benchmarks are not very repeatable. antutu is NOT a disk benchmark. run a disk benchmark for this.

2) antutu is a cpu/gpu benchmark. if you want a higher score, place the phone in the fridge for 10 minutes then run the test while in the fridge. CPUs are throttled down in response to higher temperature. your second score was probably obtained when the phone was at higher temperature due to recent flashing/rebooting. please, do not use antutu as disk benchmark
[Galaxy S II Android Development] Lanchon:
assuming you are rooted, run the lagfix app. or fstrim -v /data as root in a terminal or adb shell; if it says xxxx bytes trimmed then it worked.
[Galaxy S II Android Development] souler456:
Ooohh... So if I ran it on Terminal Emulator, it means the "fstrim" file exists on /system/bin or /system/xbin... Cause if not, then it won't work... Right?

So for short, to know whether I have a TRIM kernel, I'll just look at the directories I've just said, and confirm it myself... Right? :p

:D :) ;) :good:
[Galaxy S II Android Development] Acid0057:
Right or you know just run the command. If it isn't there it simply won't work. No harm in running fstrim.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] JimboAccy:
Lol thanks for the reply guys - apologies as well. I tried to use androbench before flashing but couldnt get a screenshot of the full results as I had to scroll down on my phone to see some of them so it would have meant uploading lots of screenshots.

Too late to do a comparison now I suppose but hey ho, Ive flashed the trim kernel and my phone is still alive ;)

I've also voted in the poll as well :)

JimboAccy
[Galaxy S II Android Development] Acid0057:
Did you run lag fix or fstrim in the terminal? Trim is good but it won't mean anything if you don't run the commands.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] JimboAccy:
Haven't tried either! Just tried lagfix but it gives me the error that my device is not rooted. I will try the terminal commands and give screenshots...

Thanks very much for the advice

Jimbo
[Galaxy S II Android Development] Alegom:
Hey! I'm on NeatROM 4.1.2, so I assume I belong to the Rooted Stock ROM category, right? I have checked my emmc only to find out I am susceptible to the brickbug. Nevetheless, I've downloaded LagFix and tried it, but it says it's not supported. To be exact, I get "fstrim: FSTRIM: Operation not supported on transport endpoint" for all three partitions.
[Galaxy S II Android Development] Acid0057:
Did you install lanchons kernel? You need it for fstrim.

Let us know how you make out.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Alegom:
Since this was specially designed for CM ROMs, I'm not exactly sure how to proceed in my case. Can you point me in the right direction, please?

I got the feeling I shouldn't flash anything else, given I'm in a stock based rooted ROM (NeatROM).
[Galaxy S II Android Development] Acid0057:
I'd start by reading this post in full before doing anything.

http://xdaforums.com/showthread.php?p=54724523

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Lanchon:
NO! you have to trim! if you dont have the command you need to get it somewhere and then try it to know. cm has it. lagfix app has it.
[Galaxy S II Android Development] Lanchon:
with all due respect, if you dont wanna read the OP, please don't post.
[Galaxy S II Android Development] empulse92:
now we only need a fix to trim the sdcard :)
[Galaxy S II Android Development] Lanchon:
i've updated the flash instructions. now i recommed flashing official M9 then only my recovery. this fixes wifi problems and may fix ART (dont know). i recommend you do this. please read the steps in the first post.

1) what were you using in your phone before? CM11? official kernel? you should notice a big improvement then. im puzzled that you didnt. i suppose you were maybe using a different kernel that already trimmed without your knowledge?

im sorry but the internal sdcard cannot be trimmed. FAT is an obsolete file system and the linux driver does not support trim i think. there is no way to fix that. the device can be repartitioned (best option, full wipe) or partially overprovisioned from the FAT partition. or maybe the FAT partition can be formatted using a different file system? i dont know if android will mount it or not.

2) what OS do you use in your PC?

you can start by overprovisioning by trimming the preload partition. i recommend you do it. you should check it is not being used. it could be used to fit parts of a /system partition that got too big. or it could be used as swap partition. if you choose to do it, you can format it from my recovery, it will TRIM it (actually ERASE it), and thats all you need to do. a message should show in the output about secure erase not working but non-secure erase being ok. if you try this it wouldnt hurt to backup the partition beforehand. and please tell me what you saw in the output.
[Galaxy S II Android Development] Nickthegr8:
Let me clarify for i was sleepy yesterday:

1) flash official M9 --------from first post working fine

2) flash my M9 recovery/kernel --------from first post (check if it is the same as in the attached screenshot .. title: recovery cm11- 20140807 unofficial lanchon m9.zip , for this is what i flashed to have wifi working, the other kernel that u sent me yest which i flashed made wifi not working its name in screenshot also : this will hard brick your device Lanchon m9 TRIM.zip

in this way:

1) wi-fi reportedly works on this recovery cm11- 20140807 unofficial lanchon m9.zip /// TRIMMING using lagfix doesn't work

1.1) Wi-fi doesn't work on this recovery this will hard brick your device Lanchon m9 TRIM.zip ///TRIMMing using lagfix works

2) ART may work (i will check and report back ..but tell me first can i reflash kernel in case i bootloop for i don't feel like wiping my device i am at work and have lots of stuff)

thanks
[Galaxy S II Android Development] Lanchon:
so let me explain:

-there is a full M9 image (name doesnt include 'recovery')

-there is a recovery-only M9 image (name includes 'recovery')

you downloaded both files

i suspect that in your device, the recovery and kernel are integrated, and there is only one shared kernel for both android and recovery, not two.

so both files have THE SAME KERNEL (and recovery), but the full M9 additionally has the complete android system.

so my expectation is that if you:

1) flash standard official CM11 M9 (includes android, kernel and recovery)

2) then flash my recovery (includes kernel and recovery but not android)

you will be running my kernel and recovery. if this is true you will see my kernel in about phone, you WILL be able to trim, and if you wipe a partition you should also trim it (well, actually uses an erase command but the result is the same) and you should see a line of output confirming this.

wifi will work or not depending on where my faulty blobs are: is they are in the kernel, it wont work. if they are in android it will, since you'd be running official CM11.

so, if you want to help...

1) did you flash in two steps correctly? look in first post of thread for exact instructions

2) can you see my kernel in about phone? (this would confirm my beliefs about the shared kernel thing)

if you are using my kernel, 3) you should be able to trim... can you?

and finally, 4) does wifi work?

(you should be able to boot with art if you flash official M9. but don't try art, don't run unnecessary risks)
[Galaxy S II Android Development] empulse92:
is actually only f2fs supported to trim?
[Galaxy S II Android Development] Lanchon:
i dont think these kernels even support f2fs. several filesystems support trim in linux. ext4 is one and is what most androids use for most partitions
[Galaxy S II Android Development] Lanchon:
i posted some questions for you in a previous post. did you see them?
[Galaxy S II Android Development] empulse92:
afaik we can format our sdcards to : vfat (FAT32), exFat, Ext4, Ext3, Ext2 and ntfs

ntfs wont get mounted by android, exFat needs rom support and Ext4? im not sure but i guess there are problems ahead.

preload partition is only used by SuperSU atm i think (to survive rom updates) :confused:
[Galaxy S II Android Development] Lanchon:
you can format both the internal and the external sdcards to whatever file system supported by the kernel. linux supports a lot of file systems, but only some are configured in any kernel build. dont ask me which, you can test, i can't. also don't ask me which of those support trim for the same reason.

i know ext4 is supported by your kernel and supports trim. ext4 is the basic de facto linux file system and is used on most androids for most partitions. in your case, /system and /data are ext4 for sure.

the question is, besides what the kernel supports, is android configured to autodetect the internal sdcard file system or not? i dont know, you can test.

EDIT:

https://github.com/CyanogenMod/android_device_samsung_galaxys2-common/blob/cm-10.2/rootdir/fstab.smdk4210

sdcard0 seems to be automatic :) but still, you cant test, i cant.
[Galaxy S II Android Development] Alex-stroev:
TYPE: VIS00M

DATE: 02.2012

FwRev: 0x09

What's about this? What i need to do?
[Galaxy S II Android Development] Lanchon:
lol, this is about speeding up CM11 on the i9100.

read the first post, im here if there is something you dont understand.

you don't have brickbug, this should be totally safe for you.
[Galaxy S II Android Development] Alex-stroev:
That's what I wanted to know. Thank you!
[Galaxy S II Android Development] Toby0897:
been using this since Monday and had no brick

my eMMC chip is VYL00M fw.rev 0x19

also i have a question, the fix this is using is the Samsung one witch uses non secure commands to not fry the phone (since secure ones do:p)

and CM's fix is just disable those commands in general?

sorry if i am wrong that's just my understanding
[Galaxy S II Android Development] Lanchon:
correct. and CM also has a non-erasing recovery. there are reasons why things are the way they are. follow a link from my first post to another thread i made explaining everything.

you have brickbug. i think you are still safe to use this, thats my whole point, but only time will tell. but you might be afflicted by wear-leveling bug. have you ever had corruption in the files of your phone before this kernel? for example, camera pics in which an area suddenly goes a solid color? what about after installing my kernel?
[Galaxy S II Android Development] Toby0897:
i don't take pictures but would songs or videos maybe do the same thing but be unplayable, if so no i haven't experienced anything like that so far
[Galaxy S II Android Development] Ganjax:
I have also 0x19 VL00M chip, i would try this ROM, but tell me how speed it is? significant improvement in performance? that's visible difference?
[Galaxy S II Android Development] Lanchon:
the bug inserts 32kb of zeros anywhere. it would result in a very short click on audio i think.
[Galaxy S II Android Development] Lanchon:
i dont know, i dont have the phone. if youve been using official CM for a while and you follow all the steps (and trimming is successful), it should be significant.

reboot the phone before the patch, see how slow it boots, how long it takes to become responsive. in the reboot after trimming u should see a big difference.

also battery should last longer, dont know if noticeable though.
[Galaxy S II Android Development] Lanchon:
c'mon guys, those who are using it, could you please provide some feedback regarding the speed of the phone? if you feel no speed up, im sure you werent using official CM11. what were you using before?
[Galaxy S II Android Development] Toby0897:
After trimming and rebooting for the first time it was quite a lot quicker and snappier, it also seemed that apps opened and closed quicker, if you want me to do a benchmark just ask
[Galaxy S II Android Development] Alegom:
With all due respect, I did read the OP. In fact, I even read the second post, which is why I asked in the first place if I was on the "TRIM on rooted stock android 4.1.2" category or not, to make sure I wasn't about to screw up my phone.

You know more about this than me, for sure, which is why I came here simply asking for what I didn't understand after I read it. I resent the fact that you assume I didn't read anything and posted right away. I imagine how much work you had putting that post together, so to come here and start shooting questions in the dark would be disrespecting your work, which I wouldn't do.

So are you able to help me or are you gonna send me reading the OP for the third time now? I'm with NeatROM 4.1.2, so it fits in the custom or rooted stock ROMs? Because I tried the procedure for the latter, which you could know if you read MY post, and it didn't work. So was it a problem within the procedure (i.e. with the way I did it) or am I following the wrong procedure? Thank you...
[Galaxy S II Android Development] olarf:
If you really read the hole stuff you should have read that lagfix can't work for you. In your case you seems to have to follow the 13 steps way for other ROMs where the trimm process has to be done in recovery mode on a temporary loaded kernel... In case of stock 4.1.2 it sounds that even more attention is needed. The things you could do are really very clear described in the OP and the only way to help you here would be to copy and paste all that to here. But you must agree that this is kind if useless.

So if your question is really why lagfix don't work, you don't read serious enough the OP. If you have a question about one of the 13 steps you must do, I bet Launchon will answer it.

It seems you following the wrong procedure so you have to read it a 3rd time and this time read all of it ;)

Gesendet von meinem GT-I9295 mit Tapatalk