yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Before I continue, I'd like to remind you that Redmi 2A is a china-only phone, the chipset isn't Qualcomm based, but Leadcore based. My fellow friends that I know that have a WT86047 aren't Redmi 2A's. They're running Qcom and have no signal loss in my country.

I picked WT88047, but honestly I've seen them in all of those variants (except Redmi 2A variants). I have 4 friends that bought 2016's batch of shipped RM2 (Prime or just RM 2). These friends of mine didn't buy at the same place, 2 of them bought it online and the 2 others bought it from a local vendor (not an official Xiaomi store). From those 4 friends of mine, 2 of my friends got the HM2014813 (WT86047), one got HM2014818 (WT88047) and the last one got a HM2014811 which is the same as mine.

All of them (including me) faced the same bugs (BSOD, screen freezing, TWRP not working). So it's not just a specific variant of RM2, but all of them. Hypothetically (CMIIW) all RM2's that are shipped at 2016 above nearly all of them have this bug (unless you bought it from an official Xiaomi store, which is pretty much hard to find, because Xiaomi don't show, even sell, old phones). 2 of my friends sold their devices, one friend of mine sticked it with it's current case and stayed on stock MIUI & my last friend (with the HM2014813 - WT86047) followed my lead by changing his screen with an official screen that he got from a relative that has an unused RM2, bought from an official vendor. Now me and him can go custom rom or modding all we want without those old bugs that used to plague our phones.

So to the RM2's batch 2016 are all shipped with bad and faulty hardware parts. Mostly nearly of them are faulty sensors. Or maybe those RM2's that are shipped are refurbished RM2's that are given bad parts or maybe bad LCD screens. Like I said before in my previous posts about this, It's the sensors. They are totally bugged. I don't know what made them that way. Why I said it was the sensors? Because my old front sensors got changed when I checked it with a system specs app. My local part vendors sell RM2 LCD's and when you buy a LCD, it's a whole package, you can't by per-parts (unless you disassemble them one buy one). What I mean "it's a whole package" is if you buy an LCD, you will get the touchscreen and front sensors with it. If it's not the sensors, maybe it's the touchscreen (just using my logic here)

I don't know about fixes and stuff (without having to do hardware modif). I'm not a developer, I don't understand that much about BLOBs and shims. Well let's hope someone who's a developer and has a RM2 with those bugs show up with a fix so that people don't have to do any hardware modifications on their bugged RM2's.
[Xiaomi Redmi 2 Guides, News, & Discussion] Riyanx55tu:
Miui stable and best.

All custom roms have good interface but music enchancher , camera not satisfied in custom roms.
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Well custom roms are for modification, so If you're not impressed with how the music sounds like in custom roms, you could always just install a mod for it. There's Viper4Android, Dolby Digital Plus, AM3D Zirene, etc. Just find what you need, flash the mod per instructions you need and voila, you've got better music in you're custom rom. Installing these sound mods even work well in MIUI. You've got dozens of Camera apps that may (or maynot) go better on in custom roms than MIUI. Just saying though, if you love MIUI it's fine to stay on MIUI.
[Xiaomi Redmi 2 Guides, News, & Discussion] akeka:
For those who has the same problem, try enabling portable hotspot. It solve the problem for me, but yes, it'll also drain your battery faster
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Did you try SOD Killer from playstore? Should have less battery drain.
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
I tried it once when my device was still having those bugs. It doesn't work. At all.
[Xiaomi Redmi 2 Guides, News, & Discussion] q695359:
I had two redmi 2 online and both had the BSOD issue. It didn't matter which MIUI version it was on, it can still get triggered into the BSOD.

This is the procedure that triggers it.

1.Start an app that generates a lot of objects

2.Keep the device with the app until the back is warm/hot

3.Exit from the app or click home

4.Now quickly press the side power button to turn off screen

5.Redmi Black Screen and cut off from power even if you had music app on.

I have concluded that it might be a hardware issue since I had test another none online redmi 2 with these redmi 2 with the same MIUI version. What should triggered the same effect did not affect the none online redmi 2.

Perhaps using a soft lockscreen button might be able to avoid this issue.
[Xiaomi Redmi 2 Guides, News, & Discussion] bellissimo.io:
Mine starts getting this problem after I changed the display (bought cheap from aliexpress). Never had a single problem before, while now miui is the only rom that works
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
When did you try lineageOS last time?
[Xiaomi Redmi 2 Guides, News, & Discussion] bellissimo.io:
I just tried AEX and CAF64 since I change the screen/digitalizer, I can try lineage as well
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Tested with today's Oreo. WiFi hotspot doesn't work for tethering, but BSOD problem solved.
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
There you go, another living proof that BSoD is because of a faulty display. Did you change it again? Or are you still using the cheap screen you bought from AliExpress?
[Xiaomi Redmi 2 Guides, News, & Discussion] bellissimo.io:
Sorry for delay. Just tried last lineage build, as said it works except on power off

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

No I just keep it. First time i got a faulty display that neither turn on... Then on second try I get this. Is not my main phone, so I can live as is
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
For this Power off issue i've made a automate flow that boots into recovery and offs from there.

.. And we have a "living proof" that this hardware problem can be solved with software.
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Then you should thank the devs for pulling this one off. Either they've tweaked or fixed what created the bug or because Android Oreo doesn't communicate with device drivers the same way as it's predecessors. Thanks for testing Oreo and latest Lineage. I'll recommend these to my other pals that are still bugged with BSoD. Cheers :highfive:
[Xiaomi Redmi 2 Guides, News, & Discussion] bellissimo.io:
Resurrection Remix also works like Lineage and not like others AOSP based roms :)
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
what is an automate flow ? I dont get it, pls could u explain it more ?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
https://play.google.com/store/apps/details?id=com.llamalab.automate
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
and how do we fix bsod with this app, could u elaborate more ? never use it
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
We don't fix bsod. We avoid it. As I've written: reboot into recovery and powerOFF there. Yo can do it manually or automatic.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
I think if we could solve the problem, by finding the right driver for the proximeter ic in the ts produced by 3rd party
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
I found a cm11 based cusrom, I installed it, and I found no BSOD so far

