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

GeeckoDev

Senior Member
Feb 26, 2013
458
3,331
0
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 @stelistcristi 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 @bauner @arter97

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 @bauner
 
Last edited:

abufrejoval

Senior Member
Dec 26, 2010
135
98
0
Frankfurt
Quite acceptable as a daily driver already

@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?
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!
 
  • Like
Reactions: GeeckoDev

FabreFaction

Senior Member
Oct 22, 2009
935
692
0
www.endoftheinternet.com
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
 
  • Like
Reactions: TopOfNewYork

GeeckoDev

Senior Member
Feb 26, 2013
458
3,331
0
@bauner built libskia.so with 2D hardware acceleration. Grab it here.

Flash it using:
Code:
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
 
Last edited:

bauner

Retired Recognized Developer
Jan 23, 2008
4,726
10,330
263
Near Nürnberg
@bauner built libskia.so with 2D hardware acceleration. Grab it here.

Flash it using:
Code:
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
it crashes the phone if I try to play an video
 
  • Like
Reactions: sulkie and XxPixX

GeeckoDev

Senior Member
Feb 26, 2013
458
3,331
0
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. :)
 
Last edited:

radier

Senior Member
Dec 1, 2009
355
111
73
g4g.pl
@GeeckoDev

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,
 

MJ1005

Member
Nov 4, 2014
9
1
0
Good job ^^

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, or right now if you have never trimmed before.


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 @GeeckoDev 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
 
Last edited:

carabao72

Senior Member
Feb 26, 2012
197
29
0
Europe, Wallonie
www.salmigondis.be
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.