How to disable the lock button on Xiaomi: all working methods

The lock button on Xiaomi, Redmi and POCO smartphones is often a source of annoyance β€” especially when it is triggered accidentally during games, watching videos or reading. The manufacturer activates this feature by default to protect against unwanted clicks, but many users want to turn it off completely or at least reduce sensitivity. The problem is that standard MIUI settings do not have this option β€” it has to be searched for hidden menus or use technical workarounds.

In this article, we will discuss 5 proven ways to disable the lock button, including methods for different firmware versions (from MIUI 12 to MIUI 15).

  • πŸ”§ Configure the sensitivity of the button through the hidden parameters of the developer
  • πŸ“± Disable screen lock with gestures (for models with Always-On Display)
  • πŸ’» Use it. ADB-commands for deep tuning (without root)
  • βš™οΈ Return the standard behavior of the power button (if it has been changed)
  • πŸ”„ Reset to factory settings if other methods have not worked

Before you start, consider that some methods require unlocking the bootloader or activating the developer mode. If you are not sure about your actions, skip the technically difficult steps and use only the safe ways in the first two sections.

πŸ“Š What kind of Xiaomi model do you have?
Redmi Note 12/13
POCO X5/F5
Xiaomi 13/14
Redmi 10/11
Another model
I don't know.

1. Disable locking through screen settings (the easiest way)

If your smartphone supports Always-On Display (AOD) or Ambient Display, the lock button may duplicate the screen-off function, in which case it can be deactivated via the standard menu:

  1. Open the Settings β†’ Screen.
  2. Select Screen Lock or Sleep Mode (depending on the MIUI version).
  3. Find the power button lock option and turn it off.
  4. Save the changes and restart the device.

⚠️ Note: On some models (e.g, POCO F4 or Redmi K50) This option can be called Power button Reaction or Accidental Press Protection. If it's not on the menu, move on to the next one.

πŸ’‘

If the lock button continues to work after disabling, check the settings of Google Assistant – sometimes the conflict arises due to the gesture β€œSqueeze to activate the assistant”.

2. adjust the sensitivity of the button in the developer mode

Hidden MIUI settings allow you to fine-tune the power button response to presses.

  1. Activate Developer Mode: Go to Settings β†’ About Phone. Click 7 times on the MIUI Version until you become a developer!

Additional settings β†’ Developer parameters

Entering

Button sensitivity

Power button

Low.

Disconnected.

πŸ“Œ Important: Xiaomi 13 Pro and POCO F5 Pro, this parameter may not be available. In that case, try an alternative path:

Settings β†’ Special features β†’ Physical buttons β†’ Sensitivity of the power button
Why can’t the lock button be turned off?
On some firmware (e.g. MIUI Global for the European region), the manufacturer intentionally blocks the change of this setting due to security requirements, in which case only the ADB method (section 4) or the resetting of the settings will help.

3. Disable blocking through gestures and additional functions

If the lock button is triggered due to conflict with other gestures (e.g. Double Tap to Wake or Raise to Wake), it can be β€œcheated” by alternative settings:

  • πŸ‘† Turn off the lift to wake up: Settings β†’ Screen. β†’ Raise to wake up.
  • ✌️ Deactivate Double Touch: Settings β†’ Screen. β†’ Double touch to wake up.
  • πŸ”„ Set up screen timeout: Increase time to automatically shut down in Settings β†’ Screen. β†’ Sleeping mode.

On the Redmi Note 12 and later, the lock button may conflict with the Game Turbo feature – check the game mode settings if the problem only manifests itself in games.

Xiaomi modelConflicting functionDecision
POCO X3/X4"Squeeze for screenshot" gestureDisable in Settings β†’ Additional β†’ Buttons
Xiaomi 12T/13Always-On DisplayDisable AOD or reduce timeout
Redmi 10/11Google Assistant (button retention)Reassign the action in the settings of the assistant

4.Use of ADB for deep shutdown (advanced method)

If the standard methods do not work, you can apply ADB-This method does not require root rights, but requires a computer and USB-cable.

Install Mi Unlock Tool and Drivers|Enable debugging on USB developer-specific|Connect your phone to your PC and confirm trust|Download Platform Tools from Google-->

Instructions:

  1. Connect your smartphone to your PC and open the command line in the folder with adb.exe.
  2. Enter the command to check the connection: adb devices (should appear serial number of the device).
  3. Execute the command to disable the power button lock: adb shell settings put global power_button_end_call false
  4. For models with MIUI 14+ You may need to use the following command: adb shell settings put secure lock_screen_power_button_instant_lock 0
  5. Reset the device.

⚠️ Attention: Misuse of the right ADB If after completing the commands, the phone stopped responding to the power button even to turn on, reset via fastboot: fastboot reboot recovery.

5. Resetting settings to factory (extreme case)

If all the previous methods didn't work, and the lock button interferes with the work, the last option is a complete reset, which will delete all data from the device, so first:

  • πŸ“ Create a backup through Settings β†’ Additionally. β†’ Backup.
  • πŸ” Write down your Mi Account details (required to unlock after resetting).
  • πŸ“± Make sure the battery is at least 50 times charged%.

How to reset your settings:

  1. Go to Settings β†’ About the phone β†’ Reset settings.
  2. Select Delete all data.
  3. Confirm the action and wait for the reboot (it will take 5-10 minutes).

Once the lock button is reset, it will return to factory settings, if the problem was caused by a software failure, it will disappear, and if it is not, it may be a hardware malfunction (such as sticking a button or damaging a plume).

πŸ’‘

Resetting only helps in 60% of lock button conflicts, and if the problem persists, contact the service center to diagnose the physical button.

Frequent Mistakes and How to Avoid Them

Users often encounter typical problems when trying to disable the lock button, and here are the most common ones and ways to solve them:

  • πŸ”„ "The lock button only works in games" β†’ Turn off Game Turbo in game settings or add the game to exceptions.
  • πŸ”‹ "After the button was turned off, it stopped working completely" β†’ Adb shell settings put global settings power_button_end_call true
  • πŸ“± "Settings are reset after the update MIUI" β†’ Repeat the setting through ADB Or use Magisk to fix the parameters (requires root).

If you use custom firmware (e.g. Pixel Experience or LineageOS), the power button settings may be in another menu. Look for them in Settings β†’ System β†’ Gestures or Buttons.

❓ Can I turn off the lock button without a computer?
Yes, but only on some models through hidden settings (Section 2).If your version of MIUI does not have such a clause, you can not do without ADB or reset.
❓ Why After Updating MIUI The lock button is active again?
The manufacturer resets some custom settings with major updates. To fix changes, use ADB or the Magisk module (for example, Settings Database Editor).
❓ Will the way to work with ADB on POCO F5?
Yeah, but for POCO F5 (and other models MIUI 14+) Additional commands: adb shell settings put secure sysui_power_dialog 0 It turns off the dialog window with a long press.
❓ Can I reassign the lock button to another action?
Most models don't, as it's a hardware button, except that some custom firmware (like Havoc-OS) allows you to reassign buttons through Xposed or Magisk modules.
❓ What to do if the lock button sticks physically?
It's a hardware problem. Try blowing the button with compressed air or contacting the service. Self-disassembly can lead to a loss of warranty.