yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] koolkunz:
can i use this on CM Nightlies now??
[Galaxy S II Android Development] ahmedelhofy:
[MENTION=4141005]Lanchon[/MENTION] M12 was released early today...
[Galaxy S II Android Development] Lanchon:
thanks, i'm on it!
[Galaxy S II Android Development] Lanchon:
i released a couple of nightlies, but i'll do M12 now
[Galaxy S II Android Development] koolkunz:
i am on 30th october nightly at the moment...will it be all right if i dirty flash m12 and use your kernel??
[Galaxy S II Android Development] Lanchon:
UPDATE: better late than never... i9100 CM11 M12 is out and so is my kernel!
[Galaxy S II Android Development] Lanchon:
yes!

"the branch point was November 3rd."

http://www.cyanogenmod.org/blog/cyanogenmod-11-m12
[Galaxy S II Android Development] Acid0057:
Well that bites I'm on November 9th nightly. Oh well it's working fine.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Lanchon:
but deep inside you know things could be better... lol :-p
[Galaxy S II Android Development] Lanchon:
FYI, there's a solution for other roms now, read post #2 of this thread.
[Galaxy S II Android Development] Dampierre:
I decided to give this kernel a try, my s2 is suffering even though it is not bloated.
[Galaxy S II Android Development] chrhei:
[MENTION=4141005]Lanchon[/MENTION]: May I ask you for another update as of 22nov2014 for the i9100? THX.
[Galaxy S II Android Development] Lanchon:
sure, i'm on it
[Galaxy S II Android Development] Lanchon:
UPDATE: by request, i'm releasing a kernel for the latest nightly:

cm-11-20141122-NIGHTLY-i9100

enjoy!
[Galaxy S II Android Development] Spyr0s:
Works great but i saw a message in recovery logs while wiping cache and dalvik after updating

don't know if it really matters
[Galaxy S II Android Development] Lanchon:
that message is expected, everything is ok.
[Galaxy S II Android Development] Spaulding89:
I don't understand this:

I never found that chip. Could someone tell me if it is safe to use the kernel maybe [MENTION=4141005]Lanchon[/MENTION]
[Galaxy S II Android Development] Lanchon:
did u read the OP and looked the chip up in the linked table? what is the result of the lookup?
[Galaxy S II Android Development] Spaulding89:
Sure did I read it. many times in last time. But I don't find my chip in this table. This is the reason why I asked my question.

Ps I always read the op. It is one of my personal forum rules.
[Galaxy S II Android Development] Lanchon:
then this applies to you:

" if you are not affected by the previous bugs, you run no special risks by flashing my kernels. " (from the OP)
[Galaxy S II Android Development] Spaulding89:
Thx for answering my question. i wanted only be sure doing the right thing :good:

Edit: Flashed it right now on CM11 by Markox89 and all runs fine. (with recovery trimmer) Phone is flying again. Thanks again.
[Galaxy S II Android Development] promen:
do i need pit file really and this odin recovery?

if ill flash only kernel zip via recovery will this work ? or i need odin and rest ?

hmm

VYL00M 0x19

thx

btw im asking cos i dont have usb working and doing everything via wifi file explorer etc. so cant use usb odin ;p
[Galaxy S II Android Development] smoke2tun:
PIT file is not mandatory

The original /data partition is quite small and can get quickly full. In order for trim to work correctly, it requires some free space in the partitions that are to be trimed(/system, /data, /cache).

This is the reason why people use that PIT file, to resize /data partition .

If you make sure that you have around 500-600 MB free on your /data partition, you can trim without repartitioning the internal memory.

So, using odin to flash the PIT file is not mandatory, but it helps in the triming process.
[Galaxy S II Android Development] Giobio:
@ LanchonWho knows

Hi,

as attached file shown, the bug affected me too.

I decided to try your kernel (many weeks I'm following your thread) but first I need to know/clarify some things my skills do not understand:

my phone system

CM11 Linaro/SaberMod by Markox89 updated to 20141122 version;

Gustavo's Kernel (vers. Linux 3.0.101)

Used PIT file (never touched /preload) /data up to 4GB and /sdcard down to 9GB

Internal SDCard already formatted to ext4

Runtime ART

1) Any problems with runtime ART, PIT File changed?

2) Can I use my installed CM11 version and Gustavo's kernel too or have I to change any?

3) This procedure is forever or have I to repeat it every time I change a rom or kernel or back to sammy rom or whatever?

