yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4i] haikalizz:
Lock the thermal temp at 50°c. Then use zzmoove/thunderplug to stop the cores from running while sleeping.
[Xiaomi Mi 4i] davtse:
Current version doesn't run much hotter than the previous ones... Can you check if there are processes running in the background?
[Xiaomi Mi 4i] Hackerpunk1:
Has someone tried this with stock MIUI7 Global Stable?
[Xiaomi Mi 4i] haikalizz:
I introduced Adreno Idler in latest version, will upload tommorow along with pushing the commits.
[Xiaomi Mi 4i] ajaxcbcb:
snapchat is quite a heavy app. sadly, once cap thermal temp to 50. throttling starts to step in already
[Xiaomi Mi 4i] haikalizz:
Haven't used snapchat... maybe you can try to increase it a bit.. I've also uploaded new commits to the repo, latest changes in the next version.
[Xiaomi Mi 4i] davtse:
I don't know if you guys have tried cm13 but the battery savings for the new doze mode is RIDICULOUS. Standby drain is stupidly good.
[Xiaomi Mi 4i] haikalizz:
Already did, using this with CM13... Uploaded new version, will update main post with links.
[Xiaomi Mi 4i] valenrock:
What is the best setting for daily balance use on cm13?

sent by my fingers
[Xiaomi Mi 4i] haikalizz:
I'm experimenting on settings as just got CM13 got to work with my device. I'll update the post with settings...
[Xiaomi Mi 4i] davtse:
Okay guys, I've been getting quite a few PMs about how to set governors and settings so rather than reply individually which will take a lot of time, i'll reply here instead.

apps you will need (kernel adiutor or any other init.d emulating app, android toolbox by 3c works good too)

1) look through the previous posts in this thread, i've posted my own init.d scripts before.

2) use a text editor and edit the settings to your likings

3) put it in /etc/init.d and set the permissions to 777

4) set kernel adiutor or whatever app to set on boot

5) reboot and enjoy.
[Xiaomi Mi 4i] Hackerpunk1:
- Can someone let me know about this. Thanks in advance.
[Xiaomi Mi 4i] haikalizz:
I don't think it's compatible though...
[Xiaomi Mi 4i] candiesdoodle:
Anyone experiencing random reboots with this kernel on CM13?

I am getting too many of those.. after about 18 hours of being on it without issues.

Started as soon as i unplugged from charging in the morning. Must have rebooted atleast 15 times. Tried to wipe cache as well.. no luck.
[Xiaomi Mi 4i] Levskar40:
I had random reboots as well with CM13. Disabled the location service and did not faced any of them till then.
[Xiaomi Mi 4i] haikalizz:
Yup location is the problem, hadn't had a single reboot since installed...
[Xiaomi Mi 4i] candiesdoodle:
No impact of deleting /system/etc/permissions/com.qualcomm.location.xml ? as mentioned by dh.harald?
[Xiaomi Mi 4i] strangebro:
Can not turn on adreno idler. When turned on, it always turn back off. The settings for adreno idler is back to zero too
[Xiaomi Mi 4i] haikalizz:
It's the problem with the app, I set it manually in /sys/modules/adreno_idler

Value is always 1...
[Xiaomi Mi 4i] strangebro:
i think there is problem with thermal engine. it always bumped the gpu clock to 700

i attach my logcat if its helping. good works bgt
[Xiaomi Mi 4i] Nachtfalkeaw:
Hi,

I have some questions I could not answer myself.

1.) Where and how to enable the "adreno idler" ?

2.) Why did you overclock the GPU to 700 MHz? Is the Hardware supporting this or could this lead to problems when it is always running on 700 Mhz ? For security reasons I set the upper limit back to 550 Mhz because I am not really the gamer when using my phone.

3.) I am sometimes getting a shutdown when playing the game "Ressources" which uses data connection and GPS. I can play it sometimes many days after another and then it could happen that my phone shuts down and often the reboot will not work - then I am running into a kind of bootloop. When entering my SIM PIN code it just reboots. Clearing cache + dalvik does not help and then I restore my TWRP backup. I had this problem in Sensei v. 1.3 and I had this in Sensei 2.02 and 2.06 (did not used the versions in between).

Now I am again running Sensei 2.06 with the latest RessurectionRemix Version 5.5.9 from 25. November.

