yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ImJustChew:
Is there a way to add a delay for double pressing power button to camera? because sometimes when i press the power button once, it registers it as twice and accidentally opens the camera.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abhisheksadanand:
Elevtrablue kernel vs Franco? Which is better?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
For me Electrablue since im not rooted, if you're rooted I think franco.

---------- Post added at 02:55 PM ---------- Previous post was at 02:53 PM ----------

You can just turn it off, you can find it at Settings/System/Gestures.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ImJustChew:
No i dont want to turn it off, i want it to be working
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
Sorry don't know any other way, sorry.

Why not use double tap home button for camera.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abhisheksadanand:
Hows d battery life wid electrablue?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
It's okay, the battery last for a normal/everyday use and gaming.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abhisheksadanand:
Cool.... Just flashed electrablue. Btw do u feel dat this ROM has some delay in fingerprint unlocking?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
Compared to stock miui? Yup, but not that much that it's a turn off though.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Electrablue or this stock kernel for gaming?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
For me Electrablue.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
In this kernel, there is an option to battery settings and you select how good you want to be... If i install Electrablue kernely, this option will work?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
The Battery power management? It still works.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Yeah this... Ok i will install it but if i want to go back to stock kernel? Did you know how can i do that?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
I just reflash LOS15.1 to revert to stock LOS kernel and just wipe dalvik and cache.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
And something else... I install it, i have to apply some settings in kernel adiutor?

---------- Post added at 04:19 PM ---------- Previous post was at 04:18 PM ----------

For reflash, wipe every thing except Micro sd and otg?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
Didn't mess with the kernel because it's okay as is for me and didn't install kernel aduitor as well.

---------- Post added at 03:28 PM ---------- Previous post was at 03:21 PM ----------

Just Dalvik and cache will do, no need to erase everything.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
So if i wipe dalvic and cache, when i reboot, it will be like the first boot?

---------- Post added at 04:32 PM ---------- Previous post was at 04:32 PM ----------

Or i have to flash the rom again?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
If you flash electrablue kernel and you want to go back to stock LOS kernel, you have to reflash LOS rom but no need to wipe everything just dalvik and cache.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Ok thank you very much for your help
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
My bootloader is unlocked and i dont want to go back to miui

---------- Post added at 07:41 AM ---------- Previous post was at 07:41 AM ----------

Thanks for your replu btw
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Hey guys... I know this may not be the correct thread but i need help. I installed Electrablue kernel and the charging speed is too low.. Did you know why and how can i fix it?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nicklas Van Dam:
Install any kernel manager like kernel adiutor or etc, so you can manage kernel by yourself
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
I download kernel adiutor and disable settings in thermal but the problem is still here
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nicklas Van Dam:
Thermal seems not really problem from your case, if your charging speed is slower than normally you could tell to developer from your custom kernel with proprietary log. Or maybe that can be cause from your battery already damaged or etc.

Try to change to other kernel and see if your problem still happen.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Ok mate thank you

---------- Post added at 06:36 AM ---------- Previous post was at 05:39 AM ----------

Mate can you guide me on how to fresh install my kernel again?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nicklas Van Dam:
Which ROM that you're using it now?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Lineage 15.1 treble oreo

---------- Post added at 08:10 AM ---------- Previous post was at 08:09 AM ----------

Can i send you pm my friend?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nitinji:
How to remove this ROM and revert back to latest MIUI, please provide details steps. I am currently using treble enable twrp.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Immortal0907:
Pretty simple, download mi flash tool, download latest miui from their website (fastboot one). Extract miui, open mi flash , select extracted folder. Connect your phone to pc in fastboot mode (holding volume up while connecting), uncheck option for relocking bootloader (if you dont want locked bootloader) click flash. Phone will rwboot when done.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mgw2015:
Battery issues with Mido - help needed

Getting back to the battery issue. As it appears that a couple of people have issues with the battery drain sometime after June - so do I and I thought it's worthwhile to open a bug:

https://jira.lineageos.org/browse/BUGBASH-2284

I'd suggest you folks add some comments and votes to get this from medium to high for some more attention.

-mgw
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nayneshdev:
I would rather suggest you install miui Rom from Xiaomi.eu using the recovery that you already have, it's less risky, compared to the flash tool imho
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nicklas Van Dam:
It's simple, just dirty flash your current ROM on TWRP and you'll get your stock kernel again

