How to turn off the fading screen on Xiaomi

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

Done: 0 / 1

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.

ParameterNormal value.Problematic significanceAction.
Distance (Distance)5.0 cm or more0.0 - 1.0 cmWipe the screen, take off the case.
Status (Status)Far (far away)Near (Close)Calibrate it.
Raw DataChanges.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?
If the sensor continues to show "Close" after calibration, try to gently warm the top of the screen with a hairdryer at a minimum temperature for 30 seconds. Sometimes the glue under the glass can shift and overlap the sensor.

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.

📊 How do you most often use a phone with a screen on?
Reading books/articles: Navigator in the car: Recipes in the kitchen: Like an electronic watch

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.

Frequently Asked Questions (FAQ)

Can I turn off my sleep timer completely without root rights?
You can't turn off the timer completely (set a "Never" value) in the standard settings. The maximum value is limited by the manufacturer. However, you can use the developer mode "Don't turn off the screen" when charging or third-party applications that emulate activity.
Why does the screen go out when I set 5 minutes?
It's probably a proximity sensor that's going on, and check if the top edge of the screen is covered with a finger, a cover, or a safety glass, and it could be a software failure that's solved by calibrating the sensor through an engineering menu.
Is it harmful to keep the screen on all the time?
Yes, it can cause pixels to burn out (especially on AMOLED) and overheat the device, and it also significantly shortens battery life due to constant charge-discharge cycles if the phone is connected to the network.
Are the timer settings reset when you update MIUI?
Usually, user settings are saved. However, if the update is major (for example, switching from MIUI 13 to 14 or HyperOS), the system can reset the display settings to factory values, and they will have to be checked again.
How to extend the life of the screen with prolonged use?
Use dark themes, reduce brightness to a comfortable minimum, and enable autobrightness. Periodically change static elements on the screen or use screensavers, if such a feature is available in your version of the OS.