yashsingh1/xdaforums huggingface dataset:
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
The bootfail solution it's just huaweis way to handle problem situations (reboot, maybe logging) and is not compatible with LOS as we have seen it causes random reboots.

It is not in OpenKirins LOS kernel. Because I want to only take from LOS kernel what's compatible with STOCK kernel I started based on official sources and take only commits good for both.

The bootfail can be removed without consequences, so it is now out of my kernel.

The reason to do it that way and not just use LOS kernel as base is that I need one kernel base for both variants to make development easier. Everything different I have to handle with a build flag, so I can build both variants from same source.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
The mount point is handled only by the Rom, not from kernel. But the LOS Rom expects the mmc module (driver) to have a different name compared to stock Rom. (LOS uses LOS standard, stock uses what huawei wanted). So regarding the mount point you have to talk to your Rom maintainer.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
The reading in darkness feature works just so that since 1.007 if you set the brightness slider to lowest point (which is 3) the driver recalculates the voltage for backlight display and uses the lowest value (display uses values from 0..255, but brightness goes from 3..255).

So if you just put the slider to minimum your device should be much darker, ideal for reading in darkness.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Init.d support... every user has to add it only one time and there are several ways to do it.

My kernel changes nothing to the init*rc scripts. Doing that risks breaking the system. I would wish every Rom maintainer would just include init.d support because they have the init scripts and selinux users required for it in control. I bet your solution changes the selinux to allow script execution, I modify superuser scripts, supersu modifies the selinux and I use same user.

The users with init.d support would most likely end up in double run of the scripts, Roms with modified selinux would break (stock and LOS is different)

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] AnonVendetta:
I'm just posting again to say that I've been using the LOS BF 1.007 for several days (since I last reflashed my ROM), no random reboots have occurred. Eagerly awaiting the next version.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] :
Same with me.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] chrisleLP:
[MENTION=1376601]cyclon1978[/MENTION], I would suggest that you convert this thread to a DevDB thread, include the link for source, and proper credits. :angel:
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
does this affect magisk/safetynet ???
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] AnonVendetta:
[MENTION=1376601]cyclon1978[/MENTION]: Sorry, but in the future I won't be available to test this kernel, due to issues with this phone that I haven't been able to resolve. I even sent it back to Huawei for repairs, they sent it back unfixed, which has left me pretty angry. So I'm selling the phone. I'll probably get a ZTE Axon 7. Either way, have fun developing the kernel!
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
New version for stock ROM only:

https://www.androidfilehost.com/?fid=962021903579489378

Changes:

- upstream to Linux 4.1.22 (bugfixes and performance tunings from official android 4.1.x kernel)

Please report back if any problems occur.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
All credits and sources (except latest upstream, will come soon but these are no secret at all) given in first post, I think I missed nothing.

The features are made all by myself, no line of code taken from any other source.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
any performance improvement compared to stock kernel other than extra features mentioned above ?
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
new major release (version 1.009)

- upstream to Linux 4.1.46

- small changes from mate kernel (Linux 4.2)

Overall it should give you performance increase and stability, you can check with antutu to verify.

Installation instructions for first users only:

- just flash, see first post

- use any init.d solution you want (to run /system/etc/init.d scripts)

for update:

- if you changed /system/etc/init.d/00_setup_charger copy it to /system/etc/init.d/01_setup_charger

(so any changes will stay for the future and you only have to check new 00_setup_charger script for changes)

Enjoy!

STOCK/STOCK based rom: https://www.androidfilehost.com/?fid=889964283620768256

LOS/LOS based rom: https://www.androidfilehost.com/?fid=817906626617948825

Tested only on STOCK so please report if everything is working
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] felix-development:
May you push all changes to your GitHub? :D

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
see branch feature_Linux_4_1_45 (containing all features and the upstream)
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] felix-development:
ahh thanks

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
finally some statement on performance....if possible ..try to tweak gpu too bro...animations r stuttering at times...will try this tonight & report back
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
You tried pm_qos gpu governor? Mali-ondemand is default. Qos is more responsive.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] HebrArtin:
You have given a real treasure to honor 6x device... Good work Buddy...
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
no...missed somehow....google/xda search returns confusing results & afraid of compatibility ...can u pls provide & brief a way to use it ?
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] DarkAlpha.Sete:
Is there any way I could use this kernel without losing my warranty? This is seriously something I want but losing my warranty is also a problem for me...
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Just tested pm_qos, it is broken and causes reboots.... I will fix it or include another gpu governor

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
waiting :fingers-crossed:
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
New version 1.10

