yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4i] davtse:
with powernap, i only whitelist those apps with GCM which i then greenify. amplify, follow this thread

http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588

alot of it depends on the strength of your signal as well.
[Xiaomi Mi 4i] milogen:
Hi, after i flashed this kernel on my Resurrection Remix rom, i dont see the new governors under the kernel control app or pre-installed kernel control app.

Besides that, the battery charging is slower than the default kernel in RR rom.

Anything I have done wrong ?
[Xiaomi Mi 4i] candiesdoodle:
wait for a 5 mins or so after boot before you fire up any of the kernel control apps. the governors should be visible.

Actually, i also agree on the charging bit. [MENTION=6858217]haikalizz[/MENTION], the charging aspect is a mixed bag. without any changes to the charging current, it seems to be a tad slower than normal (stock MIUI/ dh.herald CM kernel etc.). even after enabling fast charge and tweaking the charging current using kernal aduitor, it doesnt really charge 'fast'. have you come across these?
[Xiaomi Mi 4i] zjlow1314:
Hi, I just flashed the latest Sensei kernel with Wilson Cm12 latest build, the charging seems quite fast to me. Mind telling what rom you are using? And how to define whether the charge is fast or slow?
[Xiaomi Mi 4i] candiesdoodle:
i am using dh.herald CM12.1

i would define normal charging as about 2'15'' - 2'30'' hours to go from 0 to 100 on a switched on state.

anything less than 2 hours for full charging start from near 0 is fast for me.

whats your assessment?
[Xiaomi Mi 4i] milogen:
Hi, after i flashed this kernel on my Resurrection Remix rom, i dont see the new governors under the

i rebooted and checked, the governors still not show in kernel adiutor.

battery charging wise, i monitored via battery monitor widget, it has took more than 2:30 hours to charge my Resurrection Remix rom.

Anything I have done wrong ?
[Xiaomi Mi 4i] haikalizz:
I found that charging times is a bit slow but never did went pass 2'15" or so. I kept it under cold conditions though... I'm still fiddling around with MIUI7, testing out new features and other stuff. I'll seek out the problem when I get back to CM either tomorrow or end of week.
[Xiaomi Mi 4i] zjlow1314:
Alright, I have just fully charge my phone, I will drain it as fast as possible and let you know how long does it take to recharge from 0 - 100 with sensei kernel and wilson's cm12.1.

btw, is dh.herald cm12.1 stable? I never try that rom before ><
[Xiaomi Mi 4i] haikalizz:
Yes it is...
[Xiaomi Mi 4i] candiesdoodle:
dh.herald's is the first CM for our device. thats where it all started ... :)

and yes, its stable
[Xiaomi Mi 4i] zjlow1314:
Thanks, will test the dh.herald's ROM later hehe ^^ :good::good:

Thanks. Will try it out later.. Btw, thanks for this awesome kernel, totally feel the different between stock kernel & your kernel ^^ :good::good:
[Xiaomi Mi 4i] joe_han:
Hi, firstly thanks for your kernel :good: I am using Mokee Release with this kernel. So far so good, but there are some bug or glitch that I noted:

The fast charging is not working. It couldn't pass -900ma current when I checked with CPUTemp. When I was using MIUI, I could reach -1300ma current.

I'm getting random reboot when I'm about to call someone. For example, I was listening to the music, then I would like to call my gf. I pressed dialer, and call, then boom, reboot. It's not often, just in some case. Today is my 5th times of getting this random reboot after using your kernel for about a week.

That's all. Overall usage is superb, no heat, so cool. :good::good:;)
[Xiaomi Mi 4i] strangebro:
i want to ask here if there is any users that have problem with waze app?

waze application always forced closed when i launched it

i used dh.harald CM 12.1 with lastest sensei kernel
[Xiaomi Mi 4i] haikalizz:
Hmm, haven't tried Waze though but it shouldn't have any problems. Could you provide a logcat?

[MENTION=7014313]joe_han[/MENTION] Yeah for the battery, I'm trying to fix. There seems to be a problem with the latest kernel sources. As for the dialer, I don't have any problems with it, maybe try to clear the data of the app?
[Xiaomi Mi 4i] arunsebstn:
Link not working

