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
2
votes
1 answer

Is void setup() code wiped out when deep sleep is used in esp32

I'm doing wireless sensor node using esp32 (slave) and rf24l01 module. My next step is to put my slave in sleep mode (maybe deep sleep). Can I use deep sleep for my project? They said everything stored in that memory is wiped out and cannot be…
Quang Minh Lê
  • 169
  • 1
  • 2
  • 13
2
votes
0 answers

Android App losing sound/timing when phone in sleep/standby mode

I wrote an android app a few years ago that does a fairly simple process. I set up a condition series consisting of different paces (walk, jog, sprint) with times associated with each segment: Walk 1 min, job 2 mins, sprint 3 mins. When I press…
j.hull
  • 321
  • 3
  • 15
2
votes
1 answer

Can I wake up my Android when it is unplugged and sleeping?

I have made an app that allows one to listen to the radio and have implemented an alarm so that I can have the radio play when the alarm goes off. I am using the alarmManager and RTC_wakeup, and it seems to work fine if the phone is plugged in or if…
kyle
  • 49
  • 5
2
votes
2 answers

STM32 WFI exits immediately after being called

I run FreeRTOS and set up tickless idle. I want to put the STM32L432KC chip into the STOP2 mode but the problem is that WFI instruction exits immediately. I want to wake up the chip using RTC WAKEUP interrupt. RTC is initialized like that: /*…
K. Koovalsky
  • 596
  • 4
  • 17
2
votes
1 answer

Enumerate Windows "Power Availability Requests" with undocumented CallNtPowerInformation(GetPowerRequestList..)

Windows 7 introduced "Power Availability Requests". This feature allows applications to notify the OS that they require the display or whole system and therefore power management should be temporarily inhibited. The feature is documented…
jimc
  • 149
  • 2
  • 9
2
votes
2 answers

How to put computer to sleep using subprocess.call?

I'm in the middle of making a Python script to shutdown, restart, hibernate or put to sleep after a few seconds. I know its subprocess.call(["shutdown", "/s"]) to shutdown, "/r" to restart and "/h" to hibernate. How can you put the computer to…
wintermute
  • 21
  • 2
2
votes
1 answer

How to use signalr in android Service

I used the signalr library and the problem that is created for me is that when the phone goes to sleep it will issue a connection time out error and will no longer connect to the server. in Activity public class MainActivity extends…
user8159654
2
votes
2 answers

How to recognize broken Java socket connection on MacOSX after computer wakeup

I have a Java client that is supposed to be constantly connected to some Java server and just output whatever the server sends (see excerpt below). The problem is that if the client computer (MacOS X) goes to sleep and then wakes up again, the…
J. Doe
  • 23
  • 3
2
votes
2 answers

Putting PC into sleep mode programmatically

An old problem, maybe (?) resolved for older Windows version, but not for Windows 10! The solutions proposed in old discussions (... SetSuspendState with parameters 0,1,0 (or Sleep), with or without prior hibernate off ...) dont work on Windows 10…
newbieforever
  • 217
  • 1
  • 4
  • 15
2
votes
2 answers

Ionic prevent phone sleeping only when app is running

The Insomnia plugin promises to keep devices awake with window.plugins.insomnia.keepAwake(), until such time as window.plugins.insomnia.allowSleepAgain() is called. But for some apps it only makes sense for the device to stay awake while the app is…
Sideshow Bob
  • 4,566
  • 5
  • 42
  • 79
2
votes
1 answer

WaitForSingleObject signalled immediately

I'm trying to make my pc wake up in case it has gotten into sleep mode. I found this code snippet on some website, but the Messagebox I added at the end always returns immediately. I have also enabled my system for the use of wake timers in the…
Lesic
  • 136
  • 12
2
votes
2 answers

How to enable sleep option in Windows 10 power menu under Ubunto host kvm?

I am running guest Windows 10 under Ubuntu host kvm. How to enable sleep option in Windows 10 power menu? I see only restart and shutdown entries in power menu. [EDIT]Question can be rephrased, as How to Enable S3 power state on Windows 10 Guest…
ilia
  • 1,082
  • 11
  • 19
2
votes
2 answers

Android kitkat Alarm manager in sleeping mode

I have a problem in alarm manager with kitkat version when the device in sleeping mode. The alarm does not waking up the device >>> When I connect to wifi or charging the battery everything work fine Any suggestions .. My alarm…
2
votes
0 answers

Cordova application in background having strange behaviour on Android

I am working on a Cordova application which needs to send current location of user to server after every 10 seconds. For that, I am using Geolocation plugin. Here are my code snippets: $rootScope.startListeningForLocation = function() { …
Khawar Raza
  • 15,870
  • 24
  • 70
  • 127
2
votes
2 answers

Android phone , what units are shut off In sleep mode

I have a scenario that the android device exchanges data with a FTP server via Roaming service. I hope to make OS enter proper sleep mode by setting WakeLock type during the data transferring because it really has no interaction with enduser. I am…
user1338624
  • 174
  • 1
  • 10