The situation when the screen of Xiaomi smartphone suddenly goes out at the most inopportune moment is familiar to many users: you watch a video, read an article or just hold the phone in your hands, and the display suddenly turns off, requiring re-unlocking. This is not only annoying, but can indicate that system sensors or MIUI software are not working correctly. In most cases, the problem lies in downed calibrations or aggressive energy saving settings.
Before you take a device to a service center, you need to understand the software reasons. Often users accidentally change the settings of the timeout or activate functions that conflict with normal use. The proximity sensor located at the top of the case can be blocked by a security glass or contaminated, which makes the system think that the phone is in your pocket. Understanding the mechanism of operation of these components is the first step to fixing the problem without unnecessary costs.
In this guide, we will take a detailed look at all possible causes, from simple settings to complex system errors. You will learn how to properly calibrate sensors, which hidden menus to use for diagnosis, and why pocket mode can be your enemy.
Timeout Diagnostics and Display Settings
The most obvious, but often overlooked, reason is the incorrectly set time before the screen is turned off. In the MIUI shell, these settings can get lost after updating or installing third-party launchers. The standard value is usually 30 or 60 seconds, but if it is set for 10-15 seconds, the screen will go out too quickly when reading long texts.
Check the current settings in the settings menu. Sometimes the system offers a Smart Mode that analyzes your actions but doesn't work properly; better set a fixed value to eliminate software glitches of the algorithms. Even if the maximum time doesn't help, the problem is deeper.
- π Go to Settings. β Screen and brightness β Sleep mode and select a value of at least 1 minute.
- π Turn off the Adaptive Brightness feature if it is unstable and darkens the screen ahead of time.
- π Check if Reading or Eye Protection modes are activated, which can change backlight behavior.
Importantly, some third-party apps can intercept the display, such as ad-blocking programs or battery savers, which can force the screen to go out. If a problem occurs after installing new software, try removing it.
Problems with the proximity sensor and its calibration
The most common technical reason that the screen goes out when you're lifting it to your ear or just in your hand is because it's located next to a speaker, and if it gets light, shadow from your finger, or dirt, the phone thinks you've put it on your ear, and turns off the display to save energy and prevent accidental tapping.
Xiaomi and Redmi smartphones often have software calibration failures on the sensor. Even if the glass is clean and the protective film does not overlap the sensor, the system can give false positives. There is a built-in engineering menu available through a standard dialer to correct the situation.
To enter diagnostic mode, dial ##6484##. In the CIT menu that opens, look for the "Proximity sensor." Follow the instructions on the screen: you usually need to close the top of the phone with your palm and then remove it. If the test fails or values don't change, click Calibrate.
βοΈ Testing of the proximity sensor
β οΈ Warning: After calibration, be sure to restart the device. CIT The menu shows a constant value of "1.0" or "5.0" regardless of whether the sensor is closed or not, you may need to replace the module or solder the plume.
The influence of pocket and cover regime
Pocket mode is designed to prevent accidental calls while the phone is in the bag. However, in practice, it often works too aggressively. If the algorithm is wrong, the screen can go out when you just hold the phone in your hand in a certain way or use a tight case.
Magnetic fasteners on flip cases can also cause a false magnetic sensor to act, which is often associated with the logic of locking the screen, in which case the system responds to the magnetic field as a signal to place the device in the pocket.
- π Turn off βPocket Modeβ in the Settings menu β Lockdown and protection β Pocket mode.
- π Remove the case and check if the problem persists. If not, replace the accessory with a more compatible one.
- π Make sure that the magnetic insert in the case is not directly above the sensor area at the top of the smartphone.
Users often ignore this point, considering the function useful, but in reality it causes more problems than it solves, especially for models with a cut-out-drop shape or βbangsβ, where the sensors are tightly arranged.
Energy saving and background processes
Android and MIUI have complex power management algorithms. If the phone sees you're not interacting with the screen (no taps or swipes) for a given time, it dims the brightness or dims the display. Sometimes that touchscreen sensitivity threshold gets knocked down.
Also, some βoptimizersβ and antiviruses may force the screen to turn off if they think the app is running too much, a fact that often happens with navigators or reading apps that keep the screen on for long periods of time.
| Function | Location on the menu | Recommendation |
|---|---|---|
| Battery and productivity | Settings β Battery | Select the "No Limits" mode |
| MIUI Optimization | For developers | Try to disable (requires rebooting) |
| Adaptive brightness | Settings β Screen | Use manual control |
Check the settings of the specific program that is turning off the screen. MIUI has Advanced Settings for each application. Go to Settings β Apps β All Apps β [App needed] β Battery and select No Limits. This will prevent the system from strangling the process and turning off the screen.
Failures in the operation of the sensor and touch screen
Sometimes the problem is not the software, but the physical fault of the touchscreen. If the touch layer "gluts" and stops registering touches, the system perceives this as a lack of user activity and extinguishes the screen according to a timeout.
You can check this with a special test. In the engineering menu ##6484##, select Touch sensor or Single touch test. Run your finger over the entire surface of the screen. The line should be flat, without breaks or jumps. If the sensor does not respond in certain areas, the screen will go out when you hold the phone in those places.
Static electricity is also worth mentioning: In dry weather, the accumulated static charge can cause false sensor alerts (βghost touchβ), leading to chaotic interface behavior, including a sudden switch off of the display.
- β‘ Wipe the screen with an antistatic wipe.
- β‘ Remove the protective glass if it is cheap and does not have an oleophobic coating.
- β‘ Reboot the device to reset the power controller and sensor.
β οΈ Note: If the touchscreen test shows dead zones in the corners or in the center, the software methods will not help.
Hidden settings of the developer and ADB
For advanced users who are not afraid to get into the system settings, there is a possibility of fine-tuning the screen behavior. In the βDevelopersβ menu (which you need to activate by quickly clicking on the build number in βAbout Phoneβ) there are parameters that affect animation and process life time.
But the most powerful tool is ADB (Android Debug Bridge) debugging, and you can send a command through your computer that will stop the system from going to sleep while the phone is connected to your PC or even permanently, which is a last resort, but it works when other methods are powerless.
To do this, connect the phone to the computer, enable debugging over USB and enter the command into the console:
adb shell settings put system screen_off_timeout 2147483647This command sets the screen timeout to the maximum possible value (about 24 days). To return everything as it was, use a default value, such as 30,000 (30 seconds):
adb shell settings put system screen_off_timeout 30000