Standby mode (or sleep mode) on Android is a power-saving mechanism that automatically turns off the screen, suspends background processes, and limits device performance when inactive. For most users, this feature is useful: it extends battery life and reduces processor heat. However, in some cases, automatic shutdown becomes a problem - for example, when the smartphone is used as navigator, media player or streaming server.
In this article we will look all possible ways to disable standby mode from standard settings to hidden commands for advanced users. You will learn how to block sleep mode through Settings, ADB, engineering menu and even using third-party utilities. We will separately consider the reasons why Android may ignore your settings and give recommendations for optimizing power consumption without losing functionality.
What is standby mode on Android and why disable it
Standby mode (English sleep mode or standby) is activated on Android devices after a specified period of inactivity. In this state:
- ๐ต The screen goes blank (even if connected to charging).
- โธ๏ธ Background processes are suspended (synchronization, downloads, some notifications).
- ๐ The processor goes into low power mode (clock speed decreases frequency).
- ๐ก Communication modules (Wi-Fi, mobile network) can be turned off to save battery.
For normal use this is convenient, but there are scenarios where the standby mode interferes:
- ๐ Navigation in the car: the screen goes out in the middle of the route, even if it is connected to the cigarette lighter.
- ๐ต Playing music/video: the player stops after 5-10 minutes.
- ๐ฅ๏ธ Use as a server (for example, for Kodi, Plex or Termux).
- ๐ง Debugging or testing softwarewhere constant activity of the device is required.
It is important to understand that completely disabling the standby mode increases battery consumption 1.5โ3 times (depending on the model). (for example, Samsung Galaxy with Exynosprocessors) this can lead to overheating during prolonged operation.
Method 1: Standard Android settings (without root)
The simplest method is to use the built-in system options. It is suitable for most devices on Android 8.0 Oreo and newer, including Samsung One UI, Xiaomi MIUI, Google Pixel and other shells.
Instructions:
- Open
SettingsโScreen(orDisplay). - Find item
Sleep mode(may be calledScreen timeoutorScreen off). - Select the maximum value - usually this
30 minutesorNever(if available). - For devices Samsung: go to
Settings โ Device care โ Battery โ Power modesand disableAdaptive battery.
Set maximum screen timeout|Disable adaptive battery|Check energy saving settings in applications|Restart device-->
On some firmwares (for example ColorOS from Oppo/Realme) option Never can be hidden. In this case:
- Activate
Developer mode(press 7 times onBuild numberinSettings โ About phone). - Return to
Settings โ System โ For developers. - Find
Disable sleep mode(Stay Awake) and enable it.
โ ๏ธ Attention: On devices with Android 12+ optionStay Awakemay not work correctly if the mode is enabledSaving battery powerDisable it in the battery settings.
Method 2: Using ADB to force shutdown (without root)
If the standard settings do not help (for example, on Xiaomi s MIUI or Huawei s EMUI), you can use Android Debug Bridge (ADB). rights root, but activation is required USB debugging.
Step-by-step guide:
- Download and install ADB Tools on your computer.
- Connect your smartphone via USB, enable
USB debugginginSettings โ For developers. - Open command line (Windows) or terminal (macOS/Linux) in folder with
adb.exe. - Enter the command to check the connection:
adb devicesThe name of your device should appear.
- Run the command to disable sleep mode:
adb shell settings put global stay_on_while_plugged_in 3where
3means "always on when connected to charging or USB."
To return standard behavior, use:
adb shell settings put global stay_on_while_plugged_in 0
| Parameter value | Device behavior |
|---|---|
0 |
Sleep mode works by default (screen timeout). |
1 |
Screen does not go off only when connected to network (charging). |
2 |
The screen does not go off only when connected to USB (computer). |
3 |
The screen does not go off at any connection (network + USB). |
โ ๏ธ Attention: On some devices (for example, Samsung Galaxy S22+ c One UI 5.0) the ADB command may be reset after reboot. In this case, useTaskerorMacroDroidto apply automatically. settings.
Method 3: Engineering menu and hidden codes (for experienced ones)
Manufacturers often hide additional energy consumption settings in engineering menuIt is accessed through special codes, but wrong actions can lead to system failure or loss of warranty.
Instructions for popular brands:
- ๐ฑ Samsung: Enter in the phone application
#9900#(SysDump) or#0*#(display test In some models (Galaxy S23 Ultra) works*#7353#. - ๐ฑ Xiaomi/Redmi/Poco: Use
##4636##โBattery informationโ disableOptimization batteries. - ๐ฑ Huawei/Honor: Code
##2846579##โProjectMenuโBackground Settings. - ๐ฑ Google Pixel: Code
##4636##โUsage statisticsโ resetApp standby.
What happens if you change the settings in the engineering menu?
Some parameters (for example, Fast Dormancy or CPU Throttling) directly affect the stability of the device. Changing them can lead to:
- Accelerated battery discharge (up to 50% per hour in standby mode).
- Spontaneous reboots when heated.
- Loss of mobile network (if power-saving protocols are disabled).
It is recommended to write down the original values before making changes or use applications like MTK Engineering Mode for secure access.
On devices with processors MediaTek (for example, Realme 9 Pro, POCO X4 Pro) you can use the application MTK Engineering Mode from Google Play:
- Install and open the application.
- Go to
MTK Settings โ Hardware Testing โ Sleep Mode. - Disable options
Deep SleepiDoze Mode.
Method 4: Third-party applications for controlling sleep mode
If you need to flexibly configure the sleep mode (for example, disable it only for certain applications), specialized utilities will help. We tested 5 popular solutions:
| Application | Functions | Requires root? | Link |
|---|---|---|---|
| Stay Alive! | Disables sleep mode for selected applications, controls brightness. | No | Google Play |
| Caffeine | Keeps the screen on according to a schedule or when connected to charging. | No | Google Play |
| Keep Screen On | A simple application for forcing the screen to turn on. | No | Google Play |
| Tasker | Advanced automation (you can disable sleep mode by triggers). | No (but plugins are needed) | Google Play |
| Greenify | Manages background processes, prevents going into deep sleep. | For some functions - yes | Google Play |
Example settings Stay Alive!:
- Install and open the application.
- Enable the option
Keep Screen On. - In the section
Appsselect applications for which you want to disable sleep mode (for example, Google Maps or VLC). - Activate
Battery Optimization Bypassto bypass Android restrictions.
- Go to
Settings โ Applications โ Accessibility โ Battery optimization. - Find your application (for example, Stay Alive!) and select
Do not optimize. - Enable resolution
Overlay on top of other applications.
Method 5: Disable Doze Mode (deep sleep) on rooted devices
On devices with root access you can completely disable Doze Mode the deep sleep mechanism, which aggressively limits background processes. This is relevant for Android 6.0 Marshmallow and newer.
Instructions:
- Install a file manager with support root (for example, Root Explorer or Solid Explorer).
- Go to the folder
/system/etc/. - Find the file
powerhint.jsonand make a backup copy of it. - Open the file and replace the line:
"doze_enabled": trueto
"doze_enabled": false - Save the changes, reboot the device.
Alternative method via Terminal Emulator:
su
settings put global device_idle_constants="idle_after_inactive=3600000,inactive_to=3600000"
โ ๏ธ Attention: Disabling Doze Mode will lead to significant increase. battery consumption (up to 20-30% per hour in standby mode) and can cause processor overheating. Use this method only if other methods have not helped.
Why Android ignores sleep mode settings
Sometimes even after disabling standby mode through settings or ADB, the device still goes into sleep mode. Reasons and solutions:
| Problem | Cause | Solution |
|---|---|---|
| The screen goes blank after 1-2 minutes, despite the settings | Battery optimization for a specific application is active | Open Settings โ Applications โ [Select an application] โ Battery โ Optimize โ select Do not optimize |
| The device goes into sleep mode when connected to USB | There is not enough current to recognize how "charging" | Use the original cable and power supply or activate Stay Awake via ADB with the parameter 3 |
| Sleep mode is activated randomly | Active mode Battery saving or Adaptive battery |
Disable these options in the battery settings |
| Settings are reset after reboot | The manufacturer blocks changes (for example, Xiaomi or Huawei) | Use Tasker to automatically apply ADB commands after loading |
On devices with Android 12+ Google has tightened control over power consumption If your smartphone is updated to the latest version, standard methods may not work. case:
- ๐ Use ADB with the command
dumpsys deviceidle force-idle(requires root). - ๐ฑ Install custom software (for example, LineageOS), where the restrictions are relaxed.
- โก Use Magisk modules like
Disable Doze(only for advanced users).
On devices with Android 13+ Google has introduced additional restrictions for background processes. If it is critical for you to disable sleep mode, consider rolling back to Android 11/12 (if the manufacturer supports downgrade) or using alternative firmware.
FAQ: Frequently asked questions about disabling sleep mode
Is it possible to disable sleep mode for only one application?
Yes, applications like Stay Alive! or Taskerare suitable for this. Stay Alive!:
- Add the desired application to the exclusion list.
- Activate the option
Keep Screen On for Apps. - Disable battery optimization for this application in the Android settings.
For Tasker you will need to create a profile with the trigger "Application running" and the action "Display โ Keep On".
Why does the battery drain faster after disabling sleep mode?
In Android standby mode limits:
- Processor clock frequency (reduced from 2.8 GHz to 0.5โ1.0 GHz).
- Core activity (extra cores are disabled big.LITTLE).
- Background processes (synchronization, backup, some notifications).
- Communication modules (Wi-Fi and mobile network go into low power consumption mode).
Forcing sleep mode off forces the device to work at full power, which increases battery consumption by 2-3 times.
How to disable sleep mode on an Android tablet?
On tablets (for example, Samsung Galaxy Tab, Lenovo Tab) the algorithm is similar, but there are nuances:
- In
Settings โ Screenthere may be a separate itemTablet mode- disable it. - For Samsung DeX sleep mode is controlled separately:
DeX Settings โ Energy Saving. - On tablets with Android 10+ may be required disable
Adaptive brightnessas it resets the screen timeout.
Is it safe to use the engineering menu to disable sleep mode?
The engineering menu is intended for testing and diagnostics, therefore:
- โ
Safeif you are only changing power-related settings (for example
Fast DormancyorSleep Mode). - โ Dangerif you are editing radio settings, battery calibrations, or processor settings. This may cause:
- Loss of mobile network.
- Incorrect operation of sensors.
- Spontaneous reboots.
Recommendation: before making changes, make a backup copy via TWRP or write down the original settings.
How to return the default sleep mode settings?
To reset all changes:
- For standard settings: return the screen timeout to
15 secondsor1 minute. - For ADB: run the command:
adb shell settings put global stay_on_while_plugged_in 0 - For engineering menu: reset the settings via
##4636##โBattery informationโReset. - For root changes: restore the original file
powerhint.jsonor run:susettings put global device_idle_constants="idle_after_inactive=900000,inactive_to=3600000"