yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4i] davtse:
seems like autosmp hotplug is the issue. I turn it off, all cores stay online, the big cores stay at 200mhz while the small ones are used more actively unless load is heavier then all are turned on. under no load they're all at 200mhz but none of them go off
[Xiaomi Mi 4i] haikalizz:
New build up, changelog and download links are in #3 post. Also [MENTION=1498291]davtse[/MENTION] have been using Alucard governor with AutoSMP, Big cores are usually online. May need to find more info about that, though this is a WIP...
[Xiaomi Mi 4i] davtse:
After testing over the course of last night, i've found that most of the hotplugs have the same issue, but Mako just doesn't work at all. I think the problem is that none of the hotplugs are meant for octacore big.small cpus. If you look in alucard's folder in /sys/kernel/alucard, it only has variables up to core 3, 4-7 are missing
[Xiaomi Mi 4i] haikalizz:
Testing new kernel with doubletap2wake and sweep2wake implemented in kernel... About the hotplugs, I may need more time on that.

------- Edit --------

Doubletap2wake and Sweep2Wake/Sweep2Sleep implemented in kernel but not working fully... Either it needs to be implemented in touchscreen drivers or rom... [MENTION=943196]k2wl[/MENTION]
[Xiaomi Mi 4i] davtse:
Would it help if we could find some hotplug driver for another 615 snapdragon device?
[Xiaomi Mi 4i] haikalizz:
I tried Thunderplug from Yu Yureka, designed for Octa-core devices... Won't boot... Bootanim won't show, after MI logo is blank. Right now browsing through Yureka's forum to find other hotplugs..
[Xiaomi Mi 4i] TeusFrom:
Thanks for ur hardwork mate :) !

Can anyone tell me why when i set a recommended settings then always my big cores change the yanactive governor to interactive, just little cores stayin with yanactive, and please help me in setting up this kernel for the best gaming performance, :) greetings!

Wysłane z mojego Mi 4i przy użyciu Tapatalka
[Xiaomi Mi 4i] davtse:
which kernel adjustor are you using? adiutor works fine here
[Xiaomi Mi 4i] haikalizz:
Could the settings, is your system set in performance or battery saving mod? Because that could overwrite the settings... Other factors could be like what [MENTION=1498291]davtse[/MENTION] said...