I think i couldnt access any mega site. Couldnt download. Pls help
[Xiaomi Mi 4i] strangebro:
nevermind i tried the app without reinstall or wiping data then its work. i dont know what happen. thx btw
[Xiaomi Mi 4i] davtse:
okay so I spent the whole day trying to get xposed working on miui6/7. No luck. On a more positive note, sensei kernel works on miui 6 developer's rom. Almost everything seems to be working fine, just no wifi.
[Xiaomi Mi 4i] haikalizz:
Which developer version? Also wifi driver isn't the same as MIUI or it might be just some code changes from CAF...
[Xiaomi Mi 4i] davtse:
5.6.11.. I was quite surprised that it works. Just that xposed and wsm tools can't work at all.
[Xiaomi Mi 4i] Nachtfalkeaw:
Hi,

I installed the kernel v1.3 from the first posted using TWRP. After rebooting the phone I cannot found the new governors from the first post. There is (one!?) new governor and I think several new I/O schedulers.

I Am using the Ressurection Remix ROM from this forum - not sure if there are any incompatibilities with this kernel !?

Thank you for your help!
[Xiaomi Mi 4i] haikalizz:
I'm working on the other governors, it won't seem to compile right now and don't worry about any incompabilities with custom roms. It works on every custom rom plus Miui 6 Dev (5.6.11)
[Xiaomi Mi 4i] haikalizz:
Sensei v1.3.1 is up on #3 post... This is an optional update, changelog is at usual place. Thank you for using Sensei, have a great day.
[Xiaomi Mi 4i] candiesdoodle:
Good stuff! thanks for the update!

Were you able to look at the charging current aspect? it some times works, but most times its slow.
[Xiaomi Mi 4i] haikalizz:
I think it's the driver... I'm still looking on it. Have you tried changing SeLinux to permissive? Maybe it's that...
[Xiaomi Mi 4i] haikalizz:
Making up for lost times, I will be uploading a new version with a set of new features either tomorrow or Saturday. You can see my progress at github.
[Xiaomi Mi 4i] candiesdoodle:
hey i tried installing the latest ver. its getting stuck at "starting apps". i didnt try clearing the cache..but should i be doing it? i mean, never had to clear the cache earlier for kernel updates. its really time consuming when it optimizes more than 150 apps :)

have reverted to the previous version now.
[Xiaomi Mi 4i] haikalizz:
Stuck? Have you tried a reboot? Sometimes it does that, sometimes it doesn't.
[Xiaomi Mi 4i] joe_han:
I got the same problem, I've rebooted several times, still stuck at "starting apps". I've been waiting for almost 1 hour..:confused:

Edit: btw I'm using Mokee release version (MK51.1-ferrari-151030-RELEASE)
[Xiaomi Mi 4i] khurshid_258:
Is this kernel supported on miui 7
[Xiaomi Mi 4i] haikalizz:
No, they haven't updated kernel sources so can't guarantee...
[Xiaomi Mi 4i] davtse:
how are the porting of new features coming along? i saw a few tweaks when peeking around your github.. looks good lol
[Xiaomi Mi 4i] haikalizz:
Right now KCAL and a few network tweaks. ElementalX governor hasn't been added. I'll need to revert a patch in the kernel that causes the Starting Apps problem...
[Xiaomi Mi 4i] imagine92:
confirming stuck at "starting apps" on latest build... reverting back :D
[Xiaomi Mi 4i] haikalizz:
Alright so I reverted the potential commit that has caused the problem. The updated kernel is in #3 post, thanks for the feedback everybody.
[Xiaomi Mi 4i] davtse:
I'm still getting the apps starting bug with the latest 1.3.2 kernel. Not sure why though. Reverted to last stable version and finally got it start up
[Xiaomi Mi 4i] joe_han:
I still get the same problem using your latest kernel 1.3.2, stuck at "Starting apps". I've been clearing chace and dalvik, reboot, and still the same. Going back to stable 1.3.
[Xiaomi Mi 4i] Suuugen:
Same for me, just stuck with 1.3.2
[Xiaomi Mi 4i] Xornop:
I've flashed this kernel and a couple of days ago, my phone started discharging while on a charger. Charger is fine, oher phones do charge normally. It says it detects the charger, but somehow it doesn't get the power. This goes away if I leave my phone to die, give it 1,5 hours rest, and then charge it to 100%. But yesterday it happened again, also this only happens at ±65% every time. So up to 65% it charges normally, and after that it starts to dectease agaon, untill it's dead again.

