yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Nice progress. What you describe is somehow what happens when we try to run new Insignal's HWC without the new kernel. I think it's caused by fences timing out, or failed s3cfb ioctls, because this kernel driver on 4210 devices is not meant to run with this HWC.

4x12 HWC and 4210 HWC are different as the first one uses fences for compositing, and the second one doesn't, among other things. So s3cfb must be built as if it was a 4412 device. Take a look in the kernel: drivers/video/samsung/s3cfb_main.c and drivers/video/samsung/s3cfb_ops.c. You will see a lot of #ifdefs that compile different code paths for 4210 and 4x12.

For example, here, s3cfb_map_video_memory() does nothing on 4x12 (probably done in userspace). Another example, here the S3CFB_WIN_CONFIG ioctl is entirely disabled on 4210. I think it's required for this HWC.

Can you send me a zip archive containing all the libraries you flashed? I'll see what I can do for the kernel, unless you wanna do it. Thanks a bunch :)
[Galaxy Note GT-N7000 Android Development] snow:
Sure! Archive is attached! :D
[Galaxy Note GT-N7000 Android Development] smokeyrider:
R4 working OK for me. no boot animation but kernel runs smooth with very little lag. Just my opinion. Thanks for your hard work.

---------- Post added at 03:47 PM ---------- Previous post was at 03:46 PM ----------

Meant r4TW.
[Galaxy Note GT-N7000 Android Development] 7esain:
is there any good roms i can instal that use ad supports this kernal?
[Galaxy Note GT-N7000 Android Development] BarelyPosting:
I tried the r7 4.4 on SlimSaber 4.4, and it was a wow. Fast, fluid and stable for me. Question, is it possible to have an increase frequency of GPU? I mean, the 160-267 is already fast, well for UI and other stuff, but it's not that sufficient for HD graphics games. Been dying to try it for quite some time now (4.4's updated mali drivers + 400mhz gpu). :p
[Galaxy Note GT-N7000 Android Development] AhmadOkda:
excuse me but does the r7 for KitKat include the FPBug fix or only the r4 for TW based roms ?
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Announcing Raw Kernel r8

Changes over r7 :

* FPBug patchset applied to improve overall stability and fix sdcard bug. [MENTION=4141005]Lanchon[/MENTION] [MENTION=5948587]zeitferne[/MENTION]

* gralloc is not included anymore.

Download :

* raw_kernel_r8_omni44.zip for Omni 4.4

* raw_kernel_r8_cm12b2.zip for CM12 beta 2 (beta 1)

Once I get some spare time I'll work on Nameless HWC and Insignal merge. ;)
[Galaxy Note GT-N7000 Android Development] abufrejoval:
Could you please do a TRIM enabled variant?

Cher Clément!

I know it's been asked for before...

Perhaps Lanchon and you could get together to allay your fears?

He seems quite sure to have fixed the problem...

http://xdaforums.com/galaxy-note/development/kernel-trim-speed-cyanogenmod-galaxy-t2875730

While TRIM automation has only been introduced with Android 4.3, it's been available quite a while longer via 'fstrim' on the busybox command line and I've used it for years now on a huge variety of devices right back to Ice Cream Sandwich.

And it has turned out a life saver for devices with really slow eMMC, that have seen lots of update on constrained storage (e.g. my Notion Ink Adam or my Nexus 7-2012).

My N7000 also has the affected eMMC, but luckily never got hurt by a careless kernel.

My fear is that without TRIM support in the kernel, not even a full wipe will actually ever tell the flash chips, that it's allright to assume some blocks as empty, causing unnecessary write amplification even on storage that is logically completely empty. You need spare area allocation in excess of 30% to survive that in the long run according to my tests on SSDs.

And since with LP even TW will(/should?) include TRIM mechanics, it's perhaps even more useful to revisit the topic: Don't you agree?

Cordialment, Thomas
[Galaxy Note GT-N7000 Android Development] bladecgn:
Instaled R8 Omni on SlimSaber: Scrolling sometimes a little chopy, SlimSaber original kernel is better in this regard. Maybe a new gralloc would improve the situation.

I agree, trim capability would be nice.
[Galaxy Note GT-N7000 Android Development] I_android:
[MENTION=5145944]GeeckoDev[/MENTION]

Could you please build another version for lp beta2 ....r8 won't work on beta2 as per bauner's suggestion.

Thanks in advance.
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
:eek: :eek: :eek: okay

Edit: done, see post above
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
I'm considering it. I thought TRIM wouldn't work at all on brickbug affected devices but it doesn't seem to be the case, so that's definitely interesting!
[Galaxy Note GT-N7000 Android Development] honf:
[MENTION=5145944]GeeckoDev[/MENTION], 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://xdaforums.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.
[Galaxy Note GT-N7000 Android Development] Malcanthet:
Maybe I'm missing something, but shouldn't there be a 'Performance' tab in Settings>System on CM12beta2?
[Galaxy Note GT-N7000 Android Development] FabreFaction:
That's a Rom feature, you'll have to ask bauner.

I use Rom Toolbox Pro for my kernel tweaking.
[Galaxy Note GT-N7000 Android Development] rajk53:
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 ?!
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Successful TRIM is successful! Thanks to [MENTION=4141005]Lanchon[/MENTION], 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.
[Galaxy Note GT-N7000 Android Development] KalZakath:
Is there version for cm12?
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
not yet.
[Galaxy Note GT-N7000 Android Development] Copkiller2010:
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
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
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. ;)
[Galaxy Note GT-N7000 Android Development] Copkiller2010:
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
[Galaxy Note GT-N7000 Android Development] Macrint:
Oh my god you are amazing! Can't wait for r5 for touchwiz to test this out!
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Well, I need some people to test it before the r5 release. The test kernel also includes full FPBug patchset and GPU undervolting.
[Galaxy Note GT-N7000 Android Development] Macrint:
This kernel is worthy of a ROM reflash so I'm willing to risk it. I'll flash it tomorrow morning. Should mobile Odin work?
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
I don't think so. Flashable zip here (works fine here and for at least three more people!)
[Galaxy Note GT-N7000 Android Development] BarelyPosting:
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 [MENTION=5145944]GeeckoDev[/MENTION]. :)
[Galaxy Note GT-N7000 Android Development] Macrint:
Does it have working recovery? Could you post md5 as well? Kind regards

Edit: [MENTION=5145944]GeeckoDev[/MENTION] 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!
[Galaxy Note GT-N7000 Android Development] geecko:
Hi libcg, for some reason when people mention you I get a notification email. Very annoying.
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
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!
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Ok, so it's been successful [MENTION=4763740]Macrint[/MENTION], [MENTION=6209412]CyanMod-X[/MENTION] 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)
[Galaxy Note GT-N7000 Android Development] sulkie:
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!
[Galaxy Note GT-N7000 Android Development] zeu55:
flashed trim version and trimmed. working perfectly.. revovery working
[Galaxy Note GT-N7000 Android Development] User_99:
Is test kernel based on r4tw, or? So if I use r1tw (becouse of Stock Gallery bug) I cannot test it, or?

Btw, is Recovery fixed in this version?
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
It's a pre-r5 with fixed recovery, full FPBug patchset, GPU undervolting and TRIM.
[Galaxy Note GT-N7000 Android Development] User_99:
You need some blobs for thatnew kernel?
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Blobs are in the flashable zip.
[Galaxy Note GT-N7000 Android Development] philip_rhoades:
[MENTION=5145944]GeeckoDev[/MENTION],

Is it possible to install this kernel over the top of AryaModV8_XXLTC.zip ? - which is almost a N7000 stock ROM.

Thanks,

Phil.
[Galaxy Note GT-N7000 Android Development] User_99:
Yes!
[Galaxy Note GT-N7000 Android Development] abufrejoval:
I'm volunteering!

