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
3
votes
0 answers

How to prevent sleep mode on mobile devices with JavaScript

I'm making a node.js+express web app that needs to disable the lock screen for few pages, it is a points counter for a boardgame and would be bad design having the need to unlock the screen every time a player wants to check theirs (which happens…
Artemis
  • 589
  • 1
  • 6
  • 19
3
votes
2 answers

Prevent Linux from sleeping when Python process running

Is there a (programmatic) way to prevent my Linux (Ubuntu) from going into sleep mode while my Python program is running? I seek a solution that avoids me manually changing the OS power settings each time I run my code. Background: I'm running a…
FlorianH
  • 600
  • 7
  • 18
3
votes
1 answer

Does Deep sleep really exist in Android?

Hi I started to be curious about deep sleep in Android. Cause I found this term "deep sleep" in android document while I'm searching for handler. public final boolean postDelayed (Runnable r, long delayMillis) Causes the Runnable r to be added to…
wannnnnnn
  • 53
  • 1
  • 4
3
votes
0 answers

NFC goes to sleep mode on Samsung devices

I'm developping an app for Samsung devices with an activity that has to handle a NFC tag.. This activity is called when the app is launched and on resume. I noticed that, when the phone stays awake with the NFC tag connected to it, after a while the…
pocus
  • 51
  • 7
3
votes
0 answers

Android: Does CountDownTimer still work after the phone gone to sleep

Will the CountDownTimer work when the phone gone to sleep mode? If it doesn't, is there a broadcast receiver which I can detect whether the phone gone to sleep and awake again?
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
3
votes
2 answers

CMSIS-RTOS Keil RTX - Proper way to enter ARM deep-sleep

Hello I would like to know what is the proper way to put ARM Cortex M0+ to deep sleep. Particularly I'm using CMSIS-RTOS RTX. The way my IRQ is handled is that ISR just set OS Signal and clear IRQ. Eg.: void ISR_A(){ …
Vit Bernatik
  • 3,566
  • 2
  • 34
  • 40
3
votes
0 answers

What happens to active sockets when android enters Deep Sleep mode?

I'm having some problems with my socket connection, I can leave the app running on background and go back in and everything works fine. When I open multiple apps to drain the device memory, my app and its service get killed and when I return to it…
frankelot
  • 13,666
  • 16
  • 54
  • 89
3
votes
2 answers

Android GCM notification don't appear when device is in sleep mode

I develop an android application with GCM Push Notification. I have started to use the sample of google. Push notifications work when the device is "on". When the device fall asleep, notifications don't appear but they show when I get android device…
3
votes
1 answer

Android, holding tcp connection in sleep mode

I am trying to keep a tcp connection to a server alive even while the phone goes into sleep mode. I have searched everywhere and tried everything. This problem occurs on some phones and not others which is kind of random. So basically one client…
Maro
  • 253
  • 3
  • 8
3
votes
1 answer

Simulate sleep mode on iPad

I have an App that is all day working in the same place and need a way to simulate a sleep mode as best as possible during a range of time. I thought a simple solution, adding a black view... but sure there are better options. Can I control the…
Fran Fox
  • 501
  • 5
  • 15
2
votes
1 answer

FreeRTOS is slow to wake after long processor sleep

(Cross-posted on Electrical Engineering Stack Exchange) I'm using FreeRTOS in an application which requires the processor to sleep in low power mode for a long time (as long as 12 hours), then wake up in response to an interrupt request. I'm having…
harry courtice
  • 209
  • 1
  • 9
2
votes
1 answer

Sleep mode and duty cycling in UnetStack, and adding energy consumed in idle listening, and sleeping modes into a simple energy model

I have two questions: We want to consider a very low transmission duty cycle in our underwater sensor network,as it is the power consumption in listening and sleep mode that will dominate our network lifetime in practice. I noticed the Scheduler…
2
votes
1 answer

Agora voice call stops audio after 1 minute of lock screen

I have implemented agora voice call in my application. Its working fine on older devices and tabs but on new devices after locking the screen for 1 minute the receiver cannot hear audio. I guess android system puts the app in sleep mode. I have…
Saify
  • 469
  • 1
  • 5
  • 20
2
votes
1 answer

start an activity from background after a while

I'm developing an app that needs to start an activity when a FCM message is received. Everything works fine but as long as I do not use the phone for a while and the phone goes to sleeping mode and the activity does not start. How can I prevent my…
2
votes
2 answers

How to restart web workers when computer restarts from sleep mode?

I have a simple webworker which keeps the current time of timezone using setInterval setInterval(() => { userTimezoneTimestamp = userTimezoneTimestamp + 1000 postMessage(userTimezoneTimestamp); }, 1000); It works fine until I…
Harshal Ringe
  • 51
  • 2
  • 6