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

ddcci-multi-monitor@tim-we: Retry setting brightness and raise timeouts #6434

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

qwertz19281
Copy link
Contributor

Add a retry mechanism to ddcci-multi-monitor@tim-we for setting the brightness and raise some timeouts.

For updating brightness, retry up to 16 times and increase timeout to 5000ms.

For querying, increase timeout to 500ms.

This should improve the DDC/CI brightness applet functionality with monitors which are slow/unreliable reading/updating DDC/CI brightness.

The way it is done (with the send/sent_brightness) also minimizes cascading of updates if the brightness is changed quickly in succession.

cc @GingerGigiCat @tim-we

Add a retry mechanism for setting the brightness (currently 16 times) and raise some timeouts (5s setting brightness, 500ms querying brightness).
@GingerGigiCat
Copy link
Contributor

The changes make sense and would probably fix some strange edge cases, so thanks for adding.
And of course, the extension still works normally with your changes so it can be merged.

@rcalixte rcalixte merged commit e093333 into linuxmint:master Sep 24, 2024
1 check passed
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