yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4X Guides, News, & Discussion] xblosa:
RGB led

ah, ok

lrwxrwxrwx 1 root root 0 1970-02-18 20:10 blue -> ../../devices/soc/78b6000.i2c/i2c-2/2-0045/leds/blue
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 cyan -> ../../devices/soc/78b6000.i2c/i2c-2/2-0045/leds/cyan
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 flashlight -> ../../devices/soc/qpnp-flash-led-23/leds/flashlight
lrwxrwxrwx 1 root root 0 1970-02-18 20:10 green -> ../../devices/soc/78b6000.i2c/i2c-2/2-0045/leds/green
lrwxrwxrwx 1 root root 0 1970-02-18 20:10 infrared -> ../../devices/soc/soc:gpio-leds/leds/infrared
lrwxrwxrwx 1 root root 0 1970-02-18 20:10 lcd-backlight -> ../../devices/soc/1a00000.qcom,mdss_mdp/1a00000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 led:flash_0 -> ../../devices/soc/qpnp-flash-led-23/leds/led:flash_0
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 led:switch -> ../../devices/soc/qpnp-flash-led-23/leds/led:switch
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 led:torch_0 -> ../../devices/soc/qpnp-flash-led-23/leds/led:torch_0
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 mmc0:: -> ../../devices/soc/7824900.sdhci/leds/mmc0::
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 mmc1:: -> ../../devices/soc/7864900.sdhci/leds/mmc1::
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 purple -> ../../devices/soc/78b6000.i2c/i2c-2/2-0045/leds/purple
lrwxrwxrwx 1 root root 0 1970-02-18 20:10 red -> ../../devices/soc/78b6000.i2c/i2c-2/2-0045/leds/red
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 torch-light0 -> ../../devices/soc/soc:qcom,camera-flash/leds/torch-light0
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 torch-light1 -> ../../devices/soc/soc:qcom,camera-flash/leds/torch-light1
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 white -> ../../devices/soc/78b6000.i2c/i2c-2/2-0045/leds/white
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 wled -> ../../devices/soc/qpnp-wled-22/leds/wled
lrwxrwxrwx 1 root root 0 2017-11-10 16:43 yellow -> ../../devices/soc/78b6000.i2c/i2c-2/2-0045/leds/yellow

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

even this section seemed to be applied:

santoni:/sys/class/leds/blue # ls -l
total 0
-rw-rw-r-- 1 system system 4096 1970-02-18 20:10 blink
-rw-r--r-- 1 system system 4096 1970-02-18 20:10 brightness
lrwxrwxrwx 1 root root 0 2017-11-10 21:42 device -> ../../../2-0045
-rw-r--r-- 1 root root 4096 2017-11-10 21:42 max_brightness
drwxr-xr-x 2 root root 0 1970-02-18 20:10 power
lrwxrwxrwx 1 root root 0 2017-11-10 21:42 subsystem -> ../../../../../../../class/leds
-rw-r--r-- 1 root root 4096 2017-11-10 21:42 trigger
-rw-r--r-- 1 root root 4096 1970-02-18 20:10 uevent

anything else to check?
[Xiaomi Redmi 4X Guides, News, & Discussion] onestoploser:
I have multiple colors listed in /sys/class/leds also but no matter what I do it's always white.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Then it must be hardware related and only newer revisions of the board support color LED.

That might be the reason then why Xiaomi states it is not supported on the Redmi 4X.
[Xiaomi Redmi 4X Guides, News, & Discussion] onestoploser:
That would make sense. Mine is 4x Global Version MAG138. What versions do you others have? Maybe we can pin down which ones have working color LED and which ones don't.
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
On stock MIUI 8 my phone came with, it only had White.

On RR 585, I have Magenta, Yellow, Cian, but no White anymore.

Im almost positive i saw a much greener yellow before, but i have no idea if it was just my head.
[Xiaomi Redmi 4X Guides, News, & Discussion] onestoploser:
Which version do you have?
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
RR 5.8.5 final.

Firmware v25.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Where do you find MAG138?
[Xiaomi Redmi 4X Guides, News, & Discussion] onestoploser:
On the back of the box.
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
Got it wrong, Mine says MAE136.

International 4gb/64gb.
[Xiaomi Redmi 4X Guides, News, & Discussion] onestoploser:
And you get different colors out of your LED right?

I'm going to start a new thread about this to try to tally versions/LED stuff.
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
White on MIUI8, Cian/Magenta/Yellow on RR.

