yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4i] siapakahaku:
i could not lock gpu max freq to 550mhz or below with msm-adreno-tz governor...its always back to 700mhz

Adreno idler will also back off when reboot, though set at boot in kernel adiutor already enabled

is there any specific setting that i missed?
[Xiaomi Mi 4i] haikalizz:
I'm trying to build a new version of my rom with updated sources from AOSP, let's hope this time it boots and I can finally release it... Will update
[Xiaomi Mi 4i] nightwalkerx22:
Here's hoping [emoji256]
[Xiaomi Mi 4i] sarkar4540:
Problems faced while using sensei on cm13.

There were problems in cm13:

1. The sound bars in kernel adiutor freezes the phone.

2. It deactivates the default double tap to wake after first boot.

3. In case of addition of init.d script to enable dt2w manually, the phone shows no sim cards are inserted on reboot.

4. Cannot play 1080p videos (captured by phones camera).

5. MX Player says "Device not supported or the Application files are corrupted".

Rest all are good and working.

PS. I am using fire855's build and the aforementioned problems occur after flashing the kernel.
[Xiaomi Mi 4i] ajaxcbcb:
Is not kernel issue. Ur rom is just unstable
[Xiaomi Mi 4i] nightwalkerx22:
I was on fire855's build with sensei kernel... Can't say about the 1st three but I never faced the last 2 problems.

Flash the kernel after a clean installation.
[Xiaomi Mi 4i] sarkar4540:
Maybe... But the first one is a problem I faced even while using miui7. I dirty flashed the cm13 zip of fire855, and all the 5 problems are gone. So, how can the problem be in ROM, if changing the kernel fixes the issue?

Maybe I messed up with the procedure. Is there any solution? Currently I am using cm13 stock kernel of fire855's build. However I need those CPU governors.
[Xiaomi Mi 4i] haikalizz:
1. Problem is with the sound driver, don't change any sound settings for now. Took it from Nexus 6p commits, needs more changes before working.

2. That is normal.

3. Didn't have this problem before, can I see your script?

4 & 5. Like previous comment, didn't had this problem in CM13 & MIUI7
[Xiaomi Mi 4i] sarkar4540:
The init.d script consisted of :

#!/system/bin/sh
echo 1 > /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/wakeup_mode

All those aforementioned problems vanished when I dirty flashed the cm13 ROM.
[Xiaomi Mi 4i] herjanasatya:
in miui7, my device still overheating, how set it with kernel adiutor ?
[Xiaomi Mi 4i] ajaxcbcb:
Is aosp still wip?
[Xiaomi Mi 4i] haikalizz:
Yeah working on it, I tried building with latest sources but stuck with something about -lcrypt-hw for the gcc toolchain... [MENTION=5162591]Shahan_mik3[/MENTION]
[Xiaomi Mi 4i] TsudenoConsigliere:
after flashing it shows kernel version "Unavailable" , although i was able to flash it successfully , im just kinda getting that itchy feeling when it shows it that way.

anyway is there anyway to fix that?
[Xiaomi Mi 4i] nightwalkerx22:
It's been that way, don't worry, everything is fine.
[Xiaomi Mi 4i] sohansonu:
Device running as smooth as butter after flashing this on cm12.2 but battery life...

The kernel seems to be pretty smooth on CM12. 1 but I've this little question the battery's not lasting as long as it used to, I'm using it on balanced, is there any way to increase the battery backup
[Xiaomi Mi 4i] haikalizz:
Need somebody to test out my MinimalOS 6.0.1 build...

Link : https://www.androidfilehost.com/?fid=24438995911967911

-----------------------------------------------------------------------

If it boots, please share screenshots of it. My mi4i isn't available right now...
[Xiaomi Mi 4i] imagine92:
No luck bro.. still booting into fastboot..

what happen to your ferrari btw??
[Xiaomi Mi 4i] haikalizz:
hmm, so after Mi logo, it boots into fastboot? and my ferrari got stolen, warranty doesn't cover stolen devices sadly..
[Xiaomi Mi 4i] imagine92:
yes, after mi logo it boots into fasboot.

aww feel sorry for that.. so you gonna move to another device?
[Xiaomi Mi 4i] haikalizz:
Alright, building new test. Also I was thinking about the 5X but sticking with Mi4i for now...
[Xiaomi Mi 4i] haikalizz:
Alright, here is a new build. Could you test it out?

https://www.androidfilehost.com/?fid=24438995911968005
[Xiaomi Mi 4i] imagine92:
latest build still booting to fastboot bro... :(
[Xiaomi Mi 4i] haikalizz:
[MENTION=5932333]imagine92[/MENTION], could you try this while in TWRP?

And attach the file..
[Xiaomi Mi 4i] imagine92:
there is no last_kmsg on /proc/ directory.. just kmsg..

and here you go..
[Xiaomi Mi 4i] rosaplektrum:
Cant find doubletap to wake in Kernel auditor. im on Resurrectionremix Build v5.6.3 and theres an option under settings-screen to enable doubletap to wake thats been working but stopped working after i installed this kernel. Can any one help me with this?

I´ve tried downloading a terminal from the play store and wrote "echo 1 > /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/wakeup_mode" to enable doubletap2wake but it says "not found"
[Xiaomi Mi 4i] haikalizz:
is the terminal having root permissions? if yes, then navigate to the said place using a root file manager and check permissions/set it manually to 1. Basically all dt2w implementations for mi4i is using the same file.
[Xiaomi Mi 4i] rosaplektrum:
Thank you so much. it worked.

---------- Post added at 06:44 PM ---------- Previous post was at 06:32 PM ----------

it works but theres a problem though. When i reboot the phone the value goues back to 0. Any suggestions?
[Xiaomi Mi 4i] haikalizz:
there's a script somebody posted in this thread. Try looking a few pages back, the script is basically that same function you used to activate dt2w, just that it runs on boot..
[Xiaomi Mi 4i] davtse:
those looking for a slim stock rom can try miuipro. just google miuipro mi4i and you should link there. difference is about 300mb in size
[Xiaomi Mi 4i] Sörnäinen:
Finally got around to get it on my phone.

I didn't expect it to make that much of a difference. I'm very impressed. Thank you. Awesome!
[Xiaomi Mi 4i] Sörnäinen:
PS. Let me elaborate. Phone is much more responsive. And the RAM management is better, in the past the home screen would often have to restart after using apps, now nothing of that.

But the phone sometimes dies on the charger. Some charging issue?
[Xiaomi Mi 4i] haikalizz:
might be the charger overheating, try feeling it
[Xiaomi Mi 4i] Sörnäinen:
Overheating charger? I will test that, thank you. Would that leave the phone dead?

Thank you!

---------- Post added at 04:13 PM ---------- Previous post was at 04:12 PM ----------

Overheating charger? I will test that, thank you. Would that leave the phone dead?

Thank you!
[Xiaomi Mi 4i] Tanuj97:
pls push the changes to github ...i am finding a hard time adding gitlab sources in my local manifest :p
[Xiaomi Mi 4i] haikalizz:
sure, but I'm kinda in the dark.. router ain't working for now and pushing to github isn't ideal while on mobile data, will upload once I get my router fixed. You could try manually pulling it or download it through zip for now..
[Xiaomi Mi 4i] davtse:
Regularly breaking 1+ day of standby with about 4+ hours of screen time with debloated miui7. Used in conjunction wwith microgms it's really quite amazing.
[Xiaomi Mi 4i] 5krillex:
Just flashed it in TWRP, but kernel version shows unavailable? My present rom is CM13-20160130-UNOFFICIAL-ferrari. Can someone help me, explain and give the solution to this problem? Thank you.
[Xiaomi Mi 4i] haikalizz:
it shows on Miui, don't panic it's a common problem happening in custom roms and devices with the same chipset (from what I see with Moto X Play). No fix for now...
[Xiaomi Mi 4i] sonalsaha:
Please fix the double tap to wake
[Xiaomi Mi 4i] haikalizz:
why? it works already... If it doesn't work in Kernel Adiutor, you need to contact the dev same as in rom...
[Xiaomi Mi 4i] sonalsaha:
Noh it does not. I have checked every marshmallow rom. Double tap to wake works before installing the kernel but not after . There is no wake control in auditor as shown in the screen shot .
[Xiaomi Mi 4i] haikalizz:
That was old implementation, got newer one. This one doesn't show in control, have to manually enable on Marshmallow roms as far as I know. How to enable it is in second post, read through it.
[Xiaomi Mi 4i] sonalsaha:
it says to write a few lines in the terminal, does that mean any terminal emulator.

Sorry if its a noob question.
[Xiaomi Mi 4i] haikalizz:
Yeah, any kind terminal emulator on the Play Store... Make sure to give root permissions to it
[Xiaomi Mi 4i] sonalsaha:
Yeah i did. it accepted the code but still double tap to work does not work> Frankly i wish the process was easier. thanks for all the help. Appreciated greatly.
[Xiaomi Mi 4i] D4rkCyb3r:
[MENTION=6858217]haikalizz[/MENTION] you are a jewel to Mi4i community, please keep continuing your work we all appreciate it coz without you this community will be dead within days
[Xiaomi Mi 4i] paktanjoeng:
i can't found ElementalX governor in your latest kernel 2.2

so for this governor, can i replaced with what governor?
[Xiaomi Mi 4i] pradyu_ym:
hi, i am running on cm12.1 by wilson3q and the phone dies on the charger please help me.

the charging current is low too its around 200- 700 it dies almost all the times and then i have to turn it off and charge it to charge it properly.. please help me to solve this prolbem of mine!
[Xiaomi Mi 4i] 8sonic8:
Maybe cure for autofocus issue???

Hi!

I'm having autofocus issues from 6.5.6 version MIUI, with custom roms and below this the camera working good. According to terminal emulator my phone has imx214-ofilm-largan sensor. I'm tried to port cam libs from 6.5.6 and seeks for change between 6.5.6 and 6.6.3 but the cam behaves different in the same situations but not working good the autofocus if I'm copy the changed libs from 6.5.6 to 6.6.3, or gets bootloop with firmware files :) Now I'm installed the 6.3.17 dev MIUI7 (alone also has the focus issue) and installed the Sensei Kernel and the two provided zip for MIUI. The strange is after installed the 3 zips the autofocus issue gone!!! Is it possible this issue is related to kernel or firmware, and with these zips its cured?

Can somebody who has autofocus issue try it?
[Xiaomi Mi 4i] pradyu_ym:
please help the phone does not charge sometimes.. maybe it has to do something with the thermal control because when i use it and put it for charge it doesnt but if i charge it without using it works properly. please help? [MENTION=6858217]haikalizz[/MENTION]
[Xiaomi Mi 4i] RomanMiro:
Using mokee cm12.1 and sensei kernel. Have the same problem. I use CoolTool. Is shows current in notifications. When i screen on i see current is about 1100-1200mAh. When i use phone it charge very slowly or even discharge (200-300mAh). Reconnecting charging cable fix problem, and then again charging current is drop.

ps sorry for my english
[Xiaomi Mi 4i] tarjanhorse:
I flashed kernel from twrp with Slimbit ROM but after reboot i am unable to see kernel settings and in about phone Kernel version shows 'unavailable'
[Xiaomi Mi 4i] faizauthar12:
It's a normal

U can boot up ur device right ;)
[Xiaomi Mi 4i] rohit.thakur:
Double tap to wake not working

