yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] DroidNforcer:
[emoji1] you are probably right since I do it like 10 times a day since a couple of months cose my usb port is broken so I have to restart frequently to change bateries.

Every restart all the partitions are trimable again, Including the EFS one (by this I mean that the fstrim output is different than 0) unless you do a soft/quick reboot. So I asume that every boot every partition is modified/written, which sound a bit rare to me if some are read only. Maybe the mount/unmount operation?

But on LP, the /data partition is trimable every few seconds, not on kk. This reminds me of the trim implementation of stilescristi` wich was incorrect this way that every time you run fstrim the results were diff from 0.

I wonder if all of this is normal?

My trim commands:

su -c "fsck_msdos -p -y /dev/block/vold/179:8; fsck_msdos -p -y /dev/block/vold/259:3; fstrim -v /system; fstrim -v /data; fstrim -v /cache; fstrim -v /preload; fstrim -v /efs"

This I put on the inicial command option on the Terminal emu app. The File check commands doesn`t work since I formatted internal and external as extFat. And also tried to trim alone without the fscheck commands with same results.

[MENTION=5811506]gsstudios[/MENTION] [MENTION=4141005]Lanchon[/MENTION]

Enviado desde mi GT-I9100 mediante Tapatalk
[Galaxy S II Android Development] .Heisenberg.:
Hello, until now I used the version NOT TRIM of the kernel because my cell is affected by EMMC brickbug, but reading these pages I arose a doubt, i can use the version TRIM although I have a buggy chip? or I messed up?

My situation is as follows:
[Galaxy S II Android Development] kai1313:
You can try to use TRIM

My phone is VYLOOM too and im using TRIM

Sent from my GT-I9100
[Galaxy S II Android Development] Saber:
After changing the kernel toolchain on this kernel for a while now, I have come to a conclusion to use UBER 4.8 toolchain in all future builds. Linaro 4.9 (gcc 4.9.4 in particular) seems less battery efficient than older versions, and my own personal tests have shown so too. I believe with UBER 4.8, we can get the best possible experience in terms of battery life and overall smoothness. The idea is that new isn't always better and this has always been the case in any kind of development.

gsstudios.
[Galaxy S II Android Development] haris1976:
would u make dorimanx for Slim LP ROM ? [MENTION=5811506]gsstudios[/MENTION]
[Galaxy S II Android Development] Jgjd691995:
So im trying to get my s2 to to work after i s******d it royally by battery over volting, to see the progress and it being sooooooooooo alive is seriously amazing, gsstudios dude you are amazing.
[Galaxy S II Android Development] Dr AM:
That would be great , but he said that he is busy right now
[Galaxy S II Android Development] Troubadour666:
some dualboot tests

Hi,

i have try some dualboot and all roms that have capacities to dualboot, dualbooted.

now, i kept slimlp as 1rst rom with its own kernel, and dedicated 2nd rom space to carbon from [MENTION=3816568]Myself5[/MENTION] .

To run Carbon as 2nd rom now, i flash Kernel_Dorimanx-V10.44-LP-SGII-PWR-CORE_-[08-01]-[26-06]-LP-SGII-PWR-CORE (i dont remember the builder :( )

when i want to come back to slimlp, as dayly rom for example, i flash a little ZIP i have made from SlimLP (essentialy boot.img with modify updater-script and i add twisted_font i have found somewhere on SlimSaber S4 thread if i remember).

Resurection Remix have been working as 2nd rom too with the dorimanx release i mentioned. The b009 and b002 from [MENTION=5811506]gsstudios[/MENTION] worked the 2nd rom too.

sure, we all wait a dorimanx release to run SlimpLP too :)

i ask myself if we can trim the 2nd rom, keeping 1rst rom SlimLP non-trim with its own kernel ?

thanks .
[Galaxy S II Android Development] aminya:
Vpn problem

I'm now on b009 &