Yes, you can send me a pm if you want it

---------- Post added at 01:44 AM ---------- Previous post was at 01:44 AM ----------

It's performance better than stock MIUI?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nayneshdev:
Well it is based on stock MIUI (global rom- I think), with some features added and some other things removed. I couldn't find it any different from stock MIUI .
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] amnher:
But this requires cust partition to be restored right?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nayneshdev:
Well it does flash many partitions (boot, firmware, splash image and others) that' true. Whether our device has cust partition, I m not sure. The flash tool flashes every partition and being done from a pc/laptop there is a slight risk of data communication through cables. I have hard bricked two devices in the past based on flash tool(although not xiaomi). Therefore I I use flash tool only as a last resort. These r based on my personal experience. Ymmv
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] r.Ry4N.05:
Mido does have /cust partition. So does other Xiaomi phones. And it contains regions data, I think. Only MIUI ROMs are using it, though, no AOSP ROMs are using it, except Treble-enabled AOSP ROMs which are using it as /vendor partition. The partitions that are flashed when flashing MIUI ROMs are firmware partitions, and /cust is not a firmware partition. Going back from AOSP to stock MIUI or other MIUI ROMs would require flashing with MiFlash first to restore the /cust partition for them to work. CMIIW.

The last time I flashed my Mido, I had an error and it failed midway (for some reason the connection was interrupted, I didn't even move the phone). I just had to restart the program, change the USB port, restart the Fastboot mode, and restart the flashing, and it was all good.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mimo_s16:
Is October security patch included in October 9 build? It doesn't say in the change log
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nayneshdev:
I have flashed xiaomi.eu roms with twrp/orangefox many times. I didn't need to restore cust partition in any way. It is convenient and you don't need to reflash the recovery if you want to go back to aosp based Rom and do the procedure again.

The last time I bricked the device is when the fastboot partition (I think, cause I don't know whether such partition exists) it self was corrupted (while the flash was being done), so had to get the Mobo replaced. May be it was my (user) error, your experience suggests otherwise. I just wanted to highlight the fact that I don't see the point of flashing everything, when u can use a custom Miui Rom, after all it's much more convenient.

I think we should get a seasoned developer to give his views on this. And may be should take this discussion somewhere else instead of this thread. Mods are free to clean up.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] amnher:
So even eu rom it will require fastboot rom
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] manuvice:
yes it is
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aron11195:
can you post a screenshot of the security patch level pls
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] manuvice:
should be this commit

https://review.lineageos.org/#/c/LineageOS/android/+/230619/

here is a screenshot of my device
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shinink:
Yes is included!! flash it if you want everything seems ok for now!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] CookieMUNSTA:
yes
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
How to update this rom?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] amnher:
Some of my observation

1. Playlist made with music player sometimes is lost

2. Audiofx setup does not stick. Sometimes i need to reinsert heqdset and turn off then on audiofx for it to take effect.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ppp02:
Hotspot bug

Guys I'm facing this issue

After using Hotspot

If i use phone app to make calls... & if I press call end button the screen won't go off

Everytime i need to reboot

Any solution:confused: guys? Tia..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aleMarvel:
hi, how can block hide\private numbers ?

i would like not use 3d part apps.. native, magisk

is possible enable ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Can anyone help me? Because i think i got old version of this rom
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
You can block numbers by opening dialer app and pressing the 3dots and then settings. You'll see a call block option but it also block text msg's.

---------- Post added at 02:46 PM ---------- Previous post was at 02:45 PM ----------

You can just dirty flash the newer version. You need to reflash custom kernel and magisk if you have it installed.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Better official or unofficial build of this rom?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] snehil15:
Audio fx app is not working for me. Anyone know how to fix? I'm at the latest build.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aleMarvel:
i use module viper for magisk
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mimo_s16:
From my own test, yes audio fx does not work.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Ghostryder71:
Work fine here
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mcflyle:
Here it works, tested with tunein and deezer (needs to be activated as external equalizer in deezer settings). Everything is fine.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mimo_s16:
I dirty flash from previous build. Maybe thats why its not working, at least for me. I use viper now, and i prefer it over audio fx anyway.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] baxtex:
Don't know if I am doing something wrong but I can't get pass setting up the phone after a clean flash. After I have selected my wifi, it will search for updates in all eternity. I am not able to skip the setup at all. Using latest stable build and fresh gapps.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Immortal0907:
Which gapps? It was happening to me idk on which device it was a while ago, there was some kind of trick, like did you try hitting back button , and then going next agaim or something like that. Btw you can always skip connecting to network and it wont happen
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] totbl:
New update broke flashlight and camera. Any advice?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nicklas Van Dam:
Broke like what? FC or can't open?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] amnher:
No issue like that on my end. Stock with magisk
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
Only on your end. Did you try cleaning data in settings/apps and twrp dalvik/cache?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] BrandAparte:
GPS/Location Issue

