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

Prevent system from sleeping while the server is running #7127

Closed
connor4312 opened this issue Aug 26, 2022 · 2 comments · Fixed by microsoft/vscode#172043
Closed

Prevent system from sleeping while the server is running #7127

connor4312 opened this issue Aug 26, 2022 · 2 comments · Fixed by microsoft/vscode#172043
Assignees
Labels
code-server Issues on the VS Code Server. feature-request Request for new features or functionality on-testplan
Milestone

Comments

@connor4312
Copy link
Member

Suggested via user feedback, I think this makes good sense. If a user expects their machine to be remotely available, it should not automatically go to sleep.

@connor4312 connor4312 added the code-server Issues on the VS Code Server. label Aug 26, 2022
@connor4312 connor4312 self-assigned this Aug 26, 2022
@tanhakabir tanhakabir added the feature-request Request for new features or functionality label Aug 30, 2022
@tanhakabir tanhakabir added this to the Backlog milestone Aug 30, 2022
@bamurtaugh
Copy link
Member

bamurtaugh commented Jan 11, 2023

I think @chrisdias and I are observing something related.

We both had remote machines where we enabled remote access, and we shut those machines down in some way (I just enabled tunnel access on another laptop and then shut the lid). Remote Tunnels still lists the machine as online, but when I try to connect, it is stuck trying to connect and eventually times out after a few minutes:

image

Not sure if there's a way to reflect the machine as offline if we'll be unable to connect to it?

@connor4312
Copy link
Member Author

This is now done:

  • When enabling remote tunnel access from the UI, you can set remote.tunnels.access.preventSleep to stop the computer from sleeping
  • When running from the CLI, you can pass the flag --no-sleep

connor4312 added a commit to microsoft/vscode that referenced this issue Jan 23, 2023
Fixes microsoft/vscode-remote-release#7127

Also add auth logs for debugging, seemed like my OSS retained
a bad Github token.
TylerLeonhardt pushed a commit to microsoft/vscode that referenced this issue Jan 23, 2023
Fixes microsoft/vscode-remote-release#7127

Also add auth logs for debugging, seemed like my OSS retained
a bad Github token.
@connor4312 connor4312 mentioned this issue Jan 24, 2023
3 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
code-server Issues on the VS Code Server. feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants