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

cli: implement --no-sleep for linux #171927

Merged
merged 2 commits into from Jan 21, 2023
Merged

cli: implement --no-sleep for linux #171927

merged 2 commits into from Jan 21, 2023

Conversation

connor4312
Copy link
Member

Builds on #171894 the best I can; the ideal APIs to use for this require root permissions.

Last CLI-side change for microsoft/vscode-remote-release#7127

///
/// See https://source.chromium.org/chromium/chromium/src/+/main:services/device/wake_lock/power_save_blocker/power_save_blocker_linux.cc;l=54;drc=2e85357a8b76996981cc6f783853a49df2cedc3a
#[dbus_proxy(
interface = "org.freedesktop.PowerManagement.Inhibit",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this require a GUI/dbus session? Does it work in a headless environment?

@connor4312 connor4312 merged commit 3ccb3ca into main Jan 21, 2023
@connor4312 connor4312 deleted the connor4312/nosleep-linux branch January 21, 2023 23:29
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants