yashsingh1/xdaforums huggingface dataset:
[Mi 3 Android Development] jellyfeels:
i already try the test kernel. still not working for me.. even after i change to aicp 12.1
[Mi 3 Android Development] Mr.C11:
Reflashed it again, I will if failure appears
[Mi 3 Android Development] vishal24387:
Technically every kernel manager or editor do same thing depend upon kernel developer has given how many options to change. But still I will check with EXKM to test ur theory :)

Are you sure Alucard gives good battery backup? Whenever I used it, I felt warm phone. Also can you tell me what changes you did exactly in elementalx for balanced battery backup with performance??
[Mi 3 Android Development] travarilo:
I believe that I am not using msm hotplug in my kernel..

cpu loaded 100% because of hotplug, it limits possible core to online.. you can tune the hotplug value or disable it so cpu cores can share their load..
[Mi 3 Android Development] Dashur7:
Wierd :rolleyes: I didn't find any msm option that I can enable.

Thanks for the suggestion. I'll also clean flash and try.
[Mi 3 Android Development] vedantpro:
To check frequency behavior of all the governor, I have been using CPU overlay from developer options. Alucard worked great but have poor performance whereas Elemental had tendency to go max freq for even small stuff. I just changed till the point it doesn't do that and actual work like a two phase on demand like it should.

For good battery life without hurting performance, you cane even underclock the cpu from anywhere in between 1.3 to 2 GHz depending on how snappier you want your phone to work. Or look at the voltage and decide on which is the sweet spot.

I'm actually out of town for the week so for the time I'm not using this kernel but I found something interesting in ACIP's stock kernel. You know, ACIP got that smooth UI all over and it has only improved in the latest build but it actually works like a two phase on demand rather than what I know of interactive governor to work like. See the attachment.

Whereas, EX on this kernel while it touches max frequently faster and more than ACIP's but it would spend time on lower freq below 1.6 too And this is why it would work alright even when you underclock the cpu (at least for me).

This is the `decent` battery life I was talking about while clocked at original frequency of 2.3 - - - - (DT2W on). Basically consist of chrome, YouTube, small games and Relay and probably 1-2 calls.

Although I can't guarantee whether it would work the same for you :P
[Mi 3 Android Development] vedantpro:
[MENTION=4085197]vishal24387[/MENTION]

Oops I forgot to add elementalx's cpu frequency map for comparison. Here it is (for short duration though). This one sure looks far more efficient and have exactly same performance.

And just in case sometimes when settings are changed, they doesn't work until you don't reboot so remember to reboot :laugh:
[Mi 3 Android Development] aKp1:
I am on this kernel since last 4 days. For me the alucard and interactive governors were stable. The problem on alucard being battery drain and interactive giving usual performance.

The elementalX on the other hand made the phone quite snappy but it gave me random reboots and it seemed it doesn't stabilize the system. In a day, I've got around 6 random reboots on elementalX even after tweaking as per vedantpro and some other trial and error settings.

The mpdecision hotplug is working fine. But intelliplug sometimes freezes my phone.

I am on Mi3 Globe Rom 7.1.20
[Mi 3 Android Development] travarilo:
redkancut-v3.2

Update 12-Feb-17

- Revert using msm thermal simple instead of intelli thermal

- Improve stability

- Some update from lineage kernel

Download here

dt2w for mi3 version here

Recommended to wipe cache - dalvik cache before flash
[Mi 3 Android Development] mikruzer:
i get random reboot after instaling v3.2 dt2w
[Mi 3 Android Development] pu3aditya:
Suport with DarkNess reDefined 7.1.1 ??
[Mi 3 Android Development] oL00No:
Ask your ROM developer or cook to tell you the base of his ROM. Then read page one in this thread.
[Mi 3 Android Development] travarilo:
what ROM and what device?

it should be
[Mi 3 Android Development] pu3aditya:
ooh hee sorry broo

---------- Post added at 08:02 AM ---------- Previous post was at 08:01 AM ----------

Thanks boss
[Mi 3 Android Development] mikruzer:
miui 8 v8.1.6.0.mxdmidi
[Mi 3 Android Development] travarilo:
try to boot with stock kernel until it enters system, back to recovery and flash the kernel after that
[Mi 3 Android Development] mikruzer:
yes i did that and stil get the random reboot i try to clean instal to but the result stil the same now im instaling v3.1 dt2w
[Mi 3 Android Development] SnajperKRS:
Why on this kernel doesn't work World Of Tanks?

Audio works. (MIUI)
[Mi 3 Android Development] id74em8:
Hey. Is work still going on for this kernel?

faced reboots for dt2w. Android 7.1.1 Mi4
[Mi 3 Android Development] travarilo:
what rom?
[Mi 3 Android Development] travarilo:
MIUI Version Updated

It seems that miui isn't friendly with msm thermal simple, so revert back using intelli thermal for miui version

https://www.androidfilehost.com/?w=files&flid=140144
[Mi 3 Android Development] juniela:
No issue on me, kernel still work flawlessly with msm thermal.

Mi3w with migloberom 7.1.20. :good:
[Mi 3 Android Development] vedantpro:
Random reboots are there. Well, they weren't gone in the first place. I just didn't get them for 3 days and then stopped using it for few days but after starting using this again, I have gotten random reboots at an average of twice a day. It wouldn't have been much of a deal for me only if there weren't any sudden battery drain on reboot issue in LOS (which I actually thought was gone too until recently >_<)

I don't know whether msm thermal simple is working better than intelli thermal but it caps the max freq to 1.8 when the cpu crosses 60 probably which doesn't let device go super hot if you boot 2-3 times in a row (for installing zips and stuff) which is great :p

I checked how much SOT alone (pretty much) I can get from AICP + Redkancut (chrome, YouTube, Spotify, Relay, whatsapp, telegram, Tachiyomi etc). I started from full 100% this time.

(alright I wasn't aiming for it, I was just lazing around but then saw battery 53% so went on till it reached 35%. Yeah, I'm hella free xD)
[Mi 3 Android Development] reality1234:
Holy ****,I never have this kinda SOT *_*

In fact this is not even my overall SOT on nitrogen os.Can u share your CPU states too?
[Mi 3 Android Development] vedantpro:
Sorry didn't take any screenshot of cpu states that time but it is usually like this for me (descending order) - 268, 2265, 1497, 1267, 729, 1728, 652.....

One thing to note is, battery drop is not linear on atleast cm based ROMS. It drops a lot faster once it goes down below 30 while drops really slow from 100 to 90 :rolleyes:
[Mi 3 Android Development] reality1234:
Yeah i can see in your screenshot, in graph ,line is consistent for a long time at 100%.. But man i wish to get this SOT. So what was your overall SOT?:laugh:
[Mi 3 Android Development] vedantpro:
I try to not let it go below 30 neither charge above 90 so I did put the charger after taking the screenshot xD. For lithium batteries charging to 100% or draining it to 0% should be done only once in a while for better battery life. Well, that's what I know :p
[Mi 3 Android Development] aKp1:
So now it's the second, it was just once that the phone got stuck and I had to reboot it. Overall it is pretty stable! I am using elementalX with [MENTION=7258252]vedantpro[/MENTION] settings. Alongside that I have underclocked to Max to 1.9GHz and min to 268MHz with autosmp hotplug.

Two issues I found was

1) Slow charging or simply no charging at all

2) Heating (Yes heating and not warming) during charging.

Also I tried the second updated one with intelli thermal, it again breaks the touch. So I reverted back to the one with the msm thermal.

The phone is snappy enough and is not warm at all. Temperatures remain around 40degrees with no load and 50degrees on medium to high load. At idle, the processor sits at 268MHz.

Battery seems better but not significantly and probably it is because of the underclock. Otherwise the screen is taking a lot of battery.

I am on GlobeRom 8.2 based on MiUi 7.2.9 Beta
[Mi 3 Android Development] id74em8:
kernel*
[Mi 3 Android Development] Iceman:
hi travarilo,

can i check with you redkancut kernel support f2fs?? cause i trying to format ext4 to f2fs for cache & data.. but all the time are fail.. alwasy show f2fs error failed to mount. can you or others brothers know how? Please provide me guide or solution how can format ext4 to f2fs successfully without any error. Thanks in advance.
[Mi 3 Android Development] TiTAN-O-One:
Im using latest Beanstalk and this Redkancut v3.2 failed on me miserably.

After flashing and booting, phone simply shuts off without any warning, no freeze wtv, just black screen a few minutes after booting up.

I reverted to v3.1 as for now. Any ideas why?
[Mi 3 Android Development] porselinaheart:
Sorry for the noob question, but can I install this using the stock recovery of a mi3w? or do i need to install twrp first?
[Mi 3 Android Development] Dashur7:
TWRP is required.
[Mi 3 Android Development] TiTAN-O-One:
Any solutions?
[Mi 3 Android Development] simcold:
Working with mi4 lte? Miui 8?
[Mi 3 Android Development] wkobaint:
Working good
[Mi 3 Android Development] simcold:
Before:

After:
[Mi 3 Android Development] hari_hazz:
can u pls add thermal driver to control overheat issue???
[Mi 3 Android Development] xdarkstar:
Don't go with benchmark, can't be trusted fully. Check real world performances, that's what matters
[Mi 3 Android Development] mikruzer:
i instal this kernel on miui work like charm, but when instal on NOS latest update it is kind a laggy anyone know why this is happen?
[Mi 3 Android Development] Anarchy16:
AFAIK, this kernel is NOT compatible with NOS bcause NOS is AOSP/CAF based rom .
[Mi 3 Android Development] travarilo:
redkancut-v4

Updated 27-Feb-2017

- No more underclock and overclock

- Using franco's thermal driver

- Added some cpu governor (smartmax, barry_allen) and removed some of those (dancedance, yankactive)

- Remove intelliplug and autosmp, stay with alucard hotplug and lazyplug, and added bricked hotplug

- Added frandom based on http://www.billauer.co.il/frandom.html

- Enable ntfs support and f2s (still experimental)

- Some upstream updates from LOS

- Added patch from [MENTION=2683775]pelya[/MENTION] on github to make our device can be used as a USB keyboard/mouse using app from play store https://play.google.com/store/apps/details?id=remote.hid.keyboard.client

Download here

As usual for mi3 device who wants to use dt2w but still WIP go here
[Mi 3 Android Development] zx604176460:
what's the situation?

It appears to be good thank you
[Mi 3 Android Development] travarilo:
some silly problem on network before :p:D
[Mi 3 Android Development] zx604176460:
Haha now is good thank you a lot
[Mi 3 Android Development] vedantpro:
Doesn't seem to be working good for me. (MI3 AICP)

- Can't read CPU temp with any app not even with cpu info overlay from developer options. It either shows n/a or a fixed random number everywhere like 37000 on cpu overlay rather than 40 or something

- have same configuration from v3.2 (elementalx) but cpu behavior is totally different. Tried various other values but it is still stuck in its own configuration where cpu will be either 300mhz, 729mhz or at max freq. Wouldn't touch anything else. Basically changing tunables for governor doesn't do anything.

??

Haven't tried other things yet
[Mi 3 Android Development] manci:
I can confirm CPU only user 300, 729 and max freq. Regardless of Governor.

Also, CPU temperature is always 37 degrees.

Using MIUI version.
[Mi 3 Android Development] wkobaint:
Back to 3.2 non dt2w, more snappy than 4.0 for Mi4LTE w/ Latest MIUI beta from globerom.

Even with the same setting.
[Mi 3 Android Development] aKp1:
I used it for a while, I got 2 random reboots and no matter what governor I use, the frequency would remain low and while charging it heated like anything on elementalX and the phone rebooted on its own maybe due to thermal threshold. Now I have reverted back to 3.2.

On latest GlobeROM.
[Mi 3 Android Development] mikruzer:
will it support the latest NOS?
[Mi 3 Android Development] travarilo:
redkancut-v4.1

Update 01-Mar-17

- Fixed on temp reading and frequency falling :silly:

- Improve stability

- Same features with v4

- Added some little stuff

Download here

dt2w version for mi3 user (WIP) here

Have tried on latest NOS and it works well on me with Mi4 LTE
[Mi 3 Android Development] hexian000:
Sorry for my poor English

On my RR 5.8.2 MI4 CDMA, all hotplug drivers never plug CPU in.(but mpdecision is behaving normally)

Only if I increase the value of "minimum CPU online", then more than one CPU is online.

These hotplug drivers always get 0 when reading CPU information?(i guess)
[Mi 3 Android Development] mikruzer:
you use the aosp version right? for NOS
[Mi 3 Android Development] travarilo:
yes I did
[Mi 3 Android Development] vedantpro:
v4.1 is working great.

40hrs and no random reboot :D
[Mi 3 Android Development] tjahjo.djoko:
Not work in CAF, always reboot and very hot...
[Mi 3 Android Development] Arthur King:
Is there any way to "backup" the stock kernel of MIUI so i can feel free to test this kernel and go back if need it?
[Mi 3 Android Development] reality1234:
Use flashify app and backup kernel or use TWRP
[Mi 3 Android Development] Dona55:
Work like a charms test under Miui V8 1-8 1.6.0 stable global version Mod Kernel test V4 and V4 1 both DT2W and not DT2W

Note: DT2W need to enable (Use Kernel Auditor)

Device: Mi 4LTE Ram 3 Giga Version

---------- Post added at 09:59 AM ---------- Previous post was at 09:56 AM ----------

Used TWRP to backup your stock Boot Kernel and Copy your original file from lib/Modules

- scsi_wait_scan.ko

- Wlan.ko

Regards
[Mi 3 Android Development] Simon555:
I'm not sure if this is a kernel problem, but I noticed that audio playback through a Bluetooth handsfree is very laggy, it plays a song for like a second, then stops for 3 - 4 seconds and then plays for another second... It's not a problem with the handsfree, I also tried pairing it with my laptop and audio playback works fine.
[Mi 3 Android Development] Arthur King:
Which app do you recommend to tweak this kernel? Because I see that Kernel Adiutor doesn't show some stuffs(Like Lazyplug)
[Mi 3 Android Development] xuso77:
Hello!

I have a problem with the kernel:

GPS not working in Mi4.

I use v4. 1 for Miui in Global Estable 8.2.

Edit: solved, now work fine.
[Mi 3 Android Development] vedantpro:
I mistakenly thought few days back that I had v4.1 and felt random reboots were there :silly: but since the time I have been using v4.1 NO random reboots. It has already been almost 5 days even without a manual reboot and this is a first with this kernel.

:D

It might be just me but with kernel Adiutor I had problems tweaking this kernel many times. So, I have been using KX Kernel Manager (I can see lazyplug in it too). And the best thing about it is that it applies changes on reboot without fail and even when you come back again from stock to a custom kernel it will still apply the previous changes most of the time. I just find it really convenient
[Mi 3 Android Development] Dona55:
Work like a charms test under Miui Global V8 2-8.2.1.0 stable global version Mod Kernel test V4 and V4 1 both DT2W and not DT2W

[IMG="Mi 4LTE Miui Global V8 2-8.2.1.0"]https://ibb.co/eF62BF[/IMG]

Note: DT2W need to enable (Use Kernel Auditor)

Device: Mi 4LTE Ram 3 Giga Version

---------- Post added at 09:22 PM ---------- Previous post was at 09:06 PM ----------

Work perfect at Mi 4LTE 3/16
[Mi 3 Android Development] xuso77:
Mine is Mi4 WCDMA 3/16

Edit: can be a problem with my phone.

Solved. Now works fine.

Thanks for the kernel. Very good job.
[Mi 3 Android Development] Arthur King:
KX Kernel Manager? I cant find it... Do you have any link for this app?
[Mi 3 Android Development] vedantpro:
Oops I'm sorry it is EX Kernel Manager :silly: by one of xda developers flar2
[Mi 3 Android Development] j4v1lol:
Hi, the kernel is superb. Battery consumption has really improved. 0 reboots.

