[KERNEL] KING's Kernel

Search This thread

KINGbabasula

Inactive Recognized Developer
Jan 28, 2013
2,301
5,167
Treviso
r5 released!
Now you can tweak vibration intensity changing value in sys/vibrator/pwm_value between 0 and 60
3udaguje.jpg


Inviato dal mio GT-I9070 utilizzando Tapatalk
 

Stevex26

Member
Jan 27, 2013
42
12
The download from the link in OP is the file boot.txt instead of boot.img. How to solve it?

[EDIT]: Solved by downloading it from laptop. ;)

Inviato dal mio GT-I9070 con Tapatalk
 
Last edited:

Toni5830

Senior Member
Jul 30, 2012
603
439
Somewhere over the Rainbow
Last edited:
  • Like
Reactions: dagger

KINGbabasula

Inactive Recognized Developer
Jan 28, 2013
2,301
5,167
Treviso

Theyonut

Senior Member
May 4, 2013
110
24
The vibrator value goes on 10 (default) after a reboot. I solved that making a file in init.d folder with the term command posted by KINGbabasula in the op. Remember to set the right permissions ;)
 
Last edited:

Paul L.

Senior Member
Nov 22, 2011
950
3,870
33
Mendoza

KINGbabasula

Inactive Recognized Developer
Jan 28, 2013
2,301
5,167
Treviso
@KINGbabasula hey, why you don't add this? https://github.com/android/kernel_common/commit/92189d47f66c67e5fd92eafaa287e153197a454f

The changes are pretty simple to add a tunable that Android can access to free some memory when needed. This is the kernel used for, well, Nexus devices.


And I merged this on cm-11 kernel, pretty simple commit too.
https://github.com/alin23/render_kernel_falcon/commit/1d46e9351ae2331ee52115867e6f90c9e425f869

Becaus I didn't even know that commit exists :silly: I'll add it now, thanks.

Wifi refuses to turn on since I installed v. 6 (latest). On J-team AOSP...

Here it's working without problems
 
Last edited:

Toni5830

Senior Member
Jul 30, 2012
603
439
Somewhere over the Rainbow
@KINGbabasula hey, why you don't add this? https://github.com/android/kernel_common/commit/92189d47f66c67e5fd92eafaa287e153197a454f

The changes are pretty simple to add a tunable that Android can access to free some memory when needed. This is the kernel used for, well, Nexus devices.


And I merged this on cm-11 kernel, pretty simple commit too.
https://github.com/alin23/render_kernel_falcon/commit/1d46e9351ae2331ee52115867e6f90c9e425f869

So we should edit this line
Code:
int extra_free_kbytes = 0;
and writee there how many kbytes we want the kernel to free? so until it's 0 this commit has no effect, right?
 

KINGbabasula

Inactive Recognized Developer
Jan 28, 2013
2,301
5,167
Treviso
So we should edit this line
Code:
int extra_free_kbytes = 0;
and writee there how many kbytes we want the kernel to free? so until it's 0 this commit has no effect, right?

No. That's a sysfs interface. When it's declared that way in sysctl.c it will create the file declared in .procname in /proc/sys/vm . As .procname is "extra_free_kbytes" you will get this file /proc/sys/vm/extra_free_kbytes where you can edit the value
 
  • Like
Reactions: Toni5830

Paul L.

Senior Member
Nov 22, 2011
950
3,870
33
Mendoza
No. That's a sysfs interface. When it's declared that way in sysctl.c it will create the file declared in .procname in /proc/sys/vm . As .procname is "extra_free_kbytes" you will get this file /proc/sys/vm/extra_free_kbytes where you can edit the value

Well, *supposedly* is for Android to ask the kernel to free some memory when needed; but you can also put a static value if you want.
 

KFelix

Member
May 12, 2015
41
7
Will this kernel work for 5.1.1? Would really like to increase the vibration level. Missing some calls because of it :/
 

sanathxda

Senior Member
Apr 13, 2016
66
4
I'm here with a simple but fast kernel for AOSP 4.4.2.

Download with this link you get always the latest image.

KING's Kernel Manager: http://xdaforums.com/showthread.php?t=2747094 to get OTA updates

Features:

Vibration intensity tweakable
- Allows to change vibration intensity

To change value:
Code:
echo x > /sys/vibrator/pwm_value

Change x with a number between 0 and 60. 0 is the strongest, 60 is the weakest.

Dynamic management of dirty page writeback
- Based on a Christopher83 commit.
- Allows to dynamically manage the dirty page writebacks with two different intervals, one when the screen is on and another when the screen is off.
- By using a higher interval we have better performance and less battery consumption, with a very low risk of data loss.

