Ever wondered why Xiaomiโs magnetic-mounted cases close so tightly and smartwatches automatically lock when worn on your hand? In todayโs Xiaomi smartphones (especially flagship and mid-budget models), this element plays a key role not only in the work of accessories, but also in energy management, security and even some hidden features. MIUI.
If your Redmi Note 12 has stopped responding to the magnetic case closing, POCO F5 Does not recognize wireless charging with support Qi2, The problem may be in the Hall sensor:
- ๐ What is a Hall sensor and how does it work in Xiaomi phones (from a physical perspective).
- ๐ฑ In which models it is installed and what it is specifically responsible for (spoiler: not in all smartphones of the brand!).
- โก Signs of malfunction - from banal (the cover does not work) to critical (the phone does not charge).
- ๐ ๏ธ How to check the sensor yourself without disassembling the device.
- ๐ฐ Cost of repair and can you do without a service center.
Particular attention will be paid to the hidden functions of the Hall sensor in firmware MIUI 14+, For example, why some Xiaomi models can automatically go into โDo Not Disturbโ mode when placed in a magnet case โ and how to turn it off if the feature interferes with the device.
What is a Hall sensor and how does it work in a phone
Hall's sensor is an electronic component that responds to a change in the magnetic field, and his work is based on the Hall effect (discovered in 1879 by physicist Edwin Hall): when a current passes through a conductor placed in a magnetic field, a transverse potential difference occurs.
- ๐งฒ Magnet's coming. โ sensor.
- ๐ถ The signal is generated โ transmits to the phone processor.
- ๐ค MIUI performs an action (for example, locks the screen or turns off Wi-Fi).
In Xiaomi smartphones, the Hall sensor is usually a microchip the size of 2ร2 It's located on the motherboard next to the charging connector or under the battery:
- ๐ Wireless charging (detects the position of the phone at Qi stations).
- ๐ฑ Magnetic covers (activates the screen lock when closed).
- ๐ Charging docks (in some models includes fast charging only when in the correct position).
It's important to understand that the Hall sensor is a passive element, it doesn't consume power all the time, it only activates when the magnetic field changes. For example, in the Xiaomi 13 Ultra, it only consumes 0.01 mA in standby mode, but can fire up to 100 times per second when you use wireless charging intensively.
โ ๏ธ Attention: Don't confuse the Hall sensor with the compass (magnetometer) in the phone! the compass measures the direction of the Earth's magnetic field for navigation, and the Hall sensor responds to local magnets (such as in cases or chargers). At Xiaomi, these components are often combined into a single chip but perform different tasks.
Which Xiaomi models have a Hall sensor (full list)
Not all Xiaomi smartphones are equipped with a Hall sensor, which is installed mainly in models with support for:
- ๐ Wireless charging (Qi standard or proprietary solutions).
- ๐งฒ Magnetic accessories (cases, docking stations).
- ๐ฑ Flagship features (e.g. automatic screen locking).
| Series | Hall sensor models | Sensor functions |
|---|---|---|
| Xiaomi 13 | 13, 13 Pro, 13 Ultra, 13 Lite | Wireless charging, magnetic cases, automatic locking |
| Redmi Note | Note 12 Pro+, Note 11 Pro+ 5G | Wireless charging only (without support for magnetic cases) |
| POCO | F5 Pro, X5 Pro 5G | Wireless charging, partial support for magnetic accessories |
| Xiaomi Mix | Mix 4, Mix Fold 2/3 | Wireless charging, folding mechanism (in Fold) |
| Black Shark | 5 Pro, 5S Pro | Magnetic triggers for gamepads |
Note: In budget models (e.g. Redmi) 10A or POCO M5) Hall sensor is missing. We can check if it's available:
- In the characteristics on the official website (see the mention of "wireless charging" or "magnetic case").
- Through the engineering menu (enter ##4636## โ Sensor Test โ Check for Hall Sensor availability).
- Physically: Hold the magnet to the top or bottom of the phone โ if the screen reacts (like going out), the sensor is there.
โ ๏ธ Note: In Xiaomi models with support Qi2 (For example, Xiaomi 14, the Hall sensor is calibrated automatically when you first wirelessly charge. If you interrupt the process (for example, remove the phone from the station), sensitivity may be lost - you need to reset through the service menu.
How to distinguish the Hall sensor from the magnetometer in characteristics?
What is responsible for the Hall sensor in Xiaomi: 5 key features
The Hall sensor in Xiaomi smartphones performs not only obvious tasks (such as reaction to a case), but also hidden functions that users often do not know.
1. Work with magnetic covers
The most prominent feature is the automatic lock/unlock screen when opening/closing the case. MIUI 14+ Hall sensor also:
- ๐ Disables notifications when the case is closed (Do not disturb mode").
- ๐ต Blocks sensory gestures (e.g., double touching to wake up).
- ๐ Optimizes energy consumption (disables background processes).
2. Wireless charging
In phones with Qi-charging, the Hall sensor:
- ๐ฏ Determines the exact position of the phone to the station (prevents overheating).
- โก Activates fast charging (for example, 50W Xiaomi 13 Pro only when aligned correctly.
- โ ๏ธ Disables charging when offset (damage protection).
3. Accessories work
In some models (such as the Black Shark 5 Pro), the Hall sensor is used to:
- ๐ฎ Connecting gamepads with magnetic fastening.
- ๐ Activation of the "Game Turbo" mode when installing the phone in the docking station.
4. Hidden functions MIUI
In the firmware MIUI 13/14 Hall sensor could:
- ๐ฑ Turn on reading mode when placing the phone in a magnet case (configured in Settings) โ Display. โ Reading mode).
- ๐ Automatically turn off the microphone when closing the case (protection against wiretapping).
5. Security
In Xiaomi 13 Ultra and Mix Fold 3, the Hall sensor is involved in:
- ๐ Locking the phone when you try to open it (activates on magnetic instruments).
- ๐ก๏ธ Protection against unauthorized disassembly (sends notice to the owner).
๐ก
If your Xiaomi doesnโt respond to a magnetic case, try recalibrating the Hall sensor: go to Settings โ The phone. โ All specifications, tap 5 times on Kernel, then select Sensor Test โ Hall Sensor and follow the instructions.
Signs of a Hall sensor malfunction: when to sound the alarm
The Hall sensor breakdown manifests itself differently depending on the Xiaomi model.-7 symptoms that should alert:
- The phone does not respond to the magnetic case (the screen is not locked/unlocked).
- Wireless charging works unstable (it turns on, then turns off).
- The error โIncorrect position on the charging stationโ appears (even if the phone is lying correctly).
- Unintentional locking of the screen without a cover.
- The phone does not detect the docking station (e.g., Xiaomi Smart Dock).
- In the engineering menu, the Hall sensor shows "N/A" or zero.
- Fast battery discharge (the sensor is constantly trying to calibrate).
Xiaomi. 12T Pro and newer faulty Hall sensor may also lead to:
- โ Failure of Face Unlock (the sensor is involved in checking the position of the phone relative to the face).
- ๐ Spontaneous reboot when connected to wireless charging.
To distinguish sensor malfunction from firmware problems, perform the test:
Hold the magnet to the top of the phone (where the camera is)|Try wireless charging at another station|Check the reaction to the magnet case|Run the sensor test using #4636##
-->
If at least one of the points does not work, the Hall sensor is faulty or requires calibration.
โ ๏ธ Note: In Xiaomi models with LPDDR5 In memory (e.g. Xiaomi 13), a faulty Hall sensor can cause artifacts on the screen when wirelessly charging.This is because the sensor chip is located next to the GPU, and interference from the magnetic field affects rendering.
How to check the Hall sensor on Xiaomi indiscriminately
Before you bring your phone to the service, try 4 diagnostic methods at home. They do not require special tools and are suitable for most Xiaomi models:
Method 1: Testing through the Engineering Menu
- Open the Phone app and type ##4636##.
- Select Sensor Test (or Sensor Test).
- Find the Hall Sensor or Magnetic Field line.
- Put the magnet to the phone โ the values should change from 0 to 1 (or from False to True).
Method 2: Checking with a magnetic case
- ๐ฑ Close the cover โ the screen should go out through 1-2 seconds.
- ๐ฑ Open the case โ the screen should turn on (if the function is activated in the settings).
- โ If there is no reaction, the sensor is faulty or disabled in the firmware.
Method 3: Diagnostics of wireless charging
Put your phone on the charging station and observe:
- โ Normal: charging starts immediately, the indicator burns stably.
- โ Problem: Charging is interrupted, the phone is warming, there is an error "Check position".
Method 4: Applications for testing
Install one of the applications:
- CPU-Z (Sensors section).
- Sensor Test (from Smart Projects)
- Physics Toolbox Sensor Suite.
Note: Some applications may not show a Hall sensor if it is integrated into a magnetometer chip.
๐ก
If the Hall sensor doesn't respond to any of the tests, but the phone doesn't fall or get wet, the problem may be the firmware. Try resetting to factory settings (Settings) โ Additionally. โ Reset) or update MIUI.
Repair of the Hall sensor: the cost and can you repair yourself
If the diagnosis confirmed a malfunction of the Hall sensor, you have 3 options:
1. Program reset (free of charge)
Sometimes the sensor stops working because of a firmware failure.
- ๐ Reset the settings to factory (Settings) โ The phone. โ Reset).
- ๐ฒ Update MIUI last-minute.
- ๐ ๏ธ Fastboot phone (instructions for the 4PDA).
This helps in 30% of cases, if the problem is not hardware.
2. Replacement of the sensor in the service center
The cost of repair depends on the model:
| Model | Cost of replacement (โฝ) | Duration of repairs |
|---|---|---|
| Redmi Note 12 Pro+ | 1 500 โ 2 500 | 1-2 days |
| Xiaomi 13/13 Pro | 2 500 โ 4 000 | 2-3 days |
| POCO F5 Pro | 1 800 โ 3 000 | 1 day |
| Black Shark 5 Pro | 3 500 โ 5 000 | 3-5 days |
Prices are indicated for official Xiaomi service centers in Russia (2026), in informal workshops repairs may cost less, but the risk of using non-original parts is higher.
3. Self-substitution (for experienced only)
If you're confident in your skills, you can replace the Hall sensor yourself.
- ๐ง Set of screwdrivers (star) T3, flat-footed 1.5 mm).
- ๐ฅ A hair dryer or soldering station (sensor soldered to board).
- ๐ New Hall sensor (e.g, AH3512 or DRV5032 Xiaomi).
Step-by-step:
- Remove the back cover (use a mediator and hair dryer at 80).ยฐC).
- Turn off the battery (required!).
- Find the Hall sensor on the board (usually next to the charging connector, marked as HALL or MAG).
- Carefully unseal the old sensor and install a new one.
- Get your phone together and test it.
โ ๏ธ Note: In Xiaomi models with IP53/IP68 (for example, Xiaomi 13) After replacing the Hall sensor on its own, the water shield can fly off. To restore the tightness, you will need to replace the adhesive layer and gaskets (cost - from the cost of a gasket). 1 000 โฝ).
What happens if you don't repair the faulty Hall sensor?
Hidden settings of the Hall sensor in MIUI: How to turn on or off functions
In the firmware MIUI 13/14 The Hall sensor is controlled not only at the hardware level, but also through hidden settings:
1. Disabling automatic locking with a case
If you are prevented from automatically locking the screen when closing the case:
- Go to Settings โ Display โ Screen lock.
- Find the option "Cover Lock" (or "Smart Cover").
- Turn off the slider.
2. Adjust the reaction to magnetic accessories
In Xiaomi 13 Ultra and Mix Fold 3, you can configure:
- ๐ต Disabling notifications when the cover is closed.
- ๐ Going silent.
- ๐ก Shutdown Wi-Fi/Bluetooth (battery-saving).
For this:
- Activate Developer Mode (Tap 7 times on Build Number in Settings) โ The phone).
- Go to Settings โ Additional โ For developers.
- Find the Hall Sensor Settings section.
Calibration of the sensor
If the Hall sensor is unstable (e.g., false positives), calibrate:
- Enter the phone application ##36446337##.
- Choose Hall Sensor Calibration.
- Follow the instructions on the screen (usually you need to rotate the phone in different planes).
4. Hidden commands for diagnosis
Useful engineering codes for Xiaomi:
- ##4636## โ Sensor test.
- ##36446337## โ Hall sensor calibration.
- ##232338## โ Verification MAC-Wi-Fi addresses (indirectly checks the sensor if it is connected to antennas).
๐ก
Xiaomi 14 has a new Hall sensor feature, which is to determine the position of the phone in your pocket. If the phone is lying with the screen to the body, the sensor blocks touch taps, preventing random actions. โ Display. โ Pocket regime.