When a smartphone’s display suddenly goes out while reading a long article or viewing a recipe in the kitchen, it’s familiar to every Xiaomi owner, because of a built-in inactivity timer that saves battery power and prevents the matrix from burning out. However, in some use cases, such “care” of the system becomes a serious obstacle to comfortable work with the device.
Users often look for a way to turn this feature off completely, but the MIUI or the new HyperOS interface doesn’t provide a direct “Never” button in standard settings. Instead, the system offers a limited range of time, the maximum value of which is often not enough for specific tasks.
In this article, we will take a look at all the methods available to adjust the backlight time, from standard menus to the use of hidden engineering codes, and learn how to calibrate sensors properly so that the screen goes off only when it is really necessary, not at the most inopportune moment.
Standard settings of lighting time in MIUI
The first step should always be to check the basic parameters of the system. Smartphone manufacturers limit the maximum time of the display without touching to minimize the risk of burn-in pixels, especially on AMOLED-matrixes. In the standard menu, you will not find the option to turn off the timer, but you can set the maximum possible value.
To access settings, go to Settings → Screen and Brightness → Sleep mode. Here is a list of time slots, usually 15 seconds to 5 or 10 minutes. Choosing the maximum value is the only standard solution for most users who just need to increase the time to quench.
⚠️ Note: Setting the maximum lighting time AMOLED-In the case of a static interface, you may be at increased risk of residual images of static interface elements.
If the standard maximum is not enough, you will need to use additional methods described below.It is important to understand that the complete absence of a sleep timer can lead to battery drain in a few hours if you forget to lock the device manually.
💡
Use the brightness enhance feature only when necessary, as it also affects the light sensor’s algorithms and can indirectly affect screen behavior.
Use of the “Do Not Turn Off Screen” Mode for Developers
There is a hidden feature in the developer menu that allows you to keep the screen on all the time while your smartphone is connected to a power source, ideal for those who use the phone as a desktop clock, in-car navigator or smart home control panel.
To activate this mode, you first need to unlock the developer menu. Go to Settings → About Phone and quickly click 7 times on the MIUI Version (or OS Version). After the notification that you have become a developer, go back to the main settings menu, select Additional → For developers.
☑️ Activation of the developer mode
In the list that opens, find the Do Not Turn Off (or Stay Wake) switch. Activating this option means that the display will burn indefinitely, but only if the charger is connected. Once you turn off the cable, the sleep timer will work according to the usual settings.
Solving the proximity sensor problem
Often users confuse the sleep timer with the approach sensor.The screen can go out instantly if you hold the phone incorrectly or if there is contamination on the protective glass.The sensor responds to objects covering the top of the screen and considers this a signal that the phone is near the ear during a conversation.
To diagnose and calibrate the sensor, there is a special engineering menu in the MIUI shell. Open the Phone app and type ##6484##. In the menu that appears, select Proximity sensor. Follow the instructions on the screen: close the top with your palm and remove it.
| Parameter | Normal value. | Problematic significance | Action. |
|---|---|---|---|
| Distance (Distance) | 5.0 cm or more | 0.0 - 1.0 cm | Wipe the screen, take off the case. |
| Status (Status) | Far (far away) | Near (Close) | Calibrate it. |
| Raw Data | Changes. | It doesn't change. | Reset the device |
If calibration doesn't help, it could be a software failure or physical damage, and in some cases, resetting the sensor settings through the ADB-It's also worth checking if the security glass is too high, blocking the sensor.
What do you do if the sensor is stuck?
Third-party applications for illumination control
Since you can’t turn off the timer completely (except in the charging developer mode) with standard tools, many users turn to third-party software. There are many utilities in the Google Play Market that emulate screen touches or use system APIs to prevent them from going to sleep.
One popular solution is the Keep Screen On app, or the "Caffeine" analogues, which works by creating an invisible layer on top of the interface that prevents the system timer from going off, and some applications require special permissions through ADB.
- 📱 Keep Screen On: Simple app with widget for quick on/off mode.
- ☕ Caffeine: Adds a button to the Quick Settings Panel to block sleep for a given time.
- 🛡️ Screen Alive: Allows you to customize exceptions for specific applications so that the screen does not go out only in them.
Using such programs increases battery consumption, since the processor and display do not go into energy-saving mode, and some antiviruses or the MIUI system itself can aggressively unload such applications from memory, so they need to be added to the list of optimization exceptions.
Set up exceptions for individual applications
Modern versions of Android and HyperOS shells allow you to flexibly adjust the behavior of the screen for different scenarios. Instead of global shutdown of the timer, it is wiser to configure the system so that the screen does not go out only in the right applications, such as in the navigator or reader.
Go to Settings → Screen and brightness. Some firmware versions have Read Mode or application-specific settings. If you don't have that option, you can use the Second Space function or profile where the timer settings will differ.
Also worth paying attention to the settings of the application itself. Many programs for reading (for example, Moon + Reader) or navigation (Yandex.Maps, Google Maps) have their own built-in setting “Do not turn off the screen”, Activating this option within the application takes priority over system settings and is the most secure way.
⚠️ Warning: When installing third-party apps from unknown sources, be careful. Check the permissions the program requests. Access to "over other windows" is necessary for sleep blockers to operate, but it can also be used by malware.
The Impact of Design Theme and Always On Display
The screen behavior may depend on the theme you set. Some third-party themes downloaded through the Themes app may contain scripts that conflict with the standard sleep timer settings. If the problem occurs after you change the design, try going back to the standard theme.
The feature is always on display (AOD). On some Xiaomi models activation AOD It can affect the logic of the main screen cancelling. Check the settings in the Settings section. → Screen and brightness → Always On Display. Try changing the schedule or display style to eliminate software conflict.
💡
Design themes conflict is a common but overlooked cause of sleep timer malfunction, and returning to stock theme often solves the problem without resetting the data.
If you use live wallpaper, they can also prevent the device from going into deep sleep, consuming more energy and affecting timers. For diagnostics, try setting a static black image and checking if the screen behavior changes.