The only thing I found is that my Mi4 (WCDMA 16GB ROM) won't power on when there is an alarm and the phone is powered off. Also on/off scheduler is not working. Can this be solved / included in next versions?

A guy told me that it is normal for custom kernels not to have these features:

- Phone powered off with alarm -> phone turns on and starts alarm

- Phone powered off -> Phone turns on due to scheduled power on.

Thank you a lot for this kernel!
[Mi 3 Android Development] id74em8:
Bring back CPU and GPU overclock pls :(
[Mi 3 Android Development] danisfc6:
Amazing kernel, excelent work!
[Mi 3 Android Development] stevenanggelo:
With latest redkancut kernel i got lower sot and decreasing battery life

I got better batttery life with v1

Anyone facing this?

Mi4 lte with latest aicp
[Mi 3 Android Development] danisfc6:
Will you add support to OSS cam?
[Mi 3 Android Development] jejemc:
Hello after installation of file redkancut_cancro_miui-v4.1-dt2w.zip

No more tactile response

rom miui 7.3.16 dev
[Mi 3 Android Development] j4v1lol:
Hi, anyone having troubles with bluetooth audio?
[Mi 3 Android Development] oL00No:
Yes. Every single person on this device.
[Mi 3 Android Development] j4v1lol:
With this kernel. Never had problems with stock miui
[Mi 3 Android Development] mdki1996:
Hello and thank you for your work ;)! Major differences in daily use between this kernel and the stock one on Miui roms?
[Mi 3 Android Development] danisfc6:
Better battery with this kernel
[Mi 3 Android Development] mdki1996:
I just found 2 bugs maybe:

1) torch toggling slower than stock Miui kernel, when toggling there is a 1 second graphical freeze;

2) night mode does not work.
[Mi 3 Android Development] Arthur King:
Didnt noticed the lag about the torchlight. And yeah, night mode doesnt work because of the screen control.

Also you will notice that bluetooth doesnt work pretty fine too, just will have the same issues that is on the custom roms
[Mi 3 Android Development] OutSideR_2k14:
Bluetooth stream problem on this version, music stops every 2s, no problems on 2.4
[Mi 3 Android Development] mdki1996:
Really disappointed by Xiaomi... They released only KitKat source code for Cancro, so I think it's very difficult for indipendent developers to create a bug free marshmallow kernel.
[Mi 3 Android Development] j4v1lol:
So then it's confirmed. It's a kernel problem. Well, hope the developer could fix it. The kernel is perfect for me.
[Mi 3 Android Development] Kyruf:
First thing first: thanks a lot. Finally a working kernel for MIUI v8.

I've tested this on MI4W on latest MIUI Beta version. Wifi and Bluetooth are working fine.

I've flashed the DT2W version but DT2W it's not working. NOPE, MY MISTAKE.

Governors seems to work fine. Deep sleep is working fine too. No lag for now and i'll be able to test battery life in a long term.

I would love to see GPU/CPU OC like in CM kernels, it was working fine on the Lineage OS :)

I would like to help you, i'm plenty of free time and willing to learn but i've never worked on kernels before (just basic rom stuff) so if you could contact me in private i would be able to beta test or learn how to compile it.

Thanks again :D
[Mi 3 Android Development] stevenanggelo:
you need to enable swipe to wake up and double tap to wake for double tap to wake to be turn on
[Mi 3 Android Development] OutSideR_2k14:
BT has only problem with streaming audio, rest is working fine
[Mi 3 Android Development] stratosk21:
I did. I reverted back to version 2.1. I suspect it's because the hotplugging wasn't implemented properly. On 4.1 without dt2w, with Ex Kernel manager I can see the Cpu frequencies being kept at the highest set frequency, even though I was changing governors (this was on msm_mpdecision). As for Alucard's hotplugging implementation, the cpus will be brought offline, and it would never come back online, even though under load, it will still use only the amount of cores it kept awake. Hopefully these problems will be ironed out in the next version.
[Mi 3 Android Development] Kyruf:
Yep my bad, i've found it. I'm gonna correct it.Thanks mate :D

