[Kernel][Unofficial]Pimped Kernel - Z1 port [2014-07-09]

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    Ladies and Gentlemen,

    It gives me great pleasure to introduce to you an unofficial port of the Z1

    Pimped Kernel

    This is a kernel for CM11 based ROMs and uses -caf. If your ROM isn't faily new and doesn't use -caf then don't expect this kernel to boot. It was built inside Carbon and I have tested in there, it should boot CM/FXF, SlimKat, LiquidSmooth, Carbon, Omni, etc. I don't know how well it will boot PA/PAC/etc that are further away from this codebase but you are welcome to try. As this is a first build so expect some FCs and reboots, and and not all features will work. Please read the OP to see what is on offer. Things that won't work are LCD/Touchscreen/DT2W, and others may be prone to bugs.

    This has kernel is built with Linaro SaberMod Toolchain 4.7 and -O2 etc optimisations (not as many as the slimkat kernel). Performance seems good, and the ability to underclock/volt and turn off cores should give extra battery life.

    Please don't use this unless you know how to get out of trouble/bootloops/non-boot/lost recovery/etc. I nor Androguide.fr take any responsibility for dead or undead Z-Ultras

    Kernel features are controllable through Androguide.fr's Pimp My Z1 app, (thread here).

    Screenshot_2014-04-25-22-01-29.png
    Screenshot_2014-04-25-22-21-02.png
    Screenshot_2014-04-26-21-53-33.png
    Screenshot_2014-04-26-21-52-00.png
    Screenshot_2014-04-26-21-51-37.png

    Download:

    togari-BluePimp-4.4.4-dt2w-ext4-20140810_1122.zip

    Very minor change to LEDs, and boot splash http://xdaforums.com/devdb/project/dl/?id=7497

    test v0.3 for new 4.4.4 AOSP/cm-11 ROMs
    togari-BluePimp-108-dt2w-ext4-20140709_1741.zip

    old 4.4.4 and 4.4.2/3 ROMs
    30/6/2014 4.4.4 build with dt2w
    Build 4 31-05-2014
    Build 4 31-05-2014 dt2w

    Features (C&P from OP):
    • 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
    • DoubleTap2Wake: double-tap the screen to wake-up the device
    • 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.8
    • 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:
      • Intellidemand
      • 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:
      • BIC
      • Westwood
      • HSTCP
      • Hybla
      • HTCP
      • Vegas
      • Veno
      • Scalable
      • LP
      • YeAH
      • Illinois

    Change Log:
    http://xdaforums.com/showpost.php?p=50603486&postcount=2

    Sources:
    Androguide.fr kernel sources: PimpedKernel
    My additions for the ZU (see BluePimp branch): BlueEther

    Credits:
    Thanks to Androguide.fr fro bringing all of the together
    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


    Disclaimer:
    # Neither I nor 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.
    Disclaimer #3, I'm not responsible for dead or undead Z-Ultras from using this ROM and kernel, OC at you own peril

    XDA:DevDB Information
    Unofficial Pimped Kernel, Kernel for the Sony Xperia Z Ultra

    Contributors
    blueether, Androguide.fr, DooMLord, faux123, krabapel2458, FXP/CM, Kali-, reaper61616 (dt2w)
    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-04-25
    Last Updated 2014-08-09
    10
    What's working and not

    Kernel Bugs:
    Camera FCs - maybe more of a CM issue than this kernel

    Tested ROMs:
    Carbon - (non public test build): Working
    Carbon - Build 8: Working
    SlimKat: Working
    LiquidSmooth: Working
    FXF CM11: Working
    CM11: Working
    AOSP: Not tested yet
    AOKP: Not tested yet
    AICP: Not tested yet
    Lungo: Not tested yet
    PAC-man: Not tested yet
    PA: Working
    Chameleon OS: Not tested yet
    GPe: Won't boot

    Quick run down using Pimp my Z1:
    • CPU
      • Min/Max works after a save (pressing 'Done' does nothing?)
        [*]Per core Looks to work
        [*]Interactive/performance/ondemand and conservative all seem to work as expected
      • TCP not tested
    • GPU
      • Min/Max (200/450) Looks to work
        [*]Performance/msm_cpufreq/msm_adreno-tz/powersave/etc all seem to work as expected
      • cpubw_hwmon reboots the ZU
    • Power Managerment
      • Multi-Core Moderate hard to tell if working
        [*]Multi-Core Aggresive Looks to work as expected
        [*]Intelli plug and eco mode - Look to work well
        except Pimp my Z1 FCs when trying to change # of cores and gets stuck on 1
      • Power suspend not tested
    • LCD Colour
    • Voltage controle - looks to be working
    • I/O, Memory and Misc. not tested but options look to work
    • Sound Control
      • Speeker Gain works
      • not tested the others
    • Touchscreen
      • None are active - as expected
    6
    And i am subscribed to this :D

    Keep it up mate xD

    Build 2 Uploaded.
    • 2014-04-24
      • Updated to Linux kernel version 3.4.86
      • Re-added GPU OC up to 600MHz and hopefully fixed the issues some people had with it
      • Added zRam support (thanks to DooMLoRD)
      • Added msm_sleeper (thanks to DooMLoRD), controls coming to Pimp My Z1 soon
      • Added memutils optimizations (thanks to DooMLoRD)
      • Merged a lot of slimbus/slim-ngd/slim_msm/qdsp6v2/wcd9xxx & other audio-related optimizations from franciscofranco's nexus 5 kernel
      • Merged some OOM, ocmem & other memory-management-related optimizations from franciscofranco's nexus 5 kernel
      • Merged a fix for msm_z180 memory leak from franciscofranco's kernel
      • Some other random cherry-picks
    Use caution when OCing the CPU/GPU
    5
    OK thanks, in fact since I couldn't turn it on and off, I can't tell for sure if it's really draining the battery. I just noticed a slightly higher consumption, but it can be anything kernel-related (governor, I/O scheduler etc.).

    Just one thing that's still there: impossible to turn off the device, it just reboots. I don't recall if there is any workaround for it, is there?

    I think it was fixed in the last Z1 release, but I merged in the 4.4.4 kernel before Androguide.fr had on the Z1 so I haven't picked up that fix. I should rebase to his release
    4
    Testing the kernel with the newest Carbon build (which is excellent, but will give proper feedback later in the respective thread). So far very good performance and didn't find any bugs, but will test more.

    Just one thing: how can I disable the doubletap2wake? There's nothing in /sys anymore (searched for *dt*, *double*, *tap*, *wake*). I don't really care for this feature, since it's not 100% realiable, and I suspect it drains the battery a little faster. If it's impossible to disable at runtime... Can I ask for a version without this feature? :D

    Thanks!

    From the carbon thread:
    Disable DT2W:
    In terminal write: su -c "echo 0 > /sys/android_dt2w/dt2w_active"

    After reboot DT2W will be activated again. If you want to make it disabled by default add the above init.d script!
    or did I take that out to rewrite it??? I think I did...


    Yes I removed almost all of what reaper61616 had written when they threw their toys out of the pram when someone used their GPL code within the rules of the copyright, I should just include it as it was/is available in the nexus kernels by showp1984.

    I don't think it uses much power at all, my test device (broken sim reader) can have 20+ days uptime with it enabled