http://www.mediafire.com/file/i30j30w03yh9z28/CM11s_REDMI2.zip
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
[MENTION=5065706]pirej[/MENTION] has changed the driver in last version of his AOSP. Could you please try?
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Who's pirej ?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
https://xdaforums.com/redmi-2/development/wip-cafaosp7-x-x-redmi2-wt88047-t3569726
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Am comfy at cm11s for now
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Weird, I just full flashed my redmi 2 with redmi 2 prime fastboot rom (5.1)using miflash, then I went into pcba test menu and calibrate proxymeter sensor, then voila, proximeter works flawlessly, even when in calls
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
I've tried CM 11 like a year ago, and sorry to say it does still have BSoD, but it happens rarely. Only problem is the unresponsive touchscreen still exist when we wake RM2 with power button (it doesn't happen frequently, but it happens once in a while, and once it happens it's a royal pain in the [MENTION=1439417]rse[/MENTION]). It was once my daily driver. Trust me, back in those days of BSoD I've been frequently testing ROMs to find a ROM without BSoD or touchscreen lockdown, and every rom has it (including MIUI). The only difference is MIUI has the same lockscreen flash mechanism like nougat roms that can undo the touchscreen lockdown (just press power three to four times, constantly locking and unlocking the phone, and it'll become responsive again) and it rarely BSoD's. Thats why everytime people have this problem the only suggestion I'll give them is to flash stock MIUI or custom MIUI.

About PCBA test, you won't fail any of those test regarding to sensors even if you have BSoD and touchscreen lockdown. The proximity sensors, magnetic sensors, etc. work well. I know it's weird, I just know it's one of the sensors and like I've said before, because I switched my digitizer, LCD screen and proximity sensors with an official screen, I'm pretty sure that it's the proximity, because all my other parts except the screen parts are still using my old RM2. Let's just say the drivers of the sensors are hardwired only for MIUI. But as hardwired as it gets, BSoD is still there, and again like I said above, it RARELY happens. If you don't believe, just try using MIUI for a year, I'm pretty sure BSoD would come to say 'hi' eventually. Not trying to kill your high spirits, bro, it's just sorry to say I've been dealing with this $h!t for quite a long time, to the point that it frustrates me and makes me want to sell my RM2 :(

I'm just glad that at least I didn't do it for real :D

---------- Post added at 02:56 PM ---------- Previous post was at 02:52 PM ----------

Oh yeah extra info, I did last awhile with premaca's Tesla MM final build, after first boot and several boots, my RM2 was safe from BSoD (touchscreen lockdown still existed). But once I started to tweak my kernel settings with Adiutor, WHAM! BSoD attacked in a flash.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
So even when the proximeter works flawlessly during phone call, we will still get bsod ?
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Well I think so. In my case, yeah thats how it went. Honestly b4 I changed my screen, I had no clue on what made my RM2P BSoD. I did those tests, all were seen as 'pass'. I never did have any functional problems with any of my sensors and other hardwares in my RM2P. Receiving and ending calls never ended up with BSoD or device not waking if I pull away the phone when on calls. Some CAF based roms would run smooth as hell, no BSoDs whatsoever, but once you start tweaking your phone with Kernel Adiutor or EKM, BSoD shows up in an instant once you stop using your phone (dies in deep sleep). Tried blocking wakeups, tried to stop using proximity sensor features, never used ambient display, never used smart lock, etc. in hopes it'd fix BSoD and other bugs, but nah, it fixed nothing.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Which CAF roms have no BSOD and proximeter works flawlessly during call ?

So as long as we dont mess with kernel auditor and such, we could use these CAF roms as daily diver ?
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Sorry my bad, I was half awake when I replied your post. It does still have BSoD, but just like CM 11, it doesn't get triggered often plus they're limited to MM or LP & not all of them are based on CAF. Try final build of Tesla MM, Dirty Unicorns MM, Tipsy MM & LP.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
How bout nougat ?
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Nah no nougat roms without BSoD. But if you read carefully in this thread, there are posts that mention Nougat ROMs. How about Oreo? Have you tested it yet? The TS says that in Oreo, BSoD rarely occurs. Just try reading from first post, exclude my post btw, semi TL;DR lol
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
I have lineageos nougat. As written in OP: only bsod triggered by power off. Tried all aosp oreos. First without bsod. Following all have bsod 5 seconds after screen off.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
If it were a bad sensor, then all of the roms should have bsod, why the first didnt ?
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Dude, bro, I'm sorry I just don't know why & how it happens okay. I don't have a total explanation on how BSoD occurs in our device. I've tried doing logcats, dmesgs, but I'm still totally blind on reading them. One thing I'm sure is when you press power off button, device goes to lockdown sleep, and it triggers the proximity to turn on or something, I don't completely understand. But I kinda understand on why [MENTION=8031265]kurtn[/MENTION] used Automate "macro" Flow to turn off the device without pressing power button, its just totally avoiding the power button to be physically pressed, that may (or may not) trigger BSoD. Maybe this post might give some insight on how BSoD occurs.

One last thing:

How I deducted that the sensors are the ones at fault are because the ONLY hardware parts that I changed in my device was the screen (with it's other components that are packed as one inside of it, proximity, digitizer, etc.).

When you screw off the chipset, power + mic + LED board, and unsocket the flexibles: that's the screen part I've been always talking about.

I didn't use any heating equipments, I didn't change any chips inside it. Only the screen. I don't have the knowledge of engineering nor computing to safely 'take off' other hardware parts (processor, modem, GPU, eMMC, etc.), don't even mention about sticking them back together. I only gambled with what is able to be done by an amateur. After changing the screen, I never even faced BSoD once on any ROM I've tried.

Now I'm on CAF 64bit (pirej's ROM). I'm pretty sure you've seen the thread. Running with SuperSU, Xposed and sound mods + kernel (SELinux) on permissive.
[Xiaomi Redmi 2 Guides, News, & Discussion] Shuici Aozora:
How about Lineage os ? you get BSOD or not sir ?
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Yeah I got it
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
I installed tasker, but dunno how to it up to auto boot to recovery when bsod occurs, could u help ?

Thanks
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
My solution was not that level of automatic. In stead of simple shut down (which ends in bsod with my 2014813 and LOS) I start a process that writes a open recovery script "reboot power off" and reboots into recovery.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
would u guide me step by step ?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
I don't know how tasker can handle this. Maybe you can somehow execude this in command line mode:

echo "reboot poweroff" > cache/recovery/openrecoveryscript

When you restart into recovery the created file gets executed, what results in a clean shutdown.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Actually the best rom is miui kitkat, the only problem is, my proximity sensor didnt work in kitkat based miui nor cusrom, even the built in factory test for proximity sensor always end up failed, unlike the lollipop based miui/cusrom, the proximity test always success

I wonder why, if only I could somehow fix the proximity in kitkat based firmware, i would gladly back to kk based roms
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Dear Friends,

please prepare for doing some tests. Maybe we have get a solution: https://xdaforums.com/showpost.php?p=74819279&postcount=2254
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Can anyone reproduce bsod on latest [MENTION=5065706]pirej[/MENTION] ROM ?
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
i found something, in miui based cusroms, the sod happens rarely, but when I changed the launcher into nova launcher, then SOD happened more frequently

I think there is a background task performed by default miui launcher which prevent SOD to happen
[Xiaomi Redmi 2 Guides, News, & Discussion] leomalaj10:
Yes, all the time.
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Could you please step in for me there https://xdaforums.com/redmi-2/development/wip-cafaosp7-x-x-redmi2-wt88047-t3569726/post74831781

Or describe your setup. Maybe I can reproduce bsod.
[Xiaomi Redmi 2 Guides, News, & Discussion] leomalaj10:
I moved to LoS ​​this morning.
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
No BSOD in LOS? Now we have a dev that cares for the issue.
[Xiaomi Redmi 2 Guides, News, & Discussion] leomalaj10:
There is. Are you willing to provide a log?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
The point is: My device has no bsod wiht latest cafasop. Thats why I asked you. First step is not providing a log. Fist step is flash a kernel and report bsod status.
[Xiaomi Redmi 2 Guides, News, & Discussion] leomalaj10:
Now I'm in Los, I have to go back to CAF?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Yes, please.
[Xiaomi Redmi 2 Guides, News, & Discussion] leomalaj10:
I already tested it yesterday and it did not work. It continued with the same problems.

https://xdaforums.com/showpost.php?p=74831781&postcount=2273
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Don't you thint it would be a good Idea to tell [MENTION=800484]pierj[/MENTION], and maye you and he will find a solution?
[Xiaomi Redmi 2 Guides, News, & Discussion] leomalaj10:
I'm going back to CAF tomorrow.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
What widgets u have on ur home screen ?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Nothing or default search widget
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
I think the modem may be the culprit of sod

http://c.mi.com/thread-284018-1-1.html

Try flashing the modem zip according fo your respective device, and see whether any sod shows up (kitkat based rom only)

This is for lollipop MIUI8 link :https://drive.google.com/file/d/0BxvZj4QbvnwmakM1bjlQbkUzeE0/view?usp=drivesdk
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Yesterday I flashed tipsy 5.1.1 final, then I flashed the modem file from here

http://c.mi.com/thread-624629-1-0.html

Left it overnight, no sod at all
[Xiaomi Redmi 2 Guides, News, & Discussion] akeka:
Does the solution are valid until now?

How about this ROM

https://xdaforums.com/redmi-2/development/wip-cafaosp7-x-x-redmi2-wt88047-t3569726

Using this kernel

https://mega.nz/#!MR5RHDrI!1jNbUUEEwuOZsDWBsOQuK_oKEYfLzWZGCGhU0L6y7bM

Does anyone have tried that?
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
My Redmi 2 Prime's broken since weeks ago, no idea how it happened, suddenly just turned off and wouldn't turn on again. Anyways, I've been disassembling it since yesterday and was surprise to see that the proximity sensors where latched on the front camera. In several of my last posts (if you've read it once) in this thread or other threads, I thought the SoD was caused by the proximity sensor, but now I'm certain it wasn't because of the proximity. Just updating info though. Hope pirej finds a way to fix SoD completely. If someone can find me the blueprint of Redmi 2, I might be able to narrow down of what produces SoD.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
I suspect that sod might be caused by the modem, when I lock my network to 3G only, sod never happen, and somehow proximity sensor play a part in this
[Xiaomi Redmi 2 Guides, News, & Discussion] akeka:
So you mean, in your test, using tipsy, flash modem rom from original MIUI and set network to 3G only did solve the problem until now?