To enable it:
Code:
echo 1 > /proc/sys/vm/dynamic_dirty_writeback

To disable it:
Code:
echo 0 > /proc/sys/vm/dynamic_dirty_writeback

To customize intervals (in centisecs):
Code:
echo xxxx > /proc/sys/vm/dirty_writeback_active_centisecs
echo xxxx > /proc/sys/vm/dirty_writeback_suspend_centisecs

default for active: 1500
default for suspend: 500

tested values: 3000 - 1000 , 6000 - 2000

Disabled Gentle Fair Sleepers
- Gives better performance

AIO: Don't plug the I/O queue in do_io_submit()
- 30/35% faster sd card reading

-O3 build optimization
- Gives better performance

Dynamically disable mutex spinning at high load
- Thanks to faux123
- Explanation: https://github.com/KINGbabasula/KING_kernel/commit/518201ca40774129ed9f89af9aebe9ba9ec7770d

XDA:DevDB Information
KING's Kernel, Kernel for the Samsung Galaxy S Advance I9070

Contributors
KINGbabasula
Kernel Special Features: Dynamic management of dirty page writeback Disabled Gentle Fair Sleepers AIO: Don't plug the I/O queue in do_io_submit() -O3 build optimization

Version Information
Status: Stable
Current Stable Version: 1
Stable Release Date: 2014-05-10

Created 2014-05-10
Last Updated 2014-06-13
Will it work on cm12.1 5.1.1 plz tell me

Sent from my GT-I9070 using XDA-Developers mobile app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    I'm here with a simple but fast kernel for AOSP 4.4.2.

    Download with this link you get always the latest image.

    KING's Kernel Manager: http://xdaforums.com/showthread.php?t=2747094 to get OTA updates

    Features:

    Vibration intensity tweakable
    - Allows to change vibration intensity

    To change value:
    Code:
    echo x > /sys/vibrator/pwm_value

    Change x with a number between 0 and 60. 0 is the strongest, 60 is the weakest.

    Dynamic management of dirty page writeback
    - Based on a Christopher83 commit.
    - Allows to dynamically manage the dirty page writebacks with two different intervals, one when the screen is on and another when the screen is off.
    - By using a higher interval we have better performance and less battery consumption, with a very low risk of data loss.

    To enable it:
    Code:
    echo 1 > /proc/sys/vm/dynamic_dirty_writeback

    To disable it:
    Code:
    echo 0 > /proc/sys/vm/dynamic_dirty_writeback

    To customize intervals (in centisecs):
    Code:
    echo xxxx > /proc/sys/vm/dirty_writeback_active_centisecs
    echo xxxx > /proc/sys/vm/dirty_writeback_suspend_centisecs

    default for active: 1500
    default for suspend: 500

    tested values: 3000 - 1000 , 6000 - 2000

    Disabled Gentle Fair Sleepers
    - Gives better performance

    AIO: Don't plug the I/O queue in do_io_submit()
    - 30/35% faster sd card reading

    -O3 build optimization
    - Gives better performance

    Dynamically disable mutex spinning at high load
    - Thanks to faux123
    - Explanation: https://github.com/KINGbabasula/KING_kernel/commit/518201ca40774129ed9f89af9aebe9ba9ec7770d

    XDA:DevDB Information
    KING's Kernel, Kernel for the Samsung Galaxy S Advance I9070

    Contributors
    KINGbabasula
    Kernel Special Features: Dynamic management of dirty page writeback Disabled Gentle Fair Sleepers AIO: Don't plug the I/O queue in do_io_submit() -O3 build optimization

    Version Information
    Status: Stable
    Current Stable Version: 1
    Stable Release Date: 2014-05-10

    Created 2014-05-10
    Last Updated 2014-06-13
    12
    r3 up!
    usanavev.jpg


    Inviato dal mio GT-I9070 utilizzando Tapatalk
    10
    r4!
    yqyzequz.jpg


    To make it clear: by AOSP I mean the rom by J-Team. If it works on other roms, then good

    Inviato dal mio GT-I9070 utilizzando Tapatalk
    10
    Janice now boots with a kernel built with gcc4.7?[emoji15][emoji15]

    Damn I'm really curious to know if it works, but I'm on Miui
    (Commit for those who are curious like me [emoji16] https://github.com/KINGbabasula/KING_kernel/commit/45320602ac9eb570c2eb80c62a37f1b8cb854226 )

    Sent from Italy using Tapatalk
    Yes it boots with gcc 4.8 too but i'll build it tomorrow with it

    Inviato dal mio GT-I9070 utilizzando Tapatalk
    9
    King take a look http://xdaforums.com/showthread.php?t=2754997

    Powered by CM11 - M6 snapshot