[KERNEL][AOSP] zwliew_Kernel - r1

What is your maximum stable(no reboots) CPU undervolting at 1GHz?

  • 12.5 uV

    Votes: 11 11.6%
  • 25.0 uV

    Votes: 14 14.7%
  • 37.5 uV

    Votes: 13 13.7%
  • 50.0 uV (this should be the 2nd most common)

    Votes: 17 17.9%
  • 62.5 uV (this should be the most common)

    Votes: 29 30.5%
  • 75.0 uV

    Votes: 5 5.3%
  • 87.5 uV

    Votes: 3 3.2%
  • 100.0 uV

    Votes: 3 3.2%

  • Total voters
    95
Search This thread

sorset

Senior Member
Jun 14, 2011
96
63
my newer kernels don't have f2fs support so it won't work.


btw to all:
i believe the reboots are related to interactive governor. please use ondemand governor for now until i look into it.

But I after toggling to f2fs and formating /data and /cache partition to f2fs it boots without any problem.(I checked that they are mounted as F2FS automatically) it obvious that r1.5 fully supports F2FS.
I think problem is something in toggle mechanism and make wifi wont work.In the meantime after disable toggle and reformat /data or /cache to ext4 , it wont boot and I should reformat /system and reinstall firmware.
 

ace2nutzer

Recognized Developer
Apr 28, 2014
5,658
7,152
39
Germany
Samsung Galaxy Ace II
Samsung Galaxy S8
i believe the reboots are related to interactive governor. please use ondemand governor for now until i look into it.

Yes i think yo are right.. on latest build even on stock CM 11 Kernel, interactive is very buggy.. sometimes the freq. don't get back to 200MHz.. it's hang up by min. 600Mhz.

