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

snooze: add Linux rtcwake support #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbenden
Copy link

@jbenden jbenden commented Jan 27, 2023

Description

This patch brings additional power-savings by enabling the usage of the RTC wake alarm as a means of ensuring machine availability (powered-on and readiness to process) during the next available scheduled task launch.

Integrates with Systemd or Elogind for seat/idle management. If not using Elogind, a small change is needed to switch to using systemd-inhibit as opposed to elogind-inhibit.

Implementation

The RTC wake alarm is programmed using "cooperative programming" between one-or-more running snooze binary instances, and will not interfere with one-another.

The code might be a bit rough, but has been in operation for a few months working just beautifully.

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.

1 participant