Cant set the refresh rate in my phone

Alberto_

New member
Hello. I have been trying to create a macro to change the refresh rate of my phone, but I ran intro a problem. I do not know if it is exclusive to Xiaomi (i am running MIUI 13 in a 11t pro) or if there is something wrong with my macro implementation. I am trying to change the refresh rate from 120hz to 60hz and vice versa using system settings but it doesn't work. The system log throws me the following error (I attach the images of the log, the error and the macro). I don't know if anyone else has the same error. Thank you very much for your time.
 

Attachments

  • log.jpeg
    log.jpeg
    113.9 KB · Views: 20
  • macro.jpeg
    macro.jpeg
    80.7 KB · Views: 22

Endercraft

Moderator (& bug finder :D)
Ok. I imagine that in order to use that function I must have the MacroDroid Helper APK installed, right? In addition to that, do I need to grant any extra ADB permission?
Exactly. You will need to grant adb permissions to the helper app :
MacroDroidDev said:
Additional information for Helper File

Starting with MacroDroid v5.8 a new helper file is available to perform some limited functionality that cannot be done directly in the app. In order to grant ADB access to this helper file please use the following command:

adb shell pm grant com.arlosoft.macrodroid.helper android.permission.WRITE_SECURE_SETTINGS
 

Alberto_

New member
Exactly. You will need to grant adb permissions to the helper app :
I installed the helper apk and granted ADB permission. Now the system logs says it is calling the helper app but it doesn't seems to work at all :(
 

Attachments

  • fps_count.jpeg
    fps_count.jpeg
    15.2 KB · Views: 9
  • log_2.jpeg
    log_2.jpeg
    46.2 KB · Views: 9
  • set_edit_value.jpeg
    set_edit_value.jpeg
    4.5 KB · Views: 9

Dimlos

Well-known member
Do you see a log when you start a helper app, now you see nothing?

If so, try turning off power saving settings such as app info autostart and battery saver.

Try turning on all permission settings as well.
 

Attachments

  • helper_log.jpg
    helper_log.jpg
    385.4 KB · Views: 6
  • app_info.jpg
    app_info.jpg
    339.6 KB · Views: 6

Alberto_

New member
Do you see a log when you start a helper app, now you see nothing?

If so, try turning off power saving settings such as app info autostart and battery saver.

Try turning on all permission settings as well.
It worked now. The problem now is that changing the user_resfresh_rate value wont change the actual refresh rate in my phone (as you can see in the attached image). I imagine it is not a macrodroid problem now, but a problem in my implementation. Do you have any idea of how can I change the actual refresh rate. Thanks.
 

Attachments

  • helper_log.jpeg
    helper_log.jpeg
    60.8 KB · Views: 5
  • set_edit_2.jpeg
    set_edit_2.jpeg
    4.3 KB · Views: 5

Alberto_

New member
I mean, the value for the variable user_resfresh_rate is now 60, but the actual refresh rate keeps been 120
 

Dimlos

Well-known member
The Redmi Note 11 reflects the refresh rate setting.
I have not had time to do some research as to why the setting is not reflected on the 11T Pro.
I am waiting for a response from someone who knows more.
 

Dimlos

Well-known member
Sorry, I checked using the function to display the current refresh rate and found that it was not actually switched, although it appeared to be switched in the settings screen.

Some system settings are not reflected even if the settings are manually rewritten, and as @FrameXX wrote in the Xiaomi Support Thread, the refresh rate was not actually reflected even if the refresh rate was rewritten.
 

Alberto_

New member
Sorry, I checked using the function to display the current refresh rate and found that it was not actually switched, although it appeared to be switched in the settings screen.

Some system settings are not reflected even if the settings are manually rewritten, and as @FrameXX wrote in the Xiaomi Support Thread, the refresh rate was not actually reflected even if the refresh rate was rewritten.
Ok I see. Well, thank you very much for your support, and I hope that in the future we can find a solution for this problem since it is a function that really interests me a lot. If in the future you have another idea of how we could make it work, I would be happy to try it. Greetings.
 

Dimlos

Well-known member
Actually, I found that I could change the actual refresh rate by setting min_refresh_rate and peak_refresh_rate in the system settings.
However, this worked on Android 11-based MIUI 13, but not on Android 12-based MIUI 13.

Also, once I made the change in the system settings, I was unable to change it in the device settings and could not undo the change, so I had to initialize the device to recover.

You can find information online based on the keywords I wrote, but be sure to try at your own risk.
Please understand that I am not responsible if your device goes wrong.
 

Alberto_

New member
Actually, I found that I could change the actual refresh rate by setting min_refresh_rate and peak_refresh_rate in the system settings.
However, this worked on Android 11-based MIUI 13, but not on Android 12-based MIUI 13.

Also, once I made the change in the system settings, I was unable to change it in the device settings and could not undo the change, so I had to initialize the device to recover.

You can find information online based on the keywords I wrote, but be sure to try at your own risk.
Please understand that I am not responsible if your device goes wrong.
Thanks for all your help. I think im going to play it safe and keep changing the refresh rate manually. Lets hope we can figure out a way in the future to make this work. I think a lot of people would benefit from been able to select the refresh rate for each specific app (likes MIUI 13 does with the youtube app). Greatings.
 
Top