4) Post #1 is for CM11 M versions only? (I think CM11 Linaro/SaberMod is contemplated in post#2).

5) If so, I think your appropriate kernel for me is

cm-11-20141122-NIGHTLY-i9100

; but for the future is need any update(see point 3)?

6) In #2 procedure seems lagfix app is not used but it follows another way: I'm not able to use adb and prefer lagfix way but my rom seems not to follow post #1 (lagfix app used). Well, here I'm a little confused...

7) Instructions points 9-10-11 (post#2) are necesaries? And 12 too(about flashing back old kernel).

8) Whatever I forgot/unknown ;)
[Galaxy S II Android Development] promen:
but mobileodin will do good work or only usb for pit ? cos i can charge only via usb ;c broken port as i said eh
[Galaxy S II Android Development] Lanchon:
BE VERY CAREFUL!!! in these phones, recovery and kernel monolithic, if you flash a kernel that doesnt work, recovery wont work anymore either!!! you will loose your phone!!!

DO NOT EVEN THINK of repartitioning without USB!!! if you want, you can flash my kernel. you do not need to repartition. just make sure you follow instructions and manually wipe and trim /preload if your rom doesnt use it (for extra performance).

dont use mobile odin. be very careful while flashing.

go to ebay and buy a usb connector power flex to repair your phone. it will take 30 days to arrive, but if you ever need it you'll be happy to have it.
[Galaxy S II Android Development] Lanchon:
ok. you have 2 ways of using this:

a) you run stock CM11 with my kernel. you flash my corresponding kernel over every time you upgrade your CM installation. trim works all the time transparently

b) you run something else. you flash any of my kernels temporarily to trim. you NEVER boot android with it, you just trim. you do it once, then restore your kernel and forget about it. if you have the original 0.5GB /preload, empty it and trim it, and then never touch it again, you'll have good performance without using my kernel ever again.

i'm assuming you want to keep your installation so you choose b). then:

1) not applicable for case b) (but no, no problems for case a) )

2) yes you can

3) you dont have to repeat it unless you write to /preload. FYI: flashing back sammy rom writes to /preload.

4) yes and yes

5) any of my kernels would do, but better if you use the latest stable. i would choose M12, it has 150+ downloads and no complaints. so it must be working fine.

6) lagfix can't trim /preload. you need to:

-verify that your rom doesnt use /preload

-wipe its contents

-trim it

you can do the second step from your current rom before starting with the process. use recovery to format /preload. if that doesnt work, use a root file manager to delete everything in /preload.

to trim it, if you cant use ADB, use the trimmer script: post #2, step 11, option b).

7) yes, thats why they are there!!! :) the whole point of this is formatting and trimming /preload !!

and yes, you NEED to restore your kernel. otherwise your system might not boot or might be riddled with trouble.

8) you forgot to order the pizza?
[Galaxy S II Android Development] Giobio:
- What do you mean for "NOT APPLICABLE FOR CASE B"? It seems my device for half respect case A and for other half case B. If I follow the second way I need to have original sammy partition...

- INSTRUCTION 10: still in the mounts and storage section, mount (if necessary) the following partitions: /system, /cache, /data and /preload. HOW CAN I CHECK IF NECESSARY TO ME?

Really thanks for your reply, you have cleared my mind about something but something else I need to reread before starting...

p.s. point 8) If u check outdoor there could be speedypizza boy. If not, may be he was trimmed!!!! :)

thanks again!!!!
[Galaxy S II Android Development] Lanchon:
1) i dont understand you.

2) you check in the mounts and storage section.
[Galaxy S II Android Development] Giobio:
1) As my device is setup and how you suggested me, I have to use second way (others rom and kernels). The instructions say in requirements "you have not repartitioned your device and shrank the /preload partition to enlarge other partitions."

So I'd have to back to original partition(I changed it with PIT file). Or using the first way but i'd have to flash CM11 M12.

2) For "necessary" I imagine to check in mounts and storage section, the 3/4 partitions to be mounted or not. In others words, when checked mounts and storage section, what have I to see for being necessary do something? And what to do...

Lanchon, if you want a beer too, please try to understand my English... :)
[Galaxy S II Android Development] Lanchon:
1) you said "never touched /preload". do you have the original 0.5 GB /preload partition or not??