Hi all,

I have started to face a GPS problem on my phone. The location will not lock anymore. This is the first time I faced this issue, but since I don't use Maps all the time, I don't remember the last build which was problem free. I can't even tell if it is a hardware issue, as if I restart my phone enough times, I will get a GPS lock, but again the problem will return.

I am writing here to ask if anyone else is facing this issue? Is it a known issue? Is there a fix that I am not aware of?

I just flash the Official Build + GApps + Magisk (from the Treble TWRP provided here), so no custom kernels or any other modifications.

Awaiting some assistance.

Regards
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
Using mobile data? Try closing the app and remove from multi task, that usually works for me when the gps won't lock on my location and im using waze.

I think there is a module in magisk that fixes gps issues, why not try that. It replaces the current gps config w/a newer one.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] BrandAparte:
Thanks [MENTION=6074292]rodynares[/MENTION] for the quick reply.

Yes, I usually use Maps on mobile data, never knew not to actually... Is there any known issue with mobile data?

Before i wrote here, i tried the magisk module actually (pretty sure it's the one you suggested), but nothing changed.

Never heard of Waze before, i'll look into it...
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] moo113:
Try the Global GPS magisk module, it solved my difficulties on two Xiaomi devices.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] panos19:
Some help?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] BrandAparte:
GPS issue on 2 devices?! Shocking!

As I mentioned in my other reply, I have already used this Magisk Module before I wrote here, and nothing changed for me :(

Since it worked for you, I am wondering what might be the issue with my phone?

Thanks for the reply though
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] moo113:
Use the GPS locker app from the play store, get a good idea of what your difficulty may be from. Demonstrates the speed at which it takes your device to lock to visible satellites
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] totbl:
Yup. Tried all that. Force close with any camera app and flashlight under notification bar is greyed out. Def. strange as I didn't do anything different. Never have issues updating.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] crazydude10:
facing a similar issue. if I manually set the location on, then the location is not set, but if the app asks to enable the location e.g maps, then location seems to work.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Enix182:
Yes , Goodix Fp still Bugs
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gauravbhakuni90:
Which part of the ' goodix FP doesn't work' in op you didn't get ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] donkeey_kong:
You get that feature in the pixel experience ROM. Works fine in mine.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] saka1412:
Ask about the rom

I've already installed it from miui 9.0.3.0 in the begining after boot up askt to set fingerprint and pin or pattern, and I did. after rebooting though i did put correct passcode or pattern it always says it's wrong and I can't get into system. and I flash it to another rom the passcode still exist. Is it just me? And I wan't to give another go this time from Lineage 14.1 Hope the rom doesn't lock me down again. And can I use open gapps stock just like in lineage 14.1 to get pixel experience?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] andreymixmax:
[QUOTE=saka1412;74561749 format data/decrypt from twrp.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Aditya Kharat:
U might be having goodix sensor!

---------- Post added at 06:08 AM ---------- Previous post was at 06:06 AM ----------

Which rom are u using?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Boomshiva:
Pixel experience

---------- Post added at 06:17 AM ---------- Previous post was at 06:12 AM ----------

Well format data helps in decrypt . None had issue ever . You the first one who says "FORMAT DATA " didn't help .anyways good to know that issue is resolved

Edit : you could have just use redwolf recovery in which there is a script for removing rom security....
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] andreymixmax:
Format data , Not wipe data. , If you already do that, there will be no locks anymore. Well I'm sure you only do wipe data, not data format.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Aditya Kharat:
Is it the LOS 14.1 Dark rom pixel features?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] dhsomani:
Can anyone have solution for front camera that not works well in night light. The picture clicked at night is very black.. I am using Gcam 5.1.014 with this rom and kernal..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Boomshiva:
What ? .

