yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4X Guides, News, & Discussion] Ghd182:
rootless camera features tweaks

Hi,do you know if there is any way to edit santoni.xml with adb fastboot without enabling root permissions?

From phone in recovery it does not find /etc/device_features/santoni.xml, while with phone turned on i can copy and edit it on my pc... Is there a rootless solution? For camera2 api someone managed how to copy, edit on pc and save build.prop through adb and it worked for me also, but this time i can't reach santoni.xml (in mycase is whyred.xml) in recovery mode
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=9370047]Ghd182[/MENTION]

Use /sdcard/device_features/santoni.xml but I haven't tested if it overrides the /etc/device_features/santoni.xml. Let us know.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] Ghd182:
Thx very much for replying! actually I have Redmi note 5 and instead of santoni.xml i have /system/etc/device_features/whyred.xml

There is no /sdcars/device_features/ path in /system/ or parent folder... I'm able to modify the file through adb pull, notepad++ and then adb push (followed by adb shell chmod 644 /system/etc/device_features/whyred.xml)... The editing is confirmed as if i newlly pull the file on my pc, i can recognize the added lines (and also comments i added)

But the edited version doesn't exist while the phone is turned on (if i use adb pull it returns the original file and i receive a permission denied message)

If i newly turn off the phone, the edited version appears again... Can you find an effective way to edit permanently the whyred.xml file (your santoni.xml)

I would like to not enable root access with magisk as i said before

Thank you very much for help!
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
[MENTION=240712]tweakradje[/MENTION]: can i use v16 script on RR Luis 5.8.5?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=4816854]hung.ngomanh[/MENTION] Yes. I use it with R 5.8.5 too :)
[Xiaomi Redmi 4X Guides, News, & Discussion] yuyutsu:
cpu controller zip file dont support volte. please fix this error. thank you

Cheers[/QUOTE]
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7918725]yuyutsu[/MENTION] please remove the whole QUOTE from your post above. Not very posh.

What has voice over LTE to do with CPU script?

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] sam_auditore:
Reversing Stereo output on earphones

guys i need help regarding reversing stereo output on my earphones, i.e. left sound to right and right sound to left.

My Device : Redmi Note 4X (mido) (rooted with Magisk)

ROM - MIUI 9.1.3 by Xiaomi.eu on Android v7.0

i attached the screenshot of mixer_paths_qrd_....xml files for more info of files on my system.

i tried altering values as told by [MENTION=240712]tweakradje[/MENTION] in ___qrdhf.xml , ___qrdh.xml , ___qrdm.xml and rebooted still doesn't worked out.

the below method doesn't work for me as my device don't have this file -> /system/etc/mixer_paths_qrd_sku1.xml
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=6240015]sam_auditore[/MENTION] Did you search with Google? I did a search and found that Note 4X uses

/system/etc/mixer_paths_mtp.xml

Could also be in /vendor/etc!

Good luck.
[Xiaomi Redmi 4X Guides, News, & Discussion] sam_auditore:
Very bad idea

After modifying that mixer_paths_mtp.xml file , no sound is played by my device now and even after restoring original file the sound cannot be played by system

I just changed rx1 to RX2 and vise vesa as you originally told in the previous post which i quoted.

Error generated by Poweramp player when trying to play music is shown in the attachment.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Permissions on file? How good are you with Android and linux? I gave you all I can help. You will figure it out!

This thread is for Redmi 4X. Not Note 4X!

Good luck
[Xiaomi Redmi 4X Guides, News, & Discussion] sam_auditore:
Issue Resolved

i'm not very good with linux and ok with android not much familiar with coding though.

screenshot of file permission is attached below below.

after changing the file permission to rw-rw-rw- , solved the problem and now stereo is reversed.

and i just wanted to ask what the below line does if i change value RX2 to RX1 =>

<ctl name="RDAC2 MUX" value="RX2" />

after changing above value to RX1 ,disbales left sound and when right sound is playing ,sound comes in both left and right.

after reading this thread https://xdaforums.com/android/development/mod-dual-speaker-soundmod-devices-root-t3735280

i changed the file permission to rw-r-r-

Thanks [MENTION=240712]tweakradje[/MENTION]

God Bless you
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=6240015]sam_auditore[/MENTION] good you solved it! If you want more info on Note 4 (mido) please ask your questions on xda in the proper section to get better support:

https://xdaforums.com/redmi-note-4

