[KERNEL][CM-based] Pimped Kernel (Light/Full)[Includes Many Great Features][14/10/12]

OmarEinea

Inactive Recognized Developer
Aug 18, 2012
2,028
6,314
0
25
Sharjah, UAE


THIS KERNEL IS ONLY FOR AOSP/CM BASED ROMS
(= NOT COMPATIBLE WITH SONY FIRMWARES)


All the kernel features are controllable through Androguide.fr's Pimp My Z1 app, (thread here).​

Features
  • Sound Control: Faux123's GPL Sound Control 3
  • Color Calibration Control: LCD_KCAL interface ported to the Z1 by @DooMLoRD, gives full control over the RGB channels of the display
  • GPU OC: 200MHz / 320MHz / 389MHz / 487.5MHz / 533MHz / 600MHz frequency scaling steps
  • CPU OC: up to 2.26GHz
  • CPU Voltage Control: use TricksterMod for the moment
  • Intelliplug: Faux123's latest intelliplug hotplugging driver with eco mode (v5.0)
  • MPDecision: showp1984's open-source & customizable msm_mpdecision hotplugging driver
  • Dynamic Fsync: Faux123's Dynamic File Sync v1.5
  • PowerSuspend: Faux123's power_suspend driver (replacing early_suspend)
  • Snake Charmer: Faux123's msm_cpufreq_limit CPU frequency limiter driver
  • Fast Charge: Faux123's fast_charge driver, allowing to set the amperage of the charger or USB port your device is plugged-in to
  • CPU Boost: Faux123's CPU Input Boost module (will soon add controls for it in Pimp My Z1)
  • GPU Wake-on-touch: allows touch events to wake the GPU if it was previously in slumber
  • KSM: Kernel Same-page Merging enabled
  • F2FS Support: Samsung's F2FS nand-optimized file system support
  • exFAT Support: Samsung's open-source exFAT driver
  • zRam Support: support for zRam memory compression
  • CPUPower: Linaro's cpupower PM driver
  • Async Fsync: Asynchronous file sync
  • MSM_Sleeper: Support for setting the max CPU frequency when screen is off through sysfs
  • Kernel mode NEON: NEON-accelerated XOR framework & support for NEON instructions in kernel mode
  • Overall Stats: CPU overall stats on a per-core basis
  • Compression: XZ Compressed & LZ4 compression algorithm support
  • Sched MC: Multi-Core Power Savings support
  • Sched SMT: Multi-Thread Power Savings support
  • Arch_Power: arch-specific power sched features enabled
  • Workqueue: backported from kernel 3.7, allows CPU hotplug to keep idle workers (learn more)
  • Toolchain: Built with Linaro GCC 4.9.2 toolchain from 14.04 release
  • Optimizations: Built with -O2 and many optimization flags
  • Kexec-hardboot ?: attempted to port @Tassadar's kexec-hardboot patches from the nexus 5, needs testing and confirmation that it works

  • Additional Governors:
    • ntellidemand
    • Intelliactive
    • Pegasusq
    • Nightmare
    • Hyper
    • Alucard
    • InteractiveX2
    • SmartassV2
    • Lagfree
    • Wheatley
    • Lionheart
    • Badass

  • Additional I/O Schedulers:
    • SIO (SImple Ondemand)
    • FIOPS (Fair Input/Output Per Second)
    • BFQ (Budget Fair Queueing)
    • VR

  • Additional TCP Congestion Algorithms:



Download
Release date: 2014-10-11​
Full-Pimped-Kernel-2014-10-12-amami.zip - 9.9 MB

Light-Pimped-Kernel-2014-10-12-amami.zip - 9.7 MB


All builds (current/previous) can be found here: Pimped Kernel Folder

These are test builds, and always tested prior to release, please provide feedback if you flash it



Disclaimer
Code:
#    Neither me or any contributors to this kernel can nor will be held 
#    responsible for any damage or any kind of problem related to its use.
#    You are using this piece of software AT YOUR OWN RISK.
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.



Sources
The sources are obviously covered by the General Public License, and are available on Androguide.fr's github at: https://github.com/PimpedKernel/android_kernel_sony_msm8974
Also you can find my fork of the sources (Light/Full) with the modifications I made to compile it for Xperia Z1 Compact at: https://github.com/RepoB/android_kernel_sony_msm8974-pimped



Credits
  • Thanks to Androguide.fr he made the whole kernel I just compiled it for Amami
  • Thanks to oshmoun he helped me a lot to get this kernel to be as great as it is now
  • Thanks to faux123 for all his contributions to the android kernel community, many of which are implemented here
  • Thanks to showp1984 for his msm_mpdecision hotplug driver
  • Thanks to DooMLoRD for all the cherry-picked features from his DoomKernel
  • Thanks to krabapel2458 for the inital port from DoomKernel of features like GPU OC, some governors and more.
  • And of course, thanks to FreeXperia and Kali- in particular, for the device bring-up
XDA:DevDB Information
PimpedKernel Kitkat - Amami, Kernel for the Sony Xperia Z1 Compact

Contributors
OmarEinea, oshmoun
Source Code: https://github.com/RepoB/android_kernel_sony_msm8974-pimped