I've tested it with a bluetooth speaker for a couple of min and with an OBD2 device (car toque stuff) for 30 minutes and was working fine, i will test for more time :)
[Mi 3 Android Development] OutSideR_2k14:
Its working fine after reboot, but a few hours later music start crashing, i did a lot of tests to find a source of this problem, without results.. Same problem on xiaomi BT car receiver and lg hi-fi. As i said before, no problems on Stocki kernel and this kernel v2.4
[Mi 3 Android Development] mdki1996:
Teorically are there differences in photos between this kernel and the stock Miui one?
[Mi 3 Android Development] rxl.noir:
AFAIK, kernel doesn't have any relation nor effect on camera quality.
[Mi 3 Android Development] mikruzer:
update with support oss camera pls
[Mi 3 Android Development] danisfc6:
Yes please, this kernel has the best battery performance
[Mi 3 Android Development] Arthur King:
So in 2.4 version bluetooth works fine? Its my only reason to keep using the horrible MIUI stock kernel

Edit: Just found the version 2.1 so... ill wait for your answer :D Thanks in advance
[Mi 3 Android Development] stratosk21:
Sorry, jumped to conclusion too fast. The cores do come online, but when under load, so during idle it seems as if the cores are dead. On 4.1 with dt2w. All working fine on sMIUI.
[Mi 3 Android Development] Arthur King:
I had the same issue that you said before, but actually alucard hotplug never turned on the other 3 cores, even on high load(playing) and bricked hotplug just dont use the 3rd core(by default even the settings for this core are off, its the core #2 since it starts with core "0"). That was on 4.1 no-dt2w. I never tried any earlier version so i dont know if they work fine there. Also in v4.1 bluetooth may fail like in custom roms, its just about time, or thats what i found
[Mi 3 Android Development] stratosk21:
I take back what i said, again. I checked using a system monitor and it didn't come back on. The way to fix it is to reboot and choose msm_mpdecision again, that seems like the only way to get it to use 4 cores.

As you can see below EX Kernel Manager says all cores are chosen.
[Mi 3 Android Development] Arthur King:
Yeah, I noticed that, but it's kinda weird. And if you do that some time ago will to back to their same state and just turn on some cores and not all. You said in V2.1 the hotplugs works fine right? Why did you came back to v4.1?
[Mi 3 Android Development] stratosk21:
2.1 had lags for me, might be a problem with sMIUI. I downloaded several versions, I'll try when i can.
[Mi 3 Android Development] Arthur King:
Did you tried several governors and hotplugs on V2.1? BTW Bluetooth works fine for you? I had some issues on 4.1 and that's why I'm not using it but miui kernel just sucks, the hotplug it's kinda crazy
[Mi 3 Android Development] stratosk21:
I did, all seemed to drain my battery very fast. Bluetooth works fine for me as I only connect to my Garmin, I don't use music streaming.
[Mi 3 Android Development] stratosk21:
Try 3.2. I'm currently on it and it seems like there are no problems.

Edit: doesn't go into deep sleep, I'm back on 2.1. Changing kernels so much in a day lol.
[Mi 3 Android Development] mdki1996:
Finally mpdecision works on Miui, thanks to this kernel! ?

Inviato dal mio MI 4W utilizzando Tapatalk
[Mi 3 Android Development] travarilo:
Update 26-Mar-17

- Added 268 MHz CPU Clockspeed

- Added 27 MHz GPU Clockspeed

- Some improvements

- For dt2w version, sweep2wake is enable on boot with sweep to right or up as default action

Download here

Dt2w version for mi3 as usual here
[Mi 3 Android Development] vedantpro:
Shouldn't there be a different version of mi 3 like all the other times coz Touch isn't working on Mi 3 with this v4.2 :(
[Mi 3 Android Development] hari_hazz:
https://www.androidfilehost.com/?w=files&flid=150864