Repository navigation
fix: pico4-power turns the fan off for a sleep and gives control back after the wake, as PICO OS does - #55
Merged
Merged
Conversation
… after the wake, as PICO OS does systemd-sleep's hook tells pico4-fan before the sleep (duty 0, no sensor reads) and after the wake (the table's duty at once, from the means as they were); a daemon that runs a minute after a sleep without a wake takes control back. For overpressure/phoenix#182
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For overpressure/phoenix#182
PICO OS's fan service sets 0 % when the headset sleeps and stops reading the zones; on the wake the MCU is woken and the table's duty sent at once. pico4-power now does the same through a systemd-sleep hook (
/usr/lib/systemd/system-sleep/pico4-fan):pico4-fan sleep/pico4-fan wakesignal the daemon and wait up to 2 s for its state file. A daemon that runs a minute after a sleep without a wake takes control back; a failing hook never stops the sleep.Checked on the headset: a minute at 100 % (14,406 rpm), then a suspend with an RTC wake: 0 % acknowledged before the sleep, control back at the wake. Host tests for the daemon's sleep, the hook and the CLI.