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

pwm: Reload counters when they reach 0 #304

Merged
merged 1 commit into from Oct 14, 2022
Merged

pwm: Reload counters when they reach 0 #304

merged 1 commit into from Oct 14, 2022

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Oct 11, 2022

Add IT5570E register that controls when the down counters are updated. Set them to update when they reach 0, instead of immediately when DCRi is written.

Fixes keyboard color changing when changing brightness levels if not using 0xFF for an RGB value.

Fixes: #174

@crawfxrd crawfxrd requested review from a team October 11, 2022 19:21
@crawfxrd crawfxrd force-pushed the pwm-reload branch 4 times, most recently from 00a617b to 217eee5 Compare October 11, 2022 19:29
Add IT5570E register that controls when the down counters are updated.
Set them to update when they reach 0, instead of immediately when DCRi
is written.

Fixes keyboard color changing when changing brightness levels if not
using 0xFF for an RGB value.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recreated #174 on oryp8 and confirmed this PR fixes it. (When using 310086 purple as an example, I do still see a slight shift in hue as I turn the brightness all the way from one side to the other; but the shift is now consistent, rather than jumping around, and it remains somewhat purple rather than jumping between blue and pink.)

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.

oryp6/7: Changing keyboard brightness also changes color when using custom colors
3 participants