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.
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:
- Open
Settings โ Device care โ Digital well-being and parental controls. - Tap by
Sleep mode(orSleep schedulein new versions). - 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:
- 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. - Scheduled Do Not Disturb mode (blocks notifications):
Open
Settings โ Sound and vibration โ Do not disturb โ Scheduleand 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:
- Open
Settings โ Digital well-being and parental controls. - Tap on
Sleep mode(orSleep schedule). - 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 accessto turn it off completely). - ๐ต Music Sleep Timer - specialized for stopping music playback.
How to set up Sleep Timer:
- Download the application from Google Play.
- Launch it and select the action:
Turn off screen,Stop musicorActivate "Do Not Disturb". - Set the timer (from 1 minute to 12 hours).
- 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:
- Enable
Mode 7 times Developeron your phone: go toSettings โ About phoneand tap onBuild number. - Go back to
Settings โ System โ For developersand activateUSB debugging. - Connect your phone to the PC, open
Command Prompt(Windows) orTerminal(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 offtimeout /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.batand 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] โ Batterydisable optimization). - โ The screen does not turn off via Sleep Timer
Solution: give the application permission
Display over other appsin 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:
- Reinstall the timer application.
- Clear the cache in
Settings โ Applications โ [name] โ Memory โ Clear cache. - 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:
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 commandto simulate a long press of the power button (see method 5). - On Samsung s One UI 5.0+ there is a hidden function
Automatic rebootinSettings โ Device maintenance โ Automatic optimization.
Why does the sleep timer reset after the screen is locked?
This is due to battery optimization. Solution:
- Open
Settings โ Applications โ [your timer] โ Battery. - Select
No restrictionsorDo not optimize. - On Android 12+ also disable
Adaptive batteryin 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:
- Select
Stop playback. - Specify the application (YouTube, VLC etc.).
- 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 commandto 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.