[Android 4.4+] [KERNEL] [OC] Nui kernel for CM ROMs

Funny boot logo?

  • Yes!

    Votes: 38 35.2%
  • No. Stock boot logo

    Votes: 70 64.8%

  • Total voters
    108
Search This thread

Bonoboo

Senior Member
Dec 30, 2012
2,601
4,043
Ukraine
Redmi Note 10 Pro
Users from other forum, that use CM11 complain, that after some time of using (RAM problem?) phone totally hangs and reboots.
State of option "Low memory killer" doesn't matter.
last_kmsg attached.
 

Attachments

  • cm11_hang_reboot_last_kmsg.log
    220.4 KB · Views: 14

thichthat

Senior Member
Nov 1, 2012
466
810
On other forum user says, that with NUI "GPS works better".
Is there really some improvements in code?
If so, please, can you share them (to add into CM)?

So surprise but I didn't make any improvements for GPS.

I read your kmsg but I only found an error that I have never seen before "SysRq : Show Blocked State"
 
  • Like
Reactions: Bonoboo

ojas12345

Senior Member
Jun 28, 2015
79
19
I noticed some problem with the latest 6.4 version on this kernel . Everything works fine but i cannot boot into recovery. Tried Everything i could checked all settings.. Many times flashed recovery.. but the problem still persists ...When i try to enter recovery the phone just restarts or frezees..
 

thichthat

Senior Member
Nov 1, 2012
466
810
I noticed some problem with the latest 6.4 version on this kernel . Everything works fine but i cannot boot into recovery. Tried Everything i could checked all settings.. Many times flashed recovery.. but the problem still persists ...When i try to enter recovery the phone just restarts or frezees..

did you tried pressing camera button on boot?
 

thichthat

Senior Member
Nov 1, 2012
466
810
It's May and V6.5 is now available!!!
V6.5
Animation on opening app
Enable offscreen gesture again due to some conflicts
Sync with newest CM13 kernel source

Note: about some small problems in the app, I'll fix it as soon as possible. Last night I spent so much time to solve problems with my PC, including storage, gradle and building problem. Therefore I just could make some small changes for the app.
 

dastan4eva

Senior Member
Jul 28, 2014
667
150
This kernel is simply awesome
It has saved my power button helped me customize a lotta stuff and runs fast

I BEG OF YOU @thichthat NOT TO SELL YOUR XPERIA M AS YOU ARE OUR ONLY ACE KERNEL DEVELOPER REMAINING !!!!!!!!!!111

btw just wanted to ask does new version @6.5 contain these new improvements by pecancm

Originally Posted by PecanCM
i will see btw speaking of kernel update, recently updated kernel with lots of changes from flo/mako kernel (mainly cpu related) performance improved and no stability issue found in my tests but before pushing changes to cm repo want to some users reports to be 100% sure no new regression.
link: https://www.mediafire.com/?wjy2yd7tnlm7qd1 and ofc report bug with dmesg/last_kmsg.
 
  • Like
Reactions: Bonoboo

ojas12345

Senior Member
Jun 28, 2015
79
19
It's May and V6.5 is now available!!!


Note: about some small problems in the app, I'll fix it as soon as possible. Last night I spent so much time to solve problems with my PC, including storage, gradle and building problem. Therefore I just could make some small changes for the app.
okay i'll try the latest version and will tell
 

thichthat

Senior Member
Nov 1, 2012
466
810
This kernel is simply awesome
It has saved my power button helped me customize a lotta stuff and runs fast

I BEG OF YOU @thichthat NOT TO SELL YOUR XPERIA M AS YOU ARE OUR ONLY ACE KERNEL DEVELOPER REMAINING !!!!!!!!!!111

btw just wanted to ask does new version @6.5 contain these new improvements by pecancm

Sure, I will not sell it. I'm just spending more time on studying so I'll make less updates.
PecanCM has made many changes since nui v6.5. I'll try to merge them as soon as possible.
 
  • Like
Reactions: ndrancs and Bonoboo

dim^n

Senior Member
Aug 13, 2014
144
39
, that v5.5 consumes less battery than v6.4 possible because of "increase cpu bus speed" (or "optimize voltage value for CPU") tweak. Cause I can use UV, and it dont slow down the device on v5.5. But I lose app v5.5, and use v 6.4 and cannot boot into FOTA. So, @thichthat, can you add option to disable cpu bus speed tweak? I think thats useless. Im using your kernel with RR 5.1.1
Wish you'll quickly solve your comp problems!
 
Last edited:

thichthat