I'm happy to volunteer!

I'm currently running Forest-LP-Kernel v2 (TRIM variant) with Beta3 and have successfully trim'ed all my ext4 partitions.

Forgot to benchmark before and after and now there shouldn't be any further speedups, just far less performance loss until the eMMC runs out of erase cycles.

Forest includes CPU overclock, but my initial Vellamo Metal and MultiCore benchmark results were actually lower than those with bauner's built-in kernel.

Also, I believe your panel overclock did indeed make the device smoother so I'd currently favor your kernel, once it's feature complete, especially since I prefer to have TWRM on all of my devices.
[Galaxy Note GT-N7000 Android Development] diogo_de_sousa:
Hi, I have never flashed a kernel on my n7000, so I really don't know how to do it right. I am currently running bauner's BETA3. Can I flash this kernel now? Will it work with my rom?

Thanks to anyone who can answer me.
[Galaxy Note GT-N7000 Android Development] NoteboyTech:
Working raw test trim kernel like a charm... good work [MENTION=5145944]GeeckoDev[/MENTION]. Like always so happy to test
[Galaxy Note GT-N7000 Android Development] rajk53:
Yess ! Install it After the Beta 3.

I'm currently using it :D
[Galaxy Note GT-N7000 Android Development] smokeyrider:
I have flashed raw4tw trim. I had no problems, used trim no problems. Kernel works well. Thanks
[Galaxy Note GT-N7000 Android Development] diogo_de_sousa:
Thanks, I will try it now. I've been waiting for a really good kernel to try for the first time, and this one seems to be it. I will report my experience when I'm done...
[Galaxy Note GT-N7000 Android Development] sulkie:
Hey geeckodev, are you still planning on releasing R8 for cm11? Would like to test drive that cutie.
[Galaxy Note GT-N7000 Android Development] rajk53:
Also, for the Nightowl's Beta 3
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Yep, really soon.

As far as I know the latest release of Raw Kernel works with this ROM.
[Galaxy Note GT-N7000 Android Development] dreamer4o:
Yes it works perfect, but I think it is without trim support? Do you plan to cook one?

Thanks for the awesome kernels!
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
It works? [MENTION=799465]bauner[/MENTION] should update his OP then.

I'm doing it right now ;)
[Galaxy Note GT-N7000 Android Development] bauner:
@GeeckoDev in my beta3 the init's have changed to support low power mode and offline charging animation.

Or had you changed the init's in your kernel for the beta2 bevore I did it?
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Ok, I didn't know about that. This will be fixed in the next release. Cheers! :)
[Galaxy Note GT-N7000 Android Development] isquite:
hi all!

will r8 kernel work with the latest cm11 nightly?

