Skip to content

feat: keep a headless Linux Agent awake with a polkit rule - #133

Merged
ado11231 merged 2 commits into
masterfrom
feat/sleep-rule
Oct 16, 2026
Merged

ado11231 merged 2 commits into
masterfrom
feat/sleep-rule

Conversation

@ado11231

Copy link
Copy Markdown
Owner

Closes #68.

  • Setting up start at boot on a Linux Agent that can sleep also writes /etc/polkit-1/rules.d/50-slingshot.rules with sudo, shown first.
  • start --remove and uninstall delete it.

Tested on archbox: after a reboot with nobody logged in, the lock was held, GNOME tried to suspend at 15 minutes and was blocked, and archbox was reachable at 30 minutes.

With nobody logged in, polkit refuses the boot service's sleep lock, so an idle login screen can suspend the Agent. Setting up start at boot on a Linux Agent that can sleep now also writes one rule letting this account hold the lock, shown first and written with sudo. start --remove and uninstall delete it.
Usage, messages, and the roadmap cover the polkit rule and its test on archbox.
@ado11231
ado11231 merged commit b0144a4 into master Oct 16, 2026
2 checks passed
@ado11231
ado11231 deleted the feat/sleep-rule branch October 18, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep a headless Linux Agent awake at boot

1 participant