What did I do? I installed other roms and other kernels but the problem persists. How do I fix this?
[Xiaomi Mi 4i] haikalizz:
Is MiUI having the same results?
[Xiaomi Mi 4i] Xornop:
Yes, miui is giving the same result. Going to try and fastboot flash stock miui today. I'll report back in a couple of days if the problem persists. Now on my old HTC Desire X with cracked screen :p
[Xiaomi Mi 4i] Xornop:
Reporting back: I tried Carbonrom and it was working perfectly. Untill I flashed this kernel. I flashed the latest version, 1.3.2 dev, and I just kept "starting apps". I rebooted, and it was stuck in bootloop. Restored my boot and system, booted, and saw that my phone was not charging after pluging it in. Same problem. This kernel does something to my hardware, making my phone not charge, because my software can change conpletely and still my phone won't charge.
[Xiaomi Mi 4i] haikalizz:
Have you tried checking the charging port? It might be a problem with that port itself, not kernel. I didn't change anything regardong chargers since the last 2 versions...
[Xiaomi Mi 4i] Xornop:
I have, and that was not a problem. Also the kernel appears to mess up my snapchat, I can't log back into it for some reason. Doing a full reset fixes this problem. Deleting snapchat data or the app doesn't seem to do the trick :/
[Xiaomi Mi 4i] davtse:
[MENTION=6858217]haikalizz[/MENTION] any chance you could fix wifi for miui? latest xposed seems to be working with miui as well as AOSP sources

[MENTION=5408042]Xornop[/MENTION] check the xposed modules thread. snapchat disabled stuff for root users
[Xiaomi Mi 4i] haikalizz:
Wouldn't it be useless against newer versions of miui? Since the newer ones won't accept the current kernel.

Also, a new update will either come January or mid-February next year. Started back from scratch for 1.4 with both CM12 and CM13 sources...
[Xiaomi Mi 4i] davtse:
Ah yea that makes sense. No worries though, xposed doesnt work 100% well with MIUI. Many of the modules dont seem to work. I'm back on uber cm12.1 and sensei 1.3
[Xiaomi Mi 4i] Xornop:
I don't think that's the problem. Because it did work before.

I am now on stock rom, rooted, with xposed installed.

It's been a week and no problems 'till now. Might try and reinstall sensei again on stock, if possible?

Weird that the cm12.1 based ROMs [MENTION=5480061]Santhosh M[/MENTION], [MENTION=4371566]wilson3q[/MENTION], [MENTION=2591365]dh.harald[/MENTION], [MENTION=4832023]omerjerk[/MENTION] made all have this problem, even without Sensei kernel. Let's hope it's gone in cm13
[Xiaomi Mi 4i] davtse:
from what I understand its a hit and miss case with regards to the root checking for snapchat. I don't use it myself but a few of my friends have been affected. Best if you can check with other snapchat/root users as well. I don't think its a kernel issue
[Xiaomi Mi 4i] davtse:
Okay for those curious if this kernel will work with the official miui roms, i can confirm it does all the way to the global stable 6. everything works well except for wifi, xposed works as well. so this is as close to stock experience WITH xposed you will be getting. Although you need to have an unlimited data plan because wifi wont be able to be used.

Overall battery seems to be improved for me compared to cm12.1. not sure if its because fast dormancy doesnt seem to be working 100% with CM.

I set my screen off to 1s and screen on fd to 3s for stock
[Xiaomi Mi 4i] haikalizz:
If you can get a logcat for the wifi problem, maybe it can be solved...
[Xiaomi Mi 4i] davtse:
I'll look into getting a logcat... If you aren't too busy developing you should try your 1.3 on miui 6 stable. Fantastic stuff lol
[Xiaomi Mi 4i] davtse:
[MENTION=6858217]haikalizz[/MENTION] here is teh wifi log
[Xiaomi Mi 4i] haikalizz:
Alright so, wifi drivers aren't loading... I would if I have the chance... Right now, already on latest global dev rom.. going to test out latest CM13.
[Xiaomi Mi 4i] haikalizz:
Alright guys, as said a new version is coming. This time, Sensei is going for a clean slate. Free of all those bad things and in with new features and stuff...