hey thanks for this amazing kernel but double tap to wake is not working. I am on CM 13 on mi4i kindly help me.

Thanks hope to hear from you soon .
[Xiaomi Mi 4i] Devoct:
enable it manually.

from the OP:
[Xiaomi Mi 4i] fidows:
can i use this kernel on miui7 latest global? i just used this phone. if i want to use this kernel. i have to do this

1.root phone

2.flash twrp recovery using mi4i toolkit

3.flash sensei kernel

it that right? or it only can be use on cutom rom? sorry for noob question em
[Xiaomi Mi 4i] fidows:
anyone?
[Xiaomi Mi 4i] faizauthar12:
Go here:

http://xdaforums.com/mi-4i/development/enjoy-zenexperience-sensei-t3182860/post66280466
[Xiaomi Mi 4i] fidows:
that is my post. just asking is that correct my step to do it?
[Xiaomi Mi 4i] faizauthar12:
Yeah ur right bru
[Xiaomi Mi 4i] fidows:
means i can use this kernel on miu7? sorry for noob question. first time i want to root and install custom kernel for this phone. if i want to go back to stock recovery. how can i do it? thanks for you helps ??
[Xiaomi Mi 4i] faizauthar12:
probably it can.....

sorry for wrong link post,it should be :

http://xdaforums.com/showpost.php?p=64590187&postcount=472

