How To Guide Force 120Hz MIUI 13 & MIUI 14

Search This thread

uvzen

Senior Member
Feb 28, 2020
100
60
Huawei P8
Huawei P10

This is a thread for those who don't want to root their device to force 120Hz on every app.

If you are looking for a root solution, then use the LSPosed module called MIUI Performance Saver - Download here

In this way, you can force 120Hz in applications such as: YouTube, MX Player, Google Maps and many others that run at 60Hz by default in MIUI.
You will notice the changes, but you can check it by turning on the refresh rate counter in developer options and check the changes before and after.


First method via ADB

1. In your device, in developer options, enable usb debugging and usb debugging (security settings) and connect your phone to the PC.
2. Download platform tools and extract to a folder
3. Open console in the platform tools folder
4. Enter the following command:

For MIUI 13:
Code:
adb shell settings put system user_refresh_rate 1

For MIUI 14:
Code:
adb shell settings put secure user_refresh_rate 1

If first method doesn't work for you, then try second method.

Second method via Settings Database Editor app

Download this app from the Play Store and for it to work properly, download and install this file from github (settings-database-provider.apk).

For MIUI 13:

1. Open Settings Database Editor app
2. Search "user_refresh_rate"
3. Cick on it to edit the value and replace 120 with 1 and save changes
4. Done

For MIUI 14:

MIUI 14 requires you to grant permissions to the Settings Database Provider app via ADB

1. In your device, in developer options, enable usb debugging and usb debugging (security settings) and connect your phone to the PC.
2. Download platform tools and extract to a folder
3. Open console in platform tools folder
4. Enter the following command:
Code:
adb shell pm grant com.netvor.settings.database.provider android.permission.WRITE_SECURE_SETTINGS
5. Open Settings Database Editor app
6. Search "user_refresh_rate"
7. Cick on it to edit the value and replace 120 with 1 and save changes
8. Done


Keep in mind that it may not work because Xiaomi changes something under the hood of the updates.
 
Last edited:
  • Like
Reactions: arm.x01 and snx413

snx413

Senior Member
Nov 25, 2012
132
40
Realme 6
Xiaomi 12T Pro
I dont know what to say, force fps can cause useless battery drain on app that dont really need ... Do you really need 120hz when you send sms or making call or even messenger ... All do what they want but i wont use it
 

uvzen

Senior Member
Feb 28, 2020
100
60
Huawei P8
Huawei P10
I dont know what to say, force fps can cause useless battery drain on app that dont really need ... Do you really need 120hz when you send sms or making call or even messenger ... All do what they want but i wont use it
I've been using this method since I had the Poco F3 and I've never noticed that the battery was draining much because of it. I'm used to 120Hz and find it irritating to suddenly switch to 60Hz when scrolling in YouTube or some other app. I am not forcing anyone to force 120Hz on their devices.
 

snx413

Senior Member
Nov 25, 2012
132
40
Realme 6
Xiaomi 12T Pro
Yeah but its most of the time at 120 btw, only you tube and tik tok seems to lower it at 60,
I miss my poco f3... They have all custom rom they want pfff, i sold to my brother ...
 
  • Like
Reactions: user2332

HappyTrix

New member
Apr 2, 2023
1
0
root and non root method doesnt work for my poco f3 with xiaomi.eu, i tried global too
 

uvzen

Senior Member
Feb 28, 2020
100
60
Huawei P8
Huawei P10
root and non root method doesnt work for my poco f3 with xiaomi.eu, i tried global too
Can you provide more information? Any errors when executing commands in ADB? Can't find user_refresh_rate in setedit app? It's impossible that it wouldn't work on Poco F3, because I had this device until recently (now I don't have it anymore) and both methods worked perfectly in global ROMs and xiaomi.eu.
 

nhquocnam

New member
Apr 20, 2023
1
0
is there any way to force it from 120hz to 60hz instantly when i stop swiping? it only works when brightness is above 50%, if below 50% it's always 120hz
 

uvzen

Senior Member
Feb 28, 2020
100
60
Huawei P8
Huawei P10
is there any way to force it from 120hz to 60hz instantly when i stop swiping? it only works when brightness is above 50%, if below 50% it's always 120hz
This is MIUI, nothing can be done about it. You can try Magisk root + LSPosed "MIUI Performance Saver" module and force 120hz, which "maybe" will solve your problem, or you can wait for some custom rom that will hopefully come out for the Xiaomi 12T Pro someday, as long as Xiaomi releases kernel source code for this device.
 

techieB0y

New member
Apr 23, 2023
1
0
I cant seem to get my ADB to work u have any guides? and there is no "console" in the platform tools folder please help me :(
 

arm.x01

New member
May 30, 2018
1
0

This is a thread for those who don't want to root their device to force 120Hz on every app.

If you are looking for a root solution, then use the LSPosed module called MIUI Performance Saver - Download here

In this way, you can force 120Hz in applications such as: YouTube, MX Player, Google Maps and many others that run at 60Hz by default in MIUI.
You will notice the changes, but you can check it by turning on the refresh rate counter in developer options and check the changes before and after.


First method via ADB

1. In your device, in developer options, enable usb debugging and usb debugging (security settings) and connect your phone to the PC.
2. Download platform tools and extract to a folder
3. Open console in the platform tools folder
4. Enter the following command:

For MIUI 13:
Code:
adb shell settings put system user_refresh_rate 1

For MIUI 14:
Code:
adb shell settings put secure user_refresh_rate 1

Second method via SetEdit app

Download this app from Play Store

For MIUI 13:

1. Open Setedit app and scroll down to the end
2. Find "user_refresh_rate" "120"
3. Cick on it to edit the value and replace 120 with 1 and save changes
4. Done

For MIUI 14:

MIUI 14 requires you to grant permissions to the Setedit app via ADB

1. In your device, in developer options, enable usb debugging and usb debugging (security settings) and connect your phone to the PC.
2. Download platform tools and extract to a folder
3. Open console in the platform tools folder
4. Enter the following command:
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
5. Open Setedit app
6. In the right corner, change the "System Table" tab to "Secure Table"
7. Scroll down to the end and find "user_refresh_rate" "120"
8. Cick on it to edit the value and replace 120 with 1 and save changes
9. Done
Thank you, useful af
 

SooRaj SuResh

New member
Oct 6, 2017
3
0
I'm getting an error while running the adb command :


Exception occurred while executing 'put':
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2331)
at com.android.providers.settings.SettingsProvider.mutateSecureSetting(SettingsProvider.java:1768)
at com.android.providers.settings.SettingsProvider.insertSecureSetting(SettingsProvider.java:1719)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:467)
at android.content.ContentProvider.call(ContentProvider.java:2533)
at android.content.ContentProvider$Transport.call(ContentProvider.java:530)
at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(SettingsService.java:382)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:278)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:50)
at android.os.Binder.shellCommand(Binder.java:1054)
at android.os.Binder.onTransact(Binder.java:882)
at android.os.Binder.execTransactInternal(Binder.java:1290)
at android.os.Binder.execTransact(Binder.java:1249)
 

uvzen

Senior Member
Feb 28, 2020
100
60
Huawei P8
Huawei P10
I'm getting an error while running the adb command :


Exception occurred while executing 'put':
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2331)
at com.android.providers.settings.SettingsProvider.mutateSecureSetting(SettingsProvider.java:1768)
at com.android.providers.settings.SettingsProvider.insertSecureSetting(SettingsProvider.java:1719)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:467)
at android.content.ContentProvider.call(ContentProvider.java:2533)
at android.content.ContentProvider$Transport.call(ContentProvider.java:530)
at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(SettingsService.java:382)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:278)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:50)
at android.os.Binder.shellCommand(Binder.java:1054)
at android.os.Binder.onTransact(Binder.java:882)
at android.os.Binder.execTransactInternal(Binder.java:1290)
at android.os.Binder.execTransact(Binder.java:1249)
Changing refresh rate via ADB doesn't work for me either. Xiaomi changed something in the permissions again during one of the updates. I just updated my thread, so try second method through the Settings Database Editor app, because I checked and it works for me on Xiaomi.eu weekly 23.5.22.
 
Last edited:

Unknown.Guy

Member
Aug 25, 2016
47
19
Very good find! I had it working on MIUI 13 but I had been waiting to get it working on MIUI 14 since forever, didn't know we had to modify the secure table for this. Also, do you know any more efficient ways to do this with root? I am always rooted.
 

Unknown.Guy

Member
Aug 25, 2016
47
19
I'm getting an error while running the adb command :

Exception occurred while executing 'put':
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2331)
at com.android.providers.settings.SettingsProvider.mutateSecureSetting(SettingsProvider.java:1768)
at com.android.providers.settings.SettingsProvider.insertSecureSetting(SettingsProvider.java:1719)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:467)
at android.content.ContentProvider.call(ContentProvider.java:2533)
at android.content.ContentProvider$Transport.call(ContentProvider.java:530)
at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(SettingsService.java:382)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:278)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:50)
at android.os.Binder.shellCommand(Binder.java:1054)
at android.os.Binder.onTransact(Binder.java:882)
at android.os.Binder.execTransactInternal(Binder.java:1290)
at android.os.Binder.execTransact(Binder.java:1249)

Try with granting permission to the app. Even with that you will get an error which you can solve as follows:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2

    This is a thread for those who don't want to root their device to force 120Hz on every app.

    If you are looking for a root solution, then use the LSPosed module called MIUI Performance Saver - Download here

    In this way, you can force 120Hz in applications such as: YouTube, MX Player, Google Maps and many others that run at 60Hz by default in MIUI.
    You will notice the changes, but you can check it by turning on the refresh rate counter in developer options and check the changes before and after.


    First method via ADB

    1. In your device, in developer options, enable usb debugging and usb debugging (security settings) and connect your phone to the PC.
    2. Download platform tools and extract to a folder
    3. Open console in the platform tools folder
    4. Enter the following command:

    For MIUI 13:
    Code:
    adb shell settings put system user_refresh_rate 1

    For MIUI 14:
    Code:
    adb shell settings put secure user_refresh_rate 1

    If first method doesn't work for you, then try second method.

    Second method via Settings Database Editor app

    Download this app from the Play Store and for it to work properly, download and install this file from github (settings-database-provider.apk).

    For MIUI 13:

    1. Open Settings Database Editor app
    2. Search "user_refresh_rate"
    3. Cick on it to edit the value and replace 120 with 1 and save changes
    4. Done

    For MIUI 14:

    MIUI 14 requires you to grant permissions to the Settings Database Provider app via ADB

    1. In your device, in developer options, enable usb debugging and usb debugging (security settings) and connect your phone to the PC.
    2. Download platform tools and extract to a folder
    3. Open console in platform tools folder
    4. Enter the following command:
    Code:
    adb shell pm grant com.netvor.settings.database.provider android.permission.WRITE_SECURE_SETTINGS
    5. Open Settings Database Editor app
    6. Search "user_refresh_rate"
    7. Cick on it to edit the value and replace 120 with 1 and save changes
    8. Done


    Keep in mind that it may not work because Xiaomi changes something under the hood of the updates.
    1
    Yeah but its most of the time at 120 btw, only you tube and tik tok seems to lower it at 60,
    I miss my poco f3... They have all custom rom they want pfff, i sold to my brother ...