A list of expected features :-

All of the current features in current version

CM13 support based on latest sources

Some other stuff I'll be cherrypicking from other kernels.
[Xiaomi Mi 4i] joe_han:
Hi, what about fast charging? :D
[Xiaomi Mi 4i] haikalizz:
It partially works for charging from PC to USB...
[Xiaomi Mi 4i] haikalizz:
New update is up, general improvements from older version. Started from scratch, still adding features. Fast and stable, that is guaranteed.
[Xiaomi Mi 4i] davtse:
crap that thing is smooth. seems like you removed some unneccessary code? the processes seem quite a bit more snappy. (still works on miui 6 stable)
[Xiaomi Mi 4i] strangebro:
i flashed this kernel on my phone, my rom is the lastest RR.

the kernel version is showing the lastest RR kernel by swapnilxd

in kernel adiutor i cant find your feature implemented
[Xiaomi Mi 4i] candiesdoodle:
Great stuff! thanks for all the good work!

Were you able to look through the charging thing (rate being slow)? Or thats still on the agenda? just wanted to know before flashing...
[Xiaomi Mi 4i] haikalizz:
I did, it seems that it doesn't save the values... Going to reimplement it back after some thorough testing.
[Xiaomi Mi 4i] strangebro:
This is the screenshoot after flashing sensei kernel, i try to flash it twice but nothing happen, wipe dalvik cache doenst help too
[Xiaomi Mi 4i] haikalizz:
Might be an error in the flashin process..
[Xiaomi Mi 4i] strangebro:
I dont know what went wrong. The 1.3 sensei kernel flashed succsesfully. But the 2.0.1 wont flash
[Xiaomi Mi 4i] davtse:
Mine does the same. Still says the same 1.3+ version I was on previously. Earlier improvements seem to be because of the reboot lol.. Any idea what's going on with the flashing process?