I would appreciate answers to my question 1.) and 2.) and suggestions and ideas what the reason for question 3.) could be. I know that the description is very vague so I don't expect to much.

Regards
[Xiaomi Mi 4i] haikalizz:
1) /sys/module/adreno_idler/parameters/adreno_idler_active. Set it to 1 to activate, 0 to deactivate

2) Hardware supports it, I've done many research with various devices with the same hardware like Yureka and Moto X Play

3) Either it's the game or the rom, maybe a logcat while you're playing the game might help identify... Does a force shutdown works (long pressing power button until vibrate)?
[Xiaomi Mi 4i] valenrock:
What is the best setting for CM13?

sent by my fingers

---------- Post added at 10:22 PM ---------- Previous post was at 10:20 PM ----------

What is the best setting for CM13?

sent by my fingers
[Xiaomi Mi 4i] davtse:
2) it depends on usage and the individual device(i.e chip bin version). Some chips are better binned (i.e can support more overclock/undervolt than others) and are more suitable for it. But in the long term, heat is your enemy. however since you aren't a gamer/dont need a higher gpu its perfectly fine to just keep it to your normal 550mhz. Not a developer here but a long, longgg term tester for various device kernels with adreno gpus. i've had it clocked 200mhz higher on my s3 and s4 for about a year plus with no ill effects, my devices are still working perfectly fine although retired.
[Xiaomi Mi 4i] haikalizz:
Looking through this weeks commits, a wonderful new update might be coming soon. Colorful and powerful updates. Bringing in the KCAL drivers for extending your abilities to customize the screens color, a backlight dimmer function ported from Nexus 6P kernel, charger updates, performance updates and more... I'll try to upload but internets kinda slow this time of year.

Happy Holidays and have a great new year.

- haikalizz
[Xiaomi Mi 4i] valenrock:
Best setting for cm13?

sent by my fingers
[Xiaomi Mi 4i] haikalizz:
The same as I posted in OP, just change the governors to interactive...
[Xiaomi Mi 4i] Nachtfalkeaw:
Hi,

thank you for your feedback.

1.) Already set to 1

2.) Thanks

3.) It is not always crashing - so post a logcat would probabaly not help, right? Not sure if I tested "force shutdown". Probabaly I did to reboot the device but I am not sure.

Thank you,

probabaly will set the upper limit back to 550Mhz or lower it to 465 Mhz because I am not playing games where I need so mucbn GPU performancer and if there will be a short lag it is no problem.

But good to know from your both post that it will work with 700Mhz and so I have the possibility to increase GPU power :)

