yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] mparus:
radio - LS9

another log

root@GT-I9100:/system/lib/modules # modinfo dhd.ko

filename: dhd.ko

license: GPL v2

alias: sdio:c00v*d*

alias: sdio:c*v02D0d4324*

alias: sdio:c*v02D0d4330*

alias: sdio:c*v02D0d4329*

alias: sdio:c*v02D0d0492*

depends:

vermagic: 3.0.64-CM-g89e6992 SMP preempt mod_unload ARMv7 p2v8

parm: clockoverride:SDIO card clock override

parm: dhd_oob_gpio_num:DHD oob gpio number

root@GT-I9100:/system/lib/modules # uname -a

Linux localhost 3.0.64-CM-g89e6992-dirty #1 SMP PREEMPT Thu Aug 7 16:24:01 ART 2014 armv7l GNU/Linux

modules kernel version - 3.0.64-CM-g89e6992

installed trim kernel version - 3.0.64-CM-g89e6992-dirty

Modules is not compiled with trim kernel version?

From dmesg

<3>[ 2003.805316] c1 dhd: version magic '3.0.64-CM-g89e6992 SMP preempt mod_unload ARMv7 p2v8 ' should be '3.0.64-CM-g89e6992-dirty SMP preempt mod_unload ARMv7 p2v8 '

Google suggests - maybe disable CONFIG_MODVERSIONS in the loadable module support section or Module.symvers is not being created?

ps. my device - eMMC chip type VYL00M, FwRev: 0x19 :) ART working with trim kernel.
[Galaxy S II Android Development] empulse92:
kinda popular chip :fingers-crossed:

ext4 doesn't work on cm11 (tested it)

but ART is working fine here on newest nightly (just to let you know it seemed like a rom problem ;) )
[Galaxy S II Android Development] nerubian:
Tried the kernel and lagfix app without problems in Slimsaber 4.4.4 latest version. But wifi and wifi AP does not work. So i dirty flashed the rom again to return stock rom kernel. Could you make a version to overcome this bug? Or maybe you can publish a trim patch to patch the different kernels to provide trim support.

Besides, how often do i need to trim these three partitions? I am asking because of the wifi bug i can't continually use your kernel.

SM-T210 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy S II Android Development] ajislav:
Thanks, that worked like a charm. Now it's 17s only.
[Galaxy S II Android Development] daniu:
Hi,

do I need to worry: it takes around 5Seconds for me (with tasker - even added a counter now) - 2700MB data, 380MB system, 18MB preload, 90MB cache - installation is less than a week old however ...

BTW: how to trim sdcard? Is there a way?

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] ajislav:
No need to worry with 5s.

I would only trim sdcard if it has ext4 filesystem on it. Just use the fstrim command from the terminal with the correct path
[Galaxy S II Android Development] Naudiz:
If you formatted your sdcard with ext4, yes there is. The command is fstrim -v /mnt/media_rw/sdcard0 for internal storage. For external storage change the 0 to 1, otherwise same command.

If your SD card(s) are not ext4 however, you can't trim. There are plenty of good guides here on xda how to format to ext4,just make sure you read them carefully and understand every step before starting, and you should be fine.
[Galaxy S II Android Development] daniu:
Hi,

don't want to start this discussion here, but there are probably more recommendations not to format sdcards to ext4 than explanations how to do it ... honestly: so far I did not go into details here - so I don't know why people recommend not to do it but iirc Lanchon was one of the people who recommended not to do it ... I trust Lanchon more than my own knowledge concerning this topic. seems to be wrong ... see first post of this thread - sorry ... BTW: found the answer to my question there too - double sorry!

regards
[Galaxy S II Android Development] Lanchon:
thanks! i recommend you DO NOT format you sdcards in ext4, too many problems. for maximum performance, repartition so that /data has at least 2GB free space all the time and that is it. 6GB /data is a good number.
[Galaxy S II Android Development] Lanchon:
yes, you are right, i don't recommend ext4 in the internal sdcard. in the OP i might mention the possibility but that is hardly a recommendation.
[Galaxy S II Android Development] Naudiz:
Well, don't want to start discussion here either, but if you could throw me a link to any of those explanations, why not to do it, that would be nice. I never stumbled upon any of them.

Been using ext4 for 2+ years now and never had any issues. Can't say the same about vfat or exfat.
[Galaxy S II Android Development] makix13:
If you don't mind I will give you my experience.

Move from stock JB to first unofficial LA's cyanogenmod 5.1.1.

My current setup since them

And no problem at all, no problems when our s2 suffer freeze, no problem with apps, trimm works great (Lanchon or hero [emoji6] ), upgrade from unofficial to official without pain, windows see my sdcard0...

