How to lock Xiaomi phone if the lock button does not work

A broken lock button on Xiaomi is a problem that many users face, especially after falls or prolonged use. But what if the screen needs to be urgently locked and the physical button does not respond? Fortunately, the manufacturer has provided several alternative ways, from standard MIUI features to hidden Android features.

In this article, we will discuss 7 working methods, including blocking with gestures, voice commands, through the power menu and even using third-party applications, describe the nuances for different models from the budget Redmi Note to the flagship Xiaomi 14, and also tell you how to configure automatic locking so that you no longer depend on a mechanical button.

Important: Some methods require pre-tuning. If the button stops working suddenly, try the unprepared methods first (sections 2 and 3) and then move on to more complex solutions.

1. Blocking through the power menu (works without a button)

The most versatile way is to use the software shutdown menu, which is available on all Xiaomi smartphones, regardless of the model and version of MIUI.

How it works:

  • πŸ“± Press the power button (what doesn’t work) on 2-3 seconds – even if it is broken, sometimes the software trigger works.
  • πŸ”„ If the physical button doesn’t respond at all, call the menu via Settings. β†’ The phone. β†’ Power button (on some firmware).
  • πŸ”’ In the window that appears, tap the β€œBlocking” icon (usually at the bottom left).

On models with MIUI 14+, the power menu can be called by double pressing the volume button – check this function in Settings β†’ Special features β†’ Button Management.

πŸ’‘

If the power menu doesn’t appear, try connecting your phone to charge – sometimes this will activate the software button.

2. Lock gesture (the fastest way)

The default option for Double-Tap to Lock is in MIUI, but you have to pre-enable it, and if you haven't, skip this section and move on to the next one.

How to set up (if the button is still working):

  1. Open the Settings β†’ Lock screen.
  2. Select Additional Locking Settings.
  3. Activate the option "Double touch to lock".

How to use:

  • πŸ‘† Twice touch the empty space on your desktop (not on icons!).
  • πŸ” The screen will immediately go out and be blocked.
  • ⚠️ Does not work on a locked screen – only when the phone is unlocked.

Double touch enabled in settings | Screen responds to touch |No conflicts with other gestures | Phone is not in power saving mode-->

On the POCO F5 and Redmi K60, this gesture may conflict with the "Rise to Wake Up" function. If the lock doesn't work, turn it off in Settings β†’ Display β†’ Awaken when lifting.

3. Voice blocking via Google Assistant

If your Xiaomi has Google Assistant installed (all Google Mobile Services models are default), you can lock the screen with your voice, which works even if the sensor completely refuses to respond to touch.

Instructions:

  1. Say β€œOK Google” or hold the home button (if you have one).
  2. Say the command: "Block the phone" or "Lock screen".
  3. Confirm the action (if required).

Important nuances:

  • πŸ”Š Voice lock only works when the screen is unlocked.
  • πŸ“Ά Internet connection required to process the command.
  • πŸ”’ On some firmware, you must first allow blocking in the Assistant settings (Google Settings). β†’ Voice assistant β†’ Settings β†’ Screen locking).
πŸ“Š What kind of lock you use more often?
Gestures
Voice commands
Power button
Automatic locking

On Xiaomi 13T and later, voice lock may not work due to MIUI 14.5+ limitations, in which case use alternative methods from the following sections.

4. Automatic locking by timer

If you don't have to lock the screen right now, you can set up automatic locking after a certain time of inactivity, which won't replace manual locking, but it will eliminate the need to use the button in everyday scenarios.

How to set up:

  • πŸ•’ Go to Settings. β†’ Lock screen β†’ Son.
  • πŸ”’ Select a minimum time, such as 15 seconds.
  • ⚑ Enable the option "Blocking at sleep" (if any).
Sleep time.Battery consumptionSuitable for
15 seconds.High.Frequent blocking (e.g. in transport)
30 secondsAverage.Balance between convenience and economy
1-2 minutesLow.Rare use of lockdown
5+ minuteMinimumOnly to save charge.

