[KERNEL][AOSP/TW][27 Dec] War Kernel r3 // colder than ever

honf

Senior Member
Dec 4, 2011
215
55
0
@GeeckoDev, sorry if im a bother, but is it possible that you enable a few kernel modules when you compile so OTG USB cameras can be used on the Note?

Some help on what to enable here in the kernel configuration:
http://forum.xda-developers.com/showthread.php?t=2656922

I tried looking for the LP kernel source so I could try and build the kernel myself, but I can't seem to find it?
Based on the 4.4 branch on Github, seems only the

CONFIG_USB_VIDEO_CLASS

propery needs to set to yes, all others mentioned in the linked thread are already activated.
 

rajk53

Senior Member
Jun 2, 2014
99
7
0
I just installed R8 with the CM12, Feels a bit more smoother :laugh:

Are there any more tweaks to make the ROM look a bit more smooth like for example,
using force gpu render ,etc from the developer tools.... Will that work ?:confused:
What else can we do ?!
 

GeeckoDev

Senior Member
Feb 26, 2013
458
3,331
0
Successful TRIM is successful! Thanks to @Lanchon, I have reenabled MMC_CAP_ERASE on Raw TW and fstrim works properly. This kernel already includes the official Samsung fix for brickbug, so all I had to do was to remove two comments.

Just to be sure (and safe), I added a kernel panic call before the secure erase is triggered, which should NEVER happen on our devices because that's what causes the brickbug. In practise, this is never triggered because of Samsung's fix. Basic erase command on the other hand is 100% safe. The recovery never triggers it, but it seems Touchwiz does it when booting.

After manually trimming, It seems the occasional lags I had with Touchwiz are gone. Needs more testing, but AndroBench results have improved! :good:

If you feel adventurous, flash this zImage (only for Touchwiz) using ODIN/heimdall and test it for yourself. This is the kernel I'm running right now on my main phone. I don't take any responsability if your device breaks, but that shouldn't happen. :D

Edit: basic howto
- flash the kernel, reboot
- install the LagFix app from here
- trim /system, /data and /cache, then reboot.
- for better results use 'adb shell' and launch 'fstrim -v /system; fstrim -v /data; fstrim -v /cache; fstrim -v /preload' as well.

Edit: commit introducing the change here. it's small because Samsung's MMC_QUIRK_MOVINAND_SECURE fix is already included in the stock JB kernel.
 
Last edited:

KalZakath

Senior Member
Jan 31, 2012
649
325
0
32
BRZEG
Successful TRIM is successful! Thanks to @Lanchon, I have reenabled MMC_CAP_ERASE on Raw TW and fstrim works properly. This kernel already includes the official Samsung fix for brickbug, so all I had to do was to remove two comments.

Just to be sure (and safe), I added kernel panic call when the secure erase is triggered, which should NEVER happen on our devices because we don't want to brick them. This is never triggered. Basic discard on the other hand is safe. The recovery never triggers it, but it seems Touchwiz does it when booting.

It seems the occasional lags I had with Touchwiz are gone. Needs more testing, but AndroBench results have improved! :good:

If you feel adventurous, flash this zImage using ODIN/heimdall and test it for yourself. This is the kernel I'm running right now on my main phone. I don't take any responsability if your device breaks, but that shouldn't happen. :D

Edit: basic howto
- flash the kernel, reboot
- install the LagFix app from here
- trim /system, /data and /cache
- for better results use 'adb shell' and launch 'fstrim -v /preload' as well.
Is there version for cm12?

Sent from my GT-N7000 using XDA Free mobile app
 

Copkiller2010

Senior Member
Apr 2, 2011
176
48
0
Münster
Sorry geeckodev. My english is really Bad so i dont understand correctly. I tested from a realy long time ago with an APP from playstore and i have this brickbug. Yes i have. Now i am not realy shure. Is it save the new TW Trim kernel With this tested bug or not.

Gesendet von meinem GT-N7000 mit Tapatalk
 

GeeckoDev

Senior Member
Feb 26, 2013
458
3,331
0
Sorry geeckodev. My english is really Bad so i dont understand correctly. I tested from a realy long time ago with an APP from playstore and i have this brickbug. Yes i have. Now i am not realy shure. Is it save the new TW Trim kernel With this tested bug or not.

Gesendet von meinem GT-N7000 mit Tapatalk
Should be safe on every Note, even if you have one affected by the bug. My phone has a faulty chip too, but the unsafe command (read: secure erase) is still completely disabled in this kernel. Only the erase command is allowed, enabling TRIM and keeping it safe. Previous kernels disabled erase and secure erase commands completely but it was a mistake. ;)
 

Copkiller2010

Senior Member
Apr 2, 2011
176
48
0
Münster
Really big THX Now Unterstand ! :). Maybe Possible for you to edit the r7 alpha for lollipop with this trim ? Cause i am still use the r7 Kernel with the older Rom. Cm12b2 ROM not so stable for me.

Gesendet von meinem GT-N7000 mit Tapatalk
 
Last edited:

BarelyPosting

Member
Dec 11, 2014
26
10
0
I think I'll wait for the official TW release (with TRIM). I really have no idea nor experience about TRIM. I know what it's for, but, I don't know the step by step tutorial. I read Lanchon's guide, but I wasn't able to comprehend it. I don't want to take the risk. A little favor though, when the official kernel is released, can you include a step by step instructions for newbies (or a new user of TRIM like me)? Thanks and more power to your development @GeeckoDev. :)
 

Macrint

Senior Member
Jul 27, 2012
176
90
0
I don't think so. Flashable zip here (if you're not sure, don't flash it. i warned you. works fine here though.)
Does it have working recovery? Could you post md5 as well? Kind regards

Edit: @GeeckoDev SUCCESS! I couldn't wait, got too eager. Flashed from forest v200 extreme kernel, tkari latest tw rom with clearing cache and dalvik.

Recovery seems to be working. Trim is working.

Will let it settle to evaluate performance.

Once again: Great work!
 
Last edited:
  • Like
Reactions: GeeckoDev

GeeckoDev

Senior Member
Feb 26, 2013
458
3,331
0
Hi libcg, for some reason when people mention you I get a notification email. Very annoying.
I think you should disable email notifications in your settings, and ask a mod. I considered changing my nickname to libcg on XDA but it will cause a lot of problems for me, sorry!
 
  • Like
Reactions: sulkie

GeeckoDev

Senior Member
Feb 26, 2013
458
3,331
0
Does it have working recovery? Could you post md5 as well? Kind regards

Edit: @GeeckoDev SUCCESS! I couldn't wait, got too eager. Flashed from forest v200 extreme kernel, tkari latest tw rom with clearing cache and dalvik.

Recovery seems to be working. Trim is working.

Will let it settle to evaluate performance.

Once again: Great work!
Ok, so it's been successful @Macrint, @CyanMod-X and me!

I tested my NAND with the eMMC Check app available on the Play Store, and it passed even though I trimmed a few times already.

(btw, clearing cache/dalvik is useless when flashing a kernel and it will slow down your device for a while. don't do it)
 

sulkie

Senior Member
Aug 16, 2011
162
32
0
Ok, so it's been successful @Macrint, @CyanMod-X and me!

I tested my NAND with the eMMC Check app available on the Play Store, and it passed even though I trimmed a few times already.

(btw, clearing cache/dalvik is useless when flashing a kernel and it will slow down your device for a while. don't do it)
Flashed and trimmed successfully. Recovery works as well.
You are making it very hard for me to justify the purchase of a new phone. Thanks a lot, jerk!