Questions tagged [wakeup]

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

203 questions
3
votes
3 answers

Foreground Service and WakeLocks are not working on Huawei Devices

I developed an Android app called Multi Countdown Timer In which we can start multiple timers at once. The App runs on the background using Foreground Service in order to run continuously and override's The Android Doze Mode. I have tested my App on…
3
votes
0 answers

How to wake up a task sleeping with schedule_hrtimeout before the timeout occurs in linux kernel?

In the Linux Kernel I am putting a task asleep with set_current_state(TASK_INTERRUPTIBLE); schedule_hrtimeout(&next_release_time, HRTIMER_MODE_ABS); That works so far. The documentation says: /* %TASK_INTERRUPTIBLE - the routine may return early if…
pixy
  • 66
  • 5
3
votes
1 answer

Wake up my app upon FCM notification on Android Oreo and higher

My app is for an important part dealing with Instant Messaging and receives FCM notifications. How can the app wake up for a few seconds upon reception of a High Importance notification, do a short fetch from the server and go back to its previous…
3
votes
2 answers

Make a singular button sleep/wake windows 10

I can't seem to find anything specific for windows 10. I can search for the above title and it searches for everything with the word "Make" in it so it returns generic keyboard on/off settings adjustment. My question is if there's a way to make a…
D. Steel
  • 43
  • 6
3
votes
0 answers

Linux Standby Power Optimization and Recovery Time

I have a very lean Linux implementation on a Arm Quad Core 64 bit CPU/GPU. The Linux sub system comes out of the sleep via GPIO, gets bunch of data via USB for complex calculations, once calculations are done, spits the results backvia USB and goes…
user4749
  • 431
  • 2
  • 6
  • 17
3
votes
2 answers

Flushing preference cache with killall cfprefsd causing excessive wake ups on OS X 10.9.5

My search on the webs shows that the terminate signal triggers cfprefsd daemons to reread all plist files. see here When killall cfprefsd is executed the system freezes (showing the dreaded beach ball) until it completely has restarted the daemons…
Peter B
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

Windows Forms handlers are ignored upon computer wakeup

(Scope: C# and VB.NET although code here is in VB.NET.) My WinForms application is working well until first suspend and resume of the PC. After resume, certain event handlers are ignored. Logging mechanism logs first suspend and first resume.…
miroxlav
  • 11,796
  • 5
  • 58
  • 99
3
votes
2 answers

How to detect if a Windows system supports wake up timers

I need to programmatically detect whether my computer (Windows 7 / 8) supports wake timers. So far I have done the following: Guid activePowerScheme = GetActivePowerSchemeGuid(); IntPtr ptrActiveGuid = IntPtr.Zero; uint buffSize = 0; uint res =…
Aster Veigas
  • 866
  • 3
  • 13
  • 34
3
votes
2 answers

How to use .NET to Turn the Monitor back on after the Idle Timer has Turned it Off?

How do I turn the monitor back on after the idle timer has turned it off? I have power options in windows 7 set to: Turn off monitor after: 1 minute Go to sleep: Never But I don't know how to turn it back on through code.
PatTech
  • 397
  • 2
  • 10
3
votes
1 answer

How to install Android application as system app

I am trying to learn how to install any application as system app. Basically i am trying to use goToSleep and WakeUp function calls in android. I understand that to use these call in your application , application must be installed as system…
sudhir
  • 31
  • 3
3
votes
1 answer

How does android schedule the device to wake up from sleeping state?

When using AlarmManager, Android device can wake up from sleeping at some time. How does Android schedule the wakeup at lower level? I tried using rtcwake, but it fails with rtcwake: /dev/rtc0 not enabled for wakeup events (if I force rtcwake to…
Vi.
  • 37,014
  • 18
  • 93
  • 148
3
votes
1 answer

Wake PIC16F1825 from sleep with RS232

Is it possible to wake a Microchip PIC16F1825 from sleep using RS232 without looking characters? Because one of the permissible RX pins supports interrupt on change, I thought this might be possible. Has anybody implemented this successfully?
ARF
  • 7,420
  • 8
  • 45
  • 72
2
votes
1 answer

AlarmManager vs wake up

This is my code: Activity: @Override public void onCreate(Bundle savedInstanceState) { ... Intent intent = new Intent(this, MyReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast( this.getApplicationContext(), 234324243,…
Kolesar
  • 1,265
  • 3
  • 19
  • 41
2
votes
4 answers

Allow wake timers Windows 7/Vista

I need to allow WakeTimers (computer wake up from sleep/hibernation) for all power plans set on plugged in to Enabled. I tried Win32_PowerSetting but it only works on english version of Windows. I need to use .NET 2.0 Thanks for responses !
sczdavos
  • 2,035
  • 11
  • 37
  • 71
2
votes
1 answer

In Python, Best way to sleep awaiting a callback

I am writing some python wrappers for a c++ library that speaks to a hardware device. The general model of the library is to register a callback routine, then send a command to the hardware and await the callback. I could simply loop checking a…
dawfedora
  • 21
  • 1
1 2
3
13 14