Modern Xiaomi, Redmi and POCO smartphones come with a host of smart features designed to make everyday use of the gadget easier. One such useful option is the so-called โmode in your pocketโ that prevents accidental taps and dialing when the device is in your bag or pocket. Many users do not even suspect that this feature may be disabled by default or work incorrectly due to the features of the MIUI or HyperOS firmware. Activating the correct behavior of the system when placing the phone in a dark space is not just a matter of convenience, but also a security feature that protects from calling emergency services or important contact.
The technology is based on a bunch of software algorithms and physical sensors, most notably the proximity sensor. The proximity sensor is a small module, usually located at the top of the screen, that responds to the proximity of foreign objects. When you bring the phone to your ear while you're talking, the screen goes out so that your cheek doesn't drop calls and press buttons. The same principle applies to the mode in your pocket: the system analyzes the absence of light and proximity of the obstacle by blocking the touchscreen. However, if the MIUI or HyperOS settings are set incorrectly, the screen can continue to charge and burn.
In this guide, we will take a look at how to find hidden or explicit lock settings in your pocket, how to calibrate sensors for precise operation, and what to do if the function stops responding to putting your smartphone in your pocket. You will learn about the nuances of working with security glasses that often cause failures, and learn how to use the engineering menu for deep diagnostics. Understanding these processes will allow you to fully control the behavior of your Xiaomi in various situations.
The principle of operation of sensors and system logic
The fundamental basis for implementing the lock function when in the pocket is the correct operation of the touch group. In Xiaomi smartphones, the optical sensor is responsible for this, often combined with the speaker or hidden under the screen in new models. The system constantly polls this sensor, reading the light level. When the phone enters the pocket, the light level drops sharply to minimal values, and if the proximity of the object (fabric) is simultaneously fixed, the operating system initiates a software lock of the interface.
It's important to understand that pocket mode is not a separate physical switch, but a software add-on to the sensors. In MIUI firmware, the algorithm can be configured aggressively, locking the screen at the slightest dimming, or, conversely, requiring complete isolation from the light. Sometimes users confuse this feature with a "pocket mode" in call settings, which is designed solely to prevent accidental taps during voice communication, ignoring locking in sleep mode.
โ ๏ธ Warning: Do not glue the top speaker area with dense opaque stickers or decorative elements.This will cause the proximity sensor to constantly actuate, and the screen will go out immediately after turning on, making the phone almost inoperable.
Modern AI algorithms in the HyperOS shell also analyze the accelerometer and the gyroscope. If the phone is lying still in the dark, the system can decide that it is lying on the table under the blanket, and not lock the touchscreen so as not to interfere with the alarm or notifications. Which is why activating the mode in the pocket often requires not only the absence of light, but also a certain position of the device or pre-activation of the screen.
Where to find the settings in your pocket
Finding the right switch can be a quest, because the menu location depends on the operating system version and regional firmware. In most current versions of MIUI and HyperOS, the path to the main setting is as follows: you need to open the Settings application, go to Lock the screen and find Mode in your pocket. Activating this slider allows the system to automatically activate lock when you place the device in your bag.
However, there is a second, more important for many users, call settings layer, which is the Settings path โ Apps โ App settings โ Phone (or through the dial menu, clicking three dots and selecting Settings), where you need to find the Incoming Calls section and activate the option in your pocket mode, which is the one that is responsible for keeping the phone from answering calls when pressed against the body through the fabric.
Some global firmware versions may have different names or hidden items, such as the feature being called "Preventing accidental turn-on" or integrated into the "Special Features" section. If you don't find these items, your version of the shell may not support software emulation, and relies solely on hardware sensors that operate automatically.
โ๏ธ Checking the lock settings
It is worth noting that in some custom builds or Chinese versions of firmware without Google service, packages may differ, in such cases, it is recommended to use a search by settings: just type the word โpocketโ or โpocketโ in the search bar on the main settings screen, and the system will redirect you to the desired switch.
Calibration of the proximity sensor through the engineering menu
If you're settings on, but you still don't respond to your pocket, or it goes out all the time, you need calibration. It's a procedure to reset the sensor to factory values. For Xiaomi and Redmi, there's a universal way to log into the engineering menu that doesn't require you to get superuser rights (Root). You need to open the Phone app and enter a special combination of characters.
Type the following code into the dial box: ##6484##. Once you enter the last star, the CIT menu will automatically open. In the test list, you need to find the item associated with the proximity sensor, which can be called "Proximity Sensor", "PS" or "Proximity Sensor".
Entry command to the engineering menu: ##6484##
Alternative command for some models: ##4636##In the window that opens, you will see the current sensor value (usually 0.0 or 5.0). If you hold your finger to the top of the screen, the value should change. To calibrate, press the Calibrate button at the bottom of the screen. First remove your hand from the sensor and press OK, then close the sensor with your hand and press OK again. After successful passage, the phone will vibrate, and the message "Calibration Success" will appear in the status bar.
โ ๏ธ Warning: In the engineering menu, don't press the Pass or Fail buttons without running a test, and never choose the option to reset all memory or Factory Reset if you're not sure of your actions.
The influence of protective accessories and screen
One of the most common causes of malfunctioning in the pocket is the wrong security accessories. The protective glass or film that covers the top of the display can distort the readings of the optical sensor. This is especially true for black-framed or tinted glasses that overlap the sensor area. Even microscopic contamination in this area leads to the phone โthinkingโ that it is constantly in the pocket.
Owners of models with subscreen sensors (when the sensor is hidden under the display) should be especially attentive to the quality of the sticker. Cheap glass can have an air layer or glue that changes the refractive index of light. If after sticking a new accessory, the phone has ceased to respond correctly to the approach, try to gently wipe the top face or, in extreme cases, replace the glass with a thinner or with a cutout under the sensor.
| Accessory type | Impact on the sensor | Recommendation |
|---|---|---|
| Hydrogel film | Minimal, almost imperceptible. | Recommended for models with subscreen sensor |
| Protective glass (full) | High, can block the IR ray | Check for a cutout or clear area |
| Magnet-book case | Critical, magnet knocks down sensors | Use only certified demagnetization covers |
| Thick tempered glass | Average, depending on transparency | Recalibration is required after the labeling |
Also worth mentioning is a smart window or magnetic fastener case flip, which can interfere not only with the compass but also with the Hall sensor, which is often paired with a proximity sensor to determine the position of the lid, and which results in chaotic screen behavior when the cover is closed or placed in the pocket.
Additional blocking methods and widgets
In addition to standard system settings, Xiaomiโs ecosystem offers alternative ways to prevent accidental clicks. The Security app (green zipper icon) that is pre-installed on all devices of the brand sometimes has advanced locking settings. In addition, in the Accessibility section, you can find the One-Hand Management or Pocket Mode feature, which changes the location of interface elements, making them less accessible to the casual.
For advanced users who want to have full control over when the screen should go out, there are apps from Google Play, such as Pocket Mode or Proximity Sensor Reset. These tools allow you to create scenarios: for example, lock the touchscreen only at night or only when the navigator is running. However, it is worth remembering that third-party applications consume more energy, since they must constantly poll sensors in the background, as opposed to system integration.
Another method is to use automation scenarios if your version of MIUI supports the "Mi Scenarios" app (or integration with Google Home/IFTTT). You can set the rule: "If the light level < 5 lux and the phone is not moving for 10 seconds โ Enable Do Not Disturb mode and lock the screen." This creates a mode effect in your pocket with software tools.
โ ๏ธ Attention: Installing multiple optimizer or blocker applications can cause a conflict with the PowerKeeper system service, resulting in accelerated battery discharge.
Frequently encountered problems and their solution
Despite the fact that the mechanisms are fine, users sometimes face situations where the screen is behaving unpredictably, such as the phone is on the table, but the screen goes out as soon as you put your hand up, which is a classic sign of sensor contamination or calibration, which was discussed above. Another problem is phantom touches, where the phone vibrates in your pocket from an incoming message, but the screen does not light up, or vice versa, it burns and heats up.
If calibration didnโt work, try resetting sensors through the Recovery Mode, but without losing personal data (Wipe Cache Partition).In some cases, updating the firmware to the latest stable version helps, as Xiaomi engineers regularly release patches that correct sensor sensitivity. Itโs also worth checking if the screen sensitivity mode (often used for gloves) is turned on, which can conflict with the pocket mode.
In rare cases, the problem lies in the hardware: the sensor plume may have gone off when it fell, or the module itself failed. If after all the software manipulations, removing the protective glass and rebooting the phone continues to ignore being in the pocket, you probably need a diagnosis in the service center.