Does changing the network to 4G preferred causing SOD to happen?
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
I don't know about if it's the modem or not. Well I experienced it once, and by locking the network to 3G, that didn't stop my RM2 SoD-ing. It still occurred.

If locking to 3G fixes your SoD, congrats to you bro :highfive:

As usual I'll repeat what I said a long time ago. When I was replacing my RM2 LCD screen, I didn't change anything on the board. I was using all of the same parts (except the screen + digitizer) and no I didn't change the modem parts. Yet my SoD disappeared like nothing ever happened.

It maybe different for you bro. I can't say.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
When I use tipsy, I just flash the original modem file, I didnt even lock the network to 3g only

Nope, its the same, I too ,did change my lcd part with the cheap one
[Xiaomi Redmi 2 Guides, News, & Discussion] ezrawk:
Yeah I think I remember you saying that once in another thread. I've used Tipsy 5.1.1 once, and SoD still occurred. I thought I'd be safe with LolliTipsy because MIUI was on Lollipop too, but guess I was wrong.

So how's it going with LolliTipsy? Still SoD-ing?
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
No, but Im now on stock rom, since tipsy lagging so much
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
I found out several conditions to trigger bsod:

1. Using l speed or any other tweak

2. Using nova launcher instead of miui launcher

3. Using jerrica kernel
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Do you mean iSpeed the memory booster? I would like to try getting bsod in lineageOS.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Im referring to L Speed, btw which build of lineage which doesnt give u a bsod ? I would like to try
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
My device has no bsod on some ROMs where others report bsod. Now I use microg for lineageos (all builds).