nah that is...

am using mobile and it's kinda different with desktop version :fingers-crossed:
[Xiaomi Mi 4i] fidows:
good to hear that. so if there is ota update or i want go back to stocks kernel, i have to flash the miui7 full rom. am i right? but can i use twrp to flash full rom miui7?

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

good to hear that. so if there is ota update or i want go back to stocks kernel, i have to flash the miui7 full rom. am i right? but can i use twrp to flash full rom miui7?
[Xiaomi Mi 4i] faizauthar12:
make sure u make a kernel backup at TWRP....

it's easier rather than install a full rom
[Xiaomi Mi 4i] fidows:
thanks for the help hee. will try it :good::good:
[Xiaomi Mi 4i] Devoct:
yes you can, but you need to flash additional files.

4. flash 2 additional files, wifi-fix and firmware patch.

from the OP:

that's it.

if you want to go back to stock kernel, just flash your current full MIUI ROM.

and yes you can flash stock MIUI7 with TWRP, no need to go back to stock recovery.
[Xiaomi Mi 4i] fidows:
full step. thank you so much for the fast response. will report here after flashing. thanks again:good::good:
[Xiaomi Mi 4i] jkdjdon:
How to enable sweep2wake

I am using cm12.1, in Kernel Auditor i can't find the option to change the wakemode. How to do it
[Xiaomi Mi 4i] Remorcer:
You didn't even read the main post...
[Xiaomi Mi 4i] jkdjdon:
you didn't even read the title of my post

I was asking about how to enable sweep2wake

Is this echo command work for both doubletap2wake and sweep2wake
[Xiaomi Mi 4i] haikalizz:
The basis for sweep2wake is in the kernel already but it doesn't work with our touchscreen. I tried to extend the dt2w functionality to include it but it didn't work. I will still update this starting in May when I'm getting a friends Mi4i to test with... Right now, bought a new Mi5 and am liking it..
[Xiaomi Mi 4i] mandarin91:
Still no way to increase volume / vibration intensity? I miss all calls, notifications and alarms.
[Xiaomi Mi 4i] candiesdoodle:
Hey [MENTION=6858217]haikalizz[/MENTION] ... got a question

does your kernel have anything to do with Bluetooth? Or do the 2 patch files needed to make your kernel work with MIUI 7, have anything do with bluetooth?

i was trying to pair my phone with my new car audio system and the calls wouldnt get routed to the car audio no matter what. rest everything (music+SMS etc was working fine). i tried this with the following combinations:

1. Sensei kernel + patch file + Slimbit (based on AOSP)

2. Sensei kernel + patch file + CM13

3. patch file + CM13

Later i installed the stock MIUI 7 (without the patches) and it works fine now.

So thats what making me wonder - where is the error? To me its either in the patch files (say if they have the radio from the pre MIUI 7 era) or maybe some aspect in the kernel?

It could also be just the patch files.. in which case i would love to use your kernel without the need for the patches (I remember you mentioned you would try to compile after incorporating the MIUI v7 firmware)

As always, thanks a lot!!
[Xiaomi Mi 4i] UniQ01:
Dude. I flashed ur kernel. In miui 6.1.8 developer rom. Then flashed patch fix then wifi fix. Everything. Done. Rebooted in system. Everything. Woeks fine.

But in kernel auditor not showing tap to wake option. And in cpu option in cpu governor dont have elementalx. Option. So how can i set. It for gaming???

And i enabled cpu control. Into terminal after giving su permission. So how to use cpu control?

Total 3 problems.

Help to fix em thanks.
[Xiaomi Mi 4i] Devoct:
AFAIK you don't need to active double tap to wake via command line/script in MIUI, just enable it in Setting.