Thanks!
[Galaxy Note GT-N7000 Android Development] User_99:
As written in OP only for OMNI Roms 11 ...
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
I've been trying to make Nameless HWC work on the Note. It's unsuccessful so far because of an hidden dependency on fimg2d4x (that's why [MENTION=3055339]stelistcristi[/MENTION] was getting "runCompositor:stretch failed" errors, and in my case, I get an earlier initialization error). I tried to build the fimg2d4x driver in the kernel to replace fimg2d3x. This newer version is meant to run only on 4x12 devices, but I tried anyway. It compiles fine, and loads fine. Unfortunately the driver is complaining about "invalid params" passed in the ioctl by libfimg.so, so that's where I am.

Then I remembered that fimg2d was used by Skia, the graphics library used by Android, to do hardware acceleration. But... it seems hw acceleration has been removed when rebasing Skia to a newer version for KitKat! It's done by the GPU instead, so that's a performance penalty. fimg2d is currently entirely unused. It would be great if someone could restore 2D HW acceleration :fingers-crossed:

It's still unknown if fimg2d4x can effectively run on Exynos 4210. To do that:

- enable fimg2d4x in the kernel

- build libfimg.so for 4x (there are two different versions in android_hardware_samsung)

- build Skia with SkFimgApi4x and try to run it.

In the generic G2D driver in the mainline kernel supporting both 3x and 4x, the changes seem minimal. 1, 2

Edit: summoning [MENTION=799465]bauner[/MENTION] [MENTION=4898097]arter97[/MENTION]

Edit: ok, I did it myself but it's untested. the three old commits were easy to cherry-pick, only a few conflicts. https://github.com/libcg/android_external_skia [MENTION=799465]bauner[/MENTION]
[Galaxy Note GT-N7000 Android Development] abufrejoval:
Quite acceptable as a daily driver already

While you two strive for perfection, I'd just like to mention that even with these restrictions the combination of bauner's ROM and Geekodev's kernel is quite wonderful, very stable and quite easy on the battery, at least in relative terms. The 45nm Exynos dual can't hold a candle to these Snapdragons 800s of course, but this combo turns my old backup phone into something quite acceptable as a daily driver next to my Note 3 (also on LP).

It's never been anywhere near this good!

Thank you guys, for making that happen!
[Galaxy Note GT-N7000 Android Development] FabreFaction:
Super Happy and Groovy

Happily running DU8.2 with your latest OMNI Kernel and all is well.

Having recently repartitioned the App Volume for 8Gb, I am happily running an untold number of apps without any problems.

Thanks for the awesomeness......................... FabreFaction :)

ROM: KitKat 4.4.4 Team D.I.R.T Dirty Unicorns V8.2 20141104-1817 UNOFFICIAL TEST BUILD

KERNEL: Raw Kernel r8+ for Omni 4.4

GAPPS OFFICIAL Up-to-Date PA-GOOGLE APPS + gapps-config.txt

Radio: N7000XXLT3

Partitioning: 8Gb DATA Application Partition with PreLoad
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Raw Kernel r9 and r5/TW are coming soon, once I get some time with my exams.

I spent the last two days working on my phone but I should have worked my lessons instead. :p
[Galaxy Note GT-N7000 Android Development] User_99:
Good luck!
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
[MENTION=799465]bauner[/MENTION] built libskia.so with 2D hardware acceleration. Grab it here.

Flash it using:

adb root
adb remount
adb push libskia.so /system/lib
adb reboot

It seems to break the Play Store app on my phone. Please report. :)

Edit: doesn't seem to work at all and Play Store doesn't launch because Google Play Services are missing on my phone :P
[Galaxy Note GT-N7000 Android Development] bauner:
it crashes the phone if I try to play an video
[Galaxy Note GT-N7000 Android Development] dev_freak:
Good Luck, dude!
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Announcing Raw Kernel r9

#JeSuisCharlie edition

Changes over r8 :

* MMC_CAP_ERASE is disabled, so we can TRIM our device for better I/O performance. The official brickbug patch is merged since at least two years, it's safe.

* -50mV GPU undervolting for group B+ devices

* Compatible with CM12 beta 4

* Added a CM11 variant (a long last!)

Download :

* raw_kernel_r9_omni.zip for Omni 4.4

* raw_kernel_r9_cm12.zip for CM12 beta 4

* raw_kernel_r9_cm11.zip for CM11

Let's talk a bit about TRIM. You should do it once on /system after flashing a ROM, /data and /cache will be trimmed by Android itself. /preload is an unused partition on AOSP, you should wipe it and trim it once and for all. To make the process a lot easier, I created this flashable zip run_fstrim.zip that will trim /system, /cache, /data and /preload from the recovery. I recommend using it just after flashing a ROM (and a TRIM-enabled kernel, of course...), or right now if you have never trimmed before. :)
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
I only had one exam yesterday during the events, I was a bit hesitant about going out. It went fine. Today, I didn't go out at all and watched Twitter all day. It's crazy and scary, but I'm proud of how we sorted that out. :good:
[Galaxy Note GT-N7000 Android Development] radier:
[MENTION=5145944]GeeckoDev[/MENTION]

