Sleep mode on Android is an energy-saving feature that automatically locks the screen after a specified period of inactivity. For most users it is useful, but there are situations when constantly turning off the screen is annoying: while reading long articles, viewing recipes in the kitchen, using the phone as a navigator or a monitor for IP cameras. Fortunately, Android provides several ways to disable or customize this mode to suit your needs - from standard settings to hidden options for advanced users.
In this article we will examine all current methods disabling sleep mode on modern smartphones (including Xiaomi, Samsung, Realme, Google Pixel and others), as well as We'll tell you how to bypass manufacturer restrictions that sometimes block changes to these parameters. You will learn what settings affect the blocking time, how to use ADB for deep customization, and what applications will help automate the process. Important: some methods require developer rights or root access โwe will note them separately.
If you are looking method completely remove sleep mode without loss of functionality (for example, to use the phone as a permanent display), pay attention to the sections about Stay Awake in developer mode and specialized applications. For owners of devices with aggressive battery optimization (for example, MIUI or ColorOS), we have prepared separate instructions.
1. Standard disabling of sleep mode through Android settings
The easiest way to change the screen lock time is to use the built-in system settings. This method works on all devices, but the interface may differ slightly depending on the shell (for example, One UI y Samsung or MIUI y Xiaomi).
To find the sleep mode settings:
- ๐ฑ Open the application "Settings"** (gear icon on the main screen or in the application menu).
- ๐ Go to the section
Screen(sometimes calledDisplayorScreen lock). - โฑ๏ธ Find the item
Sleep mode,Screen timeoutorAuto-lock. - ๐ข Select the maximum value (usually
30 minutesorNeverif available).
On some devices (for example, Samsung Galaxy s One UI 6+), the path may look like this: Settings โ Screen โ Screen timeoutIf you have Xiaomi or Redmi, look Settings โ Display โ Sleep mode. Important: on some firmware the maximum time is limited 10 minutes this is an artificial limitation of the manufacturer, which can be circumvented in other ways (see the following sections).
If your phone does not have the option Never, this means that the manufacturer has blocked it in In order to save battery power, in this case, proceed to the following methods.
2. Using developer mode to disable sleep mode
Android hides some useful functions behind developer mode. One of them is the option Stay Awake (โKeep the screen onโ), which allows the screen to remain on when connected to a charger. This is an ideal option if you need your phone not to be locked while charging (for example, when using it as a navigator in a car).
How to enable Stay Awake:
- Activate the mode. developer:
- ๐ฑ Go to
Settings โ About phone(orAbout device). - ๐ง Find the item
Build numberand click on it 7 times in a row. A notification โYou have become a developer!โ will appear.
- ๐ฑ Go to
For developers (usually at the bottom of the list).Stay Awake ("Do not turn off the screen")Now the screen will not lock while the phone is connected to charging Please note: this. method does not work on battery โonly when powered from the mains. If you need to disable sleep mode completely, read on.
The charger is connected to the phone
Developer mode is enabled (7 clicks on "Number" assembly")
The "Stay Awake" item is found in the settings for developers
The phone is not discharged below 20% (recommended)-->
โ ๏ธ Attention: On some devices (for example, Huawei or Honor) optionStay Awakemay be missing or named differently (for example,The screen is always on. enabledIf you do not find it, check for firmware updates or use alternative methods.
3. Applications to disable sleep mode
If the built-in settings do not allow you to disable sleep mode, third-party applications come to the rescue. They are especially useful for devices with aggressive battery optimization (for example, Xiaomi, Oppo, Vivo), where the manufacturer limits the maximum screen time.
Top 3 proven applications for controlling sleep mode:
| Application | Functions | Requires root? | Link (Google Play) |
|---|---|---|---|
| Keep Screen On | Holds the screen enabled, works in the background, supports exceptions for individual applications | โ No | com.urovozk.kso |
| Caffeine | Activates the โcaffeine modeโ (the screen does not turn off), there is a widget for quick activation | โ No | com.urbandroid.sleep.caffeine |
| Stay Alive! | Advanced settings: disable scheduled sleep mode when connected to Wi-Fi/Bluetooth | โ ๏ธ Partially (for some functions) | com.synetics.stay.alive |
How to use Keep Screen On:
- ๐ฅ Install the application from Google Play.
- ๐ง Launch it and grant permission on
Overlay on top of other applications(necessary for operation). - โก Turn on the switch
Keep Screen On. - โ๏ธ In the settings you can select for which applications the screen should remain on (for example, only for Google Maps or YouTube).
- ๐ฑ Go to
Settings โ Applications โ Permissions โ Autorun. - ๐ Find Keep Screen On and enable autostart.
- ๐ Also add it to
Battery optimization โ No restrictions. - ๐ฅ๏ธ Computer with installed
ADB drivers(you can download from official Android website). - ๐ฑ Enabled developer mode i USB debugging on the phone.
- ๐ USB cable (preferably original).
The advantage of such applications is that they do not require root access. data-i="151">autorun exceptions and work on most devices. However, some manufacturers (for example, Xiaomi) can block their operation through battery optimization. In this case, add the application to autorun exceptions:
4. Disabling sleep mode via ADB (for advanced users)
If you need completely remove the system-level screen lock time limit, you can use ADB (Android Debug Bridge) A computer with installed
What you will need:
Step-by-step guide:
- ๐ฑ On your phone, enable
USB debuggingin the developer settings. - ๐ฅ๏ธ Connect your phone to your computer and confirm your trust in the device (a request will appear on the smartphone screen).
- ๐ Open
Command Prompt(Windows) orTerminal(macOS/Linux) in the folder withADB. - ๐ง Enter the command to check the connection:
adb devicesThe serial number of your device should appear.
- ๐ข Now enter the command to disable sleep mode:
adb shell settings put global stay_on_while_plugged_in 3This command forces the screen to remain turned on always, regardless of charging.
To return the default settings, use:
adb shell settings put global stay_on_while_plugged_in 0
โ ๏ธ Attention: Commands ADB affect system settings. Incorrect use may result in malfunctions. If you are unsure, back up your data before changing settings. Also note that after a reboot or system update, the settings may be reset.
What to do if ADB does not see the device?
1. Make sure that ADB drivers are installed (download Platform Tools from the Android website).
2. Try a different USB cable (some cables are for charging only).
3. Enable File transfer (MTP) when connecting to a PC.
4. Restart your phone and computer.
5. If you are using Windows, check Device Manager for exclamation marks next to Android Device.
5. Setting up sleep mode through hidden engineering menus
Some manufacturers (for example, Samsung, Xiaomi, Meizu) hide additional screen settings in engineering menus. These menus are not intended for ordinary users, but with their help you can change parameters that are not available in the standard interface.
How to open the engineering menu on Samsung:
- ๐ Open the application "Phone"**.
- ๐ข Enter the code:
##4636## - ๐ง Go to section
Battery informationorBattery settings. - ๐ Search parameters associated with
Sleep ModeorScreen Timeout. Be careful - changing other parameters may lead to unstable operation!
For Xiaomi/Redmi try the code:
##6484##
In the menu that opens there may be an item Sleep Mode Control - set the value Disable.
โ ๏ธ Attention: Engineering menus contain parameters that devices critical for operation. Changing unclear settings can lead to loss of warrantyoverheating, rapid battery drain, or even brick (inoperability) of the phone. Make a backup copy before experiments!
Before entering the engineering menu, take a photo of the current screen and battery settings. This will help restore values โโif something goes wrong.
6. Alternative methods: automation and bypassing limitations
If none of the above methods worked (for example, due to strict firmware limitations), you can use a trick:
- ๐ค Use Tasker or MacroDroid to simulate activity:
These apps can send
INPUT_TAP(virtual touches) every 30 seconds, tricking the system into resetting the sleep timer. Minus: increased battery consumption. - ๐ Enable โCinema Modeโ (on some devices):
For example, on Samsung in
Settings โ Additional functions โ Cinema modeyou can disable automatic screen locking during playback video. - ๐ Connect the phone to the power bank:
Some devices do not lock the screen if Detect is charging, but not from the network. Try using power bank with support
Quick Charge.
For Xiaomi and other devices with MIUI there is one more trick:
- ๐ฑ Go to
Settings โ Battery and performance โ Battery optimization. - ๐ Find the application for which you want to disable sleep mode (for example, Google Maps).
- โก Select
No restrictions. - ๐ Reboot phone.
This will not disable sleep mode completely, but the screen will remain on longer in this application.
7. Common problems and their solutions
Here are the typical problems and ways to solve them:
| Problem | Possible reason | Solution |
|---|---|---|
| Sleep mode returns after reboot | Reset settings ADB or applications |
Repeat the command ADB or add the application to startup |
| The screen turns off after 10 minutes, although they cost 30 | Battery optimization from the manufacturer | Disable optimization for the current application in the battery settings |
Stay Awake not works |
The manufacturer has blocked the function | Use ADB or third-party applications |
| The screen hold application does not start | Restrictions MIUI/ColorOS | Add it to autorun and optimization exceptions |
If none of the methods helped, perhaps your firmware has hardware limitationsIn this case, there are two options left:
- ๐ Update firmware to the latest version (sometimes manufacturers remove limitations). data-i="285">root access
- ๐ ๏ธ Install custom firmware (For example, LineageOS), where there are no such restrictions. This requires unlocking the bootloader and
root access.
On devices with MIUI 14+ and ColorOS 13+ manufacturers have tightened control over sleep mode. If standard methods do not work, use a combination ADB + third-party application.
FAQ: Frequently asked questions
โ Why is there no "Never" option in the sleep mode settings on my Xiaomi?
Xiaomi artificially limits the maximum screen lock time to 30 minutes in order to save battery. To remove this limitation, use ADB (section 4) or applications like Stay Alive! (section 3). Also check the settings Battery โ Battery optimization - there may be additional restrictions enabled.
โ Will the battery drain faster if you turn off sleep mode?
Yes, the screen is one of the main consumers of energy. If you leave it on all the time, battery consumption will increase by 20โ50% depending on the brightness and model of the phone. We recommend:
- ๐ Use. disabling sleep mode only when connected to charging.
- ๐ Reduce screen brightness to a comfortable minimum.
- โก Enable dark theme (AMOLED screens consume less power when displaying black).
โ Is it possible to disable sleep mode without root access?
Yes, most of the methods in this article (settings, ADB, applications) do not require root. However, on some devices (for example, Huawei c EMUI) you may need to unlock the bootloader to fully disabling restrictions.
โ Why did sleep mode turn on again after a firmware update?
Updates often reset user settings, including settings ADB and some system tweaks After the update:
- Repeat the command
ADB(section 4). - Check permissions for applications holding the screen.
- Update the applications themselves (for example Keep Screen On) to the latest version.
โ How to disable sleep mode only for a specific application?
Use applications Keep Screen On or Caffeine:
- ๐ฅ Install the application and open it.
- ๐ง Go to settings and select
ExceptionsorWhite list. - โ Add the desired application (for example, Waze or YouTube).
- ๐ Activate the main function of the application.
Now the screen will not be blocked, only when this application is active.