Thank you!
[Xiaomi Mi 4i] mandarin91:
Where are these settings? (Yankactive, PegasusQ, Lionheart, ElementalX) and (AutoSMP, Alucard, Mako, ZenDecisions) are nowhere to be found (I'm using Kerner Adiutor). However, Interactive works fine for now.
[Xiaomi Mi 4i] davtse:
I HAVE WIFI ON MIUI 6. TESTING IN PROGRESS. WILL POST IF I CAN CONFIRM THE FIX. [MENTION=6858217]haikalizz[/MENTION]
[Xiaomi Mi 4i] haikalizz:
Sorry about that, will update the thread with current settings....
[Xiaomi Mi 4i] haikalizz:
Uploaded new build. This time, the kernel is built using UberTC to ensure performance and battery...
[Xiaomi Mi 4i] valenrock:
Great job mate, but please update with current setting...thanks dev...

sent by my fingers
[Xiaomi Mi 4i] milav:
are your advanced interactive governer settings implimented in this kernel by default?
[Xiaomi Mi 4i] haikalizz:
Yes, but might need to revise a few settings again just to make sure...
[Xiaomi Mi 4i] davtse:
fix for wifi on miui 6. Please feedback if it works for you too.
[Xiaomi Mi 4i] haikalizz:
So wifi works on Miui6? Great, now if we can only get this to work on Miui7...
[Xiaomi Mi 4i] davtse:
yea it does.. you might want to attach the file to your first post. not too sure about miui 7, havent tried it out yet

---------- Post added at 10:11 AM ---------- Previous post was at 09:54 AM ----------

btw [MENTION=6858217]haikalizz[/MENTION], with this fix, your kernel becomes the sole CM/MIUI kernel. lol. Happy New Year guys
[Xiaomi Mi 4i] valenrock:
I'll back to miui if this sensei kernel able to show the magic to make miui as fast as CM ..ahaha....

sent by my fingers
[Xiaomi Mi 4i] haikalizz:
Yea I guess it is... I'll be back after the new years, right now having some problems with repo sync...
[Xiaomi Mi 4i] davtse:
the closest you can get is by debloating the miui apps i guess. there are a couple that I dont dare to delete
[Xiaomi Mi 4i] haikalizz:
Don't worry, once I get to finish this damn long repo sync, I'll try to build a rom... Right now, repo sync is failing to connect to github...
[Xiaomi Mi 4i] valenrock:
Cant wait....[emoji7] [emoji7]

sent by my fingers
[Xiaomi Mi 4i] faizauthar12:
alright man

can i use ur Kernel source to make rom O.o ?

maybe ur kernel is clean than the other kernel :crying:

failed at vidc or something like that
[Xiaomi Mi 4i] sykomaniac:
Yes you should be able to. I'm trying to build a non cm based rom with it and endure but its slow progress!
[Xiaomi Mi 4i] XxSTOMPERxX:
Using your kernal on cm13, only one of the core of each (big and LITTLE ) are working. The rest are offline even at 38-39° C. This reduces the performance way too much.

Any fix.

Thanks
[Xiaomi Mi 4i] haikalizz:
It depends on load, higher load it will turn on the other cores... Any improvements you've seen since using this?
[Xiaomi Mi 4i] ƒεηιx:
Its because of Thunderplug setting enable under cpu hotplug.
[Xiaomi Mi 4i] XxSTOMPERxX:
Battery life has been Awesome !! But i use aviate launcher which lags (no smooth transitions) a bit. Any suggestions for improving it ?
[Xiaomi Mi 4i] haikalizz:
So finally got everything working, starting build maybe tonight...
[Xiaomi Mi 4i] lineoxkun:
On CM13, i just flashed this kernel and works well. However, i can't do the double tap 2 wake. I already enable this feature on the settings. Am I missing something?
[Xiaomi Mi 4i] haikalizz:
Same here, so I just use the command I posted on the #2 post to enable it
[Xiaomi Mi 4i] Bimalhort:
Anyone tried for miui7

---------- Post added at 05:38 AM ---------- Previous post was at 05:34 AM ----------

Which build, is it for miui7?
[Xiaomi Mi 4i] lineoxkun:
thanks, but, in my terminal says permission denied. what should i do? thanks.
[Xiaomi Mi 4i] haikalizz:
Try to navigate to the said place in your system root and enable it manually...
[Xiaomi Mi 4i] Bimalhort:
Should I try your kernel in miui7

@ haikalizz
[Xiaomi Mi 4i] lineoxkun:
thanks! it works now. :good:
[Xiaomi Mi 4i] haikalizz:
If you want, you can try but maybe try to have a backup just in case of bootloop...
[Xiaomi Mi 4i] Bimalhort:
I have tried your kernel in miui7 latest devt. version with the given fix of miui6, It reaches upto the lock screen then reboot. I flashes miui7 with fastboot rom.
[Xiaomi Mi 4i] haikalizz:
If you can get a logcat, maybe we can find ways to fix it?
[Xiaomi Mi 4i] davtse:
Miui 7 won't be so simple to fix I think. Miui6 was easy because the kernel sources released for lollipop are the same as used for miui 6. In fact my fix is just a simple copy and paste from 5.1.1 roms
[Xiaomi Mi 4i] milav:
can developers use moto g turbo edition kernel sources for better control and more performance for our phone as both uses same soc
[Xiaomi Mi 4i] Haldy:
do you recommend to use this kernel with omerjerks build of CM12? Does it improve the performance or stability?

Thanks
[Xiaomi Mi 4i] TsuTey:
Yeshh work on miui 7.. Fast n responsif..:)

---------- Post added at 01:21 PM ---------- Previous post was at 01:14 PM ----------

To run this custom kernel on miui 7 all version ,I tested on MiUi 7 china dev 5.12.31 we must flash this :

Patching Firmware :

https://drive.google.com/file/d/0B_NyTBF8E1FZbktVVm41ZkJCb28/view?usp=sharing

Fix Wifi :

https://drive.google.com/file/d/0B_NyTBF8E1FZcGlLaW8xbEpYNlk/view?usp=sharing

Miui7 get powered N smoothly ever..
[Xiaomi Mi 4i] lineoxkun:
Is the wifi have a problem in miui?
[Xiaomi Mi 4i] TsuTey:
Yess If U doesnt Flash fix wifi, u got wifi cant turn On..
[Xiaomi Mi 4i] haikalizz:
What exactly did you patch?
[Xiaomi Mi 4i] TsuTey:
Its just pulled out from Full Rom MiUi6>one folder named "firmware update" n bingo MiUI7 Roccker Alive with this kernel without bootLoop n of course everything Seem Normal..
[Xiaomi Mi 4i] mandarin91:
Sound control does not work. I tried increasing volume in Kernel Adiutor. Device shut down.

Is there any other way to boost volume? I miss calls, notifications, even alarms.
[Xiaomi Mi 4i] haikalizz:
Working on that, took it from Nexus 6p kernel... Right now you can try to install mods like Dolby Sound or Viper4Android...
[Xiaomi Mi 4i] davtse:
I can confirm kernel works fine with the fix posted by tsutey. Miui 7 seems more responsive than 6 but the buildprop tweaks don't really work as they did in 6
[Xiaomi Mi 4i] candiesdoodle:
so whats the sequence exactly?

0. wipe

1. "Patching firmware"

2. ROM

3. wifi fix?

or the simple

0. wipe

1. ROM

2. "Patching firmware"

3. wifi fix

[MENTION=7174836]TsuTey[/MENTION] ?
[Xiaomi Mi 4i] davtse:
It actually doesn't matter. Rom first and then the kernel and 2files in any order. I've opened up the zips, they're all flashing stuff related to the partitions and WiFi so it doesn't conflict.
[Xiaomi Mi 4i] compgenie:
Does this work properly on MIUI 7? The patch in #1 is MIUI 6.

I did see a patch on pg48, is that legit?
[Xiaomi Mi 4i] haikalizz:
You can use that patch too...
[Xiaomi Mi 4i] compgenie:
Alright. Can't thank you enough for the kernel, it's amazing with RR :)
[Xiaomi Mi 4i] Bimalhort:
The patch given for miui7 with the karnen is working flawlessly. I am using it from yesterday with latest global developer rom. There is no single issue.

Thanks for the kernel and for the patch.
[Xiaomi Mi 4i] davtse:
I don't know about you guys, but after testing out miui (6/7) for a few days, my overall user experience is about the same as when i was using CM 12/13, heck miui feels a little more smooth overall after heavy debloating and freezing. my main concern with CM was that fast dormancy doesn't work (not too sure about drx for LTE) which can lead to unnecessary power leakage when the phone is idle.

still on zzmoove, advanced interactive when used with thunderplug seems to get the cores stuck occasionally. but overall, a very good user experience indeed.
[Xiaomi Mi 4i] wkobaint:
[MENTION=6858217]haikalizz[/MENTION], Thanks for the kernel bro. Just fyi, your kernel workflawessly on SMIUI 5.12.37.

Any way, would you please to add westwood configuration for TCP control?
[Xiaomi Mi 4i] ak980:
Your kernel is amazing but the battery mode tile disappeared after flashing sensei kernel v2.1 in cm 13!!! Please fix that with a new update
[Xiaomi Mi 4i] Nachtfalkeaw:
Hi,

using CM12.1 and sensei 2.1

Seems like Temperature limits do not work.

Used "core control" alone and 50 degree and used SoC alone and reebooted between changes. Set it to activate changes on start.

Played an online game with flash in puffin browset and my Mi went very hot.

Had a look on CPU-Z and all 8 cores were over 65 degree.

I havr set GPU max limit to 465Mhz so nothing overclocked.

Any ideas?
[Xiaomi Mi 4i] haikalizz:
If the game is kinda heavy, it can contribute to heat as it needs to use higher frequencies...
[Xiaomi Mi 4i] davtse:
okay.. I've been having some ridiculously good battery life on miui 7 and sensei 2.1. I say ridiculously good because its quite crazy even by my standards (and im known to have good battery life in general). about an hour of screenon, 10 hours of standby(off the charger) and im down to 85%.

