Questions tagged [wakeup]

Resuming the previously suspended thread, process, activity, application or the whole operating system.

203 questions
0
votes
1 answer

Hibernation from C# vs Hibernation from close lid - wakeup issue

I have a problem with hibernation and wake up events. When I go into hibernation using C# code Application.SetSuspendState(PowerState.Hibernate, true, false); everything works fine and computer wakes up on events. The problem is when I just close…
Artur S
  • 1
  • 1
0
votes
1 answer

What's the right way to deal with spurious wakeup?

I am reading Curator's source code, and found some code below: while ( (client.getState() == CuratorFrameworkState.STARTED) && !haveTheLock ) { List children = getSortedChildren(); String …
znlyj
  • 1,109
  • 3
  • 14
  • 34
0
votes
3 answers

WakeUp from Sleep after certain time c#

Hi everybody my application needs to put PC to the Sleep mode and Wake it Up after certain period. To investigate this case i made simple Console application to put PC Sleep and wake it up after 10 seconds . after a long research on google and here…
Kamornik Cola
  • 644
  • 8
  • 20
0
votes
1 answer

How to close an Android Service that adds a system overlay view after phone sleep and wake up?

I have an Android service that adds a system overlay view (TYPE_SYSTEM_ALERT) in the onCreate method WindowManager.addView(mOverlayView, mLayoutParams); and removes it in the onDestroy method using WindowManager.removeView(mOverlayView); When the…
TechAurelian
  • 5,561
  • 5
  • 50
  • 65
0
votes
2 answers

std::condition_variable not properly wakes up after std::condition_variable::notify_all() from other thread

This code is simplification of real project code. Main thread create worker thread and wait with std::condition_variable for worker thread really started. In code below std::condition_variable wakes up after current_thread_state becomes…
Soler
  • 3
  • 2
0
votes
1 answer

Open window when wake up from hibernation

I dont know if this is possible but ill try to explain and see if any of you know something tyhat can help me with this. I have a pc with a firefox page open, i need that when the pc wake up from hibernation it open that page in firefox. I need this…
razstec
  • 93
  • 2
  • 11
0
votes
1 answer

iOS - wakeup application when a/any bluetooth device is connected

Is there any way to "wake-up" (relaunch) an iOS application (a background task actually, not to show the application) whenver a bluetooth device is connected? For example, the iOS OS kills the application due to memory lack. Then a couple of hours…
Panos
  • 7,227
  • 13
  • 60
  • 95
0
votes
1 answer

Does OnNavigatedTo get called when you turn on the screen and the app comes to life?

I'm dealing with a strange situation I want to debug in my Windows Phone 8.1 app, and I'm not sure in which moments OnNavigatedTo is called. Obviously, it gets called (and I've checked tracing it with the debugger) when you navigate to the view…
Isaac
  • 1,794
  • 4
  • 21
  • 41
0
votes
1 answer

ANR after unlock the device

I am developing a fingerprint sensor application that use good amount of RAM,problem may be related to memory, i tried a lot still unsolved. Q:- When i press home button application paused and from the recent button it resumed successfully, but when…
IshRoid
  • 3,696
  • 2
  • 26
  • 39
0
votes
1 answer

What does 'wakeups' number represent when dumping all alarms using adb

When i dump all alarms using the command adb shell dumpsys alarm, I see the number "wakeups" (17 below). What does this mean - it is the number of times this app has already woken up the phone or the number of times it is scheduled to wake up in…
user1406716
  • 9,565
  • 22
  • 96
  • 151
0
votes
1 answer

AlarmManager vs Service for db and FTP connection. Which and how to use?

My question is rather simple but might come with a complex answer. I'm making an App that checks on an online mysql db (via a php script on the website) for new updates. Sometimes this updates will tell the App it has to download form a FTP…
Luciano Stupenengo
  • 183
  • 1
  • 1
  • 12
0
votes
1 answer

RTOS: requesting non-sleeping task to wake up causes next call to sleep() to not sleep - is that good?

I'm rewriting existing real-time kernel TNKernel; I have used it for a couple of years, but I don't like many of its design decisions (as well as implementation details), so I decided to fork it and have fun implementing what I want. Anyone who is…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
0
votes
1 answer

AlarmManager doesn't work in sleep mode when launchMode is on

I have a activity A, and I have to call activity A again by AlarmManager. After that phone goes to sleep and wakes up by alarmmanager 30 mins later. The code is as follow: public void wakeup(){ Intent i = new Intent(mcontext,…
0
votes
1 answer

How to display a client ip address in a ListView when client connected and shutdown or wakeup client using c#

![Server][1] Code Server : public partial class Form1 : Form { private TcpClient tcpclient; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { …
0
votes
1 answer

Arduino DUE, Serial interrupt procedure to wakeup from sleep mode

i'd like to put the SAM3X chip on sleepmode until a character arrives on the serial port. i was thinking of using an ausiliary flag in the Serial interrupt procedure in order to trigger the wake up procedure? what do you think abou? any advice or…
user3146098
  • 1
  • 1
  • 1