Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sleep]

The tag has no usage guidance.

0
votes
0answers
35 views

Problem after android pie: black screen on certain apps the SECOND TIME it is awaken from sleep

I have an Xperia XZ premium that i just updated to Android Pie yesterday (long overdue monthly update from last year), and this problem started occurring. So far it only happens to two types of apps: ...
1
vote
2answers
88 views

Lengthy sleep command not working in script

I've written a su.d script to periodically (every 4 hours) back up data from an app using a looped sleep command: #!/system/bin/sh ( # Wait for boot to complete until [ "$(getprop sys....
1
vote
0answers
44 views

How can I set the screen to turn off during a video?

I want to set the screen to turn off during a video from the gallery if there are something about 30 seconds without any touch, How can I do that? Is root necessary? My android version is 9.0.
0
votes
0answers
12 views

How to multiply time programs use through the sleep() system call?

how to multiply time a program waits for the sleep() system call so that when it asks to sleep 1µs it actually pause 2µs and when it ask 3 minutes it actually sleeps 6 minutes rather than the asked ...
1
vote
1answer
113 views

How to make an app behave the same way with screen off, as with screen on?

Maybe the question should be - "how to keep the CPU awake with screen off", but I'm not sure yet, here's why: I'm trying to use my android device as a DLNA player, that streams music to a DLNA ...
0
votes
1answer
601 views

Export sleep data from S-Health

I am using a Samsung Galaxy Note 9 and a Galaxy watch to record sleep with the S-Health app. Is there a way to export the data? I notice I can easily export heart rate data, however the sleep section ...
1
vote
0answers
1k views

Phone Keeps Going to Sleep

My phone keeps going to sleep within a minute or so despite the fact that it is set to not go to sleep for 10 minutes. Why is it doing this? This is an Asus ZenFone Live V running Android 7.1.1. To ...
1
vote
0answers
2k views

Android-x86 power button press does not sleep

I'm running Android-x86 on an intel Apollo Lake tablet. When I press the power button, Android does not go to sleep. Instead, it shows the power menu. This means I cannot put the device to sleep by ...
1
vote
0answers
51 views

Why SManager can't wake network from sleep?

Here's the situation: I'm using SManager to run a very simple shell script on a regular schedule; all it does is run a ffmpeg command line to save an audio stream from a URL. If I run the script ...
1
vote
2answers
778 views

What exactly happens to a multi-core CPU when a device goes into deep sleep?

What exactly happens to a multi-core CPU when a device goes into deep sleep? Do all cores go to sleep or do the cores keep running at the lowest frequency?
1
vote
0answers
280 views

Stay awake while charging - why not?

I am new to Android 7.1, and I would like my phone to be always on while charging. Is there any disadvantage? Are there any system processes running only in sleep mode? Related: Stay awake while ...
3
votes
0answers
2k views

any emulator (or app for an emulator) that will sleep/lock after timeout?

I have tried different emulators on windows (Leapdroid, Nox MEmu, among others), and none seem to have the ability to automatically timeout on idle and go to the lock screen like almost every device ...
0
votes
0answers
256 views

LAVA OTG adapter keeps android tablet from sleeping

I am using an EasyCAP Adapter via a LAVA SimulCharge adapter on a Samsung Galaxy Tab S2 to capture video from a car reverse camera. This is working fine except, when the LAVA adapter loses the power ...
1
vote
1answer
3k views

How do I prevent my GPS-tracking app from stopping?

I'm running a very simple open-source Android GPS tracker: https://github.com/herverenault/Self-Hosted-GPS-Tracker I have it set to post GPS coordinates from my phone to my server every 30 seconds. ...
0
votes
1answer
460 views

How to Prevent Battery Full Notifications in Mi 2 Band?

Situation: to prevent Mi 2 Band's battery full vibration, which wakes me up; the notification bypasses Android's own Silent Mode Secondary solution: use Do Not Disturb applicaiton of Playstore ...
0
votes
1answer
4k views

Prevent display to sleep while charging

I want to add a functionality option to choose in my android phone so that when the option is selected its display will never sleep when under charging condition. What should I need to program my ...
1
vote
4answers
1k views

SleepBot includes a “smart alarm” feature which has been failing on Android 6.x “Marshmallow” due to “Doze” mode. What's the workaround?

Background SleepBot is a freeware sleep-tracking app. It includes a "smart alarm" feature which claims to help prevent early-morning grogginess and sleep inertia. There are other competing free apps,...
10
votes
1answer
7k views

Difference between Doze Mode and Sleep Mode in Android Marshmallow

Prior to Android M there was something called sleep mode in Android. With Android M Google introduced the so called Doze Mode. Can anyone please elaborate the difference between these modes?
0
votes
1answer
431 views

Nexus 5X stays awake after charging

Nexus 5X running 6.0.1 shows awake after disconnecting charger cable. Reboot helps but later the awake state persists if I connect charger back.
-1
votes
1answer
294 views

Android Marshmallow: How to manually sleep+lock OR manually sleep without locking?