Never tested other roms or Miui9, but I guess its the same, since v25 is MIUI9 firmware.
[Xiaomi Redmi 4X Guides, News, & Discussion] Usr666:
Oh, really! I have MAG138 and nothing helps me! Only white color is working :(

I tried different methods, but not solved it.
[Xiaomi Redmi 4X Guides, News, & Discussion] xblosa:
I have access to two Redmi 4X with same spec 3GB, 32GB Global Version (MAG138) bought from different sources. A Gold version with installed LOS can display RGB LED colors with test script, the Black one does not. I copied the TWRP backup from Gold to Black, but even after that the Black does only show white LED.

The printing on the back of the phones (attachements) is different and the printing on the package also looks different.

Black: 2017 09 ; White LED

Gold: 2017 07 ; RGB LED

(date as printed on the box)

Right now, it seems that there is different hardware in the phone.
[Xiaomi Redmi 4X Guides, News, & Discussion] Usr666:
Thanks a lot!

What type of screen you have?

I heard, that ebbg screen is RGB led and boe is only white.
[Xiaomi Redmi 4X Guides, News, & Discussion] onestoploser:
Where do you find what type of screen you have?

Edit: Sorry. I'm an idiot. I found it. My screen type is boe and led is only white.
[Xiaomi Redmi 4X Guides, News, & Discussion] Usr666:
For another users:

Settings -> about phone -> 5 times on kernel version - Device view

P.S. I checked my phone screen now. Unfortunately, I have only white led and my screen is Ebbg. So, it's not important, I think :(
[Xiaomi Redmi 4X Guides, News, & Discussion] xblosa:
How do I get this info in LOS or RR ?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION] and others

V6 of the RR script is up for download. Everything stays in RAM now. Antutu score 46350!

Enjoy
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
That was sooooo convenient, as I deleted my v4 in the past I guess, so can't find it now. v5 is too good on battery, it even surpasses the battery backup on MIUI.

Applying v6 right now. Thank you for keeping the development alive :>

Edit: found my v4.
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
From my point of view, seems like v6's impact on the device is similar to v5. I own the 2GB RAM version, so I might be wrong. There are less apps I can store into background on v5-v6 than on v4. Apparently if I leave the phone for 2 minutes, inactive apps will be removed. But in a short time period while the screen is on, there is less heavy apps I can put on background.

But that comes with the battery impact. I've just changed to v4 to see how it performs, so I will report back next week (probably). Maybe battery backup will not last that much, I guess :? I can manage to get 10 hours (if on continuous usage maybe 11 hours) of SOT on the course of 1.5 days of usage from 100% to 0% on v5 and v6 (which is even higher than stock MIUI). Don't remember how much I got with v4. Told ya, will see.

There is one problem on v6 though, v5 not confirmed. I notice the time it took for the device to wake up the screen on a fingerprint match is ~1.4s - 1.6s, much higher than ~0.7s - 1s of RRv4 and MIUI. I can pull my finger off the sensor long before the screen waking up, which is not really possible with stock scripts and v4. Might have something to do with how CPUs are kept sleeping, I guess?

In the attachments are v4, v5 and v6 of the CPU scripts for all of you to experiment with. Credits are for [MENTION=240712]tweakradje[/MENTION], not me.

My device is Redmi 4X 2GB RAM, on latest build - 20170929 - of Resurrection Remix.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION] thanks again for your solid feedback.

I find it strange that fingerprint takes so long. I didn't notice that so far.

Perhaps it is due to since V5 there is no big core up anymore. You can test it by changing

echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus

to

echo 1 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus

For background apps there must be a difference for 2GB or 3GB versions. I use 3 GB version.

All my apps can stay in background. If I look at my average RAM memory usage it is 1.3 GB for a day. 2 GB RAM should be enough to keep apps in memory too.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
As a Facebook and Messenger frequent user, the average RAM usage of my device is always 1.7-1.8GB. I'm fine with it though, considering how smooth the device still is.

However, probably due to no big core up, I feel a big negative performance impact on v5-6. I'm loving v4's performance, no lag of scrolling or switching apps, the only test remaining is for the battery. I will try v6 with your "echo" change later though.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Could be the 2GB RAM then you have in your 4X.

Not much left for caching.

Cheers

EDIT: [MENTION=5259237]NTLinhHaHa[/MENTION] you might want to add this to the tail of the RR init script for the 2 GB RAM 4X!