Also I'm still uploading a new version with updated files like thermal and cpu freq... Updated governors and dt2w/s2w are also included. For those who needs the source, sorry though, can't push to github with mobile data... :(
[Xiaomi Mi 4i] PavelPerm:
I note that with kernel of razor reborn sensor patch and the proximity sensor is not working!
[Xiaomi Mi 4i] davtse:
just an update, the standby drain is back to normal or better. one night(12 hours) and about 1/2 hour of screen on(surfing/whatsapp/xda) and i'm on 91% left. All on 4g

[MENTION=6858217]haikalizz[/MENTION] , any chance we could get intellithermal temperature control?
[Xiaomi Mi 4i] jelennn:
Will you add support for f2fs file system?
[Xiaomi Mi 4i] haikalizz:
[MENTION=1498291]davtse[/MENTION] I've added intellithermal. Releasing new build soon.

[MENTION=1789822]jelennn[/MENTION] F2FS is already supported in the kernel
[Xiaomi Mi 4i] crayonyes:
[MENTION=6858217]haikalizz[/MENTION] , is swipe up2wake also working with your guide in post 1 ?

And i want to ask about thermal control to 50 degree,

can we in any way set it from inside rom ? or it must be from kernel ?

Thanks a lot !
[Xiaomi Mi 4i] haikalizz:
I think swipeup2wake is not supported in the hardware, will see if it can be included but might take a while...

Yes you can set it from rom using apps like Kernel Adiutor...
[Xiaomi Mi 4i] crayonyes:
It is supported. it was there along with dt2w in miui first dev rom (5.6.11 i think)

but since then it was removed.

==

how about in stock kernel, can we in anyway change the thermal control to 50 degree?

*instead of stock 45 degree.

Thanks !
[Xiaomi Mi 4i] jelennn:
[MENTION=6858217]haikalizz[/MENTION]

About F2FS something is wrong. I have last @dh.herald build. After I install your kernel I have bootloop. When I change again to ext4, phone boots normally.
[Xiaomi Mi 4i] haikalizz:
Don't use f2fs yet... Lost of data might occur, I'll look into this now...
[Xiaomi Mi 4i] jelennn:
Earlier you said that it's working. I don't understand now.
[Xiaomi Mi 4i] haikalizz:
It's working but it doesn't use dh-harald new code, I've synced it again and rebuilding. Expect new build and Kernel Updater app soon...
[Xiaomi Mi 4i] jelennn:
Kernel Updater?
[Xiaomi Mi 4i] reza36:
I dont know why when im using newer version kernel... After rebooting and kernel auditor is activated my phone is off itself.. Mybe causes of hotplug setting or governor setting because im using tunderplug hotplug and change governor to zzmoove any idea anyone?

noted:

when im using back to default RR rom kernel is normal again no shutdown itself but when im flash sensei kernel again my phone offline itself again... i think is because im change setting at kernel auditor.. mybe hotplug , cpu governor, i/o settings, thermal control...
[Xiaomi Mi 4i] ajaxcbcb:
the link updated is the old image. :3 hope this kernel will make the dragon fly like a g6
[Xiaomi Mi 4i] davtse:
If you're using zzmoove hotplug you shouldn't have to use thunderplug. It's an either or issue. Might have some conflict if you use both. On the latest kernel for the last 1 1/2 days. No reboots or sleep of death etc.
[Xiaomi Mi 4i] haikalizz:
There isn't any conflicts... I haven't had any random shutdowns on latest, nor the previous versions. It varies by phone, i think... Try to use latest cm build and see...
[Xiaomi Mi 4i] haikalizz:
Don't always enable all the settings... Some settings aren't compatible with each other. I'm still trying to fix intellithermal, yankactive and intellimm compile errors...
[Xiaomi Mi 4i] davtse:
2 weeks ago I was so close to selling off this phone and getting another one. Battery won't last more than a day on stock and cm12.1 didn't fare much better. Phone was overheating a lot too. This is my current average usage, mostly on 4g which should be rather battery hungry.

Use greenify, amplify and powernap to block wakelocks and apps from running in the background. usage is mostly texting, emails, some browsing, some youtube videos, chromecast use etc. autosync/push notifications set to on all the time.
[Xiaomi Mi 4i] haikalizz:
New build up, changelog is in #3 post as usual...
[Xiaomi Mi 4i] blackagent:
cant play clash of clans with this kernel,,, how to fix it???

can please give me link for sensei v1.2?
[Xiaomi Mi 4i] candiesdoodle:
pretty good!!

do you keep your wifi off? didnt see it on in the graph.

also, pls share your governor settings.

good stuff.
[Xiaomi Mi 4i] haikalizz:
Check this folder - https://mega.nz/#F!aFFXRTJJ!eDtu4ECX0gxCrxNvEFa99w

Also I'm still wondering why COC can't play... Does using the latest intersectRaven's kernel allow this?
[Xiaomi Mi 4i] davtse:
Wifi is mostly off. Only turn it on when required. If I was using it on WiFi the battery life would definitely be longer. Check the earlier posts, I shared my zzmoove profile. This is geared to my usage, it probably isn't suited for games. Ended that run with 5hrs SOT and 16% battery left. Think the phone would have probably lasted at least 2 1/2 days or 3 if I drained it down to 0

[MENTION=6858217]haikalizz[/MENTION] what settings did you change in zzmoove?
[Xiaomi Mi 4i] haikalizz:
[MENTION=1498291]davtse[/MENTION]

Enabled native hotplugging on snapdragon chipsets

CPU Idle Time handling

Temperature Tripping Support for snapdragon chipsets
[Xiaomi Mi 4i] davtse:
Sounds awesome
[Xiaomi Mi 4i] haikalizz:
Also in new version, you can change the charging current... Max of 1500mA... Even though our charger supports up to 3A right?
[Xiaomi Mi 4i] davtse:
yea i think so but im not too sure? I dont really mind the charge speed though lol
[Xiaomi Mi 4i] candiesdoodle:
btw, with amplify, you have use Xposed, isnt it? but i thought Xposed isnt supoorted on Mi4i architechture ?
[Xiaomi Mi 4i] davtse:
It is on cm12.1
[Xiaomi Mi 4i] candiesdoodle:
great..didnt know!! could you guide me to/ post the version that works? there are multiple floating around..dont want to take chance.

Thanks in advance!
[Xiaomi Mi 4i] davtse:
I think the normal xposed works fine already. Use the 64bit v74 sdk22 one
[Xiaomi Mi 4i] haikalizz:
Any modules you recommend? Seems that some of the modules I usually use is kinda obsolete in lollipop...
[Xiaomi Mi 4i] davtse:
I usually use gravitybox, greenify, amplify and powernap. These are the must haves regardless of which version of android I'm on. The rest arent so important since CM usually has plenty of options.

With greenify amplify and powernap I can get up to 98% or more deepsleep even with everything syncing in the background
[Xiaomi Mi 4i] candiesdoodle:
powernap is "Power Nap for Xposed (Alpha)" ? correct?
[Xiaomi Mi 4i] davtse:
yep
[Xiaomi Mi 4i] ajaxcbcb:
i got random reboots from this kernel. according to the logcat is kernel panic.
[Xiaomi Mi 4i] haikalizz:
What settings are you using? Zzmoove and thunderplug doesn't work well together... Is this the first time?
[Xiaomi Mi 4i] ajaxcbcb:
Previous kernel build don't have this issue until the recent 2 build. It still subject to kernel panic even when it is ondemand. But the fast charge is a great feature
[Xiaomi Mi 4i] haikalizz:
Hmm... Weird, Thanks for the heads up
[Xiaomi Mi 4i] candiesdoodle:
dude, this fast charge .. safe to set the value to max? (in kernel Adiutor?) there is a warning message over there. just confirming :)
[Xiaomi Mi 4i] haikalizz:
Looking at qualcomm website, we can set up to 3A... But I put a max there just to be safe...
[Xiaomi Mi 4i] dkasmara:
hello. i just install this kernel this morning, and i check on about phone - kernel version, its show "unavailable"