guide on the OP is a bit outdated i think, lot of govs have been removed in recent versions.

what do you mean?

after giving su then just type the command,

echo 1 > /sys/devices/system/cpu/cpu{number}/online_control

change {number} into actual number, for example if i want to force enable cpu0, then i will type.

echo 1 > /sys/devices/system/cpu/cpu0/online_control
[Xiaomi Mi 4i] UniQ01:
I enabled cpu 0,1,2 & 3

Now what i have to do ??? How to control and oprate them from kernel auditor.

And if some governers are removed. Then what setting i use for gaming ?
[Xiaomi Mi 4i] Devoct:
what are you trying to achieve?

1 to force enable it, that's it.

you can't control it from kernel adiutor.

actually you are fine with either gov, try smartassv2.
[Xiaomi Mi 4i] UniQ01:
Ok i am trying smartass. Thanks.
[Xiaomi Mi 4i] davtse:
LOL my first reaction to this was to tell you that he's just trying to help and you shouldn't be rude. Guess that's what you get for naming the governor smartass lol
[Xiaomi Mi 4i] UniQ01:
Lol i am not being rude.

Bro i meant to say i am trying smartass setting in cpu. For gaming haha
[Xiaomi Mi 4i] davtse:
lol yes i know.. just caught me off guard because i forgot we had a governor called smartass in the kernel too
[Xiaomi Mi 4i] Togeziro:
It's works on Mi4i Running MIUI 7.1.1.0 (LXIMICK0)

prntscr*com/awhd1g

change * to .

[MENTION=1498291]davtse[/MENTION]

But while i'm changing freq, governor and other stuff, it's always revert back

Could you please share how to edit files (Forcing Change Values) instead from apps
[Xiaomi Mi 4i] Togeziro:
Now I'm changing thunder plug setting and limited thermal, let see if this works

Thanks davtse, i will keep the update
[Xiaomi Mi 4i] davtse:
I think you have the wrong person, i'm not the one updating the kernel. you're looking for haikalizz. but in any case if you want the settings to stick on boot either try an init.d file or edit the init.post_boot.sh
[Xiaomi Mi 4i] candiesdoodle:
Hey..any info on this will be very helpful!! Thanks!
[Xiaomi Mi 4i] davtse:
not the patch files have more to do with wifi and partitions. which order are you flashing them in? you should be flashing the patch files only with miui 7, and only after you have already flashed the rom. so it will be flash rom, flash kernel, flash patches. there's a chance that bluetooth was never working but i dont know since i never tried it lol..
[Xiaomi Mi 4i] candiesdoodle:
Thanks [MENTION=1498291]davtse[/MENTION]

looks like its neither the patch nor the kernel. bluetooth working good with sensei on MIUI 7

possibly ROM related bug which seems to have got replicated on all M roms.
[Xiaomi Mi 4i] quain88:
there should be atleast one mirror just in case one goes down, now androidfiles is down, no one can download the kernel
[Xiaomi Mi 4i] mandarin91:
No reply. Okay.
[Xiaomi Mi 4i] davtse:
More details, what ROM are you using? For miui 6/7 there is an option in settings to increase vibration intensity, but only weak, medium and strong
[Xiaomi Mi 4i] Greyjawripper:
Will this work on MIUI 7 stock rom?
[Xiaomi Mi 4i] mandarin91:
CM13 of course. I have tried a lot of things.
[Xiaomi Mi 4i] davtse:
Just an update on this kernel, with the adreno idler and GPU power save settings, using the GPU to compose the screen instead of CPU appears to save quite a bit of battery for me. Either that or its the latest miuipro update but I doubt the settings are that massive a difference. Getting about half an hour more screen time at least for 50% battery as compared to before. And you aren't seeing things, it's about 24 hours of standby and about 2 1/2 hours of screen on, and I'm still sitting at about 55% battery left. Usage is mostly on 3g with some wifi when network drops.

My redmi 3 is coming on Tuesday, so I'll run some tests. I suspect that my battery life on the mi4i will roughly be the same as the RM 3 because of some kernel tweaking of course sensei.
[Xiaomi Mi 4i] Devoct:
what do you mean by "GPU power save settings"? the governor?