### 512MB zram swap
echo 1 >/sys/devices/virtual/block/zram0/reset
echo $((512*1024*1000)) > /sys/devices/virtual/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

After boot check with the shell commands free -m or cat /proc/swaps

I will make V7 detect 2GB or 3GB RAM. Then tweak it for both versions to give the optimal result.

Note:

It will "reserve" 512 MB (compressed) RAM, and create swap file when needed. So you don't "loose" 512 MB RAM at all. At max the swap file will grow to 512 MB but will be at max like 200 MB compressed in RAM. Check real size: cat /sys/devices/virtual/block/zram0/compr_data_size

EDIT: V7 of the script is in OP. Please test if RAM 2GB on your Redmi 4X :)
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Thank you a lot xD wow there's so much to do
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
I don't know whether cold weather reduces the device's performance or not ._. my phone is usually laggy when I'm outside =)))

Battery is great. Somehow after changing between 0 and 1 on "echo 1 > /dev/cpuctl/cpu.upmigrate_discourage" cleared the performance issue on my phone. If you guys notice a screen wake-up delay, try changing that line in the cpu tweak to 0, save then reboot. The device will be noticably smoother.

v7 is the best now I guess. I get a decent performance, while saving about 9 hours on screen on.

Want more battery? Go either v5 or v6. Want more performance? Go v4 aha.
[Xiaomi Redmi 4X Guides, News, & Discussion] himfa71:
Where is v5 or v6?
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
https://xdaforums.com/showpost.php?p=74554983&postcount=99

I attached it earlier.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
I will repost V7 with cpu.upmigrate_discourage = 0

I think V7 of the script is the best. At least for my 3GB RAM Redmi 4X. I get 46000+ Antutu and got 11,5 hours SOT when used continiously whatching youtube in a test run.

Again thanks for your feedback.
[Xiaomi Redmi 4X Guides, News, & Discussion] LonerDarke:
Hi! Thank you for your work. It looks really promising. I'm wondering if your script works on miui.eu, also I have the redmi 4x with 4gb of ram, so I hope there is no problem with my phone. I think I should go foward for the v7 of your script, right?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Should be no problem.
[Xiaomi Redmi 4X Guides, News, & Discussion] ViBE:
- 5 GHz (11ac) only supported for wifi hotspot (wlan.ko issue)

what's this exactly mean? and is it possible ATM/in the future to unlock somehow 5Ghz wlan? and another question: which variable control the call speaker's volume?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
5Ghz support is now not in wlan.ko module. Maybe some day?

Volume speaker is in /etc/mixer_paths_qrd_sku2.xml

Search handset and change <ctl name="RX1 Digital Volume" value="84" />
[Xiaomi Redmi 4X Guides, News, & Discussion] ViBE:
thanks. so the hardware is capable but Xiaomi not implemented it on the software side. sad thing. btw the vibra is pretty weak. are there any way to tweak it?
[Xiaomi Redmi 4X Guides, News, & Discussion] shejin1990:
any of this mods working in miui 9 latest global stable build ?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Think they will. But make copy of the file you overwrite first. Then you can always go back to original state!
[Xiaomi Redmi 4X Guides, News, & Discussion] shejin1990:
after flashing this mod . gaming performance is bad . what to do . can i remove cpu mod alone ?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=6962209]shejin1990[/MENTION] then you need to go back to original file.
[Xiaomi Redmi 4X Guides, News, & Discussion] shejin1990:
i flashed Mokee rom .so no problems right now .

and this rom is amazing . better than all i've tried .
[Xiaomi Redmi 4X Guides, News, & Discussion] ConradB:
If you want to use the Fingerprint (Sensor) as BACK-Button.

At first take backup of file gf3208.kl

then change in file /system/usr/gf3208.kl

the line:

#key 353 CAMERA

to

key 212 BACK

Save the file and Reboot the Device.
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
tweakradje, now that alot of kernels with fastcharge are being released, do you intend to release a version without all the charge control aspects?

Also, as an user that hates stuff like Kernel Adiutor and the like(the max perf cores set to zero wont stick, for instance), I was thinking about something along the lines of specific, commented out parts, to be tweaked by the user. Eg. setting the governor, or how many big/LITTLE cores to hotplug.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=8563236]Kajuru[/MENTION] I have tried all kernels but I cannot use them with my current ROM RR 5.8.4.

I love this ROM for stability, low power and high perf.