I have vpn problem. & it's because kernel. Because i tested the pisphon app with offical cm12.1 nightlies kernel & the vpn conected & worked. & now with dorimanx. It doesnt work.
[MENTION=5811506]gsstudios[/MENTION]
[Galaxy S II Android Development] Saber:
I'll add that to the not working list.
[Galaxy S II Android Development] kal4metal:
It seems even on beta 9 the kernel makes the phone too laggy and renders it unusable for daily driver. I'm on official Cyanogenmod 12.1. I've seen many other users reporting the same problem. My guess is that v11 is very buggy, but you know better. Congrats on your work though, I hope it gets fixed in the future so I can use it and be happy :)
[Galaxy S II Android Development] Saber:
It's probably because the ramdisk has not been updated for a while now (last time it was updated was from last unofficial builds).

Anyway, build b010 is out. Only change is that I've switched to UBER 4.8 toolchain.

gsstudios.
[Galaxy S II Android Development] kal4metal:
Thanks for replying! Are there any plans of updating ramdisk?
[Galaxy S II Android Development] aminya:
thanks for hardworking :)

will you try to fix vpn? i think its because firewall settings or maybe wifi
[Galaxy S II Android Development] j1gga84:
[MENTION=5811506]gsstudios[/MENTION]

I know Dirty Unicorns ROM has a built in kernel with TRIM support but do you plan to add DU ROM to your list of supported ROMs?

regards
[Galaxy S II Android Development] wdevil12:
[MENTION=5811506]gsstudios[/MENTION] Bro I was testing my theme and needed to get logs, So I installed and opened Catlog. Unfortunately, this is what I saw.

E/auditd : Failed on audit_set_pid with error: Protocol not supported

This error pops up in every 2 seconds in logs. Before searching from web I immediately tested stock kernel with the latest cm nightly, No its not there. So, I googled and found out that the problem was kernel related. btw, it happened on betas 9 and 10.

Its not that big deal but could improve something. Maybe the problem is because that ramdisk thing is outdated, Im not a dev tho.
[Galaxy S II Android Development] Troubadour666:
Dualboot.