is it something wrong or it just like that??
[Xiaomi Mi 4i] haikalizz:
It's just like that... Don't know why :(
[Xiaomi Mi 4i] sharan.nyn:
DELETED
[Xiaomi Mi 4i] davtse:
was it so difficult to read a couple of pages back? the issue has been reported before..
[Xiaomi Mi 4i] jelennn:
Will You add in next build double tap to wake? :) In latest dh.herald build this option is active in rom level.

Wysłane z mojego MI 4i przy użyciu Tapatalka
[Xiaomi Mi 4i] candiesdoodle:
[MENTION=6858217]haikalizz[/MENTION] [MENTION=1498291]davtse[/MENTION] what hot plug should be used with zzmove? You said thunderplug doesn't go well with zzmove..I got a couple of random reboots when using both. Please suggest some good combinations in both cases- zzmove as well as thunderplug.
[Xiaomi Mi 4i] davtse:
zzmoove has its own hotplug. go to one of my earlier posts i shared the settings, one of the settings is disable hotplug or enable hotplug, echo 0 (or was it 1) i cant really recall lol
[Xiaomi Mi 4i] haikalizz:
In second post, I added instructions on how to activate it. Rub the command in the terminal to on/off it...
[Xiaomi Mi 4i] candiesdoodle:
Thanks. But if I try and use your post boot script on this kernel, I get this error. Any ideas? I don't think all aspects in scripts are executing obviously.
[Xiaomi Mi 4i] davtse:
not entirely sure why. I actually only use the post boot script to echo my zzmoove parameters. it was the only reliable way of having them set on boot
[Xiaomi Mi 4i] candiesdoodle:
Deleted
[Xiaomi Mi 4i] haikalizz:
Was it supposed to be runned like that? Isn't it automatic on post boot?
[Xiaomi Mi 4i] candiesdoodle:
I guess it's a shell script so it could be executed isn't it?

Though iam pet sure it's not executing at boot. Example, the temp limit for thermal core control is set at 65.. Butkernel adiutor shoea its still at 85 after boot.
[Xiaomi Mi 4i] davtse:
Yea it doesn't apply everything all the time. So far only my zzmoove settings have been applied properly, and then again its not 100% of the time. You could try putting it into an init.d script and using kernel adiutor's emulate init.d. might possibly work for you but i havent tried it myself
[Xiaomi Mi 4i] candiesdoodle:
confirmed..works with the kernel adiutor init.d method.

