8
votes
How do I prevent Android from going to sleep?
There is a stay awake option while charging. For the older Android Froyo 2.2, it can be found under:
Settings > Applications > Development > Stay awake
"Screen will never sleep while ...
5
votes
Why do I only get push notifications when I turn my phone on?
This is most likely caused by a setting that's intended to reduce battery and service usage by turning off your data and/or wifi connection while you're not using the phone.
There's a few settings ...
4
votes
Accepted
How do I prevent my GPS-tracking app from stopping?
The Android OS intentionally tries to prevent applications like this from running to prevent battery drain. For Android 6 specifically, you need to know about the doze and app standby features. Doze ...
4
votes
How much (Idle) time is needed for "Doze" to get activated ? (Android 6- Marshmallow)
First part of your question "Firstly, let's assume its locked, how much time is required for Doze, working to save power?"
Idle time is not specified by Google and I guess this is ...
3
votes
ADB Shell command not applied - "am set-standby-bucket" - Android 9
I see the same thing with the Android P emulator.
However, this works for me on a Pixel 2 device with P.
Btw I think you need to use the integer representation when setting:
adb shell am set-standby-...
3
votes
Turn screen off without Android sleeping
I had some trouble with the accepted answer as I'm not hugely familiar with shell scripting on Android/Unix/Linux so I thought I'd add my experience here for anyone in a similar boat.
To get this ...
2
votes
Force map-like app to keep screen on
This is entirely per application / developer:
Strava: ⊙ Record → ⚙ → Screen Display → ☑ Keep Screen On
Google Maps with navigation: screen doesn't goes black by default
Google Maps without navigation ...
2
votes
Accepted
Force map-like app to keep screen on
On non-rooted devices, it is the app that needs to request that the screen stay on.
The screen is a major source of battery drain which means that mobile apps need to request from the Android ...
1
vote
Accepted
Keep WiFi running when screen is off and phone is locked (streaming with black screen, battery saving, newpipe, podcasts)
I know of no way to disable doze as the admin of the OS (Android) itself
https://stackoverflow.com/questions/50115053/is-it-possible-to-completely-disable-the-doze-mode-and-standby-mode
(but please ...
1
vote
Keep WiFi running when screen is off and phone is locked (streaming with black screen, battery saving, newpipe, podcasts)
To accomplish what you want, you can install the app Fake Standby. It is a free open-source application.
Fake Standby will turn off your screen while keeping apps running. This will allow you to ...
1
vote
Accepted
How can I get ViewRanger to keep recording my track on my tablet even when the cover is closed?
I got track recording to work while the device is closed:
In the device Settings app, go to "Apps" and on the "..." menu select "Special Access" then "Optimize Battery Usage". Use the drop-down to ...
1
vote
Configure sleep mode for a Progessive Web App (PWA)?
As it turns out, there is a Web API, "Screen Wake Lock API":
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API
1
vote
How to make an Android smartphone actually go to sleep?
As discussed in comments
You want to make sure that the device enters doze mode quickly and disconnect wifi / mobile data when the screen is off. Aeroplane mode is not an option because you need to ...
1
vote
adb wakeup not wakes up galaxy s8
Try this command:
adb shell "dumpsys power | grep "Display Power: state=ON" | xargs -0 test -z" && adb shell input key event 26
This will first check to see if the screen is on. If it isn'...
1
vote
How to prevent CPU throttling after not poking at screen
If you have root access you can try to use an app like Device Control
to set the processors min frequency and a rather aggressive cpu governor.
explanation:
The cpu governor controls how quickly the ...
1
vote
How to stop unwanted Nvidia Shield TV wake up?
try to shake your gamepad slightly to see if this action will trigger the wake up of you tv.
install the Greenify on you Nvidia Shield TV, which will show you the wake up relation, and also you can ...
1
vote
Accepted
Enable standby mode when the phone case lid is closed
Nexus 5X does have a Hall sensor responsible for magnetic "smart covers" to work. Either your cover itself doesn't contain such a magnet piece (downcost), or CM for your device hasn't included support ...
1
vote
Accepted
Can I waked a sleeping Android without an app installed?
No. If you could do this it would be a huge security flaw. You could use it to run down the batteries of all phones in range of your device by continually waking them up.
1
vote
Accepted
Find out over the network if Android device is active
It appears that nVidia Shield Android TV comes with Android 5.1.1 and a Marshmallow update is available since December only. I'm assuming that Android 5.1.1 is the version installed in your device.
...
1
vote
Nexus 4 does not wake up from Sleep randomly
I have this issue with a Galaxy Note 2. The only way I was able to solve the issue was by installing the app 'Wake Lock' from Google Play Store and set it in 'PARTIAL_WAKE_LOCK'. Also set Autostart on ...
1
vote
Music playback stops when the phone sleeps
I realise this is an older thread, but have had the problem using WiFi to stream from Huawei phone to wireless speakers. Music stops when phone goes to sleep, but little you can do to phone except in ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
standby × 110wi-fi × 16
battery-life × 16
sleep × 13
battery × 10
screen × 7
settings × 5
gps × 5
power-on × 5
applications × 4
samsung × 4
lock-screens × 4
4.2-jelly-bean × 4
cyanogenmod × 3
6.0-marshmallow × 3
4.0-ice-cream-sandwich × 3
4.1-jelly-bean × 3
nexus-4 × 3
video × 3
adb × 2
notifications × 2
samsung-galaxy-s-3 × 2
charging × 2
browser × 2
samsung-galaxy-s × 2