I'm still trying to figure out how to reduce some of the wakelocks. I might post a guide as to how to prolong battery life after my exams if time permits.
[Xiaomi Mi 4i] lineoxkun:
maybe you can use amplify and greenify (?)
[Xiaomi Mi 4i] davtse:
i'm already using them. but some wakelocks are more tricky.. you never know if they're affecting some other system app...
[Xiaomi Mi 4i] lineoxkun:
ah, sorry then.
[Xiaomi Mi 4i] davtse:
Okay, if anyone has any info on alarmtimer wake lock, please share.
[Xiaomi Mi 4i] sharan.nyn:
I was thinking if there was a frimware issue with MIUI 7 then Xiaomi must have done it on purpose right? Like it must have some files that are different from MIUI 6, so wouldn't replacing the firmware effect MIUI 7 as whole? I don't know the function firmware partition provides, and why did xiaomi go with different files for MIUI 6 and MIUI 7.
[Xiaomi Mi 4i] haikalizz:
I haven't tried it with MIUI7 yet but I think it should affect the OTA updates, other than that I'm not sure...
[Xiaomi Mi 4i] plamen97:
Does it work with MIUI 7.1? If does, how do I install it, with TWRP?
[Xiaomi Mi 4i] imagine92:
trust me, it works fine on global stable 7.1.1.0, don't forget to flash patch and wifi fix.
[Xiaomi Mi 4i] sharan.nyn:
Yeah, it sure does. It runs pretty well too :D
[Xiaomi Mi 4i] davtse:
Results of sensei 2.1 and miui 7 debloated. Amplify, greenify and powernap as main powersaving apps, fast dormancy turned on, most of screen on time used browsing web, messaging and forums

just a further add on, all internet browsing and downloading done via network and not wifi. I'm sure using wifi would have resulted in even more power savings .
[Xiaomi Mi 4i] sharan.nyn:
how and what did you remove from MIUI 7 to debloat it ? I got 5 hrs of SOT with WiFi. But on 3G 4hrs and yet some battery left is amazing :D.
[Xiaomi Mi 4i] davtse:
you'll have to test and see what is stable for you. I removed most of the xiaomi apps including micloud and xiaomi framework. Doesnt break anything for me but your mileage may vary. 4hrs of screen on over the course of almost 3 days. I shouldnt have a problem hitting 3 days and 4hrs 30mins of screen on i think
[Xiaomi Mi 4i] sharan.nyn:
Ok thanks. I have freezed some apps too. Nothing broken so far. Will have to test now :)

Will try with xposed framework installed.. I was even thinking of custom miui roms like miui pro or smiui..
[Xiaomi Mi 4i] wkobaint:
let me know, what xposed installer version did you flash? From solarwarez version

Or latest from rovo?
[Xiaomi Mi 4i] jai25993:
my wifi is not working i use miui 7 developer with sensai 2.0 stable

---------- Post added at 12:03 PM ---------- Previous post was at 11:45 AM ----------

hey in my phone wifi not working i also patch wifi fix

---------- Post added at 12:06 PM ---------- Previous post was at 12:03 PM ----------

hello i use miui 7 developer but wifi is not working i also flash wifi fix
[Xiaomi Mi 4i] Bimalhort:
Which version of miui are you using?

5.12.24 has some wifi problem, here you have to connect manually each time, it is not connected automaically.
[Xiaomi Mi 4i] candiesdoodle:
i can connect normally automatically.

thouggh i do feel the speed is lower..but cant be sure.

i used the wifi fix zip poster earlier
[Xiaomi Mi 4i] jai25993:
i use miui 7.12.17 and i also try manually but it didnt work
[Xiaomi Mi 4i] P.Rabbit:
Hello

I installed the kernel, but I have a problem on Youtube: the video stops after about 5 or 6 seconds to start.

The error is this:

An error occurred while playing

Tap to try again.

My rom is MIUI Developer, and the error pattern is always the same.

I used the procedure to install, which is described in this topic:

1and kernel

2nd firmware patch

3rd fix_wifi

After having verified that they had that ero on Youtube, I decide to apply again the fix_wifi but continued to happen.