No ...its not . I think i clearly mentioned "PIXEL EXPERIENCE" & not dark rom :rolleyes:

---------- Post added at 07:29 AM ---------- Previous post was at 07:26 AM ----------

Use builds by arnova8g2 . Selfie camera is not dark

Thread link : https://xdaforums.com/mi-5/themes/app-collection-camera-modded-t3591177
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Aditya Kharat:
Sry my bad..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sohalspark:
Please fix goodix fp sensor :'(
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sacramentum87:
I found another bug.

The charge level of the bluetooth headset is not displayed in the status bar. On Lineage OS 14.1 it worked.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gauravbhakuni90:
I'm pretty sure you wiped the data instead of format.

---------- Post added at 12:43 PM ---------- Previous post was at 12:43 PM ----------

Anything else, sire ??
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sohalspark:
No sir.

Only goodix fp sensor :'(
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] dhsomani:
I tried installing arise magnum apus. The installation part completes in twrp but when i try to boot into system i stuck on the logo. Then have to install Rom again.. Can anyone tell me why i am having this issue and how to solve it...???

Thanks in advance

I tried to install core and v4a_2.5.0.5 only.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sanju2cool:
Is there a way to change status/notification panel color to black instead of white?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PepperShoe:
Video playback malfunctions happen.

Like video stops and audio playing.. Lower performance in games.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ciochi85:
Do you know any way to make an hardware test such as on miui? I cant make microphone working as I replaced microusb connector board on the bottom.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
You can access engineering mode on miui rom.

Settings/About Device/Kernel Version "Keep tapping"
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ciochi85:
I know that, but i'm on this rom.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] karamancho:
This rom doesn't have that, you can try your luck with some 3rd party app
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] chuckiebronco:
Please use search function. The first nine search results for "unofficial" for example will give you every explanation needed.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] francogp:
If you Flash MIUI using TWRP, OTA updates get restored as well? I read somewhere that you have to manually update ROMs if you don't Flash using miflash tools

---------- Post added at 06:11 PM ---------- Previous post was at 06:08 PM ----------

Obviously official versions are more polished and stable. They are more stable.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nayneshdev:
Well the xiaomi.eu has its own ota update app that notifies of new build...although I rarely do ota updates (I usually dirty flash)...so don't remember exactly

---------- Post added at 04:00 AM ---------- Previous post was at 03:48 AM ----------

Well the xiaomi.eu has its own ota update app that notifies of new build...although I rarely do ota updates (I usually dirty flash)...so don't remember exactly
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] CookieMUNSTA:
trusted face and trusted voice not showing in smart lock
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] isinghpankaj:
I can't get my Bluetooth to turn on, it keeps on showing "Turning bluetooth on"

I have tried to reset the Bluetooth data, reset network settings, tried to check in safe mode too but still the same issue.

I am on latest build with stock kernal and stock Gapps without magisk or any kind of root.

I just moved from MIUI to LOS 15.1 and did a clean install yesterday.

Everything else is fine

Can anyone help in fixing or acknowledge if its a bug in latest build .
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
I haven't experience that problem on the latest build of LOS, pico gapps, no root and with stock kernel.

Successfully paired my xbox one controller, bluetooth speaker and wireless headset all the time.

Have you tried wiping dalvik and cache on twrp? Try dirty flashing the rom again, might help though.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] isinghpankaj:
Tried clearing Dalvik and Cache., it didn't work

Dirty flashed ROM, still didn't work.

The icon of bluetooth is shown in status bar inspite the fact the bluetooth is never working and I can't turn off the toggle from menu. the toggle is always in off mode and it still says "Turning on bluetooth" forever.

Why is it happening in the first place if I haven't tweaked anything.

[IMG="Bluetooth menu"]https://drive.google.com/open?id=1nPk-VykGqOnHE8-_BECUPmvsjoQ0mcvp[/IMG]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Deluriane:
Was your bluetooth working when you're using miui?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] isinghpankaj:
Yes.

So I have clean flashed the ROM again and this time BT seems to be woking fine.

I'll have to check what went wrong, may be some 3rd party app conflicted
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PetoBB:
I have same problem with BT (ver. lineage-15.1-20181009-nightly-mido)! Clearing Dalvik and Cache in TWRP after OTA flash didn't work. Its BT bug, please fix it!