[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

exodius48

Senior Member
Apr 7, 2013
3,568
683
Yori's Heart
Xiaomi Poco F3
I can't really type since I'm not on the computer, but this should give you a pretty good idea.
http://billauer.co.il/frandom.html

Its enough bro. :D

Frandom is a Linux kernel random number generator, which is 10-50 times faster than what you get from Linux' built-in /dev/urandom. And it uses very little (/dev/frandom) or none (/dev/erandom) of the kernel's entropy pool, so it is very useful for applications that require a handy source for lots of random data.

Yes i want it.. :D
 
  • Like
Reactions: el_polilla1990

INFERNO777

Senior Member
Feb 10, 2011
254
63
@zwliew what you say about call recording from line? Can you add this future to kernel functional? All dev's call record apps says if call record not working then you contact with kernel developer. Tnx
 

danny19901

Senior Member
Nov 4, 2010
2,614
858
Stockton-On-Tees
to those who have to press home button to wake up phone screen, please set /sys/devices/system/cpu/cpufreq/interactive/screen_off_max_freq to 800000-1000000. it is most likely because the screen off max frequency is set to 400mhz, which causes the device to lag a bit when waking up the screen.

I have annoying problem I'm on 4.4.4 Mahdi edited off screen CPU freq but after reboot it resets to default also I believe 400mhz is problem to my stuttering music when screen is off other than that kernel is awesome

Sent from my GT-I8160 using Tapatalk
 

zwliew

Senior Member
Dec 12, 2013
771
2,778
24
Singapore
github.com
I have annoying problem I'm on 4.4.4 Mahdi edited off screen CPU freq but after reboot it resets to default also I believe 400mhz is problem to my stuttering music when screen is off other than that kernel is awesome

Sent from my GT-I8160 using Tapatalk

that is default behaviour in android. settings reset to default due to the ramdisk. use an init.d script to set it, easy enough to find out how. next build won't have that screen off frequency cap.
 

zwliew

Senior Member
Dec 12, 2013
771
2,778
24
Singapore
github.com
i've added some recommended settings in the 2nd post. keep in mind some of these such as multicore powersaving and fsync can be overwritten by novathor settings, so it may be better to set them there. these settings are mainly for the next release coming soon, so stay tuned. :)

zk tweaker update will follow soon after with codinap support and some kernel tweaking abilities.
 
Last edited:

borkins

Senior Member
Mar 1, 2013
276
109
i've added some recommended settings in the 2nd post. keep in mind some of these such as multicore powersaving and fsync can be overwritten by novathor settings, so it may be better to set them there. these settings are mainly for the next release coming soon, so stay tuned. :)

zk tweaker update will follow soon after with codinap support and some kernel tweaking abilities.

Hmmm, strange, i don't have the "interactive" folder, only "pegasusq", and I can't create it.
Maybe i forgot to do something... :/
 

borkins

Senior Member
Mar 1, 2013
276
109
I change to interactive, and now I see it there, but keep getting "no such file or directory" for all commands, when trying with script.
Edit: in terminal the commands working fine
 
Last edited:

Kiras_PL

Senior Member
Apr 20, 2014
254
24
@zwliew are you going to create kernel based on latest TC sources ? Because i got a lot of reboots on latest CM11 and I'd love to have your kernel. My phone works perfect with it. :)
 

judas1977

Senior Member
Mar 22, 2011
2,269
1,870
@zwliew are you going to create kernel based on latest TC sources ? Because i got a lot of reboots on latest CM11 and I'd love to have your kernel. My phone works perfect with it. :)

Hmm... you can say, that current TC kernel sources are based on... zwliew changes (most of latest changes are commited by zwliew)... So i'm confused what do you actually want from @zwliew;))...
 

Kiras_PL

Senior Member
Apr 20, 2014
254
24
Hmm... you can say, that current TC kernel sources are based on... zwliew changes (most of latest changes are commited by zwliew)... So i'm confused what do you actually want from @zwliew;))...

So i must admit that im not really satisfied with latest CM11 kernel. Here is why:
- problems with waking up screen during incall
- no ROW I/O sheduler
- lots of reboots. But here i got a question. A couple of weeks ago one user(i dont renember his nick) adviced how to increase CPU freq(without reboots) to about 1150Mhz by changing CPU voltages on various CPU frequences. I made an init.d script with it and it worked really really well. Here is my script:

#!/system/bin/sh

sleep 90
echo varm=0x36 > /sys/kernel/liveopp/arm_step6
echo varm=0x37 > /sys/kernel/liveopp/arm_step7
echo varm=0x38 > /sys/kernel/liveopp/arm_step8
echo varm=0x39 > /sys/kernel/liveopp/arm_step9


And now my question. Did You @zwliew implemented it ? This really works and now i dont use it(since latest build) and my phone reboots quite often.
 
  • Like
Reactions: ace2nutzer

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 :]