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

WiFi RSSI not updating when screen is off android device

I have an application where,I need to get the updated WiFi RSSI when my device screen is OFF. I have already tried with different approaches found in stackoverflow. But no solution works for me till now. Using the flag:…
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
0
votes
1 answer

How to run a function in Swift when the iPhone or iPad sleeps?

I'm working on an app where you log down what you eat. I have my app set to save the information to my MySQL server every time I close the view (like go back a step in the Navbar) or press the home button. How can I run my saving function down when…
Anonymous
  • 15
  • 5
0
votes
0 answers

MPI processes got killed when the computer goes in sleeping mode

I notice that all processes started under MPI are gone when the computer wakes up from a sleeping mode. Is this normal behavior? Is there any setting that keeps the processes alive?
wilburke
  • 1
  • 1
0
votes
1 answer

Waking up XBee with sensor

Is it possible to wake up XBee end device with input (high) from sensor? According to documentation: "When the device asserts (high) Sleep_RQ, it finishes any transmit or receive operations and enters a low power state." But in my case i need…
Igor Masternoy
  • 436
  • 1
  • 11
  • 36
0
votes
1 answer

Program crash on startup and restarts

my program runs fine, but sometimes on startup it stops? or crashes? and immediately reloads. I don't know why it's doing that. It's not erroring me. and it only started after I added the sleep function. import time print ( "loading…
0
votes
0 answers

Monitor WiFi sleep mode events

I have to monitor the connectivity of the device automatically, to do that I have my receiver registered with
0
votes
1 answer

Android Alarmmanager problems in sleep mode (batching alarms) in API 17

I have this problem with inconsistency of launching alarms while device is in sleep mode (well documented problem), that is driving me crazy. In my app for frequent reminders i use alarmmanager to set time for next reminder, when the previous one…
aphelion
  • 561
  • 1
  • 5
  • 12
0
votes
0 answers

Access Violation After Windows Resume from Sleep

I have had a few users report a AV for my application after they close their laptop lid and reopen it. I assume Windows went into Sleep Mode and the problem occurs on resume. It's a standard Windows 32 bit application written in Delphi Seattle 10.…
Steve Maughan
  • 1,174
  • 3
  • 19
  • 30
0
votes
1 answer

Android sleep mode and LocationManager

In my app the user can start a tracking service, that uses LocationManager to request location every X seconds. A user reported that on his device (Galaxy Tab S2), when the device goes it sleep mode, the tracking stops after a few minutes. I have…
Tim Autin
  • 6,043
  • 5
  • 46
  • 76
0
votes
1 answer

Put Windows 7 to Sleep using VBA

I have some VBA code which takes hours to run. After completion of the code, I want the windows 7 (64 Bit Professional) to go to SLEEP. What VBA code can I use at the end to achieve this?
maverick
  • 83
  • 3
  • 10
0
votes
2 answers

Android: background process stops after some minutes since device sleeps even when using wakelock

I'm building an app to control led bulbs (Mi-Light, limitlessLed and the likes). The purpose of the app is to have effects that the user can select and let run for an indefinite amount of time. For example, a "candle light" effect might change the…
coconup
  • 945
  • 10
  • 17
0
votes
1 answer

Terminating a thread CMSIS-RTOS

I'm currently trying to make my device (STM32F105) which is usually running 12 threads on CMSIS RTOS go to low power mode. In order to simplify the algorythm I think (definitely not sure) that it's a good idea to terminate all the threads using…
0
votes
2 answers

Cortex M0 doesn't enter sleep mode

Got a problem with the Atmel SAMB11 on an explained pro Devboard. I've loaded a quite simple example from Atmel, where a 32KHz Timer is initialized to wake up the µC from sleep and turn on a LED. Problem is, the controller doesn't sleep at all. It…
DK999
  • 33
  • 1
  • 7
0
votes
1 answer

Android service call OnDestroy immediately when i start the service in sleep mode

I use a BroadcastReceiverTo: Wake up the phone Playing sound and vibration in a service Show an Activity Every things work well when i test it while the phone is not in Sleep mode BUT When the phone is in Sleep mode (phone is locked and the…
Ramin Bateni
  • 16,499
  • 9
  • 69
  • 98
0
votes
0 answers

How can i set an activity when my application awakes from sleep mode?

Pardon me as I am quite new to android. I am trying to launch a login page(Login Activity) whenever my application awakes from sleep mode. Example: my application goes into sleep mode when it is in my Main Activity. When it awakes, i want to set the…
Dave
  • 117
  • 11