Questions tagged [sleep-mode]

A power-saving condition of a computer or mobile device where it appears it is not on; the screen is not on and typically no sound is output. The computer's state is maintained in RAM.

Use this tag to identify questions related to checking on whether a device is in sleep mode, what capabilities are available in that mode, and how to "wake up" the device if appropriate.

206 questions
5
votes
2 answers

How to disable automatic switching to sleep mode in Linux Fedora?

By default it automatically goes to sleep mode after some time. How to switch that off?
A. Kenzhaliev
  • 71
  • 1
  • 4
5
votes
0 answers

Possible to find all Windows processes preventing automatic sleep, w/o admin rights?

The command powercfg -requests will provide a list of processes that are currently preventing a Windows 10 device from automatically entering sleep mode. However, the command requires administrator permissions. Asking for admin access just to…
5
votes
2 answers

Attempting to put Android device to sleep, but the PowerManager does not contain a "goToSleep(long) method

I am attempting to put a device to sleep and I have found references all over about using the PowerManager class's goToSleep(long) method but I do not see it in the documentation and it does not work when I attempt to using it in my code. Android's…
Pich
  • 55
  • 1
  • 4
5
votes
1 answer

Chrome / Javascript SetTimeout stuck after computer goes to sleep

I will try to explain ours problem the simpliest possible way. We are facing a tricky bug with our web application + chrome. We have a web page displaying curves, the refresh of the curve is triggered by a setTimeout. If the computer goes to sleep…
5
votes
2 answers

osx lion never stays in sleep mode

Since I updated to OSX Lion I got a strange issue. I am used to never shut down my Mac, I simply put it in hibernate / sleep mode. But since the update to Lion the mac just starts up at random times. Day and Night I can hear the CD-Drive sound when…
seba.wagner
  • 3,800
  • 4
  • 28
  • 52
4
votes
1 answer

How does Java Calculate Sleep Time when PC Goes into Hibernate Mode?

I wrote a Java program that executes some function and is expected to sleep for 12 hours (via TimeUnit.HOURS.sleep(12) ) and then continue performing another function. I mistakenly left my laptop on overnight without being connected to power source…
Alex K
  • 73
  • 1
  • 5
4
votes
1 answer

Detect whether host is in "sleep" or "awake" state in macOS

Context I am developing a service for macOS that runs in the background and periodically performs certain tasks. The service is restarted automatically by launchd whenever it crashes or when it is automatically updated. I have noticed that when the…
Santiago Alessandri
  • 6,630
  • 30
  • 46
4
votes
2 answers

HAL_RCC_OscConfig takes too long (appx 170 μS), I need it to be <50 μS when waking from STOP

Development for STM32L053R8 on NUCLEO-L053R8 board. We have a system which "wakes" from sleep every 200 μS or so, does a small amount of work then goes back to sleep (Stop mode). Ideally I'd like to wake from STOP in under 50 μS. The…
PsyUk
  • 43
  • 5
4
votes
4 answers

How to wake esp8266 from deep sleep without continuous resets

I'm building an IR to wifi bridge using an esp8266. Basically I'm building an IR receiver connected to an esp8266 inside an IR remote control, to forward received IR Remote keypresses over wifi to a server. I'm using a Wemos D1 Mini. I already have…
localhost
  • 1,253
  • 4
  • 18
  • 29
4
votes
0 answers

ScheduledThreadPoolExecutor does not run in sleep mode

Recently, I have been working on scheduling repeated tasks in background threads in Android application. I started with AlarmManager but due to its inaccurate triggers at specified intervals, I decided to use other JAVA and Android APIs. I started…
4
votes
4 answers

Service goes to standby when device sleeps - Android

Envrionment: Eclipse Language: Java (Android) I have a bit of a problem, which I didn't realise until I tested my application out on a device. I always thought that services would continuously be running in the background, even when the phone's…
user959631
  • 1,004
  • 2
  • 14
  • 34
3
votes
2 answers

SetThreadExecutionState(ES_SYSTEM_REQUIRED) does not prevent system sleep on Windows 11

In my file transfer application (WinSCP), I use SetThreadExecutionState(ES_SYSTEM_REQUIRED) to prevent the system from going into sleep mode while a file transfer is in progress. But this does not work anymore on Windows 11. I didn't find any…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
3
votes
0 answers

MacOS real sleep detection

I have faced a problem when my app receives NSWorkspaceWillSleepNotification but machine does not go into sleep mode. I have rewritten my code to IORegisterForSystemPower but still receive kIOMessageSystemWillSleep in the same situation. It looks…
Oleg Korzhukov
  • 606
  • 6
  • 19
3
votes
0 answers

Android ACTION_DEVICE_IDLE_MODE_CHANGED not fired

Device: Samsung Tab A 2018 10.5 Software: Android 9 I have a broadcast receiver that is registered for the intent ACTION_DEVICE_IDLE_MODE_CHANGED. That's because I would like to stop a networking coroutine job once the app has fallen into deep sleep…
max
  • 31
  • 4
3
votes
1 answer

How to make Python script running continuously while computer system in sleeping mode? (MacOS)

I'd like to keep my Python script running, even when my computer is sleeping. I am using a Mac. My file is only on my computer, not online. I know of UptimeRobot, but I don't know how to configure that to my local file. I would prefer to keep my…
1 2
3
13 14