[KERNEL][5.0]TOO LAZY TO PICK FANCY NAME FOR THE KERNEL[20161029]

Search This thread

mdfzhi

Senior Member
Jun 15, 2011
4,146
3,856
hm, maybe this won't work, I'm not a expert in kernels, but would it be possible to add faux sound control or gpu overclock (I don't think overclock is possible on this device, even with 2.0ghz it still "is" 1.6ghz)
Faux sound control depends on specific sound chip which I'm sure zf5 didn't have. I'm not interested in overclock because the phone already fast and hot as it is now, more interested in underclock or undervolt, but so far haven't got any positive results. The Intel cpu code are harder to read and modify compared to arm.
 

LuanHalaiko

Senior Member
Jul 12, 2015
1,912
1,810
Lapa
xdaforums.com
Faux sound control depends on specific sound chip which I'm sure zf5 didn't have. I'm not interested in overclock because the phone already fast and hot as it is now, more interested in underclock or undervolt, but so far haven't got any positive results. The Intel cpu code are harder to read and modify compared to arm.

hm, got it, but is possible to increase the sound of the speaker without making the sound bad? also, the hotplug increased a lot the battery SOT :)
 

duffi200000

Senior Member
Jun 16, 2016
129
19
Can you please make that the core of this script is supported init'd containing #! / System / bin / sh
setprop qemu.sf.lcd_density 280
killall system_server
 

Ale uto

Senior Member
Sep 8, 2015
167
15
@mdfzhi thanks for this awesome kernel ? BTW can u add BLX (Battery Life eXtander) thanks man

Sent from my ASUS_T00J using Tapatalk
 

duffi200000