On the Redmi A2 and other budget models, too short sleep can lead to self-reboots, with 30 to 60 seconds optimal.

How to Reset Your Sleep Timer if the Screen is Not Reacting?
If the phone is getting stuck and does not lock automatically, plug it into charging or reboot it forcibly (clip Power + Volume Up for 10 seconds).

5.Blocking through the notification panel

In MIUI 12-14, there is a hidden lock button in the notification bar, and many users are unaware of its existence, even though it works when the power button is turned off.

Step-by-step:

  1. πŸ“² Swipe down from the top of the screen to open the notification bar.
  2. πŸ” Slide down to the end - there should be an icon "Blocking" (locklock).
  3. πŸ‘† Slip on it - the screen will immediately lock.

If no button:

  • βš™οΈ Go to Settings. β†’ Notification panel.
  • πŸ”§ Click "Configure the control panel".
  • πŸ”’ Find the β€œBlocking” icon and drag it to the active area.

πŸ’‘

The lock button in the notification panel works even if the power button is turned off or the sensor is broken (provided that the panel opens with gestures).

6. Special features: blocking through AssistiveTouch

For users who don't have a lock button, but also a sensor, AssistiveTouch is a good option, which mimics physical keys and allows you to lock your phone with a single touch.

How to turn on:

  1. Open Settings β†’ Special features β†’ AssistiveTouch.
  2. Activate the slider "Enable AssistiveTouch".
  3. 🎯 There will be a floating button on the screen – tap it.
  4. Select "Blocking" (lock icon).

Additional settings:

  • πŸ–ΌοΈ You can change the size and transparency of the button in the AssistiveTouch settings.
  • πŸ”„ Set up a double-press action – for example, locking + switch off.
  • πŸ“ Move the button around the screen so it doesn’t interfere.

⚠️ Note: On Xiaomi 12 Pro and 13 Ultra AssistiveTouch can conflict with navigation gestures. If the button does not appear, turn off Full-screen gestures in the display settings.

7. Third-party applications for blocking

If standard methods don't work, you can install specialized utilities that offer advanced features, such as locking on a schedule or via a widget.

Top.-3 tested applications:

AnnexFunctionsLink (Google Play)
QuickLockBlocking by timer, widget, voice commandsDownload
Screen Off and LockOne touch to lock, no advertisingDownload
Gravity ScreenAutomatic lock when stacking the phone with the screen downDownload

How to set up Screen Off and Lock:

  1. Install the app from Google Play.
  2. Open it and grant permission to the Administrator of the device.
  3. πŸ“± Add the app widget to the main screen.
  4. πŸ‘† Now one touch of the widget will block the screen.

⚠️ Attention: Some apps require you to disable battery optimization for Xiaomi.Do it in Settings β†’ Annexes β†’ Application management β†’ Battery β†’ No restrictions.

FAQ: Frequent questions about locking Xiaomi without a button

Can you block Xiaomi if the button and sensor don’t work?
Yes, but only if you pre-configure Google Assistant or AssistiveTouch. In extreme cases, connect your phone to your PC and use the ADB command: adb shell input keyevent 26 This simulates the pressing of the power button.
Why doesn’t double taping work for locking?
Causes: πŸ”• Function disabled in settings (lock screen) β†’ Double touch). πŸ› οΈ Conflict with the shell (for example, on the POCO Launcher). πŸ”‹ Power saving mode blocks gestures. Solution: reset your phone or reset your gesture settings.
How to lock your phone if it is stuck?
If the screen does not respond: πŸ”Œ Connect the charger - sometimes it will "wake up" the system. πŸ”„ Squeeze the power. + Volume increase by 10-15 seconds for forced reboot. πŸ–₯️ Connect to your PC and use adb reboot.
Will Google Assistant be blocked without the internet?
No, voice commands require a network connection to process, but you can use offline commands if you pre-download the language in the Assistant settings (Settings β†’ Voice Assistant β†’ Offline Voice Input).
Can I set up a fingerprint lock on a locked screen?
No, the fingerprint scanner on Xiaomi only works to unlock. Use the methods in this article to lock.