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

IdleLEDs: Implement a .suspend() and a .resume() method #1289

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

Commits on Oct 19, 2022

  1. IdleLEDs: Implement a .suspend() and a .resume() method

    Sometimes we want to control LEDs outside of `IdleLEDs`, like through
    `HostPowerManagement`, and in these cases, we would like `IdleLEDs` to have an
    up-to-date idea about what's going on. That is, if the host enters sleep,
    `IdleLEDs` should be aware of that, and enter idle state. Once the host wakes
    up, either via the keyboard or otherwise, `IdleLEDs` should resume its tasks.
    
    With the new `.suspend()` and `.resume()` method, this becomes possible.
    
    This addresses a big part of #1287.
    
    Signed-off-by: Gergely Nagy <algernon@keyboard.io>
    algernon committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    8d0a9ac View commit details
    Browse the repository at this point in the history