Only share my experience with all of you, and give thousand of thanks to the different developers that makes S2 still rocks[emoji2]

Kind regards

S2 Cyanogenmod 5.1.1 [official nightly] - Lanchon's kernel isorec - arnab isorec twrp - Xposed [official framework] - Viper4Android
[Galaxy S II Android Development] fabiodelaplazia:
Upgrade to trim is dangerous or not?
[Galaxy S II Android Development] Lanchon:
in all of XDA, please don't post unless you have read the OP first
[Galaxy S II Android Development] chrisXL:
[MENTION=4141005]Lanchon[/MENTION]

is the trim patch already merged into CM stock kernel?
[Galaxy S II Android Development] Lanchon:
follow the link and you'll see the status!!!

no, it looks like LA doesn't dare to merge.
[Galaxy S II Android Development] Naudiz:
:(

Why is it that even today TRIM has still the reputation to be awfully dangerous?

It must be painful to see your hard work getting rejected like that, especially since other devices with the same emmc have already merged it into CM's code.
[Galaxy S II Android Development] Thindboy:
I want to flash this Kernel. I don't need IsoRec because TWRP is what i want so i do have a few Questions:

So, First i flash CM 12.1 Snapshot as usual and THEN i flash this kernel?

Is the FPBug Fix included in this Kernel? (so it's TRIM + TWRP + Freezefix + FPBug fix?)

What Filesystem in TWRP should i use to format the internal SDCard? (as ext4 is not recommended)

Regards
[Galaxy S II Android Development] the.gangster:
Why don't you read or search before posting? It's all already posted in the threads you recently wrote to.

And you'll hardly find a recent kernel without fpbugfix...
[Galaxy S II Android Development] Lanchon:
yes, thank you!

this is obsolete. if you want trim get my newest kernel (isorec).
[Galaxy S II Android Development] daniu:
Yeah ... just also asked myself this question. What is the difference between those other devices and our s2?

Is there any real danger for the s2 which is not there 4 other devices? Or is that just lysergic acids freedom or responsibility?

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] tango38317:
HI,

sorry for noob question, but isn´t it possible to create a trim cm12 patch with an enable/disable parameter - default disabled and add an developer option to enable trim (or something else)?
[Galaxy S II Android Development] Lanchon:
good question. if it was possible i would have done it ages ago. but this is very tricky if possible at all. in particular, i dont know whether the kernel (filesystems etc) can tolerate a driver that changes its mind about its ability to trim after the driver initialized, and what bugs would that trigger. or if the driver would ever be asked about it again at all once it says no. and take note, this driver initializes right when the kernel boots; accessing the emmc is one of the first thing the kernel needs to do.

and to complicate matters more: let's say i implement some kind of setting stored somewhere. maybe a specific complex signature that might be stored, say, in the last sector of the kernel partition. so you write this special sector there and the kernel boots up with trim. nice, but... how would the kernel read this sector BEFORE initializing the emmc driver itself??? :)

the right place for this would be a kernel command line option of course. you pass the option when starting the kernel. the problem is, for all i know, the bootloader sends the command line and we can't change it. so that info has to be injected into the kernel itself, and this is where we are now.
[Galaxy S II Android Development] laserkater:
Quick question: Is it common that trimming almost always returns similar data amounts?

Trimming data always returns 1,6/1,7 GB of trimmed data, trimming cache always around 86 MB, system always around 37 MB.

Thanks!
[Galaxy S II Android Development] :
Trimming works on free space, so yes it will give you similar results unless you install more apps etc
[Galaxy S II Android Development] laserkater:
Thanks for the quick reply! So it's not to be seen as a measurement of how "efficient" the trimming was, right? If I execute the command two times in a row, there is probably no further improvement, but it still displays the aforementioned values.
[Galaxy S II Android Development] Acid0057:
Yep that's right.
[Galaxy S II Android Development] laserkater:
Is there a metric to show how efficient the trimming was, though?
[Galaxy S II Android Development] Acid0057:
Yes check the original post where you can do some testing to see if there was an improvement.
[Galaxy S II Android Development] Dragoon Aethis:
[MENTION=4141005]Lanchon[/MENTION]: CM12.1 nightlies are now over - would you consider doing one final build with TRIM and all the goodies CM didn't merge for 12.1, if you have some free time? Thanks!
[Galaxy S II Android Development] Lanchon:
hi,

i don't have time. anyway what goodies? i never add anything that is not merged.

i will have to take a look sometime at the changelog and decide if one last set of new kernels are needed
[Galaxy S II Android Development] Dragoon Aethis:
Well, basically just TRIM at this point, just that the matching kernel + ROM pair is preferred for easy distribution/installation in case of screwed up /data. If you don't have time, I'll make a build then, no problem.
[Galaxy S II Android Development] Lanchon:
i will, just not this week
[Galaxy S II Android Development] mexis0x:
Hello

I'm using cm-12.1-20151116-SNAPSHOT, which file should I Download?

Thanks
[Galaxy S II Android Development] BenjyTec:
I used TWRP + TRIM + Freezefix kernel, because as far as I know, Freezefix is only included in the newer Nightlies. I'm also on Snapshot.
[Galaxy S II Android Development] AnSnarkista:
I have installed your kernel (kernel-Lanchon-TRIM-IsoRec-20160111-cm-12.1-i9100.zip), but when I look into Settings, it says that I'm using 3.06.64-CM-gc96e5eb-dirtyrod@rod-latitude #1.

Is it Ok, or I am missing something? I've read the OP 2 or 3 times, and I can't find nothing about this issue.

PD: Just as an observation to get things clearer, whenever you write in the OP "UPDATE", I don't know if it's older and newer than the previous or viceversa. Adding a date could be a good solution :)
[Galaxy S II Android Development] Lanchon:
UPDATE: new CM 12.1 kernels are up... and CM 13.0 kernels too !!!