This is Redmi 4X (santoni) section ;)
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
No. 1x1 cpu. Do you have Redmi 4X? (santoni)

Check with adb shell, then su:

- getprop ro.board.platform (msm8937)

- cat /sys/devices/soc0/soc_id (313)

If not then changes will not apply.
[Xiaomi Redmi 4X Guides, News, & Discussion] nightvury:
of course i do have redmi 4x santoni. iam running miui 7.7.20 nougat 7.1.2 the first .sh work, but RRV3 version makes no changes on cpu config.. i checked it usimg cpuz
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Ok. Then I don't know what is wrong then.

Try this:

adb shell grep "###" /etc/init.qcom.post_boot.sh

It should come up with many ### lines that I put in there. If not you have not changed the proper file.
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
@OP: I edited the file directly, using FX File Explorer, and the script worked for me. I didn't replace files.
[Xiaomi Redmi 4X Guides, News, & Discussion] nightvury:
looks like your RRV3 version doestn work on MIUI 7.7.20 Nougat.. So i used the 1st version of your .sh file and cpu config changed to 1x1
[Xiaomi Redmi 4X Guides, News, & Discussion] greenlabel:
really nice work man!
[Xiaomi Redmi 4X Guides, News, & Discussion] arvindgr:
Thanks a lot for clean guide here.. I know SD435 in santoni Supports WiFi 5Ghz/ac. Since stock MIUI doesn't support it, is it possible for some tweak to enable WiFi ac [MENTION=240712]tweakradje[/MENTION]?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
In hotspot mode you can choose 5 Ghz. So chip supports it. I have tried a couple of hours to get ac working for normal wifi but no luck so far. Maybe later.

If you do logcat|grep wpa you see ac is supported if you toggle wifi.

If I look into the source code it needs to be defined at compilation time?

See source code here.

So we need another msm wlan.ko module? Redmi Note 4X supports 11ac. I try that wlan.ko

EDIT: wlan.ko from Note 4X don't load.

typedef enum
{
eHDD_DOT11_MODE_AUTO = 0, //covers all things we support
eHDD_DOT11_MODE_abg, //11a/b/g only, no HT, no proprietary
eHDD_DOT11_MODE_11b,
eHDD_DOT11_MODE_11g,
eHDD_DOT11_MODE_11n,
eHDD_DOT11_MODE_11g_ONLY,
eHDD_DOT11_MODE_11n_ONLY,
eHDD_DOT11_MODE_11b_ONLY,
#ifdef WLAN_FEATURE_11AC
eHDD_DOT11_MODE_11ac_ONLY,
eHDD_DOT11_MODE_11ac,
#endif
}eHddDot11Mode;
[Xiaomi Redmi 4X Guides, News, & Discussion] arvindgr:
Thanks a lot for reply. Since I wasn't tagged in your first reply I didn't see that. Maybe this 5Ghz WiFi you can include in your first post Santoni facts.. Hope to see 4x connecting to our 5Ghz AP....
[Xiaomi Redmi 4X Guides, News, & Discussion] basti_b24:
Has anyone tried the tweaks in MIUI 9?
[Xiaomi Redmi 4X Guides, News, & Discussion] JoseRT5:
I dont understand very well the tutorial for decript data partition.

When i do the second step "Backup /data to "internal sd" (or to "ext sd card") with TWRP", do i have to put the phone on fastboot mode for do the 3rd step "On PC: adb pull /data/media/0"? Thank you very much
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5510167]JoseRT5[/MENTION] all is done from recovery! Where did you read fastboot in instruction?

ps: if you don't care about your data then no need for backup/restore steps of course
[Xiaomi Redmi 4X Guides, News, & Discussion] boom1982:
good tweaks
[Xiaomi Redmi 4X Guides, News, & Discussion] JoseRT5:
My pc said "device not found". I already have drivers installed :rolleyes:

Solved, I formatted /Data from TWRP and installed RR again
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
So much of that on miui forum:

http://en.miui.com/search.php?mod=f...desc=desc&searchsubmit=yes&kw=Redmi+4x+kernel
[Xiaomi Redmi 4X Guides, News, & Discussion] boom1982:
[MENTION=240712]tweakradje[/MENTION]

Hi)

Many phones have already made a stereo sound (when the multimedia and spoken speakers sound together)

can you do also for redmi 4x? :)
[Xiaomi Redmi 4X Guides, News, & Discussion] :
LED notification not showing