But why BLN is reverted to old driver ?! I don't like the old Driver.. it has no blink.. and it's stay on for ever.. very bad :(
The new BLN Driver worked perfectly for me..

And what about the Trebuchet Issue ? (Settings) - Until Build 2014/06/07 works, on the last 2 build not..
 

zwliew

Senior Member
Dec 12, 2013
771
2,778
24
Singapore
github.com
But I after toggling to f2fs and formating /data and /cache partition to f2fs it boots without any problem.(I checked that they are mounted as F2FS automatically) it obvious that r1.5 fully supports F2FS.
I think problem is something in toggle mechanism and make wifi wont work.In the meantime after disable toggle and reformat /data or /cache to ext4 , it wont boot and I should reformat /system and reinstall firmware.

how are you checking that it is mounted with f2fs? r1.5 doesn't have f2fs so it can't be that you are mounted with f2fs. check if /sys/fs/f2fs exists.

Yes i think yo are right.. on latest build even on stock CM 11 Kernel, interactive is very buggy.. sometimes the freq. don't get back to 200MHz.. it's hang up by min. 600Mhz.

But why BLN is reverted to old driver ?! I don't like the old Driver.. it has no blink.. and it's stay on for ever.. very bad :(
The new BLN Driver worked perfectly for me..

And what about the Trebuchet Issue ? (Settings) - Until Build 2014/06/07 works, on the last 2 build not..

what trebuchet issue? probably not related to kernel. bln is reverted to old driver because we(tc) thought that new driver called no blink mode to stay on forever. we'll look into bln soon.
 

sorset

Senior Member
Jun 14, 2011
96
63
how are you checking that it is mounted with f2fs? r1.5 doesn't have f2fs so it can't be that you are mounted with f2fs. check if /sys/fs/f2fs exists.

Im sure that i formated to f2fs! and checked partitions with FX File manger and fstab.
I can reinstall firmware witth f2fs and send you photos of it ;)
 

ace2nutzer

Recognized Developer
Apr 28, 2014
5,658
7,152
39
Germany
Samsung Galaxy Ace II
Samsung Galaxy S8
Trebuchet the Launcher: u can't enter in trebuchet settings.. and perhaps it will be ok when we replaced the apk from working Build ?
Yes it's nothing to do with kernel.

BLN with blink mode works perfectly.. but with wakelock on 2014.06.07 Build.. but on 2014.07.06 Build bln stay on for ever.. and no blink.. even with wakelock.. but i noticed that i don't Use the standard Softkey lights.. The Softkey LED's are always off i don't use it.
 

sorset

Senior Member
Jun 14, 2011
96
63
how are you checking that it is mounted with f2fs? r1.5 doesn't have f2fs so it can't be that you are mounted with f2fs. check if /sys/fs/f2fs exists.

In fact thats not the point wheter it supoorts f2fs or not.
My question is , why wifi will not work if I toggle and format to f2fs?!
 

zwliew

Senior Member
Dec 12, 2013
771
2,778
24
Singapore
github.com
Trebuchet the Launcher: u can't enter in trebuchet settings.. and perhaps it will be ok when we replaced the apk from working Build ?
Yes it's nothing to do with kernel.

BLN with blink mode works perfectly.. but with wakelock on 2014.06.07 Build.. but on 2014.07.06 Build bln stay on for ever.. and no blink.. even with wakelock.. but i noticed that i don't Use the standard Softkey lights.. The Softkey LED's are always off i don't use it.

that driver was reverted in previous builds of tc cm11. we'll look into it.

In fact thats not the point wheter it supoorts f2fs or not.
My question is , why wifi will not work if I toggle and format to f2fs?!

as i said, my kernel doesn't support f2fs. if something automagically happens if u do anything related to it, i don't really care because there is obviously something very wrong.
 
  • Like
Reactions: ace2nutzer

sorset

Senior Member
Jun 14, 2011
96
63
that driver was reverted in previous builds of tc cm11. we'll look into it.



as i said, my kernel doesn't support f2fs. if something automagically happens if u do anything related to it, i don't really care because there is obviously something very wrong.


Well it seems it's NOT your kernel because you have no idea that this kernel supports F2FS perfectly and in fact the kernel is belong to Linux foundations and is under GPL. It's just about its conflict with wifi!
 

acrocosm

Senior Member
Sep 27, 2008
202
53
BLN has only worked well for me in maclaw builds. TC cm11 and PA, that I use now, both have/had problems with either new or old driver
 

doctormord

Senior Member
Aug 7, 2008
103
17
Germany
i believe the reboots are related to interactive governor. please use ondemand governor for now until i look into it.

Well, it seems to me that the whole kernel thingie is a way to "overoptimized" if even now interactive is not working properly anymore. I remember older builds that worked way better.

Beside this,

TC stock kernel is working nicely here, with BLN, with 200Mhz, with no reboot on 1200. (untouched) I actually don't understand, why so much people having problems with their phones. :eek:

Starting from a clean install is always the best option. (Stock ROM -> TC ROM -> Kernel)
 

farru1981

Member
May 6, 2014
48
6
New bug?

Hi I think I have found a new bug on bluetooth side.

In my car I use a Parrot CK3100 for handsfree and an Alpine CDE-183BT for A2DP.

If I do a call the BT Media connection of the Alpine gets dropped and I have to connect it again, but the BT Parrot handsfree does not get disconnected.

If I use the Alpine for everything (handsfree and a2dp) everything works as it is supposed to be, but I prefer to use the Parrot for handsfree because it have more quality on audio calls.

This doesn't happens on stock CM 11 TC kernel.

I am using the 15.06 kernel release because the r1 and r1.5 crashes a lot and reboots constantly. Also I can't use the stock CM11 TC kernel because it suffer a lot of audio stuttering when a new notification arrives :crying:

Regards,

PS. Sorry about my english, I am learning...
 

zwliew

Senior Member
Dec 12, 2013
771
2,778
24
Singapore
github.com
sorry guys, i'm discontinuing this project. it has been a great journey venturing into this 'mysterious realm' of kernel development. i've gotten my oppo find 7a(great phone) and will be working more on that instead of codina.

however, that does not mean that i'm completely leaving. i've merged quite a few commits to the teamcanjica cm11 kernel, such as the interactive governor improvements(much better than pretty much any other governor now) and lz4 kernel compression(faster boot). i'll be contributing to the stock teamcanjica kernel now instead of this kernel.

thanks for all who supported me these past few months and it's been great! cheers :highfive:
 

tofueatsbread

Senior Member
Mar 7, 2013
4,004
1,286
sorry guys, i'm discontinuing this project. it has been a great journey venturing into this 'mysterious realm' of kernel development. i've gotten my oppo find 7a(great phone) and will be working more on that instead of codina.

however, that does not mean that i'm completely leaving. i've merged quite a few commits to the teamcanjica cm11 kernel, such as the interactive governor improvements(much better than pretty much any other governor now) and lz4 kernel compression(faster boot). i'll be contributing to the stock teamcanjica kernel now instead of this kernel.

thanks for all who supported me these past few months and it's been great! cheers :highfive:
Good luck bro :)
 