Special settings in L Speed to bsod?
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Nothing special, just install it and choose balance profile
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Tried balanced and battery. No bsod for me.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
Nice, could u give any specific link to download the rom u use right now ?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Right now I've switched from https://lineage.microg.org/

To

https://xdaforums.com/redmi-2/development/rom-lineageos-extended-t3728872
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
U use that with the combination of pirej aboot.img ?

Btw I digged about SOD, and I found this

http://androidflagship.com/18412-solve-sleep-of-death-android-issue/amp

"This issue is known as the Sleep of Death (or SOD) and can be the result of various problems with the kernel, problems with Android tweaks, issues with an app, or even problems with the device’s radios."

It seems that nova launcher and any kernel tweaks, trigger SOD in my redmi 2 2014817
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Don't think it is a good idea to flash a foreign boot image. 32 vs. 64 bit?
[Xiaomi Redmi 2 Guides, News, & Discussion] leomalaj10:
Bsod?
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
My phone is less affected by bsod. I see no bsod in LOS ROMs. I see some in AEX.
[Xiaomi Redmi 2 Guides, News, & Discussion] Paleskin:
He didnt release 32 bit image ?
[Xiaomi Redmi 2 Guides, News, & Discussion] igorinolw:
Experienced this on los, after turning off/reboot/reboot to recovery i couldn't turn device on without waiting some hours, sometimes even days.

Managed to boot into fastboot and flashed miui, now it's working without problems.
[Xiaomi Redmi 2 Guides, News, & Discussion] kurtn:
Sounds like a different problem. Did you try to remove and insert battery instead of waiting? Was the screen black when rebooting into recovery?