After using your v3 Script on RR N-final the led notification stopped showing at all. It shows Purple during boot as you said for 3sec. But later on the LEDs are not showing at all

Update: used this zip to make it work it again :D

Will update you about night drainage & battery backup
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7592018]__PG__[/MENTION] In the last RR version there are light libs from other phone. These require other permissions on these files:

#LED
chown system:system /sys/class/leds/*/brightness
chown system:system /sys/class/leds/*/blink

The zip file you mentioned overwrites the V3 script. (open the zip file and look in etc folder)

If you want to use my init.qcom.post_boot.sh script you need to add the 2 lines to it at the end before using it.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] :
Oh ?, didn't noticed that. Will update mine, And you too update !:laugh:
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7890918]boom1982[/MENTION] Have no clue what you mean. voice and audio together at the same time from the speaker?

I heard of mixing microphone with audio on headphones for security when in traffic.

source: http://en.miui.com/forum.php?mod=viewthread&tid=772720

Try to add these 6 lines to /etc/mixer_paths_qrd_sku1.xml file:

<path name="headphones">
<ctl name="MI2S_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX2 MIX1 INP1" value="RX2" />
<!-- add mic input to stream with these 4 lines -->
<ctl name="IIR2 INP1 MUX" value="RX1" />
<ctl name="IIR3 INP1 MUX" value="RX2" />
<ctl name="RX1 MIX2 INP1" value="IIR2" />
<ctl name="RX2 MIX2 INP1" value="IIR3" />
<ctl name="RDAC2 MUX" value="RX2" />
<!-- control volume of mic with these 2 lines-->
<ctl name="IIR2 INP1 Volume" value="92" />
<ctl name="IIR3 INP1 Volume" value="92" />
<ctl name="HPHL" value="Switch" />
<ctl name="HPHR" value="Switch" />
<ctl name="headset amp" value="ENABLE"/>
</path>
[Xiaomi Redmi 4X Guides, News, & Discussion] boom1982:
[MENTION=240712]tweakradje[/MENTION]

Thanks for the answer)

I meant the implementation as an on-the-spot xiaomi mi max 2

in it the media is played through two speakers

My English is very bad, sorry)

That's how it was done on nexus 5

https://xdaforums.com/google-nexus-5/general/how-to-enable-stereo-sound-nexus-5-t2976027
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7890918]boom1982[/MENTION]

Ah I see now. You want stereo output for both speakers!

I have not tried but if I compare stock and modded mixer_paths.xml in the link I see this:

<path name="speaker">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX1 MIX1 INP2" value="RX2" />
<ctl name="RX7 MIX1 INP1" value="RX1" />
<ctl name="RX7 MIX1 INP2" value="RX2" />
<ctl name="RX1 Digital Volume" value="90" />
<ctl name="RX7 Digital Volume" value="88" />
<ctl name="SPK DRV Volume" value="6" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
<ctl name="HPHL DAC Switch" value="1" />
<ctl name="DAC1 Switch" value="1" />
</path>

versus this in stock

<path name="speaker">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX7 MIX1 INP1" value="RX1" />
<ctl name="RX7 Digital Volume" value="88" />
<ctl name="SPK DRV Volume" value="6" />
</path>

I don't have time now to translate this to Redmi 4X file. Maybe you can try.

Think you need to change /etc/mixer_paths_qrd_sku1.xml
[Xiaomi Redmi 4X Guides, News, & Discussion] boom1982:
[MENTION=240712]tweakradje[/MENTION]

Ok, i will try)

But the maximum that I am able to copy and paste :)
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Copy paste will not work!!!

You need to understand mixer function. Inputs, Muxers and Endpoints.

Little example: https://xdaforums.com/showpost.php?p=61628573&postcount=53
[Xiaomi Redmi 4X Guides, News, & Discussion] boom1982:
[MENTION=240712]tweakradje[/MENTION]

then I have few chances)

but I'll try

if it does not work out, I'm ready to wait for your decision
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Don't think the ear speaker will produce load sound on redmi 4x.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7890918]boom1982[/MENTION]

Ask original creator of this trick here: https://xdaforums.com/note-edge/development/mod-sm-915t-surround-sound-t2955648
[Xiaomi Redmi 4X Guides, News, & Discussion] :
tweaks for camera driver

