Do you fall asleep listening to music or video on your smartphone, but forget to turn it off? Does your battery drain overnight, and in the morning you wake up to annoying notifications? Sleep timer on Android solves these problems - it automatically turns off the screen, mutes the sound, or even turns off the device at a specified time. But how to configure it correctly if your model does not have a built-in function?

In this article we will look at all possible methods - from hidden settings MIUI, One UI and pure Android to third-party applications with advanced options. You will learn how to set a sleep timer on Samsung, Xiaomi, Huawei and other brands, as well as what applications will help if standard means do not work. Plus - detailed instructions for users with root access and without them.

What is a sleep timer and why do you need it

Sleep timer is a function that automatically performs specified actions after time has elapsed: turns off the screen, mutes the sound, starts Do Not Disturb mode or completely turns off the device. It is useful in three cases:

  • ๐Ÿ”‹ Saving battery power. If you fall asleep while listening to music or video, the smartphone continues to work, draining the battery. The timer will disable unnecessary processes.
  • ๐Ÿ˜ด Sound sleep without interference. Notifications, calls or a bright screen can wake you up at night. The timer will put the phone into โ€œquietโ€ mode.
  • ๐Ÿ“ฑ Screen protection. Constant operation of the display at maximum brightness reduces its resource (especially on AMOLEDmatrices).

On some smartphones (Samsung Galaxy, Xiaomi Redmi/POCO), the sleep timer is built into the firmware, but is often hidden in the depths of the menu. On โ€œcleanโ€ Android (for example, Google Pixel) this function is not available - you will have to install third-party utilities. Next we will look at both options.

๐Ÿ“Š Do you use a sleep timer on your smartphone?
Yes, regularly
Sometimes
No, but I want to try
No, I donโ€™t see the point

Method 1: Built-in sleep timer on Samsung (One UI)

On smartphones Samsung with shell One UI (starting from version 3.1) there is a hidden function "Sleep mode"that automatically activates Do not disturb and turns off the screen. To find it:

  1. Open Settings โ†’ Device care โ†’ Digital well-being and parental controls.
  2. Tap by Sleep mode (or Sleep schedule in new versions).
  3. Activate the slider and set the start/end time. You can select the days of the week.

โš ๏ธ Attention: on some models (Galaxy S21, A52) this function is called Relaxation mode and is located in Settings โ†’ Advanced level functions. If it is not there, update the firmware or use method 3.

Samsung model Path to sleep timer Additional options
Galaxy S22/S23 Settings โ†’ Digital well-being โ†’ Sleep mode Automatic screen dimming, blocking notifications
Galaxy A53/A33 Settings โ†’ Advanced features level โ†’ Sleep mode Do not disturb mode only
Galaxy Z Flip/Fold Settings โ†’ Display โ†’ Screen timer Disable screen after 5-120 minutes
๐Ÿ’ก

If your Samsung does not have sleep mode, try installing the application Good Lock from Galaxy Store โ€”the module ClockFace has advanced timer settings.

Method 2: Screen turn off timer on Xiaomi (MIUI)

On smartphones Xiaomi, Redmi i POCO with firmware MIUI there are two options for the sleep timer:

  1. Screen off timer (turns off the display, but not the sound):

    Go to Settings โ†’ Display โ†’ Screen off timer. Set the time from 5 to 120 minutes.

  2. Scheduled Do Not Disturb mode (blocks notifications):

    Open Settings โ†’ Sound and vibration โ†’ Do not disturb โ†’ Schedule and set the time.

โš ๏ธ Attention: on MIUI 14 and newer the screen timer may be missing - it was replaced with a function Reading v Settings โ†’ Accessibility. It turns off the screen after 15-60 minutes, but only works with low activity.

Make sure the firmware is updated to MIUI 12+

Check the path: Settings โ†’ Screen โ†’ Sleep timer

If not, use the "Do not disturb" mode according to the schedule

For music, install the Sleep Timer application (see method 4)

-->

Method 3: Sleep timer via "Digital Wellbeing" (pure Android)

On smartphones with pure Android (for example, Google Pixel, Motorola, Nokia) there is no built-in sleep timer, but you can use the function "Sleep mode" in Digital well-being:

  1. Open Settings โ†’ Digital well-being and parental controls.
  2. Tap on Sleep mode (or Sleep schedule).
  3. Set the time and select days. Enable the option Mute notification sound.

This method does not turn off the screen, but only activates the "Do not disturb" mode and switches the display to black and white mode (to reduce eye strain). To completely turn off the screen, you will need a third-party application (see method 4).

๐Ÿ”น Alternative for Pixel: c Settings โ†’ System โ†’ Gestures โ†’ Double tap you can configure the screen to turn off with a double tap - this will speed up the process if you forgot to start the timer.

How to check the version Android?

Open Settings โ†’ About phone โ†’ Android version. If the version is lower than 10, update the firmware - in older versions there is no sleep mode in Digital Well-being.

Method 4: Third-party applications for sleep timer

If your firmware does not have a built-in timer, install one of these applications (all are free, without unnecessary water in the main functions):

  • โฑ๏ธ Sleep Timer (by Urbandroid) - turns off music / video after a specified time, works with YouTube, Spotify, VLC.
  • ๐ŸŒ™ Sleep as Android - smart alarm clock with sleep timer, tracks sleep phases (requires Google Fit).
  • ๐Ÿ”• ShutDown Timer - turns off the screen or restarts the phone (needs root access to turn it off completely).
  • ๐ŸŽต Music Sleep Timer - specialized for stopping music playback.