think I've found the problem. dt.img is missing from the v 2
[Xiaomi Mi 4i] joe_han:
Yeah, dt.img is missing on v2
[Xiaomi Mi 4i] haikalizz:
Weird thing is, it didn't generate a dt.img in the build process or maybe it just didn't get copied... I'll try to check if the file exists or not...
[Xiaomi Mi 4i] haikalizz:
Alright fixed the dt.img being missing in previous version. New version is currently uploading on Android File Host with kexec-hardboot patch and a few optimizations from 1.3...
[Xiaomi Mi 4i] davtse:
Yep 2.0.2 boots fine, flashes fine. Really smooth, can't say much about stability yet though. I'll wait for a couple more updates and a few more of your old optimisations before flashing over permanently from 1.3.
[Xiaomi Mi 4i] haikalizz:
I change repos from github to gitlab... To keep my github a bit clean for a few other projects. And already added the optimizations, now onto porting features into it. Complete changelog on gitlab from now on...
[Xiaomi Mi 4i] ƒεηιx:
Hi, where is other governor which you mentioned on OP i am on latest version of Sensei kernel And Rom is resurrection remix letest build.
[Xiaomi Mi 4i] davtse:
read the changelog of the versions. Please. its just a couple of lines per version. 2.0.1 dev states he's starting from scratch with only a few things ported over from 1.3
[Xiaomi Mi 4i] ƒεηιx:
Ok Didn't notice that
[Xiaomi Mi 4i] haikalizz:
Don't worry, it will be added back. Working on optimizing the kernel, graphite doesn't seem to work anymore on this version...
[Xiaomi Mi 4i] haikalizz:
This is the day where you'll be getting 2 updates in 1 day... Changelog is in #3 post, full changelog in gitlab. Thanks for using Sensei and have a nice day.
[Xiaomi Mi 4i] TeusFrom:
I have problems with Auditor, and i have a balanced battery settings, now i flashed a SuperSU flashable, because i like it more than stock root.. and now i have nothing to change in Auditor => CPU :( what happend ? please help me ;c

okay now i can change the settings, just cant change the big cores settings :/ just little, i dont have list with governors on the big cores, i have a blank 'space' sometimes is performance and sometimes interactive, i cant change this to yanactive.
[Xiaomi Mi 4i] haikalizz:
A restart of Adiutor should do the trick... If not, restart the device. This happends because I think the system is still building a list of governors available. For the first error, just wait. It is caused by the heating of the 615 processor.
[Xiaomi Mi 4i] haikalizz:
New Build is up, changelog includes :-

Fast Charging

Battery Improvements

Thermal Improvements

Updated Governors & Systems

See #3 post for changelog and download link.
[Xiaomi Mi 4i] TeusFrom:
Thanks, can u add the best settings for gaming ? Anyway i still cant change the big cores governor :(

Wysłane z mojego Mi 4i przy użyciu Tapatalka
[Xiaomi Mi 4i] davtse:
GPU controls are missing with this build, intelliplug not showing too, I thought intelliplug was a hotplug not a gov?
[Xiaomi Mi 4i] blackagent:
did double tap to wake working?
[Xiaomi Mi 4i] haikalizz:
Intelliplug not showing? Hmm... It was built into the kernel and was activated. Also about the gpu, it is controlled by msm_adreno_tz governor. [MENTION=1667136]blackagent[/MENTION] doubletap2wake needs more improvements in the touch drivers, basic functionality is in there but not working on touch.
[Xiaomi Mi 4i] davtse:
Hmm I'll do somemore tests on it later. I was trying to use fauxclock to access it but couldn't see it
[Xiaomi Mi 4i] haikalizz:
Does anybody know what touchscreen drivers does the device use? Need to keep the touchscreen online to allow for dt2w and s2w...
[Xiaomi Mi 4i] crayonyes:
First of all: Great Job!

i want to ask what does it mean by partial support of double tap 2 wake ? Thx
[Xiaomi Mi 4i] haikalizz:
It's implemented in the kernel but without support in the rom/touchscreen drivers, it won't work... Need to find a way to keep the touchscreen online while device is sleeping to allow the dt2w to be able to run.
[Xiaomi Mi 4i] crayonyes:
but is it working now when device is not sleep yet ?
[Xiaomi Mi 4i] TeusFrom:
Now my governors settings works ! I just change rom from cm12.1 to AOSPA-L and now kernel working excellent, now i just need the good settings for games, greetings :) !

Wysłane z mojego MI 4i przy użyciu Tapatalka
[Xiaomi Mi 4i] haikalizz:
[MENTION=2714831]crayonyes[/MENTION] - It's doubletap2wake, you need to have your device in sleep mode to use it. Euphoria rom seems to have said feature, waiting for source.

[MENTION=4570170]TeusFrom[/MENTION] - Good to hear that. Did you also used the new builds? I will update post with gaming settings.
[Xiaomi Mi 4i] TeusFrom:
Yep, now i use the lastest your release :) whats wrong with the "kernel version" in the settings- about phone, i have ". Unavailable " why ? Its any way to give you a little donate for a beer :D !?

Wysłane z mojego MI 4i przy użyciu Tapatalka
[Xiaomi Mi 4i] haikalizz:
Kernel Version shows in Kernel Adiutor but not in settings, can't figure out why. Earlier versions has the version showing.. Also I haven't setup any donations link... :p
[Xiaomi Mi 4i] unrated87:
Hi,

your kernel is not working for me and I don't know why. I came from MIUI 7 and I installed TWRP.

I tried several roms now and I just cannot get further than the MI boot logo after flashing your kernel. I followed the steps but it's simply not working.

Any advise?
[Xiaomi Mi 4i] haikalizz:
Did flashing another rom and booting into it work? Might not be kernel becuase most users are reporting it is woking fine...
[Xiaomi Mi 4i] unrated87:
I also think it is not the kernel. I tried it with EUPHORIA and AOSPA-L. Both didn't boot further than the boot logo.

Maybe I'm using an old Version of TWRP? I took the one from the Toolkit V3.
[Xiaomi Mi 4i] haikalizz:
Use the latest one, many users from CM12 reported Toolkit V3 TWRP version didn't boot.
[Xiaomi Mi 4i] davtse:
I dont think I do it regularly enough but I've sent a little something your way. Its not a lot but its a little token of my appreciation.
[Xiaomi Mi 4i] haikalizz:
If you look through my commits, some of the old governors plus some new ones has been added. Also includes some new features...
[Xiaomi Mi 4i] strangebro:
looking forward to next version, current version is stable, no random reboots.