Stock: https://www.androidfilehost.com/?fid=745849072291691741

Los: https://www.androidfilehost.com/?fid=817906626617949674

Features added:

- new gpu governor

- system will not fail if you set pm_qos as gpu governor, instead old governor will be reverted (pm_qos will never work with the 6x)

Add the following script to /system/etc/init.d or run manually to enable the new governor.

Its ported from huawei mate device, so all credits goes to huawei.

have fun and report back!
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] shashank1320:
Same as youdo acter custom ROMs, just dload the full firmware and it will replace this kernel with stock kernel amd warranty can be claimed
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
Thanx...i didn't get d exact instruction which u mentioned to manually enable new governor...can u pls elaborate
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
To try it out open terminal app (from market) or adb shell from computer.

Then enter:

su

echo gpu_scene_aware > /sys/devices/platform/e8970000.mali/devfreq/gpufreq/governor

The governor will be used until next reboot.

In next version I will include it in the init.d scripts

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
Nice work mate. A lot better than stock. Few animations look smooth.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
New version online, see first post.

Now the gpu_scene_aware governor is default (see init.d script, you can change it back if you dont like smoothness ;) )

Also i changed the battery percentage display, you will now always see the real battery percentage, so if you limit it it will not go to 100% instead always show the real left percentage.

Have fun!

PS: any feature requests? I have no idea what i should do next...
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Khan ubaid:
There is some problem in displayed download links
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Links fixed. Thanks!
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] tejus:
error while flashing ur latest build
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] IH8TouchWiz:
It's cause you're using the TWRP by Meticulous. You're probably going to need the OpenKirin TWRP or the one by Hasan in order to flash this.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Petrpesek:
Editing TERMINAL_VOLTAGE does nothing, I can charge only up to 70%
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Sounds like it is working. The percentage shown is calculated from remaining charge in mAh in relation to maximum charge of battery. The remaining charge is calculated from incoming and outgoing current and might not always be accurate.

If you change the init.d script you have to run it manually or reboot. If you increase the terminal voltage you should reconnect charger to continue charging.

The second value (charger voltage) has to be higher than terminal voltage or you won't reach terminal voltage.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] tejus:
How to revert back to stock kernel
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
flash d backed up boot partition

why do u want to revert back to slow cap stock kernel?
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] tejus:
Bcoz this one is slow . Some apps taking time to launch and then that app will work slow af . I will try logs first before going back to stock. And also charging cant be done to 100 . On 88 percentage it said full charged
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] iamshadow2008:
EDIT: Nevermind.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
After 70% - charging is extremely slow than stock

i didn't change any init.d values - is there any implementation in kernel by default ? pls help- killing my time in morning
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
New version online!

1.014 (see thread download section)

Changelog:

- taken some memory management related performance features from Honor 7X - please test prior to update with antutu or whatever performance measurement tool you trust and test again after the update and report back.

(citation from Huawei: "This may have a performance impact")

[MENTION=7042702]sreekantt[/MENTION]

This kernel does things if you have init.d support:

- reduce fastcharge (that is what you see)

you really want fastcharge to be slowed down a little bit. But if you want it faster do the following:

now change in 01_setup_charger the following value:

DPM_VOLTALGE=4200

to 4280, 4360, 4440 or 4520

the higher you choose the earlier you'll need a new device because your battery has aged. Stock ROM/Kernel uses 4520 to burn your battery asap so you'll buy the 7x soon.

All lIthium batteries need to be charged slower if you reach terminal voltage to avoid battery damage.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
Edit- wrong post, ignore benchmarks
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
Benchmark is same compared to 1.011(lower than 1.0q2) but number is less than stock. However, day to day real performance is much better than stock at least for me on 1.011(have to test 1.014).

Yes..batteries wear out faster due to rapid charge but i need it sometimes to get through the long day or charging in a hurry.

Pic 1- benchmark 1.011

Pic 2 - 1.012

Pic 3 - 1.014
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Khan ubaid:
I am getting error while flashing through twrp