unfortunately still no fix for PegasusQ, so refrain from using that governor.

WARNING: the CM 13.0 kernels are completely untested. please report.

thanks for testing, guys!

enjoy!
[Galaxy S II Android Development] Skyline:
[MENTION=4141005]Lanchon[/MENTION]

Thanks again for the trim kernel for cm13 just flash on latest nightly:good:

Trimmed the /data,/cache and /system more than 4-5 times but it's showing the same result(amount of space that is trimmed). Is it okay?? Because I never seen this behavior on cm12.1
[Galaxy S II Android Development] xdroidfreakz:
tested on aicp mm
[Galaxy S II Android Development] daniu:
That is normal and totally OK

However: (it is most likely me fault since nobody else complains): I really appreciate your work a lot Lanchon but whenever you publish something new it gives me headache to find where it is. This time again - how to find the cm13 kernel?

Found it - here: https://www.androidfilehost.com/?fid=24407100847293133 (i777)

https://www.androidfilehost.com/?fid=24407100847293134 (i9100)

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] tdguchi:
fuf... cm13 and my eMMC check says insane chip (VYL00M 0X19) im wondering if i should try.... or not.....

[MENTION=4141005]Lanchon[/MENTION] what do you think?
[Galaxy S II Android Development] Draky50110:
Noob question: I'm on CM13+IsoRec-TWRP, do I just need to flash this IsoRecTrim ?

On next flash for next CM13 nightly, will I have to flash it again ?

In which order (CM/Gapps/IsoRec-TWRP/IsoRec-TRIM) ?

Thanks :)
[Galaxy S II Android Development] makix13:
Sorry, it's a question for Lanchon I know but..... Did you read the OP? if yes and you are asking this... Or you didn't understand anything ,in this case forget trim, or you didn't believe Lanchon and his efforts (fpbug solved don't read it).[emoji17] in this case forget trim too

S2 Cyanogenmod 5.1.1 [official nightly] - Lanchon's kernel isorec - arnab isorec twrp - Xposed [official framework] - Viper4Android
[Galaxy S II Android Development] kal4metal:
I have a question. In the CM13 nightlies changelog I can see changes marked as "android_kernel_samsung_smdk4412". Does that mean that by flashing your trim kernel we won't get these changes?
[Galaxy S II Android Development] tdguchi:
simply, english is not my mother tongue, i have read all OP, and having read all work of lanchon, i dont have any reason to dont believe him, but at risk of bricking my phone caused in misreading, I prefer to ask to get an explanation using other words...
[Galaxy S II Android Development] makix13:
Same in my case, (tongue and insane chip) but I read a lot, and I believe Lanchon's work (who will spend his time to fix fpbug and publish in Xda to kill other devices ) . So I flash his kernel and trim once a week more or less, and I'm happy with it.

What I wanna say it's no necessary you ask again Lanchon , his answer it's in the OP. Don't wanna be rude but it's a fact.

Regards

S2 Cyanogenmod 5.1.1 [official nightly] - Lanchon's kernel isorec - arnab isorec twrp - Xposed [official framework] - Viper4Android
[Galaxy S II Android Development] Acid0057:
Yes just need to flash this IsoRec plus trim kernel. Every time you want to update the CM 13 nightly you'll need to manually flash in recovery. Flash the new nightly first then this kernel.
[Galaxy S II Android Development] tdguchi:
I have called a friend who knows english more than me (im from spain) and i will try it, im making an andro benchmark, to get results more than "it feels better" xD if all goes as it should... i will make another after trim... and compare results

