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

LED commands #136

Merged
merged 3 commits into from
Jan 15, 2021
Merged

LED commands #136

merged 3 commits into from
Jan 15, 2021

Conversation

jackpot51
Copy link
Member

@jackpot51 jackpot51 commented Jan 5, 2021

Commands will be used by keyboard-configurator in pop-os/keyboard-configurator#22

@ids1024
Copy link
Member

ids1024 commented Jan 5, 2021

With this API, a client can determine if there's a controllable keyboard backlight by checking if the max brightness is non-zero, right?

Is there anyway to determine whether or not RGB color is supported, since some models may have a monochrome backlight?

@jackpot51
Copy link
Member Author

jackpot51 commented Jan 5, 2021

@ids1024 I could adjust the led_get_color command to return a bool for whether the color can be changed, if that works

@jackpot51
Copy link
Member Author

I'm running quite low on EC space on the Launch keyboard so I think it would be best if the keyboard definition said wether it supported color

@ids1024
Copy link
Member

ids1024 commented Jan 5, 2021

so I think it would be best if the keyboard definition said wether it supported color

I suppose that works too, since it's already assumed the configurator includes specifications for different keyboard models.

@ids1024
Copy link
Member

ids1024 commented Jan 8, 2021

Another useful feature here, that I had working through pop-os/system76-power#190 (using inotify), is notification of changes. So the Configurator color and brightness could show changes made through keybindings or other methods.

Though that may complicate the API here too much.

@jackpot51
Copy link
Member Author

@ids1024 we can't really do that without a kernel driver to handle interrupts. I recommend that the configurator polls at a reasonable interval, maybe 1 second?

@jackpot51 jackpot51 merged commit 12a9ac8 into master Jan 15, 2021
@jackpot51 jackpot51 deleted the led-commands branch January 15, 2021 15:34
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.

3 participants