[MENTION=5811506]gsstudios[/MENTION] , i tryied some 2nd rom, that booted fine , tesla, carbon, RR and surely no infinitiveOS and its seems that sd int card is mount mounted while 2nd rom is runing :( , about build 10.

thanks.
[Galaxy S II Android Development] Obinsama:
Doriman'X Issue

Hi first i want to thanks all the crew for the amazing work so i have an issue with Doriman Kernel i can't flash it after GApps i think it's a root problem because when i flash CM12.1 and flash Doriman'X directly it work if i flash GApps before i have FC then if i flash Doriman'X first i can't Flash GApps i have status 7 error while flashing if somebody can help .my phone SG2 I9100 CM12.1
[Galaxy S II Android Development] Noctis Lucis Caelum:
Didn't know it worked on Tesla, just tried and all is good.

Thank you for the heads up, and great work [MENTION=5811506]gsstudios[/MENTION]
[Galaxy S II Android Development] kulitom:
i have the same issue, but on Resurrection Remix v5.5.4

Is there any solution?

Ps: kernel is v11 beta 10 TRIM
[Galaxy S II Android Development] aminya:
1. Go to recovery

2. Wipe cache

3. Flash cm12.1 nightly (zip updates you have downloaded via browser)

4.Flash gapps ( if gapps is sgined & is compatible with cm12.1 rrcovery & if your system is repartitioned ; if not just choose picko gapps)

5. Reboot

6. Go to recovery

7. Wipe cache

8.Flash kernel

9. Power down

10.go to recovery

11. Wipe cache & dalvik cache

12.reboot

(When ever you asked about root problem fix choose no)

Another way if you want to flash big gapps zips that are not compatible with cm12.1 revovery:

1. Go to recovery

2.wipe cache

3. Flash cm12.1

4.rebootreboot & go to recovery

5.wipe cache

6.flash kernel

7.reboot & go to recovery

8. Wipe cache & dalvik cache

9. Flash cm12.1

10.flash gapps

11.reboot & go to revovery

12. Wipe cache

13. Flash kernel

14. Power down & go to recovery

15. Wipe cache & dalvik cache

16. Reboot

If you asked about root porblem choose no
[Galaxy S II Android Development] DualJoe:
Some WhatsApp messages come too late here when in deepsleep. They get received maybe 1-2h too late on the device. It kills 2G/3G connection or something.

Any solution? Is there anything in stweaks to improve that?

Kernel b010

CM12.1 20150829
[Galaxy S II Android Development] kulitom:
don't work
[Galaxy S II Android Development] the.gangster:
Have you already tried to wipe system-partition before flashing CM12.1?
[Galaxy S II Android Development] kulitom:
Yes i always format system partition before flashing rom
[Galaxy S II Android Development] the.gangster:
For me it sounds like a space problem.

Are you still on stock system partition size?

What GApps are you flashing?
[Galaxy S II Android Development] GreekDragon:
Im on resurrection remix on last beta dorimanx build. if i set zRAM to 300MB i have no FCs or random reboot for 2 days, lets see how keeps going.
[Galaxy S II Android Development] kulitom:
it's not memory size problem. Gapps pico for me working perfect with stock CM12.1 and RR kernel and works all good with older rom and older kernel version. I even try uninstall some unnecessary system apps before flashing kernel.
[Galaxy S II Android Development] Fr4nz83:
Hi guys,

I tried to install the latest version of the kernel - through TWRP kernel - on top of my latest official nightly CM 12.1 for SGII, but I had no success. Here's the post where I describe the outcome: http://xdaforums.com/showpost.php?p=62644704&postcount=1593

Any suggestion? Perhaps the reason is because of the fact that both the internal and external SDs are ext4 formatted? As a sidenote I never formatted the sdcards to be ext4, I always left the installers to do their own work.
[Galaxy S II Android Development] aminya:
low storage space because trim

Can any body tell how can i untrim? My storage space is low beacuse i use trimming. Can i un trim & have my space back?
[Galaxy S II Android Development] the.gangster:
[MENTION=6808863]Fr4nz83[/MENTION]

Thanks for bringing this question to the right thread now.

While waiting for an answer you could meanwhile search this thread for 'ext4' ...

Amongst the results don't miss to read

#4 (q&a) and especially #248.
[Galaxy S II Android Development] :
Low storage space has nothing to do with trim
[Galaxy S II Android Development] aminya:
Are you sure? I some times have 800 mb free & when i trim it becomes 300. [MENTION=6418283]noppy22[/MENTION]
[Galaxy S II Android Development] :
You run a trim command and lose 500mb of space?? That's really strange. Basically trim is an erase command that helps with write/read speeds by preparing previously used space ready for writing and also helps prolong the life of the drive by reducing wear(running out of writable blocks). Maybe our resident trim expert [MENTION=4141005]Lanchon[/MENTION] could address your original question, but I can't see how trimming could do that
[Galaxy S II Android Development] aminya:
Maybe it's becausd sth else that i haven't find out. I use big gapps size. my system has 1Gb & 4Gb data. Do gapps couse this? I have disabled the auto update also. [MENTION=6418283]noppy22[/MENTION]
[Galaxy S II Android Development] Saber:
How's the battery life going guys? Is it better with UBER 4.8 or was it better when we were on linaro 4.8?

Also, I've added a little guide on what build I found the most battery friendly and etc.

gsstudios.
[Galaxy S II Android Development] Noctis Lucis Caelum:
The battery life is much better, I have not OC or UC and the overnight drain is around 2 or 3% stock settings even the drain when the phone is used is pretty good.

Also no overheating or slow down, I had my phone running for 4 straight days without any slow down or hanging but I had to upgrade my rom to the latest release so needed to turn it off, either way I am very happy no complaints from me.
[Galaxy S II Android Development] haris1976:
[MENTION=5811506]gsstudios[/MENTION] whether the UV effect on battery consumption ?

i am sorry for basic question
[Galaxy S II Android Development] Noctis Lucis Caelum:
Yeah, you were too slow.
[Galaxy S II Android Development] DaveKing:
[MENTION=5811506]gsstudios[/MENTION] just to say that the WIFI works very well with your LP version. Really don't know why doesn't work in KK... Drivers? Well finally I can try your/dorimanX work! :D Thanks! In the meantime I will test it, and then will give a review of kernel in my RR full instalation.

Cheers!
[Galaxy S II Android Development] GreekDragon:
In KK depends which gapps did you flash... i already this problem and im flashed 4 gapps and finally i found the open gapps it works completely.
[Galaxy S II Android Development] Lysergic Acid:
Can someone send me a Omni/Slim ramdisk? I'll mess with Dori again tomorrow probably, then I can update the ramdisk to support more AOSP ROMs, then my ramdisk can be kanged here again.
[Galaxy S II Android Development] Nightshadow931:
It doesn't work on latest RR. I cleaned cache/dalvik and flashed ur kernel, and it won't even boot. It's stuck on Samsung Galaxy SII screen. Won't go to recovery either. I had to flash stock from odin.
[Galaxy S II Android Development] DaveKing:
It isn't true. It works flawless in RR rom. I have in my S2, with a lot of apps, and the trim version is the great difference between a good kernel and an excelent kernel. It's the best kernel in years! And for LP. The best is that it's in beta/testing stage. When it comes final then it will boost totally this phone with the excelent Rom that it is LP. Aside the bugs, that in time will be clean, we can't cry for not having support for our belloved phone. Thanks for all the support! My S2 is GREAT! :D almost bugless.

Cheers.:good:

+100000 for this kernel :D
[Galaxy S II Android Development] Nightshadow931:
Really ?

Then I must be doing something wrong.. Although I did try twice..
[Galaxy S II Android Development] Saber:
I need more reports if the kernel works on RR lp. So far, I'm seeing 50/50 success rate.
[Galaxy S II Android Development] ssanjy:
Just booted in my RR 5.4.6 with your build....Things seems to be all right....will be testing the tweaks and other issues if any....Just a question on trim.....Will trimming my partitions wipe my data or anythings as such.. :confused::confused:
[Galaxy S II Android Development] Saber:
No it won't wipe your data. Just remember that I am not responsible for any problems that occurs after using trim.

Thanks for your report.

Update: OP updated to show what ROMs currently work with the kernel.
[Galaxy S II Android Development] Malhavoc Blackdrake:
Given that responsability is ours, which is the suggested way to TRIM? Using LagFix app?
[Galaxy S II Android Development] ssanjy:
Thanks...we know that any damages will be our responsibility.....Just to add another question...Will NOT using the trim command have any affect on functionality of trim.......I just want to know that in a trim supported kenel if I don't use trim command then its performance will be equivalent to non trim kernel.... :o

Info: Enabling mDNIE sharpness leads to bootloop.... Other I'm testing....
[Galaxy S II Android Development] Saber:
You can use the terminal method if you want as shown in lanchon's guide (i believe, if not, i'm sure there are guides), lagfix will also do the same job. Lagfix is what I usually recommend as it works and it is easy to use. If you don't have lagfix app, you can get it from my kk kernel thread or from lanchon's thread.
[Galaxy S II Android Development] Saber:
If you don't use trim on a trim-enabled kernel, the performance should be about the same as the non-trim kernel.
[Galaxy S II Android Development] otti17:
Candy5 v2.5.5 is running fine with DorimanX 11.0 b001 - TRIM kernel. non trimmed partitions. No FC's or something. I'm affected by the superbrick bug (VYL00M, fwrev 0x19) but as I read the kernel contain samsung's fix for this bug and there is also this "many people affected by this bug are already using my kernels without incidents. i personally believe this configuration to be safe." Should I or should I not trim? :)
[Galaxy S II Android Development] Zile995:
One SOD here on lock screen. L.A build is stable. I did full wipe.
[Galaxy S II Android Development] buddy1234567:
Looking forward to trying this on slimLP when available!
[Galaxy S II Android Development] kai1313:
i did success flashing this kernel but stweaks didnt appear on my menu
[Galaxy S II Android Development] Noctis Lucis Caelum:
You can download it from the Play Store.
[Galaxy S II Android Development] kai1313:
i get stweaks from the PS and all features shown like the 11st pages