I decided then to wipe will cache, and will dalvik, but the problem continues.

It has suggestion on how I can solve the problem?

Until I'm enjoying the Kernel

thank you
[Xiaomi Mi 4i] Bimalhort:
I have used with this version, it was OK and the connection was also automatic.
[Xiaomi Mi 4i] davtse:
[MENTION=6858217]haikalizz[/MENTION] anything interesting in the new CAF kernel thread you're going to pickup?
[Xiaomi Mi 4i] haikalizz:
not much stuff that excites me... basically a clean msm8916 CAF kernel with imported changes from Xiaomi. I will do keep an eye for any updates for it.
[Xiaomi Mi 4i] compgenie:
Kernel Adiutor doesn't seem to be able to set clocks properly

MIUI V7 5.12.17, Sensei 2.1, flashed both patches.

Kernel Aduitor can't set the frequencies properly. If I change maximum CPU freq to 1.6Ghz, it changes to 1.1Ghz one or 2 seconds later. I change again, it goes back to 1.1GHz. Same with the LITTLE and GPU clocks.

This only happens on Balanced power mode. On Performance mode I can change anything and it works fine.

Also, is 700Mhz GPU safe enough for daily use?
[Xiaomi Mi 4i] haikalizz:
What governor are you using? Also GPU clock is automatically set with the governor... I won't OC if device won't support...
[Xiaomi Mi 4i] rmusa06:
working good on mi4i with miui 7.6.1.7 beta

also use your tweaks for gorvenor

thank you
[Xiaomi Mi 4i] candiesdoodle:
Running good on MIUI 5.12.24 global beta with sensei v2.1

Has any one experienced charging issues on MIUI? it seems very random - seems to stop charging midway or wouldnt start charging, unless i reboot.

definitely not a thermal issue as i have changed the thermal config. has to be something else...
[Xiaomi Mi 4i] zacutesz:
can i use "Fix for MIUI" in Stable rom v7.1.1.0 ?
[Xiaomi Mi 4i] davtse:
check the post by tsutsey. its the proper fix for 7. my fix was only tried on 6.
[Xiaomi Mi 4i] Hackerpunk1:
The device does not charge sometimes, it requires a restart with the charger plugged in. Using 2.1dev
[Xiaomi Mi 4i] ajaxcbcb:
The charging cuts when ur device is at a certain temperature
[Xiaomi Mi 4i] Hackerpunk1:
Can this be controlled? At what temperature does it avoid charging?
[Xiaomi Mi 4i] candiesdoodle:
in the stock, its controlled by /etc/thermal-engine-8939.conf

its an old reported issue in the stock versions.. so changing the values in this file seemed to have fixed it.

But i dont think thats the issue with this kernel. [MENTION=6858217]haikalizz[/MENTION] can confirm if there is something in the kernel itself thats causing this now...
[Xiaomi Mi 4i] davtse:
This is the norm for a lot of the other smart phone brands as well. the temperature cut off is so that you don't fry your phone while charging and help prevent premature battery degradation
[Xiaomi Mi 4i] Hackerpunk1:
But what I did notice was that the phone was about 45-50 degrees, thus why was it not charging.
[Xiaomi Mi 4i] davtse:
they might be taking the temperature readings from a different part of the phone.
[Xiaomi Mi 4i] elot01:
Same problem here.

Sometimes in the morning the battery did not charge to 100% and if i don't reboot the phone, sometime in the next 24 hours it will shut down.

Easy to start up again, but not the way it should i think.
[Xiaomi Mi 4i] haikalizz:
Kinda having the same problem here but happens only when charging at night though.. Might be MIUI but can't be so sure. I will upload my device tree to my gitlab if anyone wants to build aosp, I've adopted the current device tree for it...
[Xiaomi Mi 4i] sharan.nyn:
Battery Status MIUI7

This is the battery on MIUI7. It's 3 days of standby with 5 hrs of SOT

Pretty impressive performance. Thanks dev for the awesome kernel. With this i can enjoy the performance and use the camera from MiUI
[Xiaomi Mi 4i] candiesdoodle:
I think you should share some details about how you managed to achieve this feat :)

- what all did you bloat?

- what kernel settings are you on?

- what wavelokcs, alarms and services are you blocking?

Thanks for sharing mate!