thanks!

lets see how the battery goes now. i am using greenify+amplify+powernap as you outlined ;)
[Xiaomi Mi 4i] haikalizz:
Has anyone tried changing the charge rate? Has it improve charging on any of your devices?
[Xiaomi Mi 4i] ajaxcbcb:
yes. it's working. i was a n5 user. they also have fast charge, but this is not as efficient compare to n5's uber kernel fast charge.
[Xiaomi Mi 4i] davtse:
zzmoove init.d script for those that want to try it out. less conflicts compared to the postboot.sh. put this into /etc/init.d and enable init.d emulation in kernel adiutor
[Xiaomi Mi 4i] davtse:
the init.d script is to edit the settings indepth. meaning the parameters of zzmoove itself. Kernel adiutor at the moment doesnt have the ability to do so.
[Xiaomi Mi 4i] hystryxen:
I'm sorry for asking noob question. How do I set the set cpu according to the recommended setting? I can't see the names of the governors etc.

Many thanks
[Xiaomi Mi 4i] ajaxcbcb:
still remember the random reboot and kernel panic i mentioned. i realized it only happens if mobile data is on.
[Xiaomi Mi 4i] haikalizz:
Haven't gotten the random reboots... Still trying to recreate the situation, might just be the ram not having enough juice... Do you have many background apps running?
[Xiaomi Mi 4i] davtse:
X2... Have not gotten any random reboots at all. Should probably check which ROM he is on
[Xiaomi Mi 4i] Xoomong:
May I know is it possible for us to modify the setting for zzmoove inside your script? reason asking is because I noticed that the minimum cpu frequency seems too low for the phone to perform smoothly..my phone will always become laggish after certain period of time being idle..and when i set the min cpu frequency to 400 and above..the lag gone..

Will it really contribute to huge battery loss if putting the cpu into higher min frequency? seems like most of the default setting put the value at 800MHz. my phone didn't gain significant battery life even though it is set at 200MHz.

Hope can get some clarification from you on this. And thanks for your work, really solve the governor "jumping" issue before this and your method solve it permanently..now it stick to zzmoove regardless of how many times i reboot the phone.

Thanks!!
[Xiaomi Mi 4i] ajaxcbcb:
i faced random reboot on blisspop and mokee. i managed to reproduce the problem with mobile data on. i tried turning it off, the problem just didnt happen
[Xiaomi Mi 4i] davtse:
Can you try it with one of the cm ROMs? My mobile data is on 24/7 and I don't get any reboots

---------- Post added at 01:18 PM ---------- Previous post was at 01:17 PM ----------

You can change it to anything you like. Use notepad++ or one of the other programs
[Xiaomi Mi 4i] ajaxcbcb:
blisspop is so smooth for now. one of the best roms i would say. the definition of smooth is nexus. :P
[Xiaomi Mi 4i] davtse:
well then you have to bear with the reboots or stick with the stock kernel they provide.
[Xiaomi Mi 4i] haikalizz:
Uploading new build. After thorough testing can confirm ResurrectionRemix, all CM12.1 builds, Blisspop and Aospa-L roms have no random reboots, potential Clash of Clans fix is also included. If COC crashes, just restart the game and it will load.

Haven't tried it with TeamEOS rom yet but it will work. Thanks for all the support
[Xiaomi Mi 4i] davtse:
Haikal, any experience with dt2w? Does it drain more battery during standby because the screen is kept semi awake?
[Xiaomi Mi 4i] haikalizz:
Battery drain increases by around 1-2% every hour and the phone gets a bit hot... Other than that, it's fine.
[Xiaomi Mi 4i] davtse:
Urgh wanted to try it out but the battery life decrease is putting me off lol..

Any luck including intellithermal? Or any updates as to the roadmap of development for your kernel?
[Xiaomi Mi 4i] haikalizz:
Right now, intellithermal doesn't yet compile. Some files are missing. Next on the list might be multi-rom support but might be hard...