Using your tweaks on Stock RR Camera does nil effects. And the picture quality is still the same. Also when turning off the denoise as mentioned in OP, The Noise is too much. After enabling it There is some improvements but Google camera Port is much better than your this Camera MOD. The settings are saved in Build.Prop already maybe that may have enhanced Google Camera Settings :P

Also, your HD audio Is working... But still my PowerAMP app is failing to Turn on that High-res Audio output :( lets see if you could help me with this too:highfive:
[Xiaomi Redmi 4X Guides, News, & Discussion] steford:
Do you have any further info on the default CPU frequency settings? The minimum seems incredibly high at 960MHz. I use Kernel Adiutor (root) on my RN3 and I get a minimum option of 400Mhz which I choose. Is there any way to change the script to add the lower values or is it simply the app reporting the wrong values?

I will add your script to at least kill the 3 cores not required.

Thanks for any help.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Stock kernel prevents lower cpu frequencies. We need kernel sources first to make custom kernel.
[Xiaomi Redmi 4X Guides, News, & Discussion] Te$la:
Thanks a lot for these mods OP.

I was using the Alternative CPU core control in my redmi 4 running global 8.5.2. I used the one u provided. It worked fine but as a result i lost volte! So i manually added only those quoted lines of code to the original init file and now everything is working fine and dandy :)

I would like to do the same thing to my redmi note 4 as all its 8 cores are online all the time. Can u tell me what to do?

Thanks...
[Xiaomi Redmi 4X Guides, News, & Discussion] peron:
Thanks for these tweaks! I use fingerprint reader to function as a back button, very useful when browsing the net one handed.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=986515]peron[/MENTION] Good tip!
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=4878557]Te$la[/MENTION] is it qualcomm version? Then it will have the same kind of script. Find your board and soc id and look in the script if you see similar lines to change. Always keep a copy of the original.
[Xiaomi Redmi 4X Guides, News, & Discussion] Te$la:
Yes its snapdragon 625 4gb/64gb version.

I noticed that in global miui 8, redmi 4 switches some cores on/off depending on the load. But redmi note 4 doesnt switch cores on/off. All cores are online when the phone is awake, maybe stock kernel (global miui 8) doesnt support that(?). Didn't find any mod like this in RN4 forum.

I think I also need to change some other lines apart from the ones u said to enable the core on/off function... What do u think?

Anyways I'll try and see what happens...
[Xiaomi Redmi 4X Guides, News, & Discussion] doqipob:
Hi guys !

Anyone of you know maybe where can i find the device feature file in 8.5.2 Official global rom? can't find the path in ect forder, so i can't change any values to mod LED notification color etc.

anyone knows?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Updated OP with latest (v5) of init.qcom.post_boot.sh for Resurrection Remix.

Maybe this is final. CPU cores behave now like I want. Small and background tasks on little cluster and foreground (starting apps) on big cluster. minimal big cores now 0 for optimal battery usage.

Please leave feedback if something needs to be improved/corrected.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
I wrote a better reply but had some issues while updating the edit, so I'll keep it short this time:

Tested v3,v4 and v5 on RR latest, they all work, but v5 is much better written than the others(I have read all the in-file changes, btw). Good job.

Most of the time theres 0 Perf core and 1 Powersave core active(sometimes 2, for a few secs). Wattage at idle sitting at around 511-525mW, tested with HWMonitor.

Charging was floating around 0.4-1.1mW on stock file. I replaced the file mid-charge, but I noticed it was around 1.48-1.5 more consistently, maybe thanks to the Constant variable(since the system is using the other 0.5mW from stock charger). It just dropped late in the process for safety. Gotta watch better next charge. Temps ok, around the usual 42-43ºC I normally get. Used the SThermal Fastcharge instead of your thermal file, tho, since I didnt understand your changes at first and this one looks much simpler. Im willing to test yours again if its as good as RR v5 file.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Thanks for the feedback.

My Redmi 4X idle current is 245 dropping to 179 mA (after 1 minute idle)

Wifi on and GSM Radio 2G with Edge data and backlight on "Auto".

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
Mine goes as low as 119mA after letting it idle.

BTW, I noticed Whatsapp Web on my notebook is often going offline, then a minute later it acknowledges the phone as online again and messages arrive. Not using anything to block wakelocks.

It was ok yesterday. Its not too bad when on the go, but annoying to know they are being held back because of the cpus sleeping a bit too much, idk. Suggestion to ##comment anything?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
No idea. I thought it was solved in the script using

