Questions tagged [suspend]
469 questions
2
votes
2 answers
2
votes
0 answers
container lost internet access after the docker VM resuming from suspension
My host OS is Windows. I have an Ubuntu 20.04 VMWare VM with docker daemon running. I fixed the /etc/resolv.conf on the VM pointing to /run/systemd/resolve/resolv.conf instead of the default /run/systemd/resolve/stub-resolv.conf, so that docker…

Ja S
- 31
- 3
2
votes
0 answers
Ubuntu 20.04 not getting locked after lid close
I have installed the latest ubuntu 20.04 and recently noticed a bug that whenever I close my lid the screen only goes blank instead of going into hibernate or suspend.
I noticed that there is no longer an option in gnome-settings as it was in…

Sandeep Singh
- 71
- 8
2
votes
1 answer
Handling power events in .net core
Can someone help me with alternative way for handling power events in .net core?
I am porting my .net framework window service applications to .net core 2.2, and in .net framework I was using ServiceBase class and itself methods for handling power…

mata94
- 43
- 4
2
votes
1 answer
Is `Thread.checkAccess()` the appropriate replacement for `Thread.suspend()`?
IntelliJ suggests that I replace the deprecated Thread.suspend() with Thread.checkAccess(). Based on the (very brief) documents, checkAccess() seems like a good idea, but also seems quite different than .suspend(), which certainly seems very bad…

NonCreature0714
- 5,744
- 10
- 30
- 52
2
votes
1 answer
when the thread will suspend a suspend-function?
I am just learning about Kotlin's Coroutines, and I'm curious when the thread will suspend a suspend-function. In Golang, we know it will suspend a goroutine in several cases; calling another goroutine, block-syscall, channeling, gc. Is Kotlin's…

shi hich
- 21
- 1
2
votes
1 answer
What's the last instruction to cause the machine go to S3 sleep?
From ACPI Spec 4.0 page 299, there is some sample code to show how to put the machine into S3 sleep. I just wondering what are the last instructions to cause the hardware to sleep? What happens after following code, and why?
mov edx, PM1a_SLP_TYP ;…

Jiang
- 491
- 5
- 9
2
votes
2 answers
App or Code to Suspend Resume UWP app without Visual Studio
My question is similar to How to make UWP app to suspend and resume state, but I need an application that I can give to my QA team so that they can more easily invoke Suspend and Resume in my app.
Since Visual Studio has a "LifeCycle Events" toolbar…

Greg Thatcher
- 1,303
- 20
- 29
2
votes
1 answer
C# Suspending Thread until Server responds
I am trying to make a function that when called returns back information to the caller that is on a server. What I want in this function, is that it creates a thread that issues the command to the server, and then suspends itself until the server…

Ilan Keshet
- 514
- 5
- 19
2
votes
1 answer
HTML5 Video - Suspend Loading / Partial Load
Is there a way to preload a portion of a video, but not the entire thing? I noticed that there is a "suspend" event that indicates the video is expectedly not downloading until further instruction, but I'm unsure of how to trigger this event?
My…

Matrym
- 16,643
- 33
- 95
- 140
2
votes
0 answers
How to suspend process inside the docker using keyboard command?
I have a windows 10 with docker installed. I enter the docker container by docker attach Container_ID. Then I know how to detach (ctrl+p, ctrl+q). If I enter top command, and press ctrl+c, the top command will stop.
However, when I press ctrl+z, I…

CatDog
- 415
- 6
- 12
2
votes
0 answers
UWP suspend disable with ExtendedExecutionSession or ExtendedExecutionForegroundSession
UWP, I can not be disable to suspend. I need your knowledge.
Here is my simple example to know issue. It's counter increase/decrease application.
Actually, I want to monitor temperatures from device for 356 x 24 hours without any stopping. I expect…

Kazuhiko Nakayama
- 801
- 1
- 8
- 24
2
votes
0 answers
How to be notified about entering suspend mode?
I'd like my application to be notified when system is about to suspend or sleep (before).
No matter to acquire a wake lock: i dont want to inhibit the procedure but only to be notified about it.
Thank you.
L.

lorenzoff
- 1,120
- 3
- 15
- 32
2
votes
0 answers
Kernel32 does not contain a method named 'OpenThread'
I am trying to write a Suspend-Process Function in Powershell 5 and the error I get is Method invocation failed because [Kernel32] does not contain a method named 'OpenThread' The Powershell code follows
#Thread Access…

Nikos Balotis
- 21
- 1
2
votes
0 answers
Visual Studio stuck at “Resuming Suspended work”
I am using Visual studio 2017.
I suspended my work from the 'My Work' page. When trying to resume it,the visual studio got stuck on the process, showing this window:
Resuming Suspended work window
This Task is completely stuck. I can't cancel the…

Michal Kandel
- 303
- 2
- 10