I am using Android 6 (Cyanogenmod) and I would like to have the following simple behaviour: Hardware button X: Sleep AND lock the phone. Hardware button Y: Sleep phone WITHOUT locking. In addition ...
1
vote
0answers
83 views

Wifi turns off when phone sleeps - Not Duplicate

This is NOT a duplicate, I have read the other posts on this forum site and none of them have helped me. I've gone to the wifi settings and made sure Keep Wi-Fi on during sleep is ALWAYS and I've ...
2
votes
0answers
309 views

Nexus 7 2012 Not waking from sleep

Often, when I try to wake my nexus, the screen stays completely blank and the tablet refuses to do anything. To get my device working again I have to hold the power button for about 10 seconds, which ...
0
votes
0answers
20 views

How to dim the screen on an Android phone without locking? [duplicate]

Given a phone with a password, the screen turns off and the phone locks by single pressing the power button, or if the sleep time-out is reached. The user then must enter the password to get access. ...
1
vote
1answer
73 views

Can I waked a sleeping Android without an app installed?

I am aware of Wake on LAN, but that has been ruled out as it requires a device to have an app installed (doesn't it?). A friend wants to develop an access point and wants to be able to wake any ...
1
vote
1answer
5k views

Why can't I adjust the brightness and the sleep time on my KitKat device?

Whenever I go to settings and to display, the brightness and the sleep buttons are faded out and I can't click them. I tried rebooting my phone and a factory reset but nothing works. I don't know what ...
5
votes
1answer
250 views

Is there a way to hide all notifications during the night?

I mean something like this: I'd like to hide them like this during "downtime period" or "do not disturb mode". I'd like to hide them both on the lock screen on the status bar at the top of the screen....
4
votes
1answer
8k views

Turn screen off without Android sleeping

Is there any way to quickly toggle the screen off without making Android sleep? For example, I sometimes like to use the Calm app when I sleep. But it keeps the screen on all the time. When I just ...
0
votes
1answer
4k views

Motorola Moto G 2014 freezes on lock screen

Since today I've been having a problem with my Motorola Moto G 2nd Gen(2014). When I boot it up, it works fine for a few minutes (except from the WiFi, which doesn't auto-connect for some reason, ...
0
votes
1answer
535 views

Disable Android Device Sleep Mode when connected with Power supply

I am working on a client requirement in which they wanted to disable android device going into the sleep mode when the external power supply is connected Does any one have come across this kind of ...
12
votes
4answers
81k views

How do I prevent Android from going to sleep?

I never want my Android tablet to go to sleep, can I prevent sleep mode?
1
vote
1answer
20k views

What is Android's sleep mode [closed]

Many developers speak of Android's sleep mode. When exactly the device goes into sleep mode ? What is st standby mode ? How standby and sleep mode are different (or related)? When the device goes ...
1
vote
1answer
123 views

WIFI Receive Data in Sleep Mode?

How can wifi receive data when it is in sleep mode? Will it wake up regularly, or do something else? I tried to make a ping test to a full power management (sleep just after transmission) phone, and ...
11
votes
8answers
50k views

Wifi disconnects during sleep

I noticed recently that, when I would use my phone after it had been sleeping, wifi wouldn't be connected and it would have to connect. I went into advanced wifi settings and ensured that "Keep Wi-Fi ...
2
votes
2answers
3k views

Nexus 4 does not wake up from Sleep randomly

I have a Nexus 4 running stock rom kit kat 4.4.2. There were few instances, in which when the phone goes to sleep, I see the notification light blinking indicating a new email/message, but it doesn't ...
1
vote
1answer
1k views

sleep setting not saving on nexus 5

On my Nexus 5 every time I change for sleep setting to 10 minutes it's simply reverts back to one minute. I have the latest version of Android and have tried Powering off and restarting several times....
1
vote
1answer
675 views

Make the sleep timer on a tablet dependent on whether it's being charged or not

Is there a way to set the sleep mode timer depending on whether the tablet is being charged or not? I normally have my Android tablet (Xoro Pad 9718, Android version 4.1.1) next to my computer on ...
2
votes
1answer
2k views

Where is the 'sleep' low power option in cyanogenmod 10.1?

I used to have the Android that came installed on my Verizon Motorola Razr Maxx. When I wanted the phone to be doing nothing (in a movie theater, or at night) I would hold the power button, and then ...
1
vote
1answer
1k views

Android sleep of death (SOD)

I purchased a new Android Phone which is pre-installed with V2.1 Eclair. At least once in a day phone gets dead (At this stage I cannot press and any key or unable to make/receive calls). The only ...
2
votes
2answers
523 views

Sleep Apps and Shared Beds

I've seen on the marketplace now several alarm clock applications that claim to analyze your motion patterns in your sleep, so as to determine the ideal time to wake you up such that you feel ...
4
votes
2answers
880 views

Sleep Tracking App connected with google health

Do you know if there's an app : Dedicated to sleep tracking Connected with Google Health I'm interested in such an application, so if you know one, please share it w/ me. Thanks. Rob