thanks for your time
[Galaxy S II Android Development] rogers11:
I9100 with CM13 trimmed and running fine.

Thanks a lot.

Do I have to care about the PegasusQ governor? Is it set as default and needs to be changed?

Edit: Just checked. Ondemand/CFQ are set on my device. So nothing to do.
[Galaxy S II Android Development] Draky50110:
And which governor do you recommand then ?

On Demand ?

Which app to change it ? Kernel Adiutor ?
[Galaxy S II Android Development] tdguchi:
[MENTION=1106045]makix13[/MENTION] All installed flashed and trimmed.... it boots... so im waiting now for the androbenchmark to know if there is any diference i will post here the screenshots when finished
[Galaxy S II Android Development] makix13:
Glad to hear that, all the credits to Lanchon, LA and developers in Xda , long live to them[emoji6]

S2 Cyanogenmod 5.1.1 [official nightly] - Lanchon's kernel isorec - arnab isorec twrp - Xposed [official framework] - Viper4Android
[Galaxy S II Android Development] tdguchi:
Well... how to say that... xD

Before trim:

After trim:

Better.... Worst ...equal....

I think that it not worked because two or three days ago I repitted my phone, formatting all sdcard etc... so as said in the OP... you could get no diference..... but im happy not to brick the phone xD

thanks !
[Galaxy S II Android Development] Draky50110:
k, will try it.

VYLOOM 0x19 but seems that does not affect trim.
[Galaxy S II Android Development] cherryb8844:
Its really hard to find download link of latest trim kernel in op [MENTION=4141005]Lanchon[/MENTION] can you please enlarge the text size for download link ? I tried link but they're older kernel's 20160111
[Galaxy S II Android Development] chrisXL:
See post #1017 (second link for i9100).
[Galaxy S II Android Development] Lanchon:
androbench is not very accurate i think. yes it did work, random write rate doubled. that should have a noticeable impact in lag
[Galaxy S II Android Development] CHEF-KOCH:
Hm, now we got seperat CM 13 Kernels with Trim but I not understand the necessary of it, because with ext4 fresh installation 3C ToolBox already reports with stock kernel that is trimmed and I think I remember something that all of this was merged in CM 12.1/13 so why is this thread still open? Not that I'm not thankful for this but I'm unsure and it confused maybe people because we already got trim with stock.
[Galaxy S II Android Development] karrlito:
Trim is not merged into CM. Only IsoRec. Don't trust 3C ToolBox. Install Trimmer and start it to see that it's not doing anything. Only showing OK but it's not showing mb trimmed.

Thank you [MENTION=4141005]Lanchon[/MENTION] i already installed new trim kernel for CM 13 and it's working great.

I hope they will fix the strange names for storage. If someone wants to trim internal storage, if it's formatted to ext4 the command is:

fstrim -v /mnt/media_rw/57f8f4bc-abf4-655f-bf67-946fc0f9f25b

The output must be something like that: /mnt/media_rw/57f8f4bc-abf4-655f-bf67-946fc0f9f25b: 9980133376 bytes trimmed

If it's not showing trimmed space, it's doing nothing.

*This is the name of my storage. CM13 don't have busybox from what i see so i installed busybox pro v34 and the terminal on PC started to work so i made the trim command from there.
[Galaxy S II Android Development] daniu:
Hi Lanchon,

In cm12.1 I used to trim with tasker. Running a shell command with root rights - "fstrim -v /data" . Now I get an error:

sh: <stdin>[2]: fstrim: not found

With trimmer it works and I checked the root rights of tasker

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] Lanchon:
i dont use tasker, i dont use CM13, i don't know what comes in CM13 and what doesn't, and i hear that CM13's root has problems for now.

if it says fstrim is not in the path then it's not in the path, what can i say!

fstrim is usually part of busybox, so you can do:

busybox fstrim -v /path

or install busybox

or create proper busybox symlinks

what i can tell you is that Trimmer bundles it's own fstrim binary for sure (probably just busybox)
[Galaxy S II Android Development] matee89:
[MENTION=1601710]daniu[/MENTION]

In CM 13, busybox got replaced with toybox. You could try it out using your shell command. Unfortunately, I cannot try it myself at this moment.

Source: http://www.landley.net/toybox/about.html
[Galaxy S II Android Development] alienflorina:
Hello, quick question. How often have you configured trimer to do its job? I mean it has an option to trim twice a day. Is this safer? Also do we have to reboot after trim for changes to take effect.