It is possible to do flashable zip file with questions and user interaction but that requires a lot of time and knowhow of the bash shell scripting. But I think I cannot do that for now.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] Kajuru:
Yeah, I had problems flashing on RR too, pano never worked for me. I tried other ROMs, and they worked. Right now I'm on crdroid, but worked on aex, dot, viper, DU, citrus and PA. Flashed ghost/eximious/clarity/and now I'm on Beatrix.

I understand that it's complicated to set everything by hand during install.

BTW I'm using an edited version of R7 where I removed the sections for other processors like sd625. Other than than I just commented the charging part, and added a couple lines in the end. About 19KB compared to around 130KB.
[Xiaomi Redmi 4X Guides, News, & Discussion] Opin:
Woow great work thanks

---------- Post added at 09:01 AM ---------- Previous post was at 09:00 AM ----------

Ok thanks
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Added Qualcomm Reference Design ACDB (Audio Calibration) files to OP.

Cheers and Best Whishes!
[Xiaomi Redmi 4X Guides, News, & Discussion] bkshgnj:
Question !

Can I use these mods without installing RR ??
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7315349]bkshgnj[/MENTION] You mean stock Miui firmware? Or other AOSP roms? You can always try. Think all AOSP share the same Qualcomm initialization files. Make backup of your original file so you can always go back.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
@OP: so this means v4,v5,v6,v7 you guys mentioned only works on RR ROM?
[Xiaomi Redmi 4X Guides, News, & Discussion] Turkishflavor:
so, I have a Xiaomi Redmi 4X 4G Smartphone now I just want adaway, everything else should stay the same. is it possible? how?
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Somehow after v7 my phone keeps on telling me it's battery is full at 94/97%. After a clean install, I applied v7, commented out the "echo 4380..." at sys/class/power_supply/battery/voltage_max just to be sure, and then charge it, but it still only go up to 97%. Can you provide its stock value, or any other thing that may be responsible for that kind of battery percentage change?

The change occured when I was on RR latest build, with RR kernel. I changed to CAF kernel for USB Fastcharging recently, so I'm worried that the percentage might affect the battery.

Thank you for your effort.

[Edit] After digging into that folder in root, I found out that my "voltage_max_design" is 4400. So the stock value is 4400mV. I still don't get why my battery only charges to 4350-ish mV..
[Xiaomi Redmi 4X Guides, News, & Discussion] Pirex69:
I think it's for battery protection. But I'm not sure.

Did you tried to calibrate your battery?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION] try this in TWRP.

- adb shell

- cd /data/system

- rm batterystats*

- sync

- reboot

- charge again

Maybe that helps.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
I did, for the last 5 weeks, without success.

Wait... that's technically how to recalibrate the battery, I've done it too many times already............ I'll have to live with it then, I guess :/
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION]

Are you on latest firmware (V027)?

https://xdaforums.com/xiaomi-redmi-4x/how-to/firmwares-t3682965

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Yes I already did. I had to flash V027 before flashing CAF kernel, duh ¯\_(ツ)_/¯ the problem persists across the flash though. I'm not sure, but before V027 I think I was on 025. The problem started itself after some time on the latest build of RR on my device, so your v7 might not be the culprit.

I'll try recalibrating later, following your instruction earlier. 4100mAh is not supposed to go away within the day ._.
[Xiaomi Redmi 4X Guides, News, & Discussion] Pirex69:
Yeah you are maybe right. I don't have v27 or this v7 tweak and also have this 95%. But if I let continuously charging for about 2 more hours it will get 100%

It seems a battery protection measure
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
Hi , can you please make a tweak to change the WiFi MAC address? I'm on RR now and I was trying all app on google play store but it does not work! I need to fake my MAC to join to my company WiFi! Thank in advance !
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=4816854]hung.ngomanh[/MENTION] There are apps that can do that!

Use the search function gives: https://xdaforums.com/sitesearch.ph...SO-8859-1&q=change+wlan+mac+address&sa=Search
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
I have tried some apps but still it didn't work.

I found out the related thread here: https://xdaforums.com/general/xda-assist/spoofing-wifi-mac-address-snapdragon-t3559446 but it's still unresolved yet.

"

I tried a lot of apps like Chamelemac and mac address ghost but didnt work. I also tried searching for a file in the device containing the MAC address and i found a file with path -

/sys/devices/soc/a000000.qcom,wcnss-wlan/wcnss_mac_addr

The file contains my MAC address. But by editting the file and saving the file, the phone instantly reboots and the file comes back to normal."
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=4816854]hung.ngomanh[/MENTION]

Well this app does it without any problem on my phones:

https://xdaforums.com/android/apps-games/app-root-change-mac-spoof-wifi-mac-t3394540

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Last night I did exactly like your advice. Burned battery to 8%, go to recovery, delete all batterystats*, reboot, then charge it overnight. Ended up 92% :<
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
It's RR v7 bug, I reflash the ROM and didn't flash RR v7 yet, 100% battery here!
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Thanks, I notice that too, think I'd reflash RR today and use v4 or v6 instead..
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
I doubt that. This is a problem that is common for Redmi 4X ("undercharge").

It is mentioned in this 4pda thread often without using the RR V7 script: http://4pda.ru/forum/index.php?showtopic=830140

I had it once too. Now both the Redmi 4X's I maintain charge up to 100% without any problem.

100% indicator is 4.4V. You can check voltage with:

cat /sys/class/power_supply/battery/voltage_now

The only lines in the script that are related to the battery are:

echo 0 > /sys/class/power_supply/battery/restricted_charging

echo 2000000 > /sys/class/power_supply/battery/constant_charge_current_max

echo 1 > /sys/class/power_supply/battery/allow_hvdcp3

echo 1500 > /sys/module/phy_msm_usb/parameters/dcp_max_current

echo 1800 > /sys/module/phy_msm_usb/parameters/hvdcp_max_current

echo 1500 > /sys/module/dwc3_msm/parameters/dcp_max_current

echo 1800 > /sys/module/dwc3_msm/parameters/hvdcp_max_current

You can remove them and reboot to see if that helps?

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Well, I just reflashed RR today. I analyzed your code, and found the same thing. So I'm applying v7 without the 3 commented out lines "echo 4380".

Earlier this morning, I followed a battery recalibration comment from androidcentral (I think so I don't remember) and successfully recalibrated the battery. None other previous methods work ._. So I'm leaving it here in case someone is interested.

[IMG="Battery recalibration"]https://i.imgur.com/B7DKjQa.jpg[/IMG]
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
I have tried this before, on stock miui 9 global and latest RR, it gives an instant reboot right after pressing change mac button! Could you please tell me which rom , kernel you are using? Thank!
[Xiaomi Redmi 4X Guides, News, & Discussion] Pirex69:
Happy new year. Can you pm your modified v7 for me to test it?

Thks
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
I tried on my Redmi 4X and it rebooted too. Reading the thread of this app I see they are working on it but solution not found yet. Read that Oreo ROM works. Think you have to wait.

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
I have tried this, it works! Now im using rr v7 and battery is able to get 100%. Thanks for you tip Linh :)
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
The V7 script in the zip file in the OP already has that commented out!

# check actual charging current : cat /sys/class/power_supply/battery/input_current_now
# USB charging little higher, fully charge in 2 hours
echo 0 > /sys/class/power_supply/battery/restricted_charging
# Charge 0nly up to 89% instead of 100% for longer battery life? cat /sys/class/power_supply/battery/voltage_now
#echo 4260 > /sys/class/power_supply/battery/voltage_max # 4400 (nominal 3.85V)
#echo 4380 > /sys/class/power_supply/battery/voltage_max # 99%
#echo 2000000 > /sys/class/power_supply/battery/input_current_max
echo 2000000 > /sys/class/power_supply/battery/constant_charge_current_max
#cat /sys/class/power_supply/battery/charge_type -> should be Fast or Taper

Happy New Year everybody! Best wishes and Heath for 2018!
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Update. change emmc max freq from 200 to 300 MHz. Increase the read speed from 80Mb/s to 120 Mb/s (note: you can try 400 or 500 Mhz. Might cause reboot, please report back)
[Xiaomi Redmi 4X Guides, News, & Discussion] enrique_fire:
Tweakradje bro i lost volte after using rr v8. So restored back. Kindly give volte fix i would be really grateful. I am on xiaomi.eu miui 9.1.2.0 namcnei rom. Stable
[Xiaomi Redmi 4X Guides, News, & Discussion] noone2006:
Hello,

I was tried with 116 value like yours, it works but with noise, i woud like use 100 as you suggest for loud env, but after reboot the mic app show a message "the mic is used by another app", i tried 100, 105 and 110 but the same pb.

any help ?

thanks