I have just flashed NightOwl BETA 4.

Also I have I have performed sdcard0 format from CWM.

Can I now flash yours kernel?

If so can I run this run_fstrim.zip even If I have Insane chip?

BR,
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Yep and Yup.
[Galaxy Note GT-N7000 Android Development] radier:
Done both. Still alive.

CPU Governor changed with yours kernel to pegasusq. Leave it that way?
[Galaxy Note GT-N7000 Android Development] MJ1005:
Good job ^^

Tried R9 omni on slimsaber rom and phone is doing great. I even tried the flashable zip for trim i actually don't know if there are any difference on the phone. (sorry if I can't be of any help for that :D ) btw [MENTION=5145944]GeeckoDev[/MENTION] I noticed something but it's not that big, do you remember back on your R7 build there was a post regarding microstutter I'm having that issue. I read back on your post before that you actually asked to push the gralloc for slimsaber will that be the same reason why there's that small lag? :confused: but everything is good it's actually not a big problem. :p will do some testing for the next days to check if there would be any major problems. Again good job and thank you for the hard work! :good::D
[Galaxy Note GT-N7000 Android Development] carabao72:
Hello,

I have just installed, your kernel ( r9 ) on her(it) cm12 beta4 with no problem at all, thank you very much for your work. I have just noticed that the animation of load battery does not work when note is switched off. I do not know if it comes from the kernel or from the Rom, but normally this problem was solved on beta 3, I tilt rather to a problem at the level of the kernel.

What do you think about it? Thank you

bonjour, Je viens d'installer, ton kernel (r9) sur la cm12 beta4 sans problème, merci beaucoup pour ton travail. Je viens de remarquer que l'animation de charge batterie ne fonctionne pas lorsque le note est éteint. Je ne sais pas si cela vient du kernel ou de la rom , mais normalement ce problème a été résolu sur la beta 3 , je penche plutôt vers un problème au niveau du kernel.
[Galaxy Note GT-N7000 Android Development] dev_freak:
[MENTION=5145944]GeeckoDev[/MENTION] awesome, only no custom recovery installable. I love the battery endurance of this kernel.
[Galaxy Note GT-N7000 Android Development] gleb_grid:
[MENTION=5145944]GeeckoDev[/MENTION] , I afraid yet use TRIM, is it FULL safety for my note?
[Galaxy Note GT-N7000 Android Development] bladecgn:
Same here.. slight microstutter with slimsaber (that is not there when using slimsabers built in kernel), otherwise perfect, thank you!!
[Galaxy Note GT-N7000 Android Development] kazuna69:
[MENTION=5145944]GeeckoDev[/MENTION],

sorry, :o

would it be possible to make a r9 version for slimkat/slimsaber ? :o

sorry if it too much to ask for, :(

I really appreciate your effort :o :highfive: :victory:
[Galaxy Note GT-N7000 Android Development] f0xy:
[MENTION=5145944]GeeckoDev[/MENTION] do you have any plans with the i9300 pal?

Sorry for offtopic N7000 users x
[Galaxy Note GT-N7000 Android Development] 7esain:
does r9 works on NightOwl BETA3 ??
[Galaxy Note GT-N7000 Android Development] GeeckoDev:
Yes. I've got 400 downloads and zero complaints.

I'll look into that. Maybe the slimsaber kernel performs better because of many compiler optimizations I shoud take a look at.

I believe that the Omni flavor works with slimsaber.

I'm not sure what you're talking about? HWC?

I guess not, you should upgrade to beta4.
[Galaxy Note GT-N7000 Android Development] kazuna69:
Thanks! :victory:

Will try it soon!~ :silly:

edit: tested, getting bootloop, reinstall default kernel/recovery :(
[Galaxy Note GT-N7000 Android Development] dev_freak:
[MENTION=5145944]GeeckoDev[/MENTION] what can I use fstrim for? Can I use it on another kernel too?