When the physical power button on Xiaomi’s smartphone stops responding, it can be taken by surprise at the most inopportune moment.This is not just an inconvenience, but a serious problem that needs to be addressed immediately, especially if the device starts to work incorrectly or freezes. Owners of budget and even flagship models often face wear and tear of mechanical parts or software failures that block standard functions.
Fortunately, Android and the MIUI or HyperOS proprietary shell provide several alternative ways to manage the state of the device. You don't have to carry the gadget to the service center right away, since there are software methods to emergency shutdown, and understanding these mechanisms will help save data and avoid a complete battery drain at the wrong time.
In this guide, we’ll take a look at all the options available, from standard settings to advanced developer tools, and learn how to use timers, restore menus, and even computer utilities to safely shut down or reboot your Xiaomi.
Use of the built-in shutdown menu
The most obvious, but often ignored, way is through a software menu called through the screen. Most modern Xiaomi smartphones with a MIUI 12, 13, 14 shell or new HyperOS have a function to call the power menu through the interface, which requires you to unlock the device and find the appropriate item in the notification curtain or in the settings menu.
If a standard long-pressed button doesn't work, try swiping from top to bottom to open the control center. In some firmware versions, the shutdown icon is handed out separately, but most often it is hidden. Try pressing the lock icon or swiping your finger across the lock screen if this option is activated in the security settings. Sometimes the system offers a virtual button when you try to perform an action that requires a reboot.
If the screen is responding but the button is physically broken, you can use the On and Off Timer feature, which is a standard tool that allows you to set the exact time to automatically turn off the device. Go to Settings → Battery and Performance → On/Off Timer (the path may differ depending on the version of MIUI). Set the time 1-2 minutes ahead, and the phone will automatically terminate the work.
⚠️ Warning: The timer function only works if the phone is currently on and active. If the device is dead, this method will not help, and more radical measures will be needed.
An alternative way to call the menu is to use a voice assistant. Say "OK, Google," or activate Xiao AI if it's configured, and say "Switch off the phone." The system will request confirmation of an action on the screen that you can tap with your finger. This is a great way if the touchscreen is working properly and the mechanical buttons are completely out.
⚠️ Attention: Voice control requires an active Internet connection and a tuned microphone. In a bad signal or if the system is heavily got stuck, the assistant's response may be delayed.
Forced reboot with long pressing
Many users don’t know that Android has a forced reboot mechanism that works at the hardware level. Even if a short press doesn’t work, prolonged exposure to the power button (or a combination of buttons) can initiate a reset. On Xiaomi devices, this often works as a “hard restart,” similar to the battery extraction on older phones.
Try to hold the power button for 10-15 seconds, and in some cases up to 30 seconds, and the screen may go out, the device will vibrate and start to boot again. If the power button is partially working (for example, closes), this method can work the first time, and it is important not to release the button until the Mi or Xiaomi logo appears.
If a single tap doesn't work, use a key combination. Press both the power button and the Volume Down button. Hold them together for about 15-20 seconds. This combination is often used to enter Fastboot mode, but on some models and firmware versions it causes a forced reboot if the system doesn't respond.
☑️ Checking the button response
There's also a nuance to connecting the charger. Sometimes, connecting the original cable to the power supply can trigger a reaction, especially if the battery is completely drained. Try plugging the charge, waiting for the indicator to appear, and then immediately chewing the buttons to reboot. The combination of power and volume up on some Redmi and POCO models can also give results, although more often leads to Recovery.
Using Recovery Mode to Turn Off
Recovery Mode is a low-level environment that boots separately from the main operating system, and once you get here, you can control basic device functions, including reboot and shutdown, using only volume buttons for navigation, a lifesaving option when the touchscreen is down or the system is locked.
To enter Recovery mode on most Xiaomi smartphones, you need to follow the following sequence: turn off the phone completely (if possible) or wait for it to discharge, then press the power button and Volume Up button at the same time. Hold them until the Mi logo appears, then release the power button, but continue to keep the volume until the Recovery menu appears.
In this menu, the touch screen usually doesn't work. Navigation is done with volume buttons (up/down), and the power button selects the item. If the power button doesn't work at all, it can be difficult to enter this mode, but if it responds to even a long clamping in conjunction with volume, you can control the menu. Choose Power off or Reboot.
| Action in Recovery | Navigation button | Confirmation button | The result |
|---|---|---|---|
| Moving on the menu | Volume Up/down | - | Selection of the paragraph |
| Selection of a paragraph | - | Nutrition | Execution of the team |
| Getting out of the regime | - | Meals (on Reboot) | System restart |
| Total shutdown | - | Power (on Power Off) | Phone's off. |
If the power button doesn’t respond even when it’s volume-related, try the three-button method (if design permits) or connect to a PC. Sometimes connecting a USB cable to your computer when the volume buttons are pressed can help you enter Fastboot mode, where you can also choose to reboot or turn off the option if menus are available.
What happens if Recovery does not open?
Debugging by USB and ADB commands
For advanced users who have the option “Debugging by” enabled USB» (USB Debugging, there's the most reliable software way to control your phone. ADB (Android Debug Bridge, which allows you to send commands directly to the system without having to ignore physical buttons, is a professional method used by engineers.
First, you need to install Xiaomi drivers and the SDK Platform Tools on your computer. Connect your smartphone with a cable to your PC. If the phone screen shows a window "Let me debug?", confirm it (if the touchscreen works). Then open the command line on your computer in the ADB folder and enter the command to check the connection: adb devices. If the device appears in the list, the connection is established.
adb rebootThis command will send a signal to softly restart the device, but if you want to turn it off completely, use the following command:
adb shell reboot -pIn some cases, if the standard shutdown command is blocked by the system, you can try the adb shell input keyevent 26 command, which emulates a short press of the power button. For long presses (emulation of 10 seconds), scripts can be used, but usually the commands reboot -p are enough to safely complete the work.
💡
If ADB can’t see the device, make sure you’re using the original cable and USB 2.0 port. Some versions of MIUI require you to allow debugging in the timer window that appears (10 seconds).
The advantage of ADB is that it works even with a partially broken touchscreen, so that the bootloader is not locked at the debugging level, and it's the perfect way to turn off the phone if the power button has physically fallen off, but the charging port is intact.
Automation through applications and scripts
If the physical button is broken, but the phone is still working, it is wise to install a power management software solution. There are applications in the Google Play store or GetApps (Mi Store) that create virtual buttons on the screen, such as the Assistive Touch app or specialized utilities for Xiaomi.
These apps create a floating button on the screen that opens the menu with the options “Switch off”, “Reset”, “Block the screen” when you click on it, which allows you to completely eliminate the use of the physical power button in everyday life. However, it is worth remembering that you may still need a button to initially install and configure such applications, or you will need to use the special features (Accessibility).
You can also set up automatic scripts, such as installing an automation app (such as MacroDroid or Tasker) that will turn off the phone on a schedule or at a certain battery level, which will prevent situations where the phone needs to be turned off urgently and the button does not work.
It’s important to consider that third-party shutdown applications require root rights to execute a shutdown command, not just a screen shutdown. Without superuser rights, they can only emulate a tap or lock the screen, which is not a full shutdown.
Prevention and interim solutions
If the power button on your Xiaomi is starting to get squabbled, it's important to take action before it fails completely. Regularly clean the area around the button of dust and pile with compressed air or a soft brush. Sometimes the problem lies in the contamination of the mechanism.
Use the "Wake Up" or "Double Tap" function to turn on the screen to minimize button usage. In Settings → Lock screen settings, you can activate these options. To turn off, use the software methods or timer described above.
If the phone is dead and you can’t turn it on because of a broken button, try plugging it into your computer. Some Xiaomi models automatically turn on when you connect to a PC, even if the button doesn’t work. Connecting to the original charger for a long time (more than 2-3 hours) can also help – some devices turn on themselves when a certain percentage of charge is reached.
⚠️ Warning: Do not attempt to disassemble the phone and close the contacts of the power button with tweezers if you do not have experience.This can lead to a short circuit of the motherboard and the final breakage of the device.
As a temporary solution, if the phone is stuck and you need to reset a task urgently, use the developer menu. Turn on "Show processes" or use third-party task managers to force the freeze applications to stop so as not to resort to restarting the entire device.