Senior Member
Nov 1, 2012
466
810
, that v5.5 consumes less battery than v6.4 possible because of "increase cpu bus speed" (or "optimize voltage value for CPU") tweak. Cause I can use UV, and it dont slow down the device on v5.5. But I lose app v5.5, and use v 6.4 and cannot boot into FOTA. So, @thichthat, can you add option to disable cpu bus speed tweak? I think thats useless. Im using your kernel with RR 5.1.1
Wish you'll quickly solve your comp problems!

Ok I'll adjust the bus speed. FOTA is harder to fix since CM doesn't use extract_elf_ramdisk utility anymore.
Btw I've just merging all new commits from CM. Just faced 4 conflicts and fix some governors. New version will be release as soon as possible.
 
Please review it. Before release New build.
picked cyanogen's recently ported linux 3.18 zram to our kernel and backported PPR (Per Process Reclaim) from msm8909 3.10 kernel. zram size is 512mb (qcom's recommendation for 1gb devices) along with LZ4 for compression and apparently in my 1day test it's working fine with adaptive lmk and battery is ok too. i will continue testing few more days also would like to see some user reviews before i merge into cm kernel repo.

link: http://www.mediafire.com/?0ldybca497d346z (source)
note: it's boot.img don't flash it on another rom.

About Per Process Reclaim:
PPR is used for aggressively pushing inactive tasks to zram based on their obj for more good concurrency, PPR is also mandatory feature for new <= 1gb ram qcom devices with zram. (parameters)
 
Ready to merge.

Final zram kernel with qcom recommended perf changes that we can use on our chipset. Phone deep sleep well, no big diff in heating and runs smooth. will merge this soon. (source)

full changelog:

  • memory management is now inline with msm-3.4/LA.BF.* branch
  • zram/zmalloc from android-3.18 kernel
  • PPR (Per Process Recalim parameters) from msm8909/8916 3.10 kernel
  • zcache and lmk from msm8937 3.18
  • BALANCE_ANON_FILE_RECLAIM (improves headroom.)
  • zram size is now 256mb (512mb looks high for us)
  • Sensors,led and ACDB logging turned down

link: https://www.mediafire.com/?c4cka7z6p42f4df
 
  • Like
Reactions: nirmal471

