Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Suspend/Resume process easier #146

Closed
ghost opened this issue Jul 2, 2019 · 6 comments
Closed

[Suggestion] Suspend/Resume process easier #146

ghost opened this issue Jul 2, 2019 · 6 comments
Labels
Idea-New PowerToy Suggestion for a PowerToy

Comments

@ghost
Copy link

ghost commented Jul 2, 2019

Currently the only way to suspend / resume a process is by using Resource Monitor. Maybe add something like "right click on X to suspend process" and auto-resume it when its windows gets restored ?
"7 Sidebar" had achieved something similar, but it's too dated.

@crutkas
Copy link
Member

crutkas commented Mar 12, 2020

@goldenhashtag, what items do you suspend / resume? can you give more of your scenario when you use this?

@crutkas crutkas added the Idea-New PowerToy Suggestion for a PowerToy label Mar 12, 2020
@ghost
Copy link
Author

ghost commented Mar 12, 2020

@GoldenHashtag, what items do you suspend / resume? can you give more of your scenario when you use this?

Usually I suspend game processes when I don't want to play it right away but want to keep the game status (like in mid of boss fight, where game won't allow you to save). Suspending a game process reduces unnecessary resource usage which is especially important on a laptop/tablet.
Also I suspend browsers when I'm not using them, as you know the famous of chrome being a resource hunter.

Without handy method to suspend/resume a process I only suspend one when I'm sure I won't use it for a long time (for hours), but with capability of suspending/resuming easier, I can suspend any process I'm not using, even for a brief moment (Fiddler for example, I may use it any time but for the time i'm not using it, it still takes CPU time).

@crutkas
Copy link
Member

crutkas commented Mar 12, 2020

for chrome, i get it loves RAM but as long as that love doesn't inhibit other things on the system, is that a bad thing?

if we bring something like this up, i'm heavily worried about being blamed for any suspending issues for instability. Your game scenario, if it doesn't resume properly, PowerToys gets blamed for the failure.

@ghost
Copy link
Author

ghost commented Mar 13, 2020

some sites take CPU time even if not using them yet for some reason you shouldn't be closing them (VSCode Online).
Yes, I've thought of instability issues, that's why I'm submitting such suggestion to PowerToys, not Feedback Hub. Power users should know what they're doing, all you need to do is give users a warn that suspending a process might cause issue, as Resource Monitor did.
image
Besides I hadn't experienced issues with most games, even in multiplayer (it does disconnect when resumed, though).

@crutkas
Copy link
Member

crutkas commented Oct 30, 2020

Closing against #142 bucket. Same reasoning for closing #142.

On discussing this, the reason we cannot suspend arbitrary Win32 apps is because they are not isolated from one another (all full trust); they share named objects, can access same files without broker, free window messaging, etc. One example is if you suspend an app that is holding a file open. With UWP, we can find the app that has it and shut it down (it has saved state). With Win32, if you caught the app at the wrong time (opened the file and hasn’t closed yet), the foreground app will fail to get access to the file.

if you suspend something with sysinternals, you're putting your system at risk for instability

@crutkas crutkas closed this as completed Oct 30, 2020
@AJolly
Copy link

AJolly commented Oct 17, 2024

@rcmaehl Would you be able to share your example code? (yes, I understand the risk of instability etc)

stefansjfw pushed a commit that referenced this issue Dec 18, 2024
Whoops. 

We were accidentally deploying all the extension packages to the _same_ directory. That meant we could only ever register one at a time - including the extension host. yikes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-New PowerToy Suggestion for a PowerToy
Projects
None yet
Development

No branches or pull requests

2 participants