but all the 8 core is always online.

happy to see your commits bring back the thunderplug and some governor
[Xiaomi Mi 4i] Redmoon_:
I got 8 hours screen on time with your latest kernel using resurrection remix (?) rom, wifi always on, but sometimes when i use my phone on heavy usage the app freeze.

Overall, i satisfied. Cool.
[Xiaomi Mi 4i] haikalizz:
Might just be the governors though....
[Xiaomi Mi 4i] imagine92:
i found it the device crash when i try to change the speaker gain

and LMK still not working, idk maybe the roms fault
[Xiaomi Mi 4i] haikalizz:
It's the sound drivers fault for the crash, need to edit the code. LMK might be the rom...

Also new update is up. 2.0.4-dev is ready to download on #3 post.
[Xiaomi Mi 4i] joe_han:
Hi Haikalizz, how to activate sweep2wake? Thanks :)
[Xiaomi Mi 4i] haikalizz:
There's supposed to be a sysfs file... Can't be sure where it is though....
[Xiaomi Mi 4i] davtse:
You're using a different version of zzmoove compared to 1.3? The zzmoove hotplug options are missing..
[Xiaomi Mi 4i] haikalizz:
I think it's the same... Taken directly from his github, version 1.0.8. Maybe there' something changed in 1.3, will do check the differences of the files....
[Xiaomi Mi 4i] davtse:
Thunderplug works fine in the meantime. Which is the new Undervolt commit? I want to try and experiment a little lol :p

edit: oops found it... was looking at the wrong github when i remembered you changed to gitlab
[Xiaomi Mi 4i] haikalizz:
Alright I might have fixed the missing stuff you mentioned. Look through today's commits, also added a few goodies for all the users. ;)
[Xiaomi Mi 4i] davtse:
i see them and I likey :D
[Xiaomi Mi 4i] sykomaniac:
Hi in on cm13 and using kernel auditor I don't have wake options any idea why?
[Xiaomi Mi 4i] haikalizz:
wake options like dt2w? You need to manually enable them..
[Xiaomi Mi 4i] sykomaniac:
Ok thanks. Any idea how - via init.d scripts?
[Xiaomi Mi 4i] haikalizz:
Post #2, there are instructions on how. Use in terminal.. For Sweep2wake, I'm still searching for the sysfs interface.
[Xiaomi Mi 4i] haikalizz:
New version uploaded, zzmoove I think has the old variables back. Also included, MSM hotplug and some new interfaces for controlling sched features.

-- Edit --

Working on ResurrectionRemix Marshmallow for Mi4i, might be a month before release though...
[Xiaomi Mi 4i] davtse:
Confirmed zzmoove variables back. It is a lot smoother with the native hotplug compared to with external hotplug thunderplug. Damn that thing is smooth now. And the GPU overclock is really scary lol. 700mhz.
[Xiaomi Mi 4i] haikalizz:
Just testing out the OC, if users wants it I'll keep it. If not next update it is removed though I'm keeping it for personal use...
[Xiaomi Mi 4i] davtse:
Nah I don't think it's harmful to just leave it in. Those that don't want to can adjust the setting in adiutor anyway. On first use seems smoother than before, ui is less choppy and has less microlags. (Y)
[Xiaomi Mi 4i] candiesdoodle:
Agreed! This is so much good!! definitely much smoother...
[Xiaomi Mi 4i] sykomaniac:
Yeah new version is smooth
[Xiaomi Mi 4i] haikalizz:
Thanks for the feedback guys.. right now internets too slow to sync RR sources, so working on something to fix the recovery for multirom.
[Xiaomi Mi 4i] RiD91:
Could you please tell how does GP overclocking affect on the battery life?
[Xiaomi Mi 4i] haikalizz:
I did a little undervolt, so it won't affect much.
[Xiaomi Mi 4i] ajaxcbcb:
Phone heats up pretty fast. Any solution? Other than underclock