It says unsupported device

I am using meticulus TWRP ..
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Sreekantt:
Scrolling stutters now and then on latest build.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Khan ubaid:
What do you mean buddy ...
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Petrpesek:
Hello, have someone compared performance of this kernel with the stock one?

Thanks :)
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Please always do several runs in one configuration to compare performance - the latest kernel should get the best values (except for gpu maybe because of new governor, but for measurement you can choose the old governor)

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] LinuxKernel:
Kernel

[MENTION=1376601]cyclon1978[/MENTION]

What do you think about integrating the HOTPLUG governor or even better a cpu hotplugging driver, so you can use other governors with cpu hotplugging as well?

Voltage control for the cpu cores would be nice as well ;)

Is it acutally possible with the HiSilicon Kirin 655 (kernel sources, documentation,...)?
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
CycloX_KERNEL-01.016-STOCK-079

Antutu Score of this version (4 GB ram model)

Enjoy:

https://www.androidfilehost.com/?fid=818070582850490085

(Only stock rom version for now)

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
All possible. But why? More energy saving? We are already pretty good on that. More performance? Try latest kernel and report back if anything lags.

Undervolt is dangerous, once I killed a device with too much UV.

I will continue to update the Linux version of the kernel (security, bugfixes and performance improvements from common Linux kernel), take improvements from 4.4 android kernel (our 4.1 kernel is out of support from Google already) and I also take features from newer huawei kirin devices.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Badace2:
Thanks for the kernel, my antutu score is still at 55k though, the scores above are insanely great for h6x, dunno why it didn't come off same for me.?
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] LinuxKernel:
[MENTION=1376601]cyclon1978[/MENTION]

Well as this is a kernel for powersaving I thought it woud be a good idea. Why has a CPU-core to stay powered on all the time especially when it isn't used at all? - Not really comprehensible to me. The question is just how much energy it would save.

Never had a problem with it, but I guess it's more useful on other devices which have problems with heat.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
You have 4 gb ram version? January stock rom with cyclox 079?

I had charger connected while testing.

If you still get so low scores I should check other modifications I made to stock rom...

Oh, which cpu governor?

If you can post antutu result I can check into it

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Badace2:
I'm on customized version of stock rom from Mirza, it is with January security patch though. Governor is interactive further more i didn't put it on charge while doing antutu benchmark. Since im new member here i dunno how to put up pictures here the only option i see is telling me to put the web address to that image, nonetheless, its antutu 6.2.7 app with scores of 55271.

Thanks.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Update antutu to v7 maybe they changed the scoring system.

Have just checked that all 8 cores never go to sleep except deep sleep, so we need a hotplug, will come soon.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Badace2:
I updated the antutu app, now it's saying 63k score, i have a 3gb ram version, but should the difference be that vast?
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Post your 4 sub-scores (cpu, gpu, ...)

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Badace2:
It's the CPU lagging behind, mines 24k yours is 35k.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
I implemented a simple cluster control - screen off: all cores offline except one little core, screen on: all on

Not surprising: fingerprint lag

The single core is enough to play music.

Battery consumption has changed drastically while screen off.

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
01.017 for STOCK and LOS

New Version 01.017 for STOCK and LOS based roms.

Changelog:

- Linux 4.1.48

- hisi hotplug removed (not supported by honor 6x, so it was always disabled)

- added basic core hotplug mechanism, default is stock behaviour

- some more things with not much relevance

Usage of hotplug mechanism:

Enable it

echo 1 > /sys/module/cluster_plug/parameters/active

Configure number of little cores in screen off mode (big cores are always off if screen is off) [1..4]

echo 2 > /sys/module/cluster_plug/parameters/max_cores_screenoff

Configure screen-on mode to low power consumption - only little cluster will be used if screen on

echo 1 > /sys/module/cluster_plug/parameters/low_power_mode

Default configuration is normal mode and one core on if display is off. This can lead to laggs while display is off and you stream music, use bluetooh, etc. If you experience lags, give feedback and increase max_cores_screenoff. If this works for you you'll benefit from power savings while device is working (music for example) and display is off. It also seems to save more power in deep sleep which should not be the case, but the battery meter says so...

In low power mode the device will lag on games but you'll survive a multi day desert trip without charging.

