Did you buy an original magnetic case for Xiaomi, but the screen does not lock when closed? Or does the smartphone not respond to the lid opening, although everything worked before? The problem most often lies not in the accessory itself, but in the wrong settings of the system or the sensors disabled. In this article, we will discuss how to turn on the magnetic case on any Xiaomi smartphone (including Redmi, POCO and Black Shark), even if the function suddenly stopped working after the MIUI update.
Magnetic cases are not just screen protection, but also a convenient way to automatically lock/unlock the device. However, many users are faced with the fact that the smartphone ignores the closure of the lid, continues to burn in your pocket or, on the contrary, does not wake up when you open. The reasons can be different from the Hall sensor turned off to a failure in the firmware. We have collected all working methods of solving, from basic to advanced, including hidden MIUI settings, which are not written in the official instructions.
Why does the magnetic case not work on Xiaomi?
Before you set up a case, it's important to understand the root of the problem.
- πΉ The Hall sensor is disabled, which is a magnetic sensor that detects the closure of the case, and in some firmware, it turns off after updates.
- πΉ Non-original case β cheap analogues can have weak magnets or an incorrect location of the magnetic plate.
- πΉ Failure in MIUI β After a system update or reset, the screen lock function with the case may βfly off.β
- πΉ Application conflict β some programs (e.g., optimizers or launchers) block the sensors.
- πΉ Mechanical damage β if the smartphone fell, the Hall sensor could shift or fail.
If the case is new and original, 90 percent of the time, the problem is solved software--without going to the service center.
How to check if the Hall sensor works on Xiaomi
Before you set up the case, make sure that the Hall sensor itself is working. You don't need any special applications for that, you just need built-in MIUI tools.
Method 1: Testing equipment (works on most models):
- Open the Phone app.
- Enter the combination: ##6484## (on some models it may not work β see method 2).
- Select the Hall Sensor Test (or the Hall Sensor Test).
- Hold the magnet to the top of the smartphone (where the sensor is usually located). If the screen shows PASSED or 1, the sensor works.
Method 2: through the hidden menu of engineering settings:
- Go to Settings. β The phone.
- Tap 5-7 times on the MIUI version until the notification βYou became a developerβ appears.
- Return to the main settings menu and open Additional β for developers.
- Activate the USB Debugging Switch and find the Hardware Test (could be called the Equipment Test).
- In the list, select Hall Sensor and check the magnet response.
What if the Hall sensor doesn't respond?
Step-by-step: how to turn on a magnetic case
If the Hall sensor is working but the case is not working, follow this instruction.It is suitable for all Xiaomi smartphones on MIUI 12/13/14 and HyperOS.
Check that the case fits tightly to the smartphone
Make sure the magnetic plate is in the top of the cover
Close all background applications
Connect your smartphone to charging (in case of a failure)-->
Step 1: Activate the lock function with the cover
- Go to Settings β Display.
- Select the screen lock and password (on some models β Lock and protect).
- Scroll down and find the option Lock with a case (or Magnetic case).
- Activate the switch. If there's no point, see step 2.
Step 2: Turn on the Hall sensor manually (if the option is not in the settings)
- Open Settings β Additional β Special Opportunities.
- Find the Physical buttons or gestures section.
- Check if there's a Hall Sensor or Magnetic Sensor, and if so, turn it on.
- If there is no item, try resetting the Display settings to factory settings (see the next section).
Step 3: Set up a reaction to opening the case
- π± In some firmware, you can choose what happens when you open the case: unlock the screen or go to the main screen.
- Go to Settings β Display β Lock with a case.
- Select the Action option when opening and set the desired option.
π‘
If the case doesn't work after setting up, try calibrating the Hall sensor. Close the case, wait 5 seconds, then open it and repeat it 3-4 times, sometimes helping the system to "remember" the position of the magnet.
What to do if the magnetic case stopped working after the update
MIUI updates often reset sensor settings or shut them down βfor optimization.β If the case worked before but stopped after the update, try these methods:
Method 1: Reset the display settings
- Open the Settings β Display.
- Slip on three points in the upper right corner (or additionally).
- Select Reset Settings and confirm the action.
This will return all screen parameters (including locking with a case) to factory values.
Method 2: Clear the system cache
- Go to Settings β Applications β Application Management.
- Slip on three points β Show system processes.
- Find Settings (or System UI) and clear the cache.
- Reboot your smartphone.
Method 3: Reverse to a previous version of MIUI (if the problem has occurred since the last update)
- π Back up your data through Settings β Additional β Backup.
- π Download the old firmware from the official Xiaomi website (Support section).
- π Set it through Settings β About Phone β System Update β Three Dots β Select a firmware file.
π‘
If the case stopped working after upgrading to HyperOS, check for the "Magnetic Accessories" item in the display settings. In the new shell, the function can be moved to another section.
How to check the originality of a magnetic case
Non-original cases often have weak magnets or the wrong location of the magnetic plate, which makes the smartphone βcannot seeβ them.
| Sign. | Original case | Fake case |
|---|---|---|
| Magnetic plate | Thin, flexible, located strictly at the top | Hard, may be displaced or absent |
| Materials | Soft TPU or premium leather with stitched edges | Hard plastic, rough seams, pungent smell |
| Logo. | A good example of Mi/Redmi embroidery or engraving | A sticker or paint that is erased |
| Price. | 800 to 2500 β½ (depending on model) | Cheaper 500 β½ (often sold as an "analogue") |
If you have already bought a non-original case, you can try to strengthen the magnet:
- π§² Stick an additional neodymium magnet (3Γ1 mm) over the regular one.
- π Make sure the magnet is exactly opposite the Hall sensor (usually in the top left corner of the smartphone).
π‘
To find exactly where the Hall sensor is, use the Sensor Test app from Google Play, which shows the sensor's response in real time when the magnet is lifted.
Problems with magnetic case on specific models Xiaomi
Some Xiaomi smartphones have unique "bugs" with magnetic cases.
Xiaomi 13/13 Pro, 13T
- π οΈ Problem: The case locks the screen but does not unlock when opened.
- π§ Solution: Enable the Unlock option when opening the case in Settings β Display β Lock with the case.
Redmi Note 11/12 Pro+
- π οΈ Problem: The Hall Sensor shuts down after upgrading to HyperOS.
- π§ Solution: Reset the Display settings or roll back to MIUI 14.
POCO F5/X5 Pro
- π οΈ Problem: The case only works with official firmware, but on custom (e.g. Pixel Experience) it does not.
- π§ Solution: Install the Magisk module to support the Hall sensor or return to the stock firmware.
Xiaomi Mi 11 Ultra
- π οΈ Problem: Because of the large camera, the case doesn't fit well, and the magnet doesn't reach the sensor.
- π§ Solution: Use magnet-enhanced cases or special models for the Ultra series.
π‘
On models with HyperOS (for example, Xiaomi 14 or Redmi K70), the function of the magnetic case can be hidden in the section Smart functions β Accessories.
What do you do if nothing helps?
If you have tried all the ways, but the magnetic case still does not work, there are radical measures:
β οΈ Warning: Resetting to factory settings will delete all data from the device, including photos, contacts and apps. Pre-backup through Settings β Additional β Backup or Mi Cloud.
Method 1: Hard Reset (Hard Reset)
- Turn off your smartphone.
- Press the Power + Volume button up until the Mi logo appears.
- From the Recovery menu, select Wipe Data β Wipe All Data.
- Confirm the action and wait for the reboot.
Method 2: Fastboot Flashing (for power users)
- π§ Download the official firmware for your model from the Xiaomi Firmware website.
- π§ Install the Mi Flash Tool on PC.
- π§ Connect your smartphone in Fastboot mode (clamp Power + Volume down) and flash the device.
β οΈ Warning: If Hall's sensor doesn't work after flashing, it's probably hardware. On Xiaomi models older than 2 years, the sensor can wear out or move away from the board, in which case only a replacement at the service center (cost between 1,000 and 3,000 β½) will help.