2) in the mounts and storage section you need to mount the partitions that are not mounted, if any. there's really no secret to this, the unmounted partitions give you the option to mount them, thats all.
[Galaxy S II Android Development] Giobio:
1) Yes I have. I only changed the /data and the other one when I used PIT file, and /preload isn't touched by this operation, that's why I answered yes.

2) ok. I asked because your kernel may could have more functions or something of different....

Anyway, both way I will follow, I have to change something on my device....
[Galaxy S II Android Development] Lanchon:
given that you have /preload, then just follow post #2
[Galaxy S II Android Development] promen:
so i should do this

http://xdaforums.com/showpost.php?p=54724523&postcount=2

1 - 13 pkt . and after this flash cyanogenmod and kernel only and viola or im wrong ?

atm im on neatrom lite 4.1.2
[Galaxy S II Android Development] Lanchon:
i dont understand a word.
[Galaxy S II Android Development] promen:
i should follow first how2 in 2nd post

kernel - > wipe - > trimm script - > restore boot from backup

but cant i just flash cyanogenmod after trimm script ? cos i wanna change os for some with best performance with this kernel.

as i said im on neatrom lite [ got many apps installed etc ] so i will format etc when im sure and wanna do all in same time i mean trimm system kernel and [ extra ]

better now ? ; >

im polak , u know ; d
[Galaxy S II Android Development] Lanchon:
if you want to wipe all and switch to CM11 M12, yes, keep my kernel as per post#1. otherwise you can do as per post#2.

there is slimkat and slimsaber that u might want to look at, and many kernels. i really dont know.
[Galaxy S II Android Development] Lanchon:
make sure you install my i9100 music bug fix on CM11 and other kitkat roms.
[Galaxy S II Android Development] promen:
gonna flash walkman anyway, but bugfix will be needed i guess, thanks

btw are you going update nghtls. kernel ? cos rom is 24 . 11 . 2014
[Galaxy S II Android Development] Lanchon:
use my nov 22 kernel, should be ok
[Galaxy S II Android Development] Giobio:
I did it but at point 9 of instructions I got Error formatting /preload:

....Formatting /preload

E: format_volume: make_extf4fs faild on /dev/block/mmcblk0p12 Then I stopped and returned back to gustavo's kernel

I used, as you suggested me, the M12 kernel on my CM11 Linaro/SaberMod. Then I tried nightly 11/22 kernel too but got same error. I forgot turned on ART but I tried without too.

As you already know, my /preload is 0.5GB ( diskinfo shows /system 0.5GB, so /preload too), and I only change partitions width beetween /data and /SD card.

It seems to try to format /preload as a "normal" way, but on CM11 I never got /preload formatted.
[Galaxy S II Android Development] promen:
got same on m12 11 15. ;x
[Galaxy S II Android Development] Giobio:
Did you ever change partitions dimentions or leave the original samsung width?

I ask you because the instructions requerements says:

-you have not repartitioned your device

AND

shrank the /preload partition to enlarge other partitions.

I have repartitioned my device as I said(/data with /SDcard) but not shrank /preload. I think the problem is here but not so sure. Yesterday I asked Lanchon something about that but maybe he didn't see or me, have not understand...

Hoping to being helped
[Galaxy S II Android Development] promen:
NOPE

btw i dont have any kind of access to usb [ port broken ]

but installed trimmer anyway and it worked also sdcards trimmed

but

should i enable this ART ? what does it do ?

and how can i check that is this working [ trim i mean ]

edit