Kernel Special Features: Sound Control, GPU OC, Intelliplug, PowerSuspend, Dynamic Fsync, exFAT, F2FS, KSM, Intellidemand, Intelliactive, SmartassV2, InteractiveX2, Lionheart, Wheatley, Badass, Lagfree, BFQ, SIO, FIOPS, Westwood, Hybla, HSTCP, HTCP, Veno, Illinois, LP, BIC...

Version Information
Status: Testing

Created 2014-05-30
Last Updated 2014-11-15
 
Last edited:

OmarEinea

Inactive Recognized Developer
Aug 18, 2012
2,028
6,314
0
25
Sharjah, UAE
Changelo & To do list & Bugs:

Bugs
Please guys, this is a test build, it was tested on Carbon ROM and Resurrection Remix ROM,
but it has some stability issues, and you might face lots of bugs and software reboots while using it.

Will try to improve it, please give a nice feedback, and I'll enlist all bugs here.


To do list
  • Add dual recovery support [No recoveries included anymore]
  • Fix reboot to recovery in some ROMs [Done, I think!]
  • Enable tap to wake feature [Impossible:p]


Changelog
2014-10-11:
Fixed wlan, it should be working now!

2014-10-11:
Updated kernel with latest changes from CM & Pimped kernel

2014-05-30:
Initial release
 
Last edited:

TheQwertiest

Senior Member
Jan 21, 2012
277
214
0
Yay! Finally! Cyanogen, here I come! :D
TY, mate. Was waiting for this for a loooooooong time. Good job pulling it off =)

---------- Post added at 01:03 AM ---------- Previous post was at 01:02 AM ----------

Maybe if I figure out why it isn't working, I mean GPU OC code is implemented in the kernel, but it's not working for some reason,
will see what I can do.
I'm not even sure that GPU OC works properly on Z1...
 

OmarEinea

Inactive Recognized Developer
Aug 18, 2012
2,028
6,314
0
25
Sharjah, UAE
I'm not even sure that GPU OC works properly on Z1...
I'm not sure about that ether, but the weird thing is that even though the same code (as the one used for Z1) is included here,
you can't even switch GPU to more that 450MHz, I mean the GPU script has all 487.5MHz / 533MHz / 600MHz OCs but they aren't showing up:confused:
 

zxqw

Member
Apr 29, 2014
36
6
0
Running it on the latest CM11 nightly (31/5) and the phone momentarily freezes very shortly after boot before rebooting. Can't say what triggers it because it happens regardless of what I do.
 

funiewski

Senior Member
Dec 18, 2010
1,226
465
103
Stockholm
@omarainea I have tested (not so much but anyway...) with carbon and resurection roms. RR install was cleaner I hadn´t utilized kernel settings beforkrnel install. Kernel works good, no reboots have changed a lot of settings without problems, on carbon phone reboots all the time but I had changed a lot of settings before kernel install. Later I will try more clean carbon installation with pimpkernel, for now I´m going with RR rom. Great work, thanks!
 

ctap001

Senior Member
May 25, 2013
167
22
0
@omarainea I have tested (not so much but anyway...) with carbon and resurection roms. RR install was cleaner I hadn´t utilized kernel settings beforkrnel install. Kernel works good, no reboots have changed a lot of settings without problems, on carbon phone reboots all the time but I had changed a lot of settings before kernel install. Later I will try more clean carbon installation with pimpkernel, for now I´m going with RR rom. Great work, thanks!
Can you outline the steps you took? I can't get it to work on mine both with Carbon and Slim.
 

ctap001

Senior Member
May 25, 2013
167
22
0
just did a clean Carbon or RR install, then boot to system, then reboot to recovery and flash the kernel without any wipes, reboot.
By clean you mean doing a factory reset prior?

And would it matter if I wipe partition and dalvik after flashing the kernel?

Also have you tried it with ART? My crashes only happen when I was on Dalvik
 

OmarEinea

Inactive Recognized Developer
Aug 18, 2012
2,028
6,314
0
25
Sharjah, UAE
By clean you mean doing a factory reset prior?

And would it matter if I wipe partition and dalvik after flashing the kernel?

Also have you tried it with ART? My crashes only happen when I was on Dalvik
By clean install I mean factory reset and format /system prior, and it didn't matter to me whether I wipe dalvik after flashing the kernel or not.

also, now that you're mentioning it, I haven't tried ART on Pimped kernel yet (just Dalvik).
 

ctap001

Senior Member
May 25, 2013
167
22
0
By clean install I mean factory reset and format /system prior, and it didn't matter to me whether I wipe dalvik after flashing the kernel or not.

also, now that you're mentioning it, I haven't tried ART on Pimped kernel yet (just Dalvik).
That step is always included in ROM instructions so I'm quite sure I did that. At first I thought the reboots were being caused by undervolting but even when I just changed the read-ahead in I/o settings I still get random crashes.
 

OmarEinea

Inactive Recognized Developer
Aug 18, 2012
2,028
6,314
0
25
Sharjah, UAE
Hello!
Does the work kernel in the kit SlimRom? If so. I would like to test it!
thx

Sent from my D5503 using XDA Premium 4 mobile app
Nope kit SlimRom is Sony based not cm-based ROM, this kernel is for cm-based ROMs.

if you're looking for a custom kernel for kit SlimRom you can try DooMKernel, I'll release v19 soon, so wait for it and try it;)
 
  • Like
Reactions: diabolica
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone