Xiaomi Support Thread

Alberto_

New member
There's another trigger : Volume button pressed - > Use Accessibility services - > Volume Up (or down) - Long press. It should work with screen off
I tried that but it doesnt work either. I have accessibility permision activated in my phone for the macrodroid app btw. I mean, i works but only with screen on or locked.
 

Alberto_

New member
Do the volume buttons work normally (ie as volume buttons) when screen is off?
They work, but there is a small detail i noticed. When my screen is on or locked (all of this with out any macros btw) if i press the volume button once the volume goes up by 1. But if i hold it down the volume goes all the way up. However when the screen is off, if I press the volume button the volume also goes up by one, but if i hold it down the volume wont go all the way up. I dont know if thats relevant.
 

Endercraft

Moderator (& bug finder :D)
They work, but there is a small detail i noticed. When my screen is on or locked (all of this with out any macros btw) if i press the volume button once the volume goes up by 1. But if i hold it down the volume goes all the way up. However when the screen is off, if I press the volume button the volume also goes up by one, but if i hold it down the volume wont go all the way up. I dont know if thats relevant.
Maybe it would work by using alternative config (Settings - > Trigger options - > Volume Button Trigger). Another way is to play a silent sound that would be very long and playing it when screen is off (with Constraint music playing : not playing) and canceling it when screen is on. Only problem is that it would mess up the music playing constraint.
 

Pseudocyclic

Well-known member
They work, but there is a small detail i noticed. When my screen is on or locked (all of this with out any macros btw) if i press the volume button once the volume goes up by 1. But if i hold it down the volume goes all the way up. However when the screen is off, if I press the volume button the volume also goes up by one, but if i hold it down the volume wont go all the way up. I dont know if thats relevant.
Maybe Volume Long Press is deactivated by OS when screen is off. Can you test using short press (while display is off) instead?
 

Jacob L

Moderator (Lawsonator)
Volume button long press simply doesn't work on Android 11+. There's Reddit comments regarding this in the Tasker forums and over the internet
 

Alberto_

New member
Maybe it would work by using alternative config (Settings - > Trigger options - > Volume Button Trigger). Another way is to play a silent sound that would be very long and playing it when screen is off (with Constraint music playing : not playing) and canceling it when screen is on. Only problem is that it would mess up the music playing constraint.
The alternative config also doesnt work :(
 

Endercraft

Moderator (& bug finder :D)
Another way is to play a silent sound that would be very long and playing it when screen is off (with Constraint music playing : not playing) and canceling it when screen is on. Only problem is that it would mess up the music playing constraint.
Anyway I'm going to sleep.
 

Alberto_

New member
Maybe Volume Long Press is deactivated by OS when screen is off. Can you test using short press (while display is off) instead?
Short press works with any apps (spotify, yotube, music player, etc.) with screen off. But when the screen is off i cant get the long press to work as intended (regardless of if im using macros or not). For example, if im listening to music with the screen off and i long press it acts as if it was a short press (it only raises/lowers the volume by 1 unit).
 

Pseudocyclic

Well-known member
Short press works with any apps (spotify, yotube, music player, etc.) with screen off. But when the screen is off i cant get the long press to work as intended (regardless of if im using macros or not). For example, if im listening to music with the screen off and i long press it acts as if it was a short press (it only raises/lowers the volume by 1 unit).
Sounds to me like MacroDroid can never respond to Volume Long Press while screen is off on your device because the device/OS doesn't broadcast that the event has occurred.
 

Alberto_

New member
Thank you very much for your answers. An apology for the late response. Indeed, I have been investigating myself and it seems that the function does not work in Android 12, hopefully this will change in Android 13.
 

Alberto_

New member
But now I found another problem, although I do not know if it is exclusive to Xiaomi (i am running MIUI 13). 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

  • sys_log.jpeg
    sys_log.jpeg
    113.9 KB · Views: 13
  • macro.jpeg
    macro.jpeg
    80.7 KB · Views: 13

FrameXX

Well-known member
But now I found another problem, although I do not know if it is exclusive to Xiaomi (i am running MIUI 13). 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.

It has been stated many times here that changing refresh rate usually doesn't work, because system doesn't listen to change of this settings key and the changes are applyed only after from phone restarts or if it get changed from system settings.
 

Alberto_

New member
It has been stated many times here that changing refresh rate usually doesn't work, because system doesn't listen to change of this settings key and the changes are applyed only after from phone restarts or if it get changed from system settings.
Any idea if there is a workaround to actually change the refresh rate?
 

baamber

New member
Hello I am new here. I have redmi note 10s. I need to create a macro. I have 2 sim cards. If someone calls the sim2 and I do not answer for a while, a text message is sent. I was able to create a macro but it sends a text message as there is an incoming call from sim1 and sim2. I do not know how to do it so that they are sent as the incoming call is only for sim 2. Can anyone help?
 

emanue

New member
Hello, I have a problem with Shell Script, with the "tail -1" function.
The resulting variable is the filename followed by "permission denied".
I checked the permissions and turned everything on.
I noticed that miui, however, allows access only to multimedia files, I had proof of this by changing the extension of the .CSV file to .JPG.
With the file in .jpg extension the "tail -1" function works perfectly.

Is there a way to allow macrodroid to interact with .csv files?

The phone I use is a note 10 pro, miui global 13.0.16

Thank you
 

seb

New member
Good morning all.
On my xiaomi, I created a trigger on a Signal app notification that sends an sms. This Macro works perfectly on my OPPO but not on my Xiaomi. When I test the actions or the macro, however, it works perfectly. But not in reality. I have the impression that Macrodroid does not detect notifications (the logs are empty). Thanks for your help
 

samsg

New member
Please use this thread to report and discuss other Xiaomi specific issues that you believe are related only to Xiaomi devices.
When dual app feature is used how to automate app selection using actions? I am trying to open one of the dual app and perform an action.
 
Top