Focusing on those 2 and I'm going to see if we can support Linux Kernel 4.1...
[Xiaomi Mi 4i] Arinxda:
why double tap to wake not working after reboot ?
[Xiaomi Mi 4i] davtse:
No complaints there. Really like how the kernel is working now. Every thing works smoothly even with the current implementation of thermal control.
[Xiaomi Mi 4i] pranobmehrotra:
Hey, I just flashed this kernel. I am running the CM 12.1 Linaro O3 build rom. In kernel audiutor I can't see all the governors listed in OP. There's zzmove, interactive, ondemand, userspace, powersave and performance. I tried applying zzmove but in big it reverts back to interactive. Any insights? TIA.
[Xiaomi Mi 4i] haikalizz:
Is kernel adiutor getting the right root permissions?
[Xiaomi Mi 4i] reza36:
Clash of clans still cant play at your newest kernel man... Im using uber rom...
[Xiaomi Mi 4i] pranobmehrotra:
I'm sorry for the noob question, but what do you mean by right root permission? I open the app, it asks for root permission I just press grant, nothing else.
[Xiaomi Mi 4i] haikalizz:
Try using v1.2.6, I've fixed Clash of Clans in that one.
[Xiaomi Mi 4i] reza36:
[MENTION=6858217]haikalizz[/MENTION] dude what the best config for power suspend ( hybrid,autosleep, lcd, or user)? thanks before :D

okay with V.1.2.6 clash of clans is work perfectly :D thanks dude
[Xiaomi Mi 4i] davtse:
From the documentation I've seen so far, hybrid is a mix of lcd and autosleep. Your best bet is to use it
[Xiaomi Mi 4i] haikalizz:
Alright so, implementing kexec-hardboot isn't that hard.. used some commits from another repo porting kexec-hardboot to arm64 devices. Right now it's compiling, so let's just wait...

- Won't compile... If any devs want the code, here's the two commits I took it from :

https://github.com/MR64/android_kernel_htc_flounder/commit/ba083b64865fb55bbd9c4b528c44cea8725d49d4

https://github.com/MR64/android_kernel_htc_flounder/commit/41ee881506154ca33f0c42a502eddcbb68e3475d
[Xiaomi Mi 4i] randev4:
i flashed this kernel along with wilson's rom but i cant find other governors aside from zzmoove. how is this used? sorry, im new to this.
[Xiaomi Mi 4i] haikalizz:
zzmoove, interactive, ondemand, conservative are only the added governors in the kernel. Haven't ported the other ones yet, will do it soon. For now use zzmoove or interactive as default plus the other settings.
[Xiaomi Mi 4i] haikalizz:
[MENTION=4231775]Pockets69[/MENTION] thunderplug shouldn't be used with zzmoove. zzmoove already has a hotplug solution. Use either one. I will add yankactive back so that we can use thunderplug.
[Xiaomi Mi 4i] haikalizz:
I too was using it like this, thunderplug broke zmoove and had to disable it. Just using zzmoove itself solves the reboots but when combined with thunderplug, the same problem you are having occurs. If you look at versions 1.2.4/1.2.5 changelog, I've updated the zzmoove governor to use it's own hotpluggin solution. Combining zzmoove and other hotplugs after those versions aren't recommended.

Sorry for the confusion. If you want to use thunderplug and zzmoove, I can remove it. This kernel is based on the community and what the community wants, feedback is mostly welcomed.
[Xiaomi Mi 4i] reza36:
Thanks [MENTION=6858217]haikalizz[/MENTION] you makes this kernel work well... Im using interactive with thunderplug (using only 4 core up) its make device cooler fast when after use.. Do you have suggest the best combination between governor and hotplug? Hehe.. I think in new version the fast charge didnt work well like older version.. When i set the charge rate to 1250 it seems not change when im looking at aida64 is always max 960ma charge rate.. Any idea? Sorry for langguage hahahaha...
[Xiaomi Mi 4i] randev4:
what's the best settings for balance and performance mode?
[Xiaomi Mi 4i] davtse:
actually if you track the changes over the course of time he's right. I've never experienced it because my init.d script disables thunderplug automatically on boot. in anycase, the rule of thumb is that if you use a governor that has its own hotplugging mechanism, you shouldn't use another hotplug, the one built in will always handle it better with regards to usage with that particular governor.
[Xiaomi Mi 4i] haikalizz:
It was nearly possible, I will try again with another build. The commits are nearly the same but there're a few files missing and incompatible. We also need custom TWRP for multirom...
[Xiaomi Mi 4i] haikalizz:
Ok so, kexec is compiled successfully, now porting the kexec-hardboot patch... If someone can port the multirom recovery/app would be nice.