just checked via cwm filemanager that i have NEATROM leftovers in preload ; / how can i fix this ? [ formatting doesnt work [ preload only ]

2nd question , i really have to flash cm kernel back , cant i stay with this trim enabled ? i dont get this finally ; D

w/o usb i cant resize system [ yes ? ]

via terminal i cant fstrim preload only via recovery trimmer but error while formatting and files stayed from prev rom [ removed them alrdy ]
[Galaxy S II Android Development] Giobio:
- So you did not stop instructions after Error formatting /preload....

- Yes you can (post 1 says that) if you are running CM11 M12, as you said. Thanks to remember me about ART. I use it but procedure #2 (others roms and kernels) doesn't say nothing about it so i will turn to dalvik and try again but not sure if it will work....

- Formatting /preload is the problem...Until now, unsolved...

ART was not the problem as imagined....
[Galaxy S II Android Development] promen:
installed kernel again , reboot

and

# on the phone in the terminal app:

su -c "fstrim -v /system; fstrim -v /data; fstrim -v /cache; fstrim -v /preload"

all worked hmm

so we have to wait till s1 will find how to format this shieeeet ;d
[Galaxy S II Android Development] Giobio:
- Before restart device, I flashed the kernel I had. Sorry for the rest I didn't understand and something I don't know...

- Tried with another trimmed kernel but the same answer....
[Galaxy S II Android Development] promen:
gonna try 2 restore prev rom and gonna fix this mby on other recovery [ format ] cos had phil or sth touch funny recovery with many errors ;s

e:

restored from backup philz touch recovery and preload format = done

gonna try now again
[Galaxy S II Android Development] Giobio:
I have formatted /preload using rooted file manager as you told me (in recovery was impossible). Watching AndroBench result, it seem to me worst than before but I don't know how much that app is accurated...

The script to install gives at the end a message it has finished and it fstrims all partitions not only /data, /system and /cache.

/preload folder is always empty and using browser, it seems not to be faster and my thinking is it's not smoother or anyway, I did not find any of better. You wrote down it should be heppen but is it possible I took a mistake doing something?

What do you think on about?
[Galaxy S II Android Development] promen:
im not dev of this but imo PIT should do work for u

not in my case cause i cant use usb ; <
[Galaxy S II Android Development] Giobio:
Wich PIT are you talking to?
[Galaxy S II Android Development] promen:
http://xdaforums.com/showpost.php?p=55157629&postcount=190
[Galaxy S II Android Development] Giobio:
I already changed the PIT file, mounths ago...
[Galaxy S II Android Development] Lanchon:
trim should have taken about 10 seconds or more. if it was instantaneous, then probably trim is disabled in your eMMC chip. nothing you can do, its a samsung thing, some chips are disabled that way. if you read the OP, you'll find that some people see no change.
[Galaxy S II Android Development] promen:
is there any way to check chip infos ?

i know only that i have VYLOOM , phone from tmobile poland [ era ] and i can format preloader from neat rom recovery [philz? ] but i cant under cm

so im in same situation with Giobio but he at least can repartition and he can use usb ;c
[Galaxy S II Android Development] Lanchon:
its easier to just see how long it takes to trim
[Galaxy S II Android Development] promen:
like 7 secs for first end 5 rest
[Galaxy S II Android Development] Lanchon:
then its working fine.
[Galaxy S II Android Development] Giobio:
It took that time in my case and wasn't istantaneous but results are what I shown up.

If I run again emmc check it says I have again insanr chip. What about other people got?

Is anything wrong in my configuration?
[Galaxy S II Android Development] Lanchon:
everything is ok. maybe u didnt need trimming? many people say, no matter what benchmarks say, the phone is more responsive. if not, im sorry it didnt work for you :(
[Galaxy S II Android Development] Giobio:
Thanks, I' ve imagine that... Do u think if I change rom does it will work on in a different way?
[Galaxy S II Android Development] Chillmann:
U will always have this insane chip unless u replace that piece of hardware ^^

In my case, using SlimSaber 4.4.4 + dorimanx kernel, I had the same error trying to format /preload. So I used dori recovery to format /preload before flashing trim kernel. Then followed post #2 using the script method. While executing it, /preload and /cache finished quite quick while /system and /data took a few seconds.

First time I reinstalled dori kernel after the procedure but it obviously places some files into /preload during it's installation. I checked /preload content using esExplorer (root mode).

So 2nd time I restored boot image from backup and now I have only a "lost + found" folder inside it.

Benchmarks before and after indicate some improvement (screens later) but I can't feel it, so I am not sure if the whole trim worked or not.

This is before and 2 days after trimm

I believe, regarding Macro benchmark, lower time is better, so i gave it a green background as well.

Regards, Chillmann
[Galaxy S II Android Development] Giobio:
Thanks for your opinion.

In my case, /preload folder has been always empty after I cleaned it by hand. Anyway, I usually check cleaning of my device and finding out a way to get it cleaner smoother is possible, so trimming in that case, is not so efficient. But this was known...
[Galaxy S II Android Development] Lanchon:
no
[Galaxy S II Android Development] Lanchon:
yes it worked. even if it writes a few files its no problem. the amount of free trimmed space is what counts.

as long as they dont finish instantaneously its ok.
[Galaxy S II Android Development] promen:
oke thx guys for answers and many help

last question , is there any rom for kk with trim support ? to dont lose ur performance ? and a bit oc or uv or sth ; >

if this is offtop dont answer just be happy thad u did awesome work ;d
[Galaxy S II Android Development] Acid0057:
If you keep lanchon kernel installed it will trim every night.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Giobio:
So you used the first way that one with CM11 M12... The only way where you can keep the trimmed kernel....
[Galaxy S II Android Development] Lanchon:
you will be fine with your trimmed /preload. just carry on with whatever rom/kernel you like and forget about this (until you write a substancial amount of data to /preload)
[Galaxy S II Android Development] tcbr10:
can this kernel work on omni lollipop?

i want to try but it can do a brick or not?

(on KK its working for me.)

Thanks!
[Galaxy S II Android Development] chrhei:
May I ask again for a recent version of your kernel for my beloved i9100? THX
[Galaxy S II Android Development] Lanchon:
M13 will be out soon. ill do that. dont flash nightly or ull be downgrading!!
[Galaxy S II Android Development] chrhei:
Thanks, but I never use the M's.
[Galaxy S II Android Development] Lanchon:
you should. the CM part is stable. plus from now on, no new features con CM11, so just go with the M
[Galaxy S II Android Development] Nana Yaw:
Can u give me a download link to trim kernel for m12
[Galaxy S II Android Development] Lanchon:
read the main thread OP
[Galaxy S II Android Development] stylemessiah:
I just tried this on SlimSaber 4.4.4 with DorimanX 10.43 kernel via the post #2 temp TRIM kernel method

You can see my results here.

Spoiler:

No magical fairy dust effect.
[Galaxy S II Android Development] Lanchon:
thanks for taking the time to post. detailed response in you other thread. i should update the OP with that info btw. thanks again!
[Galaxy S II Android Development] stylemessiah:
No worries, it was an interesting thing to try :)

Thanks for your reply in the other topic and the explanation, much appreciated.
[Galaxy S II Android Development] Lanchon:
UPDATE: great news, we have fixed FPBug!!!

TRIM kernels with FPBug fix are online, upgrade and enjoy your stable and fast phones!
[Galaxy S II Android Development] Acid0057:
Awesome lanchon and all the others who tested. Will be upgrading soon

EDIT: on your new trim kernel now with fpbug fix. Dec 18th nightly. Will report back in a few days.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] pilgrim011:
Could you tell me is your kernel with the latest (probably final) fix for fuse bug, the one [MENTION=5948587]zeitferne[/MENTION] made, or with the previous fix by you?
[Galaxy S II Android Development] Lanchon:
all my kernels have my fix, not zei's. when he believes his patchset is stable he will push it upstream i suppose. i see no point in updating my kernels, these are interim till the fix ripples anyway.