Top Liked Posts

  • There are no posts matching your filters.
  • 47
    Hi everyone! After a couple of days working on ubuntu, I have built my own kernel

    If you enjoy my work, please buy me a coffee. Thanks: http://nui.pe.hu/donate.html
    Download here: https://play.google.com/store/apps/details?id=com.nui.kernel

    I AM A STUDENT, NOT A DEVELOPER. I CANNOT FIX ALL ERRORS. SO PLEASE DON'T GIVE MY APP 1 OR 2 STARS.


    FAQs

    I can't flash zip file!
    You must install TWRP. It doesn't work with CM recovery

    My phone gets bootloop. What can I do?
    You can use fastboot to flash stock kernel. Or just easily re-flash ROM.

    This kernel makes my phone runs slow!
    I can't help you. It works fine for me. I use CM's source code and I just add some feature.

    Can you add/remove/fix blah blah feature?
    OK. I'll try. But first I must do my homework. I'm a student, not a developer :(

    Do I need to move data from internal storage to sdcard before disabling it ?
    Yes. But if you forgot, don't worry. All your data is still in /data/media/0



    See post #2 for more infomation


    Changelog:
    V6.1
    Update FAQs
    Update built-in TWRP to 3.0.0 (thanks to cucumber09)
    Enable pressure report for touch screen (may not accurate)
    Fix delay for guide on boot logo
    Sync with newest CM13 kernel source.

    V6.0
    Re-enable F2FS
    Use uncompressed main ramdisk (only gzip TWRP ramdisk)
    Sync with CM13 kernel source
    Underclock to 192MHz (may increase standby time)
    Optimize voltage value for CPU
    Increase CPU bus speed
    Fix/update extract_elf_ramdisk (thanks to cucumber09)

    V5.9
    Add fade animation for flash torch on/off (in Tweaks > More)
    Fix recording video error
    Sync with CyanogenMod kernel source
    App: fix FC in screen/brightness settings

    V5.8
    Add an awesome fade animation for LED notification
    Sync with Ron's CM13 kernel source
    App: Remove options for KSM and brightness lock

    V5.7
    Fix some FCs in the app
    Disable KSM for fixing random reboot
    Update disable internal storage for android 6.0+
    Option for offline charging (Tweaks > Boot options)

    V5.6
    Add loading recovery.cpio from /cache
    Add tips in FAQ menu
    Add KSM support (Tweaks > RAM tweaks)
    Follow Google's guidelines for Low RAM devices
    Disable offline charging by default
    Edge gesture: Custom action for menu gesture, increase its sensitive
    Always enable dt2w/s2w vibration

    V5.5
    Add earpiece volume gain
    Support camera button on selfie stick (in Tweaks > Buttons)
    Fix swipe to control music
    Fix FM radio

    V5.4
    Kernel:
    Full support for android 6.0 marshmallow
    Optimize sensor drivers (gravity, light and compass driver)
    Press volume up/down to answer/decline incoming call
    Fix swipe to control music
    Fix speaker gain being overwritten randomly
    App:
    Fix sound settings can't be restored on boot

    V5.3
    Fix Edge gesture
    Add function to Backup/Restore settings.
    New "Edge gesture" function (see more in Tweak menu)
    Add volume control from kernel level (for mic, speaker and headset)
    Many optimizations for touch screen driver
    Add tweaks for camera
    Button: add "recent" button action
    App: Rearrange tweaks menu

    V5.2
    Kernel:
    GCC 5.2.0
    Removed kexec hard-boot (it's broken and I can't fix)
    Tweaked low memory killer module
    Workaround for mobile data issue
    App:
    Allow opening tweak menu without updating to newest version
    Rearrange some settings in "More" section in tweak menu
    Add tweaks for Android side

    V5.1
    Now use GCC 5.1.0
    Add Croatia translation (Thanks to Petar Cerin)
    Improve/fix installer script (compatible with more ROMs)
    Improvements for touch screen driver and dt2w/s2w:
    + Optimize code (save CPU cycles)
    + Fix screen freeze issue (for dt2w/s2w)
    + Removed debug code
    Workaround for init.d
    Disable mpdecision by default

    V5.0
    FIX SYSTEMUI FCS (tested on Archidroid)
    Add Hindi translation (thanks to Garv Maggu)
    Fix shortcuts on home screen
    Remove many unused built-in drivers (IR control, PS2 mouse, TV tuner,...)
    Add interactive GPU governor
    Enable H264 High profile codec (Experimental)
    Remove debug messages in wlan and LED driver (speed up a bit)
    LED blinking for boot decision (can be disabled in tweaks menu)

    V4.9
    Add Vietnamese translation (thanks to Tuan Loc)
    Fix some English grammar error (thanks to Garv Maggu)
    Add more shortcut for home screen
    Fix mobile signal/SIM card for CM11 (Thanks to PecanCM)
    New method to choose boot type
    No delay after choosing Recovery boot
    Add HYPER cpu governor
    "Very dim" brightness now a bit dimmer
    Prevent audio glitches for music playback (experimental, enable in accessibility service)

    V4.8
    Add kexec/MultiROM support (read post #2)
    Add swipe to control music playback on screen off

    V4.7
    Governors: remove NUIOndemand, add intellidemand
    Fix forever deep sleep on dt2w/s2w
    Add GPU Control
    Add CPU control and power menu shortcuts for launcher

    V4.6
    Built-in No-frills CPU Control (thanks to Sineo)
    Add option to control Dynamic Fsync (disabled by default)
    SELinux set to default (Enforcing)
    Add overclock levels

    V4.5
    Downgrade to GCC 4.9.3 (to fix dt2w/s2w and some problems with ril)
    Add intellimm governor
    Set noatime for all partitions (I/O boost)
    Fix disable internal storage mod for dual SIM (check post #2 on xda)
    Remove automatic install method (we only have to flash ONE zip)
    Improve algorithm in tweaks menu

    V4.4
    Fix touch screen freezing cause by dt2w/s2w
    Option to force brightness to a specific value
    Improve algorithm in tweaks menu

    V4.3
    GCC toolchain 4.9.4 linaro
    Auto check for update when app is opened
    Add swipe to wake (still for testing, sometimes need to swipe twice)
    Merge new changes from CM (Except removing logger)
    SElinux set to permissive by default
    Add some help messages in tweak menu
    Add MD5 checker for installer

    V4.2
    Tweaks for camera and focus button when screen is off
    Add zen io scheduler
    Update TWRP to 2.8.7.0
    Option to change:
    + Sensitive of proximity sensor
    + Intensity of torch LED
    + Disable FOTA recovery
    Improve dt2w:
    + Fix forever deep sleep bug (Need to test more)
    + Disable on screen edge (to prevent sliding from edge)
    + Fix some accidentally tapping case

    V4.1
    Add tweaks for camera and focus button
    Add guide text on boot (can be disabled in tweaks menu)
    Fix dt2w issue when calling

    V4.0
    Fix some settings cannot be saved
    Fix headset volume button (in kernel level)
    Add fiops io scheduler
    Built-in frandom (Fast pseudo-random generator)

    V3.9
    Fix Settings menu can't show correct value
    Add option for overclock, disable by default.
    Add vibration for dt2w
    Add lulzactive governor
    Add fifo, tripndroid io scheduler
    Hold volume up and press focus key to force reduce brightness (useful when you get "Android is upgrading" for a long time)
    Update FAQs
    Fix all FCs in Settings

    V3.8
    Fix lag when CPU goes above 1GHz. You phone will be very smooth.
    Re-enable mpdecision (fix problem with sdcard)
    Improve double tap to wake:
    + Fix battery drain
    + Add half screen mode
    + Add setting
    + Now can work in deep sleep but sometimes need to tap 4 times

    V3.7
    Fix sdcard not mounting on some ROMs
    Fix Settings menu
    Add manually install method
    Fix/update NUIondemand
    Fix all problem with zip method
    Disable normal install method
    Clean source code and toolchain (may fix problem with mounting sdcard and random reboot)

    V3.6
    Option to on/off vibration on boot decision
    Fix FC in settings
    Add NUIondemand governor (still for testing, read FAQs)
    Re-built all kernel object files (may fix problem with mounting sdcard)

    V3.5
    Add custom vibration intensity for haptic feedback
    Re-add CM11 support
    Add init.d support
    Added installer via zip method
    Fixed FC in settings
    Add FAQs
    Fix install algorithm
    Add more information for reporting

    V3.4
    Remove support for CM11
    Add kernel tweaks
    Revert adjusting microphone volume
    Mount system rw at boot

    V3.3
    Disable mpdecision by default
    Revert using focus button as camera button
    Add exFAT and f2fs file system

    V3.2
    Fix bootloop for update on devices using Disable Internal Storage mod
    Optimize init.sh script
    Reduce brightness when booting (Save battery)
    Built-in undervolt script (set on every boot)
    Add Lionheart governor
    Add sioplus iosched
    Increase microphone volume

    V3.1
    Fix apk file not recognize Xperia M dual
    Fix camera button not working on all CM roms (Open camera app and try it yourself!)
    Add sio iosched
    Add SmartassV2 governor (UNSTABLE, I need developers to help me)
    Merge newest commits from CM

    V3.0
    Stock boot logo
    Build with GCC 4.9.3 linaro
    New way to install (via apk file)
    New way to reboot: press and hold power button for 8 secs
    Re-enable FOTA recovery (read post #2)
    Re-enable Dynamic FSync 2.0
    Sync with CM's source code

    V2.5
    Based on CM12.1 branch from CM's source code
    New funny boot logo!
    Fixed beeeeeeeeeeeep noise when recording audio
    Disable intelli plug (to control individual cores)
    New boot script (add vibrations for boot decision)
    Add 2ndrom function (still for testing)
    Add new method for disabling internal storage

    V2.0
    Use SXD's source code (from here: https://github.com/NoelMacwan/SXDNickiLolly/ )
    GCC 4.8
    Overclock to 1.7GHz
    Fixed dt2w (EXPERIMENTAL, MAY CAUSE BATTERY DRAIN)
    Add intelli_plug, fsync, fstrim,...
    intelli_plug tweak
    Add support for CM12.1

    V1.1:
    Build with gcc tool 4.8.5 (thanks to @shrisangram )
    Add doubletap2wake function (Worked but not stable!)
    Disable mpdecision by default
    Read ahead cache size to from 128KB to 2048KB

    V1.0:
    Stock boot logo
    Overclocked to 1.6GHz (thanks to @FindYanot )
    Added volt control and undervolt (thanks to @icoolguy1995 )
    reduced min brightness level
    Added TWRP 2.8.3.0 (with MTP support)
    Added support for patch.cpio (for cm11 kernel patch)
    When boot, blue led for boot decision and white led for TWRP (this is not an extra feature. I added it to test my codes)
    Build with gcc tool 4.7 (Sorry, I have problems compiling with 4.8 and 4.9)


    XDA:DevDB Information
    [Android 4.4+] [KERNEL] [OC] Nui kernel for CM ROMs, Kernel for the Sony Xperia M

    Contributors
    thichthat, Garv Maggu, ndrancs
    Source Code: https://github.com/ngxson/android_kernel_sony_msm8x27

    Kernel Special Features:

    Version Information
    Status: Stable
    Stable Release Date: 2015-06-08

    Created 2015-03-30
    Last Updated 2016-02-15
    23
    Reserved

    Useful information:

    See 3rd post for disabling internal storage

    List of old versions can be found here: https://drive.google.com/folderview?id=0B2-0MyP06DN5LWs1YWZudm5La3M&usp=sharing

    Manually install method: If you have problem with installing via apk file, try this method:
    - Extract all files zip files from apk file
    - In apk/assets/nui you will see a zip file. Extract and copy it to your phone.
    - Reboot to recovery and flash method_zip.zip
    - Reboot again.
    Done!

    Recommended setting:

    • Normal usage:
      Use built-in undervolt table
      CPU: max=1026MHz
      governor=intellidemand
      GPU: max=320MHz
      io sched=zen
    • Battery saving:
      CPU: max=810MHz
      governor=conservative
    • Hard gaming:
      Set all to max. It's easy for you.
    22
    MOD: Disable emulated storage (internal storage)

    MOD: Disable emulated storage (internal storage)

    FOR ANDROID 6.0+: http://xdaforums.com/showpost.php?p=63787343&postcount=845

    This mod works on almost roms. I tested it on CM11, CM12, Bliss pop v2.3, AICP, CM12.1 (beta 2 and 3), Flex OS and XenonHD
    Update: Maybe not works on CM12.1 nightly

    Unlike init.d method, this method is more stable. It will disable the emulated storage and change default storage to your real sdcard.

    To use this mod, you must have:
    - A computer running Windows
    - Java Runtime (jre) installed (to use apktool)
    - Your xperia M using NUI kernel
    - You have to move ALL data from internal storage to sdcard before using this mod
    - Download this file: http://www.mediafire.com/download/rj3vnokcbl8eyit/disable_emulated_storage_20150917_2.zip

    Update log:
    9/17/2015: Update apktool to v2.0.1. Fix problem on some nightly builds. Add zip align tool.
    6/27/2015: Use 7z instead of zip1.exe
    7/29/2015: Fix for dual SIM
    7/30/2015: Adapted to v4.5


    Guide:
    • Extract files from disable_emulated_storage.zip
    • Run 1Pulling_Files.bat and follow the instructions
    • After running 2Patching.bat, 3 files named backup.zip, NUI_MOD.zip and NUI_MOD_1.zip are generated
    • Flash NUI_MOD.zip
    • If it doesn't work, flash NUI_MOD_1.zip
    • If both files don't work, flash backup.zip
    Enjoy! ;)

    Notice:
    • If you want to remove your sdcard, turn off phone first.
    • Wiping dalvik cache is recommend

    Pre-built file (just flash it and enjoy):


    RazorRC-2.0 (Thanks to @Garv Maggu ):
    http://xdaforums.com/showpost.php?p=63414136&postcount=757

    Tipsy OS V2.0 (Thanks to @Garv Maggu ):
    http://xdaforums.com/showpost.php?p=63359465&postcount=751

    For CyanideL RC20.0 (thanks to @Garv Maggu)
    http://xdaforums.com/showpost.php?p=63291657&postcount=739

    For Archidroid_V3.1.3:


    For xenonHD stable_2 06-06-2015:

    For AOSP-20151807-DUALSIM:

    Link: http://xdaforums.com/showpost.php?p=62119355&postcount=560
    ROM info:
    AOSP-20151807-DUALSIM
    ROM OS Version: 5.1.1 Lollipop
    Build Number: LVY48C
    Build Date : 2015-07-18
    Based On: AOSP
    link : [ROM][5.1.1][DUALSIM] The Android Open Source Project by smartAgent47

    attachment.php


    Parallax OS 1.0 (thanks to @Garv Maggu )
    Garv Maggu said:
    XDA link to NUI_MOD.zip and backup.zip for Parallax OS 1.0 :- http://xdaforums.com/showpost.php?p=62308309&postcount=219


    See screenshots below:
    12
    Here is the list of new function I've made on v6.4:
    - 4K video recording
    - enable HDMI output via usb port
    - enable hidden flash LED next to the front camera

    Yes yes I know it hard to believe, but today is fool april
    11
    Update disable internal storage for 6.0

    Disable internal storage mod for 6.0 marshmallow

    FAQs:
    We have adopting storage on marshmallow. Why do we need that?

    Adopting storage has some disadvantages: Firstly, you'll have to format your sdcard. Secondly, you'll have to format your sdcard again every time you change ROM (or wiping data partition). That means you must spend more time to backup all data.

    Guide:
    Make sure you don't have 2nd partition on sdcard
    Just flash NUI_MOD_marshmallow.zip attached below this post.

    Tested on AOSP alpha 1, CM13 alpha 1, beta 1, 2 and 3.
    May NOT works on some class 4 or lower sdcards