------------------ Edited ----------------------

Kexec-hardboot patch ported, building. Now we need the multirom recovery...
[Xiaomi Mi 4i] davtse:
[MENTION=6858217]haikalizz[/MENTION] which ROM are you using now? I'm getting wakeup lags for most of the ROMs besides omerjerks uber build
[Xiaomi Mi 4i] haikalizz:
RR, don't have any wakeup lags...
[Xiaomi Mi 4i] davtse:
Doesn't seem to work with exposed though. I think I'll just wait for the omerjerk update
[Xiaomi Mi 4i] haikalizz:
New build up, as usual changelog is in #3 post... This is a major update...
[Xiaomi Mi 4i] reph05:
Hi Haikal... May I know what is zen tune and zen sound? Flash the latest kernel but have not seen any of them yet. :confused:
[Xiaomi Mi 4i] haikalizz:
zen-tune is a way to make the device smoother at the cost of battery-life. Zen Sound is based on Boeffla Sound, it ramp's up the sound but must be enabled manually through init.d... I'm working on it, this version only marks the implementation in the kernel, future versions will include more customization and other stuff...
[Xiaomi Mi 4i] davtse:
biggest change i feel for the latest version is that now CPU0 and CPU4 are always online(althought it still respects zzmoove hotplugging for the most part). CPU4(little) gets activated before CPU0(big) so this could mean better overall performance and battery life. hmmmm
[Xiaomi Mi 4i] haikalizz:
Seriously though, I don't know why I made those 2 cores always online...
[Xiaomi Mi 4i] davtse:
hahahaha this is kinda like what my friend said when he found out he was becoming a father. its an accident, but nonetheless, a happy accident.
[Xiaomi Mi 4i] haikalizz:
Well, that's life... Right now syncing M sources, at 80% already... Hoping to get a build tomorrow...
[Xiaomi Mi 4i] haikalizz:
I don't have the abilities to compile a recovery... Maybe try to contact [MENTION=1834166]DH-[/MENTION]harald
[Xiaomi Mi 4i] compgenie:
Hi, I've been using this kernel with Resurrection Remix and Kernel Auditor.

A lot of CPU governers and I/O schedulers are missing! There's no ElementalX, Zendecision, Lionheart, PegasusQ and more!
[Xiaomi Mi 4i] haikalizz:
I know... Sorry, I'm in the process of adding them but right now theres an exam going and I can't work on it for a few days..
[Xiaomi Mi 4i] compgenie:
Oh alright! No problem! You mentioned those governors in optimal settings and I wondered where they were haha.

Thanks a lot by the way, it runs GREAT!
[Xiaomi Mi 4i] haikalizz:
Alright good news, kernels working with CyanogenMod 13... Recovery image builds but when flashed doesn't boot...
[Xiaomi Mi 4i] gajrut:
Does this mean M is coming soon for our device?

Excellent!!!!!!!
[Xiaomi Mi 4i] icedeocampo:
Awesome kernel! Lots of governors and tweaks!
[Xiaomi Mi 4i] devasenan200:
Sorry to ask..but does someone tried this kernel in stock miui v6.7.2 rooted?..
[Xiaomi Mi 4i] davtse:
5 hours screen on, almost 3 days of standby (2 days 19 hours), and all on 3g. Loving it
[Xiaomi Mi 4i] candiesdoodle:
buddy you seem to have the best battery life amongst all users of this phone :)

Could you share your screenshots of powernap, amplify and greenify. very interested in seeing how you have matched them up, so would many others be.

I am also using this combination (powernap, amplify and greenify; sensei kernel, zzmove with your initi.d script); but i cant get beyond 2 days, with 3 hrs SOT :)

Thanks in advance.
[Xiaomi Mi 4i] haikalizz:
It won't work, the base is cyanogenmod... MIUI kernel source is outdated and won't run on newer versions.