In all modes you'll have a fingerprint delay, thats because the one core used has to do all the wakeup work. Thats the trade-in for battery runtime. Maybe i can reduce that a little bit in the future.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] HebrArtin:
Going good ... Let me try
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
I always appreciate feedback from my fellow three users of my kernel ;)
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] iamshadow2008:
Everything works great for me. Using 2 cores while screen is off. Fingerprint scanner lag is minimal and doesn't bother me at all.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] 0xcafebabe:
Maybe I am blind, but where can I download this version?
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
Download section of thread (on top of page)

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] Alejndrox097:
why cant install any app in system? like magisk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
New Version 01.018 for STOCK and LOS based roms. (sorry, forgot to upload LOS version, comes tomorrow)

Only change: fingerprint magic: fast as hell with cpu hotplug

Gesendet von meinem BLN-L21 mit Tapatalk
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
I don't think that is a kernel related question.

You can uses:

adb shell

su

sysrw (or mount -o rw,remount /system)

and then copy apk to system partition.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
New Version 01.019 for STOCK and LOS based roms.

Changelog:

- improved cpu hotplug

- improved fingerprint delay ( or better no delay )

Usage of hotplug mechanism:

Enable it

echo 1 > /sys/module/cluster_plug/parameters/active

All will run out of the box. If you're happy stop here.

Configure number of little cores in screen off mode (big cores are always off if screen is off) [1..4]

echo 2 > /sys/module/cluster_plug/parameters/max_cores_screenoff

Default is 1, increasing this will give you more power while screen is off - solves heavy cpu background tasks not running well - for example if bluetooth playback is stuttering (no, that works well but i have no real example)

Configure screen-on mode to low power consumption - only little cluster will be used if screen on

echo 1 > /sys/module/cluster_plug/parameters/low_power_mode

This will slow your device significantly down (4 little cpus while screen on, configured 'max_cores_screenoff' little cpus on while screen off) but save energy while using it. In low power mode the device will lag on games but you'll survive a multi day desert trip without charging.

There should be no fingerprint delay compared to stock (there is one but it is so short your eyes won't see it)

Configure hotplug

echo 20 > /sys/module/cluster_plug/parameters/load_threshold_down

echo 80 > /sys/module/cluster_plug/parameters/load_threshold_up

echo 50 > /sys/module/cluster_plug/parameters/sampling_time

echo 5 > /sys/module/cluster_plug/parameters/vote_threshold_down

echo 2 > /sys/module/cluster_plug/parameters/vote_threshold_up

This means the hotplug will check the cpu load every 50ms. If the load (0-100%) is above 80 we increase the vote-up, if it is below 50 we increase the vote-down.

If vote-up is bigger than 2 we online an additional core (big core preferred)

If vote-down is bigger than 5 we offline an additional core (big core preferred)

So you can control the intervall (higher -> energy saving, lower -> responsiveness).

You can change the tendency to offline or online cores ( 2 / 5 means more responsiveness compared to 5 / 5, 0 / 0 would tend to online/offline more cores in the same time -> energy consumption will be higher)

In theory it is better to online fast (responsiveness) and offline slow.

In theory it is better to online slow (energy saving) and offline fast.

So you have now all the tools to do what you need.
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
New version 2.0

Why 2.0 ? Because we have a great new feature, credits to [MENTION=7965206]petya230[/MENTION] for making me look into it.

The CPU runs now at a maximum of 2362 MHz.

For some reason the kernel sources contain a device tree which would clock the Honor 6x at 2362 but it is disabled in shipped device tree.

Oh, and i recommend setting the cpu governor. Stock is doing strange things to them, so decide for one (ondemand for normal use, performance for high antutu scores, do not forget to go back to a less aggressive governor).
[Honor 6X ROMs, Kernels, Recoveries, & Other Develo] cyclon1978:
See attached (Download section) files 01_setup_* for sample configurations, copy the one you want to /system/etc/init.d if you have init.d enabled or run it manually. (do not forget permissions so it will truly run on init.d).

I recommend using 01_setup_battery.

You'll want to change FASTCHARGE=1 to 0 if you have USB 1.1 / older hardware which cant deliver much power.

If responsiveness is bad decrease SAMPLING_TIME=250 to 100