-
Notifications
You must be signed in to change notification settings - Fork 60
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
Various TDA19988 fixes #1821
Various TDA19988 fixes #1821
Conversation
jrtc27
commented
Aug 29, 2023
- tda19988: Implement a non-stub mode_valid to filter unsupported resolutions
- tda19988: Properly implement mode_set/bridge_enable/bridge_disable flow
- tda19988: Fix divisor calculation
- komeda: Drop temporary resolution hack
Otherwise, when SDDM tries to put the display to sleep, we don't disable the output and end up outputting a garbled picture, where the amount of garbling increases with system activity. Co-authored-by: Ruslan Bukin <[email protected]>
The existing calculation was linear with a fixup to make it non-linear (and, correctly, cap it at 3). However, the actual value is logarithmic and this ended up generating bad values in the following ranges: * [20000, 37125] - gave a divisor of 3 not 2 * [40000, 49500] - gave a divisor of 2 not 1 * [74251, 79999] - gave a divisor of 0 not 1
This was presumably an attempt to work around not having properly implemented mode_valid in the tda19988 driver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed that this does allow my monitor to go to sleep at sddm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this supplants #1618 btw since the second commit here is a squash of that?
Partially. This doesn't change anything for komeda. And I wrote it from scratch (other than the enable / disable bits, which is what the Co-authored-by is for), so it's slightly different (e.g. mode vs adjusted_mode). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm this patch works correctly on my screen - ASUS ProArt Display PA148CTV. Instead of displaying garbage, the screen sleeps due to inactivity in sddm.