But now "unexpected error" message always shown when i open the stweaks
[Galaxy S II Android Development] wdevil12:
Mate, would you update it (and its ramdisk) anytime soon? because the last one is almost outdated with new nightlies/Markox89 builds. Please.

Edit: So sorry. I've just read about "DorimanX 13.0 (Beta)". btw, take a look at my previous post about some log that catlog showing in every seconds.
[Galaxy S II Android Development] Saber:
I have no plans to update the kernel anytime soon. I will have a look when I have time.
[Galaxy S II Android Development] wdevil12:
Thanks for the reply.
[Galaxy S II Android Development] Saber:
You mean undervolt? It won't affect the battery consumption much in normal or heavy usage. In typical terms, lower voltage means lower heat generation. So the only real benefit is cooler CPU temperatures. But this can bring instability if you do this too much. IMO, underclocking will bring more battery savings than undervolting, but this makes your phone work harder and so more heat is produced.

gsstudios.
[Galaxy S II Android Development] Saber:
I've been away from development for a while now. So I decided to make a build that removes pretty much all unnecessary commits such as the custom profiles and more tweaks to GPU. Overall, the kernel should be much more stable. This might be the last build ever (this time for real) before I have my exams (in 1 month time). Thanks guys for your support!!!! :)

gsstudios.