so far zei hasnt stated his patches are fully tested afaik, which is no problem since theres no hurry at all. once they are ready i will offer help with getting them in official cm, but i dont see me publishing more unofficial kernels.
[Galaxy S II Android Development] Acid0057:
Follow up question. Is the Dec 18th based kernel okay to bring forward to new nightlies? I'm thinking the answer is yes but just wanted to check lanchon

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Lanchon:
i don't understand the question. i will make the trim kernels with my fix till [MENTION=5948587]zeitferne[/MENTION] oks his; then i'll switch.
[Galaxy S II Android Development] Acid0057:
Sorry could have phrased that better. I ment taking your Dec 18th based trim+fuse bug fix kernel and flashing it with a newer nightly.

But I guess that doesn't matter much if your going to keep updating your kernel till Zei patches get added to the cm kernel.

Do you think your trim additions would get applied to the main cm kernel for 4210 socs?

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Lanchon:
i'm not gonna push for that. besides, we have no definitive evidence of what happens in devices with trim bug with firmwares newer than those of the Nexus 7 2012. no one helped so far, and there are so few. it would be best to solve that before anything else. yet pushing this into cm would be uphill battle. maybe some day [MENTION=591147]Entropy512[/MENTION] reads though all this and decides it's time to do it. historically he opposed to it like hell; if he does goes ahead, everyone will follow.
[Galaxy S II Android Development] Acid0057:
You can understand entropys position having been at the cutting edge of the superbrick bug. Well your trim additions have sure spead up my s2. So I'll keep your kernel with trim running here.

Thanks again for your work on this and the fuse bug. You and others are sure showing our older devices so much Development and love when others have moved on.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Lanchon:
of course i do understand!!! :)
[Galaxy S II Android Development] DarkJohn:
Hi,

Can you make a flashable ZIP for the latest MARKOX's build please ? :D