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.
๐Ÿ“Š Why do you need to disable standby mode?
For navigation in the car
So that the screen does not go dark during the video
To work as a server
To debug applications
Other

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:

  1. Open Settings โ†’ Screen (or Display).
  2. Find item Sleep mode (may be called Screen timeout or Screen off).
  3. Select the maximum value - usually this 30 minutes or Never (if available).
  4. For devices Samsung: go to Settings โ†’ Device care โ†’ Battery โ†’ Power modes and disable Adaptive 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:

  1. Activate Developer mode (press 7 times on Build number in Settings โ†’ About phone).
  2. Return to Settings โ†’ System โ†’ For developers.
  3. Find Disable sleep mode (Stay Awake) and enable it.
โš ๏ธ Attention: On devices with Android 12+ option Stay Awake may not work correctly if the mode is enabled Saving 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:

  1. Download and install ADB Tools on your computer.
  2. Connect your smartphone via USB, enable USB debugging in Settings โ†’ For developers.
  3. Open command line (Windows) or terminal (macOS/Linux) in folder with adb.exe.
  4. Enter the command to check the connection:
    adb devices

    The name of your device should appear.

  5. Run the command to disable sleep mode:
    adb shell settings put global stay_on_while_plugged_in 3

    where 3 means "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, use Tasker or MacroDroid to 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 โ†’ disable Optimization batteries.
  • ๐Ÿ“ฑ Huawei/Honor: Code ##2846579## โ†’ ProjectMenu โ†’ Background Settings.
  • ๐Ÿ“ฑ Google Pixel: Code ##4636## โ†’ Usage statistics โ†’ reset App 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:

  1. Install and open the application.
  2. Go to MTK Settings โ†’ Hardware Testing โ†’ Sleep Mode.
  3. Disable options Deep Sleep i Doze 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!:

  1. Install and open the application.
  2. Enable the option Keep Screen On.
  3. In the section Apps select applications for which you want to disable sleep mode (for example, Google Maps or VLC).
  4. Activate Battery Optimization Bypass to bypass Android restrictions.
  1. Go to Settings โ†’ Applications โ†’ Accessibility โ†’ Battery optimization.
  2. Find your application (for example, Stay Alive!) and select Do not optimize.
  3. 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:

  1. Install a file manager with support root (for example, Root Explorer or Solid Explorer).
  2. Go to the folder /system/etc/.
  3. Find the file powerhint.json and make a backup copy of it.
  4. Open the file and replace the line:
    "doze_enabled": true

    to

    "doze_enabled": false
  5. 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!:

  1. Add the desired application to the exclusion list.
  2. Activate the option Keep Screen On for Apps.
  3. 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:

  1. In Settings โ†’ Screen there may be a separate item Tablet mode - disable it.
  2. For Samsung DeX sleep mode is controlled separately: DeX Settings โ†’ Energy Saving.
  3. 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 Dormancy or Sleep 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:

  1. For standard settings: return the screen timeout to 15 seconds or 1 minute.
  2. For ADB: run the command:
    adb shell settings put global stay_on_while_plugged_in 0
  3. For engineering menu: reset the settings via ##4636## โ†’ Battery information โ†’ Reset.
  4. For root changes: restore the original file powerhint.json or run:
    su
    

    settings put global device_idle_constants="idle_after_inactive=900000,inactive_to=3600000"