Are you tired of constantly pressing the power button to lock the Xiaomi screen? Or worrying that the phone will accidentally unlock in the bag and start calling or opening apps? There is a solution: automatic locking when closing the case is a feature that saves battery power and protects against accidental pressing. But not all cases and not all Xiaomi models support it out of the box.
In this article, we will discuss how to turn on lock when closing the case on different versions of MIUI (12 to 15), which cases are suitable for this, and what to do if the function does not work. And also talk about hidden settings that the manufacturer does not advertise, but which can save your screen from unnecessary inclusions.
Why does Xiaomi phone not lock when the case is closed?
If your Xiaomi ignores the closure of the case, the reasons may be both software and hardware.
- πΉ There is no magnet in the case β the function only works when there is a built-in magnet (usually in the upper left corner).
- πΉ The magnet is too weak β cheap cases are often equipped with low-quality magnets that are not recognized by the Hall sensor.
- πΉ The function is disabled in the settings - in some firmware MIUI The option is hidden or reset after the update.
- πΉ Hall sensor damaged β if the phone fell or was repaired, the sensor could fail.
- πΉ Incompatibility with the version MIUI β into MIUI 14/15 The logic of the function has changed.
Before you sin on the hardware, check the settings. Often the problem is solved in just 2 clicks.
Which covers support automatic locking?
Not every magnet case is suitable for Xiaomi, but here are the key criteria for choosing:
| Type of case | Support for blocking | Notes |
|---|---|---|
| Original Xiaomi cases (Smart Cover series) | β Yes. | The magnet is optimally located, guaranteed to work on all models. |
| Magnet cases from third-party brands (Spigen, Ringke) | β οΈ Partially. | Depends on the phone model. Not everyone is good for the Redmi Note 12 and POCO X5. |
| Book cases without magnet | β No. | The lock will not work, but you can use a closing gesture (see section below). |
| Silicone and transparent covers | β No. | There is no magnet, but some models support touch-sensitive shutdown (e.g. Xiaomi 13 Ultra). |
Tip: If you are not buying a case from Xiaomi, check with the seller whether he supports Hall Sensor for your model. For example, for the POCO F5, the magnet cases in the upper left corner are suitable, and for the Redmi 10 β in the center of the upper part.
π‘
Before buying a case, check its compatibility on the manufacturer's website. For example, Spigen has a filter for Xiaomi models marked "Magnet Compatible".
How to turn on lock when closing the case in MIUI 14/15
The instructions vary depending on the firmware version. In recent versions of MIUI, the path to settings has changed, and in some regional firmware, the option is hidden.
Method 1: Standard settings (for most models)
- Open the Settings β Display.
- Scroll down and select Lock when closing the case (or Smart Cover in English).
- Activate the switch. If you don't have an option, see Method 2.
Method 2: Hidden menu (for MIUI 14+)
If there is no standard item, try this method:
- Open the Settings. β The phone.
- Click 5 times on the MIUI version to activate the developer mode.
- Return to Settings β Additional β Special Opportunities.
- Find the Approach Sensor/Hall and turn on the Case Mode.
1.Make sure the magnet case is installed correctly
2.Reset the phone (sometimes the sensor "wilts")
3. check if there are any metal objects near the top of the phone
4. Update MIUI to the latest version-->
Note: On some models (e.g. Xiaomi 12T), the case lock function only works when Always On Display is turned off. Turn it off in Settings β Screen β Always On Display.
What to do if the function is not working?
If you have enabled the setting but the phone is still not locked, try these steps:
- π§ Check the Hall sensor: install the Sensor Test app from Google Play and check the magnet response.
- π Reset the screen settings: Settings β System system β Resetting settings β Resetting display settings.
- π± Change the case: If the magnet is weak, try to attach another magnet to the top of the phone (for example, from headphones).
- π© Update the firmware: in MIUI 15 fixes Hall sensor bugs for Redmi Note 12 Pro+ and POCO X5 Pro.
How to check the Hall sensor without apps?
If nothing helps, there may be a hardware problem.
β οΈ Warning: Don't try to disassemble the phone yourself - the Hall sensor is soldered to the motherboard. Contact the Xiaomi service center to check the sensor circuit (error code for the wizard: HALL_SENSOR_FAULT).
Alternative ways to lock the screen
If your case doesn't support the magnet, or the Hall sensor is broken, there are workarounds:
1. Closing gesture (for book covers)
Some Xiaomi models (such as the Mi 11 and newer) support locking by closing the case.
- Install a case-book without a magnet.
- Turn on Settings β Display β Gestures β Closing the case.
- Activate the option to Lock the screen when closing.
2. Automatic locking by timer
Set up a short screen wait time:
- π Settings β Display. β Sleeping after 15 seconds of inactivity.
- π Settings β Lockdown and protection β Autolock in 5 seconds.
Blocking applications
If the standard tools don't work, install utilities like Smart Cover or Gravity Screen, which use a gyroscope and accelerometer to detect when the phone is in the case.
β οΈ Note: Blocking applications may conflict with MIUI Optimization. Once installed, disable optimization for them in Settings β Annexes β Application management β Threefold β Special access β Optimizing the battery.
Comparison of blocking methods: which is better?
Each method has pros and cons. Here's a comparison table:
| Method | Pluses | Cons | Suitable for |
|---|---|---|---|
| Magnetic case + Hall sensor | Instant lockdown, no delays | Requires a case with a magnet, the sensor may break | All Xiaomi models with Hall sensor |
| Closing gesture of the case | It works without a magnet. | Not all models can cause false positives. | Mi 11/12/13, POCO F4/F5 |
| Timer autolock | No need for a cover, secure. | The screen is locked even when it is not necessary. | All models. |
| Blocking applications | Flexible settings, work without a magnet | Battery consumption, possible bugs | Older models without Hall sensor |
π‘
The best option is the original case Xiaomi Smart Cover + enabled function in the settings. This ensures stable operation without unnecessary battery consumption.
Frequent Mistakes and How to Avoid Them
Users often encounter typical problems when setting up a lock case. Here's how to solve them:
- π« Error: "Function is on, but screen is not locked." Solution: Check if metal objects (keys, coins) are in the way of the sensor. Also turn off Always On Display - it may conflict with the Hall sensor.
- π« Error: "Phone locks, but doesn't unlock when you open the case." Solution: Enable Settings β Display. β Lift to wake up or touch the screen twice.
- π« Error: βThe function disappeared after the update MIUI". Solution: Reset screen settings (Settings) β System system β Resetting settings β Reset display settings) or roll back to the previous firmware version.
If you use custom firmware (like LineageOS or Pixel Experience), the case lock feature may not work, in which case you either have to return to MIUI or use blocking apps.