Senior Member
Jun 16, 2016
129
19
please support script init d #! / system / bin / sh
setprop qemu.sf.lcd_density 280
killall system_server
 

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    Code:
    #include <std_disclaimer.h>
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this KERNEL
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */

    Introduction/About

    Got an old unused zenfone 5 from my brother and I've compiled this kernel because i'm not satisfy with some of the available kernel so far. Nothing fancy, just a (hopefully) stable kernel for stock lollipop or custom rom based on stock lollipop.


    Features:

    Like i said, nothing fancy lol. Things that i've modified/added:
    • Updated interactive cpu governor and fine tuned its parameters.
    • Enabled conservative cpu governor and disabled userspace cpu governor.
    • Added zendecision cpu hotplug helper.
    • Updated cfs scheduler.
    • Added bfq disk io scheduler and made it as default on booting.
    • Enabled all tcp congestion control and made westwood as default on booting.
    • Added power efficient workque support. Should help with battery life.
    • Added quick wakeup driver support. Should help with battery life.
    • Added async fsync support. Should help with battery life and perfomance.
    • Enabled joystick game controller support.
    • Enabled usb serial driver support.
    • Enabled zram driver support and made it use 256mb on booting. Should help with perfomance.
    • Enabled powerclamp and rapl driver for intel thermal daemon support. Should help minimize heat.
    • Enabled ntfs driver with read/write support.
    • Enabled cifs and smb network drive driver support.
    • Added exfat-nofuse filesystem driver support with proper automount on booting.
    • Enabled zenmotion dt2w support.
    • Made selinux mode as permissive on boot. This fixed the dreaded signal loss issue.
    • Added proper init.d support in ramdisk, with proper permission setup before running scripts.
    • Probably many, many other things i forgot to list here...


    Changelog:

    20161029
    - Removed hotplug cpu governor. Hotplug cpu governor or hotplug driver are too buggy on zf5, sometimes the turned off cpu are never turn back on again.
    - Fined tuned interactive cpu governor.
    - Added and enabled bfq disk io scheduler and made is as default on booting.
    - Updated lowmemorykiller driver.
    - Enabled proper config for intel powerclamp driver.

    20161024
    - Added hotplug cpu governor and made is as default cpu governor on booting.
    - Updated interactive cpu governor.
    - Added zendecision cpu hotplug helper.
    - Updated cfs scheduler.
    - Removed the selinux permissive mode script.

    20161018
    - Removed intel cpu governor. Its unstable.
    - Made interactive as default cpu governor on booting.

    20161018
    - Added intel cpu governor and made it as default on booting.
    - Removed autosmp.
    - Enabled rcu boost.
    - Changed kernel hz from 100 to 300.
    - Enabled many, many networking option.
    - Added script in ramdisk to always set selinux to permissive mode.

    20160926
    - Prepatched ramdisk to support magisk v6.
    - Changed default tcp congestion control to westwood.
    - Disabled rcu boost. It made switching mobiledata on/off became slow.

    20160921
    - Using ramdisk from the latest .87 lollipop stock kernel.
    - Finally fixed sdcard automounting.
    - Fixed wifi hotspot not starting.
    - Enabled rcu boost.

    20160908
    - Enabled zram.
    - Further attempt to fix sdcard automounting.
    - Added quick wakeup driver.
    - Enabled joystick game controller support.
    - Enabled usb serial support.
    - Added async fsync.

    20160904
    - Disabled zram..

    20160903
    - Fixed simcard turned unavailable after signal loss, can't get proper signal even after entering area with stable signal after the first signal loss, and cpu became hot by making selinux in permissive mode on booting.
    - Implemented proper init.d sysinit with permission setup before running scripts.
    - Enabled powerclamp and rapl driver for intel thermal daemon. Should help with phone thermal management.
    - Enabled zenmotion dt2w support.
    - Enabled zram.
    - Attempting to fix sdcard automounting.
    - Some module built as in-kernel driver.

    20160831
    - Initial release.


    What Works:

    Should be everything? Do let me know if got bugs or things not working using this kernel. If got sudden reboot, please give me all files in /sys/fs/pstore


    Download:


    Installation Instructions:

    1. Obviously need unlocked bootloader.
    2. Flash the zip via custom recovery or extract the zip to get the boot.img and flash via fastboot.


    Source:

    Uploaded as tar.xz archive in download folder above. Sorry, didn't have github account. Really hated git, hard to use.


    Thanks To/Credits:

    • God
    • Linus Torvalds and whole linux kernel team and contributors.
    • Google
    • Xda
    • and many, many other kernel devs whose their source i've cherry picked here and there...



    XDA:DevDB Information
    -, Kernel for the Asus Zenfone 5

    Contributors
    mdfzhi
    Kernel Special Features:

    Version Information
    Status: Stable
    Current Stable Version: 20161029
    Stable Release Date: 2016-10-29
    Current Beta Version: 20160908
    Beta Release Date: 2016-09-08

    Created 2016-08-31
    Last Updated 2016-11-06
    1
    First at all, thanks for your important work.
    I really like that the phone has become much more energy efficient at this kernel :good:

    But I have two issues:

    1. I got reboot when I talking on the phone (Zenmotion is enabled).
    2. My phone doesn't detect the memory card.

    Asus ZenFone 5 (A501CG), stock rooted 3.24.40.87
    1
    @mdfzhi
    change your updater script to:
    Code:
    ui_print(" ");
    ui_print("- Flashing kernel...");
    write_osip_image(package_extract_file("boot.img"), "/dev/block/by-name/boot");
    ui_print("- Done! ");
    ui_print("");
    and use update-binary file here:
    update-binary
    your zip don't work
    1
    your sdcard already mounted when booting. something is making the phone unmounted it automatically.
    Code:
    09-10 12:03:16.213 D/DirectVolume(  188): Volume MicroSD /mnt/media_rw/MicroSD partition 179:51 removed
    09-10 12:03:16.213 D/Vold    (  188): Volume MicroSD state changing 4 (Mounted) -> 5 (Unmounting)
    
    09-10 12:03:16.223 I/Environment(  619): mSecondaryExternalStorage = null
    09-10 12:03:16.223 D/MountService(  619): volume state changed for /storage/MicroSD (mounted -> unmounted)
    09-10 12:03:16.233 D/StorageNotification(  723): Media {/storage/MicroSD} state changed from {mounted} -> {unmounted}
    09-10 12:03:16.233 I/Environment(  619): mSecondaryExternalStorage = null
    09-10 12:03:16.233 I/PackageManager(  619): unloadInstalledExternalPackages
    09-10 12:03:16.233 D/Launcher.Model(  816): onReceive intent=Intent { act=android.intent.action.MEDIA_UNMOUNTED dat=<web url omitted> flg=0x4000010 (has extras) }
    09-10 12:03:16.233 D/MountService(  619): sendStorageIntent Intent { act=android.intent.action.MEDIA_UNMOUNTED dat=<web url omitted> flg=0x4000000 (has extras) } to UserHandle{-1}
    09-10 12:03:16.233 D/MountService(  619): volume state changed for /storage/MicroSD (unmounted -> bad_removal)
    09-10 12:03:16.233 D/MountService(  619): Disk/Partition bad remove call PMS
    09-10 12:03:16.243 D/VolumeStateObserver( 2331): onStorageStateChanged
    09-10 12:03:16.243 I/VolumeStateObserver( 2331): onReceive android.intent.action.MEDIA_UNMOUNTED

    maybe your sdcard got bad sector. or theres some app you installed that automount it. try to boot into safe mode.
    thats just my theory by looking at the logcat, cant see anything from demsg because its been flooded with brightness debug message.

    I faced the problem of detecting card in your kernel only.
    I tried BORETS24 kernel and many other kernels and all was OK.