dumpsys deviceidle enable all

dumpsys deviceidle whitelist +com.whatsapp

Try to replace this line in script:

dumpsys deviceidle enable all

with

dumpsys deviceidle enable deep (which is default)

or from the shell to test it first:

dumpsys deviceidle disable light

I think all sync is done with GCM Service (Google Cloud Messaging). You can view the status and history with this command from adb shell and toggle between STATUS/EVENTS

am start com.google.android.gms/.gcm.GcmDiagnostics

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=8563236]Kajuru[/MENTION] about Whatsapp in the background I just thought of another possibility.

You can check this in RR

- Settings

- Memory

- Apps at startup

- Whatsapp

- Scroll to bottom and check background running that must be on.
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
Sorry for the late reply.

Everything is ticked by default on that screen.

I tried to force and disable light/deep thru adb and both cut the communication, even at the highest performance mode.

What -apparently- worked was disable battery optimization for Whatsapp.

I'll report back if I find other issues. Good job, again.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Good you found it.

Noticed one little error in V5 RR script.

Echo Y > /sys/module/workqueue/parameters/power_efficient

should be

echo Y > /sys/module/workqueue/parameters/power_efficient
[Xiaomi Redmi 4X Guides, News, & Discussion] himfa71:
Can I use rrv5 init.qcom.postboot.sh script in other custom Roms, like aosp extended etc. And please make one script file for miui pro Roms,, thanks
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Probably Yes. Make backup of original first just in case.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] Amer._.ahmef:
Can you make Stereo sound mod for this phone ?

I wish you could make force surround from earpiece as well as loudspeaker .. Not true stereo but if it was dual mono through the mixer paths or etc files (I've seen this mod for many devices) and request you to make one for redmi 4x/4 thanks!
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
I feel like v5 makes the device take more time to turn the screen on/unlock by fingerprint than v4 and than normal, is it true?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION] if you notice it is true ;) I have not noticed it yet. Maybe try a few days and then report back.

Sometimes wifi is a little slower to connect. But if it is related to V5 I don't know.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
I have tried but not succeed. Volume from ear speaker is very low compared with bottom speaker anyway on Redmi 4X. Not very use in practice I think.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Don't know if it's true, but v5 seems to affect a lot on multitasking AFTER screen off. I turned off the screen and 10 minutes later turned it on, and all my apps were hibernated. Switchig back to v4 for a few days to make sure whether it's just my user settings or it's v5 vs v4.

Whatever the result is, I can assure all of you reading this, both v4 and v5 of cpu control tweak is awesome in the terms of battery. I'm on RR 5.8.5 latest. Thank you OP!!
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION] please let us know what your result is. I must say I don't have that problem with RR V5 script. Could you check to be sure that they are allowed to run in the background?

Settings -> Memory -> Apps at startup -> Whatsapp -> background checked?

Or disable battery optimization for Whatsapp?

Also check Mobile data usage -> whatsapp -> background data checked

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
I didn't touch background app custom settings. By saying "hibernated", I mean all Boost for Reddit, Facebook, Messenger, Youtube, Chrome, stuffs like that. When I was using v4, I could wander between apps all day and at the end of the 2nd day, I was still amazed that my opened Chrome tabs didn't need a reload. Today I leave a Chrome tab open, get to Facebook and Messenger then turned off the screen. After like 15 mins, I opened Chrome and.. the tab reloaded :eek:

But the last 2 days on v5 got me 11 hours of screen on time. Has not been able to achieve that ever before, either with v4 or MIUI.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Ah the apps don't stay in memory. They are closed bij Oom or Lmk or something else.

Try to disable this line and reboot:

dumpsys deviceidle enable all

Cheers

Edit: maybe chrome has changed with update?
[Xiaomi Redmi 4X Guides, News, & Discussion] xblosa:
RGB led

Mine only blinks white on startup with V5 script on RR 5.8.5-20170929 . led test script also only produces white. Does that mean there is different hardware or is there some configuration missing?

(socid/Platform 313/msm8937)
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=3559299]xblosa[/MENTION] Soc id is 313 and msm8940 (qualcomm 435)

However in build.prop it is set to msm8937 (qualcomm 430) for compatibility reasons with the firmware.

As for the LED check the /sys/class/leds subfolders for the colors. Should be there.

Cheers