How to set up Sleep Timer:

  1. Download the application from Google Play.
  2. Launch it and select the action: Turn off screen, Stop music or Activate "Do Not Disturb".
  3. Set the timer (from 1 minute to 12 hours).
  4. Click Start โ€”the timer will start counting.

โš ๏ธ Attention: applications like ShutDown Timer require special permissions to turn off the device. Without root they will only be able to turn off the screen or stop the music. On Android 12+ you will also need permission Display over other apps (in the settings). applications).

Application Functions Root required? Advertising
Sleep Timer Turn off screen, stop music No No
Sleep as Android Smart alarm clock, sleep tracking No Yes (disabled in Pro)
ShutDown Timer Switching off/restarting the phone Yes No
๐Ÿ’ก

Applications without root can only mute the sound or turn off the screen. Complete shutdown of the phone is only possible with root access or on some firmware (for example, MIUI).

Method 5: Sleep timer via ADB (for advanced)

If you are ready to use ADB (a tool for Android debugging), you can set the screen to automatically turn off without applications. This method works on any smartphone, but requires a computer and a USB cable.

Instructions:

  1. Enable Mode 7 times Developer on your phone: go to Settings โ†’ About phone and tap on Build number.
  2. Go back to Settings โ†’ System โ†’ For developers and activate USB debugging.
  3. Connect your phone to the PC, open Command Prompt (Windows) or Terminal (Mac/Linux) and enter:
adb shell input keyevent KEYCODE_POWER

This command simulates pressing the power button (turns off the screen). To automate the process, create a .batfile with the following content:

@echo off

timeout /t 3600 /nobreak >nul

adb shell input keyevent KEYCODE_POWER

๐Ÿ”น Explanations:

  • timeout /t 3600 โ€”delay in seconds (here 1 hour).
  • Save the file as sleep_timer.bat and run it before sleep.
  • For Mac/Linux use sleep 3600; adb shell input keyevent KEYCODE_POWER.

โš ๏ธ Attention: this method does not work on Android 11+ without additional permissionsas Google has tightened the security policy for ADB. On new versions of the OS, you will need to confirm the command manually on the phone screen.

๐Ÿ’ก

In order not to connect the phone to the PC every time, use the application ADB AppControl from Google Play - it allows you to send ADB commands directly from your smartphone.

Common problems and solutions

The sleep timer may not work for several reasons. Here are the most common errors and how to fix them:

  • โŒ The timer resets after a reboot

    Solution: check if the system optimizes the application (turn off optimization). Settings โ†’ Applications โ†’ [name] โ†’ Battery disable optimization).

  • โŒ The screen does not turn off via Sleep Timer

    Solution: give the application permission Display over other apps in the Android settings.

  • โŒ Music continues to play

    Solution: in the settings of the player application (YouTube Music, Spotify), disable the option Play in the background.

  • โŒ The timer does not work in power saving mode

    Solution: add the timer application to the list exceptions (Settings โ†’ Battery โ†’ Power saving mode โ†’ Exceptions).

๐Ÿ”น If all else fails, try:

  1. Reinstall the timer application.
  2. Clear the cache in Settings โ†’ Applications โ†’ [name] โ†’ Memory โ†’ Clear cache.
  3. Check if the antivirus is blocking the timer.
Why the sleep timer may not work on Android 13+?

Google has limited the background activity of applications to save battery. In new versions of the OS, timers may be reset if the application is not added to optimization exceptions.

FAQ: Answers to frequently asked questions

Is it possible to set a sleep timer on Android without applications?

Yes, but only on some firmwares:

  • The Samsung One UI i Xiaomi MIUI have built-in functions (see method 1 i method 2).
  • On clean Android can be used Sleep mode in Digital well-being (see method 3).
  • There is no sleep timer on Huawei EMUI you will need a third-party application.
How to make the phone completely turn off using the timer?

To completely turn off the phone you need root access or special firmware. Without them you can:

  • Use ShutDown Timer (turns off the screen, but not the power).
  • Configure ADB command to simulate a long press of the power button (see method 5).
  • On Samsung s One UI 5.0+ there is a hidden function Automatic reboot in Settings โ†’ Device maintenance โ†’ Automatic optimization.
Why does the sleep timer reset after the screen is locked?

This is due to battery optimization. Solution:

  1. Open Settings โ†’ Applications โ†’ [your timer] โ†’ Battery.
  2. Select No restrictions or Do not optimize.
  3. On Android 12+ also disable Adaptive battery in the power settings.
Is it possible to set up a sleep timer for specific applications (for example, only for YouTube)?

Yes, these are suitable for this:

  • Sleep Timer โ€” allows you to select which application you want to close.
  • Music Sleep Timer โ€”works only with music services (Spotify, YouTube Music).
  • Tasker (for advanced) - creates automatic rules for any applications.

Example of settings in Sleep Timer:

  1. Select Stop playback.
  2. Specify the application (YouTube, VLC etc.).
  3. Start the timer before watching.
Is there a sleep timer on Android TV or tablets?

On Android TV (for example, Nvidia Shield, Xiaomi Mi Box) there is no sleep timer, but you can:

  • Use Sleep Timer from Google Play (works with Kodi, YouTube TV).
  • Configure ADB command to turn off the screen (similar to method 5).
  • Some TVs Sony Bravia (with Android TV) have a built-in timer in Settings โ†’ Screen and sound โ†’ Sleep timer.

On tablets (Samsung Tab, Lenovo), the setting is the same as on smartphones.