Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When does android device go to sleep mode?

Tags:

I was searching SO and web but i couldn't find sufficient answer for my particular question. Ok here we go:

Every user can modify screen timeout on android. (when screen turns off when its idle for __ seconds/minutes - users choice ). But user can modify ONLY screen timeout and not when device goes actually to sleep. I found here what happens when device goes to sleep: (Really nice answer by CommonsWare) Android Sleep/Standby Mode

Ok my question is simple. How do i know when my phone will go to sleep? Will it go to sleep immediately after turning screen off? Will it stay "awake" a while after screen was turned off? And most important: Does sleep mode in particular device varies from brand device ( how manufacturer implement this ) or it depends on ROM version (For instance, all ICS powered devices will go to sleep X seconds after screen was turned off )?

like image 327
rootpanthera Avatar asked Mar 25 '13 16:03

rootpanthera


People also ask

How long does it take for a phone to go into sleep mode?

In order to reduce power consumption and maintain privacy, all of our devices go dark after a period of non-use. A device may take 5 or 10 minutes or only 30 seconds, but the process is the same. The device's screen will turn black and it will look like it is turned off. This is actually the sleep mode.

Do Android phones go to sleep?

The easiest way to make your Android device's screen stay on longer is to adjust the built-in Sleep settings. The Sleep will automatically turn your Android device's screen off when it detects no activity for a set period. This limit can be extended up to 30 minutes.

What is sleep mode in Android phone?

Android's “Bedtime” mode, previously known as “Wind Down,” uses Do Not Disturb to silence calls, texts and notifications, while grayscale fades the colors on your phone to black and white, to reduce the draw to your screen.


1 Answers

You can never really be sure if the device has gone to sleep. At best, I can give you a list of things that would make sure that the device hasn't gone to sleep:

  • Screen being on - Requires CPU and GPU, and hence RAM, to stay active
  • Any app holding a wakelock - Even the lowest wakelocks keep the CPU on, though the screen may be switched off

Apart from this, there is no guarantee that the device will go to sleep n seconds after the screen is turned off, even if no wakelocks are being held. This is upto the OEM, and they can alter this.

Keep in mind that Android devices have an option to keep the device unlocked for a certain amount of time after the screen has gone to sleep.

like image 186
Raghav Sood Avatar answered Oct 06 '22 09:10

Raghav Sood