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

Backlight: avoid crash on getting brightness fails #1530

Merged
merged 2 commits into from
Apr 22, 2022

Conversation

baod-rate
Copy link
Contributor

Reading brightness value for backlight device can fail intermittently (particularly when using ddcci-driver-linux). Handle this more
gracefully rather than crashing

fixes #1409

Reading brightness value for backlight device can fail intermittently
(particularly when using ddcci-driver-linux). Handle this more
gracefully rather than crashing
@baod-rate
Copy link
Contributor Author

This actually updates the value (to 0) when getting the sysattr fails, so the percentage in the bar changes to 0 for a second until the next update. seems undesirable; should just avoid doing the update instead.

Avoids the brightness percentage resetting to 0 on intermittent failures
@Alexays
Copy link
Owner

Alexays commented Apr 22, 2022

Thanks, we'll improve it in a next PR :)

@Alexays Alexays merged commit caee2e6 into Alexays:master Apr 22, 2022
@baod-rate baod-rate deleted the backlight-fix branch April 23, 2022 02:54
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.

intermittent crash caused by backlight module
2 participants