Update: Build b011 is out!
[Galaxy S II Android Development] CHEF-KOCH:
internal and external sdcard problem

I've a question, I've installed the Resurection Remix ROM and the kernel (latest dori beta) and it seems to working fine. Previously I've used the philz kernel to increase the partition size + formatted the internal (micro-sd) to ext4 after flashing the .pit file. After that I've decided to format the internal and external sdcard too, directly under Windows since windows couldn't detect it without the necessary to format it (I choosed for internal 4K and external16k). So everything fine, the OS booted up, Windows can detect the sdcard's (MTP/mass store) and everything feels smooth.

So the problem I have is that apps like Titanium Backup and Solid Explorer crashed now, I realized that this is due that they couldn't detect sdcard and external sdcard. Now the strange part is that sometimes they can detect it and sometimes not. So how is that possible? Should I just format the sdcard internal/external again or what? I doubt that change something to solve this problem. Maybe you know something about it @gsstudios.

Edit:

I've also tried to format everything as vfat (default) but still the same, Solid Explorer and such tools won't recognize (or only after some hours) the sdcard's.
[Galaxy S II Android Development] iistoryahi:
what version is best for battery life and most stable ? , I'm runnning Resurrection Remix
[Galaxy S II Android Development] Noctis Lucis Caelum:
Mixed bag on Resurrection Remix, some people have issues, some don't.

So you just have to try, especially the latest betas, the ones compiled with Uber TC.

Personally I am on beta 10 and getting very good results.
[Galaxy S II Android Development] iistoryahi:
I download beta 7 , i read on OP about the best battery build. I'm gonna feedback later about the stability of my phone :)
[Galaxy S II Android Development] j1gga84:
[MENTION=5811506]gsstudios[/MENTION]

Will you start working on DorimanX for LP again? :fingers-crossed:

regards
[Galaxy S II Android Development] Saber:
Right now, there are issues with the build I'm testing. I should hopefully be back to lollipop after my exams, and I will try to update ramdisk myself.
[Galaxy S II Android Development] Dr AM:
And hope you'll manage to support ext4 too :)