that's pretty impressive, my Mi4i burns like crazy when standby in Mobile Data, was your Mobile Data turned on all the time?

what do you think, is it because the MIUIpro ROM or Sensei Kernel?

i'm currently on Xiaomi.eu, if MIUIpro is that impressive i'm gonna switch. :fingers-crossed:
[Xiaomi Mi 4i] davtse:
yes mobile data on all the time, but using 3g instead of 4g. I'm guessing itn has something to do with fast dormancy as well, which helps save power if your network supports it. powersave settings for GPU = adrenoidler on. lower the time to idle and increase the load required to ramp up it can be found in kernel adiutor(mod) for the nexus 6. try googling it, its on XDA.

For the most part miuipro is heavily debloated and i think that its beneficial to swap to it anyway. I'm also using microgms instead of google play services so that might play a part in idle drain as well
[Xiaomi Mi 4i] Devoct:
i only got 30 mins SoT, 4h 41m on, and it's already 85%, only on 3G too, signal is full most of the time, the worst is only 4 bars.

the ROM is already heavily debloated too.

i don't know why i get bad battery life on mobile data, if i'm on Wifi it would be 1h 7m with the same stats.

if my network doesn't support fast dormancy, is it that significant?

last time i checked, Adreno Idler is on by default in Sensei, Kernel Adiutor shows it's disabled but if i check in /sys/module/adreno_idler parameter, it's enabled, and GPU stays on lower clock(220mhz) most of the time.

i get a lot of bam_dmux_wakelock if i'm on mobile data but not on Wifi, do you get it as well?

i use Google Services, will microGMS get in a way?
[Xiaomi Mi 4i] davtse:
microgms is supposed to be a lightweight replacement for google services. check the xda thread for more information on whether it suits your purposes.

kernel adiutor(mod) provides a few more settings as well so check it out.

bam_dmux is unavoidable, if you use xposed you can minimize it by greenifying GCM services and still receive GCM. I use powernap as well for all the non crucial services.

your stats are actually decent but could be better. check with your network if they support fast dormancy. With samsung you could check RRC states but unfortunately for our mi4i there's no way else to check. I tune my fd settings in buildprop to 1000 screen off and 3000 screen on.
[Xiaomi Mi 4i] Devoct:
is this the one you are talking about?

http://xdaforums.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616

i've once tried greenify(non-exposed) on CM13, but it makes standby use even more battery, usually i get 4% overnight drain, 7-8 hours, with greenify i get 7%-8%.

my network should support FD, but i don't know for sure as we can't double-check it, gonna test it with on and off, to turn it off i just need to set persist.env.fastdorm.enabled=false in build.prop(MIUI ROM), right?

any idea what is this persist.radio.data_no_toggle=1 ?

and would you mind share your setting with Sensei?

like governor used, governor tuneables, etc.

because i get more stutters than using stock MIUI kernel, and i don't know if i get more battery life than stock kernel.
[Xiaomi Mi 4i] davtse:
If you're using CM13 you're out of luck, FD doesn't work on anything but miui based roms. but yes, generally persist.fastdorm will control it, search for the entries fdscron and fdscroff for the timings. its generally 3000 for scroff and 10000 for scron. I set mine to 1000 scroff and 3000 for scron.

Search my earlier posts in this thread, i've uploaded both the post_boot.sh and my init.d file

My gov has and always will be zzmoove where it is available. However performance wise it will be hard to match the stock kernel, since my settings make use of hotplugging(agresssive) vs all-cores on stock.
[Xiaomi Mi 4i] Devoct:
i'm on MIUI at the moment.

just as i thought, what makes stock kernel is smoother is because the cores were always online.

thanks for your helpful replies.
[Xiaomi Mi 4i] Xornop:
Hope you can fix the sound driver soon!
[Xiaomi Mi 4i] raymond_bqg:
I am using SlimBit [6.0.1_r16][AOSP] by shahan_milk.will this kernel work for me? Even pokerking by geax game is hanging in my phone...lol....
[Xiaomi Mi 4i] nightwalkerx22:
I'm using slimbit too & it will make it even better.