ace2nutzer

Recognized Developer
Apr 28, 2014
5,658
7,152
39
Germany
Samsung Galaxy Ace II
Samsung Galaxy S8
Nice to hear zwliew !! we all loocking forward with u !

I find it will be very nice if TC CM 11 ROM will support F2FS for the System Partition ! :fingers-crossed:
I know u can it ! :D:good:

And i will continue finding good safe and stable voltages for all. Stability test's are running with Stock Clocks / Voltages for now to testing the ground stability of the ROM .. and to test if my Phone is OK :D...).. and later with oc and custom Voltages. I think this is the best way.
I already compared Stock Voltages with Cocafes custom Voltages (TC CM11 Default) and i find important informations.. but more comes later from me, be patient.. plz don't pm me, about this stuff.

if you want to help me all, for a standard, stable voltage which we can then use for all, then flash the stock JB and check under /d/ab8500-regulator/status and send me via pm an screenshot! The more get involved the better. But I think we would have already have 20 screenshots to make it accurate !

I will post the screenshots here in this post (all) if this is OK for zwliew !!

With this informations a can make stable voltages even for extended Steps... because the extended Steps will help for powersave and stability IF the Voltages are setted correctly ! :highfive:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 90
    I'm not very good at OPs so let's cut to the chase. The general idea is performance, battery efficiency and stability.

    zK Tweaker makes your life better: https://play.google.com/store/apps/details?id=zwliew.zktweaker

    Download:
    http://xda.mister-freeze.eu/zwliew

    Source:
    https://github.com/zwliew/android_kernel_samsung_codina

    Changelog:
    http://xda.mister-freeze.eu/zwliew/changelog.html

    Thanks
    @S.AMU for FTP server

    XDA:DevDB Information
    zwliew_Kernel, Kernel for the Samsung Galaxy Ace II

    Contributors
    zwliew
    Source Code: http://goo.gl/KgqOqp

    Kernel Special Features: Performance, Power Saving, Periodic updates

    Version Information
    Status: Stable
    Current Stable Version: r1
    Stable Release Date: 2014-07-06

    Created 2014-04-20
    Last Updated 2015-11-12
    33
    Compatible ROMs

    This is a list a compatible ROMs based on users' feedback. This kernel should be compatible with almost all Android 4.4 ROMs, but this is just to give a sense of assurance to users.

    Android 4.4 Kitkat
    TeamCanjica CyanogenMod 11.0
    NovaFusion CyanogenMod 11.0
    OmniROM
    Carbon
    Beanstalk
    C-ROM
    Mahdi-ROM
    Ressurection Remix
    SlimKat
    LiquidSmooth
    AOSPA 4+

    Any more ROMs to add to the list? ;]
    30
    sorry guys, i'm discontinuing this project. it has been a great journey venturing into this 'mysterious realm' of kernel development. i've gotten my oppo find 7a(great phone) and will be working more on that instead of codina.

    however, that does not mean that i'm completely leaving. i've merged quite a few commits to the teamcanjica cm11 kernel, such as the interactive governor improvements(much better than pretty much any other governor now) and lz4 kernel compression(faster boot). i'll be contributing to the stock teamcanjica kernel now instead of this kernel.

    thanks for all who supported me these past few months and it's been great! cheers :highfive:
    25
    Changelog

    New changelogs can be found in the zK Tweaker app

    Old Changelogs:

    20140615

    Latest commit: 4948f9435c4c47f768e3ed8c1b33612f33409d41

    -- New --
    Android 4.3+ TRIM support
    Added UHID bluetooth support

    -- Improvements --
    Interactive governor performance improvements
    A few more Linaro and Cortex-A9 optimisations and fixes
    More responsive CPU frequency switching
    Better and faster recovery backup
    WIFI BCMDHD updates
    SELinux updates (we're going to use SELinux soon)
    Updates in IPV4 and IPV6
    Updated per-application data usage monitoring and tracking

    -- Bug Fixes --
    Removed BLN blinking until further testing
    BLN without blinking works fine without wakelocks now
    Fixes in IPV4 and IPV6
    SELinux fixes (we're going to use SELinux soon)


    20140609-TEST

    Latest commit: 2b7e2903f151f971a237bf4e29ef6e687511b81a

    Reverted more CPUFREQ steps commits

    20140608

    Latest commit: 63568d6d8eb2d447f922581792c7dd0eb130c6d2

    Rebased everything from scratch
    Built with Linaro GCC 4.9 2nd June
    Interactive governor and ROW I/O scheduler (defaults)
    Project Butter reimplemented
    Much faster boot time
    More CPU frequencies

    20140602

    Latest commit: b12f7372e0aa4a8a91414c9336866889369d9213

    Built with Linaro GCC 4.9
    Optimise vfs_cache_pressure and decrease vfs_cache_pressure to 10 on suspend
    Reboots should really be fixed now (Revert cocafe's recent LiveOPP commits)
    Upstream back to Linux 3.0.101 (Full with Linux 3.0.45)
    Re-add and optimise Dynamic FSync
    Re-add interactive governor suspend hotplugging
    Add Frandom
    Backport lowmemorykiller from android-3.4 + CAF
    KSM battery saving improvements during idle

    20140531

    Latest commit: a82a4429fd0c6399a7b369de0d4dc485a1c6b7e2

    Add FSTRIM support
    Update exFAT driver to v1.2.5 + optimisations
    Probably fix BLN problems
    Probably fix reboots
    Revert back to 3.0.31
    Increase suspend vfs cache pressure to 50

    20140527

    Latest commit: 01dec50981d60dcb191e0e7bf82cafebe692b088

    Add more cpufreq steps (cocafe)
    Set default vfs cache pressure to 100 for less stuttering
    Upstream to Linux 3.0.101 (no BT bugs)
    Disabled hotplugging driver for now (only going to use it for tests until it is fine)

    20140526

    Latest commit: 5c02dcc5fd245b5a7c5d62d3ae13c0878b9a04f1

    fs: dynamic management of vfs cache pressure -> better battery life
    u8500_hotplug: new algorithm -> almost 100% performance with some hotplugging when not using/suspend
    bluetooth_mgmt: upstream to linux 3.0.101

    20140525-TEST

    Latest commit: 7e5e277ee220c6bdf9abbea0a526a8e8dd8e157d
    Vast improvements in performance both in hotplugging driver and interactive governor :]

    20140524-TEST

    Latest commit: 6bac98f4c321b30a6cfea2967d560f1756d8f47d
    Compiled with NovaTP GCC 4.9
    Various fixes and hotplugging improvements in hotplug driver
    Fix bug whereby minimum CPU frequency will be stuck at 200 MHz

    20140523-test

    Add a very simple CPU load-based hotplugging driver (test)
    Re-enabled logger but reduced RAM needed by logger
    Reduced WIFI wakelocks
    Compiled with Linaro GCC 4.8
    Enabled BLN wakelock functionality but disable it by default
    (to enable: echo 1 > /sys/class/misc/backlightnotification/wakelock)

    20140521

    More optimisations
    Using Google GCC 4.8 in the meantime

    20140519

    enable dynamic page writeback (forgot in previous release)
    using arch dependent cpu power functions
    interactive: faster wake up from suspend
    build with linaro gcc 4.8 and various optimisations

    20140517

    bln: allow configuration of both blink on and off delays
    dt2w: decrease press timeout to 250ms
    sched: disable gentle fair sleepers
    mm: dynamic management of dirty page writebacks -> better performance + battery life
    mutex: dynamically disable mutex spinning at high load -> better battery life

    20140513-FSYNCTEST

    interactive: patches to reduce delay and smoothen freq changing
    interactive: screen off hotplugging should happen faster now
    fsync: replace dynamic fsync with asynchronous fsync
    bcmdhd: probably fix a wakelock when using a dynamic ip
    backlight: reduce min brightness to 1
    fs: asynchronous io latency improvements

    20140511 v2

    ondemand: backport from android-3.4 branch
    dt2w: allow tuning of touch timeout
    backlight: lower minimum brightness to 2 (testing)
    interactive: more tweaking
    bln: configuration of blink delay

    20140511

    interactive: tone down touchboost
    lowmemorykiller: revert to lk 3.0 for zram optimised code
    slub & fat: update from lk 3.0.101
    drivers: updates from cocore (charger, mali, etc.)

    [beta] doubletap2wake: added a simple implementation of dt2w and sysfs (needs testing)

    20140509

    interactive: changes to try to reduce time on max freq
    interactive: add early suspend hotplugging support

    20140507

    abbamp: add back old fix commit
    interactive: fix touchboost and performance improvements

    20140505

    allow bln blinking + customisation of blinking --> novathor settings update for customisation coming soon
    interactive: tweaking
    interactive: new touchboost
    rcu: using jrcu now
    block: remove bfq (stuttering)
    slim kernel size down a little

    20140503

    sioplus: update from boy peterson
    abb-fg: fix laziness on low capacity
    abbamp: abbamp 2.5.0
    bfq: update to v7r3
    ext4: performance improvement
    interactive: performance improvement
    wifi: revert a commit that probably caused more wakelocks
    kernel/timer: optimise apply_slack() for size and speed
    binfmt_elf.c: use get_random_int() to fix entropy depleting

    20140430

    Reverted Interactive to stock from android-3.4 branch + commits from CAF (going to redo this)
    Changed to LZ4 instead of LZO (faster decompression, albeit a little larger file size)
    Faster compression/decompression
    Faster boot-up
    Update cubic to LK 3.0.101
    random entropy tweaks
    Reduce wifi wakelocks in suspend
    Re-added Interactive touchboost and tuned Interactive
    Some misc patches

    20140427

    Improvements to touchboost in Interactive
    Performance and battery tweaks in Interactive
    Set sched_mc to 0 for better performance (especially in hotplug governors)
    fs improvements

    20140426

    Re-enable performance governor
    Remove intelliactive governor
    Add Interactive touchboost and screen-off hotplugging
    Interactive updates from CAF(more sysfs entries and code improvements)
    ARM decompressor code optimization
    LZO Upstream Update
    Updates from previous release
    mm performance improvement
    TCP throughput improvement

    20140425

    Remove zzMoove and Lagfree governors
    General I/O speed improvements
    Made ROW default scheduler
    ROW updates and improvements
    Deadline scheduler latency and read speed improvement
    Remove sio scheduler

    20140424

    Actually enable zzMoove governor
    Tweak Intelliactive for more performance
    Add screen-off hotplugging for Intelliactive (better battery)
    Disabled useless governors (Performance, Powersave, Userspace)

    20140423

    Enable governors and schedulers added previously
    Added Intelliactive (default)

    20140422

    Backport android-3.4 interactive governor
    Add lagfree and zzMove governors
    Add row and bfq schedulers
    Some readahead patches to improve IO
    Compiler -O3 and other optimizations

    20140421

    Cortex-A9 compiler optimizations
    Better power management for CPU scheduling
    KSM performance improvements
    Square root function performance improvements

    20140420

    Based off TeamCanjica CM kernel
    Built with Linaro GCC 4.7.4
    Enable and set Interactive CPU governor as default

    21
    new stable release 20140526 hehe

    the hotplugging driver uses a new algorithm now that does not offline cpu1 very much, so you will experience performance similar to previous stable releases. there is also a new dynamic adaptation of vfs cache pressure to allow better battery life.

    enjoy :]