Thanks
[Galaxy S II Android Development] Traace:
Hi, its working great on my VYL00M Fw:0x19 Date: 06/2011 :)

Thanks Bro, i guess i will keep this i9100. Still a great device and much love
[Galaxy S II Android Development] jojobg:
As per this: http://xdaforums.com/showpost.php?p=55197596&postcount=247 autotrim is on each 24 hours if you charge your phone. Why would you like to have it twice ?
[Galaxy S II Android Development] PanTuNieStal:
Just wondering.. could trim be included in kernel but disabled by default? Would that help to get it into mainline cm13 kernel?
[Galaxy S II Android Development] Lanchon:
this has been discussed already here.
[Galaxy S II Android Development] matee89:
[MENTION=4141005]Lanchon[/MENTION]: Are you going to release newer TRIM-enabled kernels for recent CM13 nightlies in the future?
[Galaxy S II Android Development] laserkater:
Already happened, look here: https://www.androidfilehost.com/?w=files&flid=47607

(via: http://xdaforums.com/galaxy-s2/orig-development/isorec-isolated-recovery-galaxy-s2-t3291176)
[Galaxy S II Android Development] fireburner-de:
So just for clearing things up, for me.

Does CM13 trim automatically? I read everywhere that it does.

But can it do this without installing busybox?

Is there an alternate command in toybox to manually trim, in case it doesn't?

So basically I would like to know, if CM13 does trim automatically, when no busybox is installed.

And if no one found out so far, how could I check, if it trims?

edit: I have Lanchons trim kernel installed.
[Galaxy S II Android Development] daniu:
Hi

I understand it like this:

*generally cm13 can only trim with an enabled kernel

*with trim enabled kernel it trims from time to time automatically - no idea with which command - if with any I'd also like to know

*to trim manually you can use fstrimmer which uses its own binary - I tried that: it works

No idea how to trim with toybox manually - would love to low as well

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] fireburner-de:
I forgot to mention, that i flashed trim kernel.

So my question above refers to CM13+trim kernel.
[Galaxy S II Android Development] Lanchon:
it should trim. and when it does it should be in the logs. google android maintenance window trim and investigate.

otherwise just use the Trimmer app.

i still recommend that you trim /system once after you switch roms.

extra points if you could trim it once after each rom version flash.
[Galaxy S II Android Development] fireburner-de:
Didn't get the part with the log. Which log ?(logcat kmsg)
[Galaxy S II Android Development] j_hindocha:
I have MinimalOS V3.0 with TWRP recovery and I flashed the TRIM zip and when I reboot it its stuck in the boot animation.. Waited 20 mins but still stuck there. Removed the battery and went to recovery and the recovery has changed to CWM recovery.. Had the Zip's in my SD card so installed them and back to normal.. Tried flashing it and same happens, stuck in boot animation, recovery changes to CWM from twrp
[Galaxy S II Android Development] j_hindocha:
Sorry had not read the instructions :v
[Galaxy S II Android Development] gadiyari:
I've got an impression that GPS works worse with Lanchon's TRIM enabled kernels as compared to the stock CM11 and CM12 kernels: the fix time is much longer and the number of the satellites is lower. Is it possible at all? Can there be a rational reason for it?
[Galaxy S II Android Development] makix13:
In my case, latest CM 12.1 nightly & latest Lanchon's trim enable kernel and works great.

Perhaps tunning gps.conf?

Regards

S2 Cyanogenmod 5.1.1 [official nightly] - Lanchon's kernel isorec - arnab isorec twrp - Xposed [official framework] - Viper4Android
[Galaxy S II Android Development] thearczoro:
Well, my phone is bricked. :( I was try to Trim only (/data and /cache) 3 days okay without problem then at night my phone suddenly restarting bootloop (Boot Animation) till battery drop. Try to clean flash and it still stuck on BA. Is any chance to un-bricked my phone? :confused:
[Galaxy S II Android Development] Lanchon:
it is not possible. my kernel is exactly the same as stock (from the day i built it) except TRIM.

i make a point of not touching anything else. when something else has to change, i make a gerrit change on CM itself.
[Galaxy S II Android Development] Lanchon:
http://xdaforums.com/showpost.php?p=44059897

EDIT: this too...

http://xdaforums.com/showpost.php?p=55192952&postcount=244
[Galaxy S II Android Development] ssanjy:
If you can enter recovery mode then you can try doing clean flash of ROM...Else try using OD to flash factory firmware....Search for solutions in other threads and google...Good Luck....

End of OT