Sent from GT-I9100 - 5.1.1
[Galaxy S II Android Development] Saber:
Thanks, right now I'm focusing on bringing all the changes from kk branch to lp. After that, I'm going to (hopefully) update the ramdisk without issues, then ext4 is the next thing to tackle. I don't know if BLN can be restored as of yet as I haven't bother messing around with them yet.

regards, gsstudios
[Galaxy S II Android Development] Zentori:
Would love to see BLN support in CM12.1. Meanwhile, good luck with your exams! :highfive:
[Galaxy S II Android Development] j1gga84:
Thanks for you continuous work on our old but gold S2 :)

Concerning changes, could you have a look at this kernel:

http://xdaforums.com/showpost.php?p=63291088&postcount=1299

is there anything you could probably implement in LP Dorimanx? :)

regards
[Galaxy S II Android Development] Saber:
This should sum it up.

Added LZ4 Compression for zram <-- Already implemented

Enabled zcache <-- not sure :)

Enabled WiFi MAC changing <-- not sure :)

Added BFQ I/O Governor <-- Already implemented

Added Lulzactiveq CPU Governor <-- Can not be implemented due to kernel version too high

Added Westwood TCP Congestion Protocol <-- Already implemented

Fixed a typo in mm/ashmem by Samsung <-- Not concerning our kernel

Futex fixes <-- Not concerning our kernel

Added latest TWRP ramdisk <-- Not concerning our kernel

regards, gsstudios
[Galaxy S II Android Development] ultravy:
Maybe F2Fs file system too! I saw some reports that is verry fast over ext4. new version of TWRP has option to format in f2fs but i dont know if is supported by our lp kernel yet!
[Galaxy S II Android Development] arnab:
Plz check again coz afaik lz4 is only implemented and enabled...not configured for ramdisk or zram...I might be wrong.
[Galaxy S II Android Development] Saber:
It was implemented sometime during late 8.XX release of dorimanx kernel and was used in ramdisk around the same time too.

regards, gsstudios
[Galaxy S II Android Development] Saber:
Guys, how has the latest build faired against the latest builds of cyanogenmod? Are there issues with lags and freezes? Right now I'm in the middle of updating the CM ramdisk to the latest version. It should provide support for the latest builds.

regards, gsstudios

Here is an updated list of the things for the kernel (still in testing). This list will be used in the OP once the build is released

What is not working:

- Still ipv6 is not working

- Still sharpness tweaks not working

- BLN

What is working:

- Everything is working :) except things mentioned above

Benefits over b011:

- Faster and smoother experience

- All changes from KK branch

Update: DorimanX 11.0 b012 has been released. Have a look at my announcement post.
[Galaxy S II Android Development] heshan_1010:
Thing have been smooth so far and have had only one freeze for the past week.
[Galaxy S II Android Development] wdevil12:
Finally b12! [MENTION=5811506]gsstudios[/MENTION] is this one with zram enabled by default?
[Galaxy S II Android Development] Saber:
I'll see what I can do. I thought since ram management is set to aggressive, we wouldn't need to. At least we can enable/disable zram whenever with this kernel.
[Galaxy S II Android Development] Saber:
DorimanX 11.0 b012 has been released. It has been for a while since I last released a build.

Anyway, I have made many changes to the kernel, including updates to ramdisk, changed uber toolchain 4.8 to 4.9 and updated to latest update, lots of zzmoove fixes and more.

Enjoy the new builds, gsstudios ;)
[Galaxy S II Android Development] _Atom_:
Thanks a lot.. I will.report soon after some hours of runtime
[Galaxy S II Android Development] stefano91av:
Thanks a lot for work :)

Anyone can list all the settings step by step with Stweak for performance / battery saver with OC in CPU and GPU ?
[Galaxy S II Android Development] Noctis Lucis Caelum:
Why don't you just enable it in Stweak...
[Galaxy S II Android Development] stefano91av:
What do you mean?