| Summary: | List all refresh rates, and their fractional parts | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | tux <tux> |
| Component: | kcm_kscreen | Assignee: | kscreen-bugs-null <kscreen-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | fanzhuyifan, nate, plasma-bugs-null, xaver.hugl |
| Priority: | NOR | Keywords: | wayland-only |
| Version First Reported In: | 5.27.8 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
tux
2023-10-23 20:35:19 UTC
You can check the modes the kernel advertises with drm_info, but I'm 100% sure that KWin doesn't generate any such modes. There's probably a bug in the kernel that makes it wrongly enable freesync video modes; please report that to https://gitlab.freedesktop.org/drm/amd/-/issues If you give me the output of drm_info on your system though, maybe we can find a way to still mark these generated modes as such (In reply to Zamundaaa from comment #1) > You can check the modes the kernel advertises with drm_info, but I'm 100% > sure that KWin doesn't generate any such modes. There's probably a bug in > the kernel that makes it wrongly enable freesync video modes; please report > that to https://gitlab.freedesktop.org/drm/amd/-/issues > > If you give me the output of drm_info on your system though, maybe we can > find a way to still mark these generated modes as such This is the output of `drm_info` on my system: https://invent.kde.org/-/snippets/2874 There's no flag that says they're generated, they're all "driver". So I'm afraid we can't even mark them as generated in kscreen-doctor, and the driver just has to make sure the modes it advertises actually work (In reply to Zamundaaa from comment #3) > There's no flag that says they're generated, they're all "driver". So I'm > afraid we can't even mark them as generated in kscreen-doctor, and the > driver just has to make sure the modes it advertises actually work So this is a kernel/driver bug and not KDE's fault? Where should I report this bug then? Yes. You can report the modes being generated despite the option being off, and the image being distorted with some of the generated modes at https://gitlab.freedesktop.org/drm/amd/-/issues. VRR not working with any generated modes is already reported at https://gitlab.freedesktop.org/drm/amd/-/issues/2185 (In reply to Zamundaaa from comment #5) > Yes. You can report the modes being generated despite the option being off, > and the image being distorted with some of the generated modes at > https://gitlab.freedesktop.org/drm/amd/-/issues. > VRR not working with any generated modes is already reported at > https://gitlab.freedesktop.org/drm/amd/-/issues/2185 Thanks for your help. There may still be one thing KDE could improve in the meantime: listing all refresh rate modes even the Hz value is equal. That way instead of only the fake 120 Hz appearing in Display Configuration, there are two 120 Hz options (one fake, one real). (In reply to wokim from comment #6) > (In reply to Zamundaaa from comment #5) > > Yes. You can report the modes being generated despite the option being off, > > and the image being distorted with some of the generated modes at > > https://gitlab.freedesktop.org/drm/amd/-/issues. > > VRR not working with any generated modes is already reported at > > https://gitlab.freedesktop.org/drm/amd/-/issues/2185 > > Thanks for your help. There may still be one thing KDE could improve in the > meantime: listing all refresh rate modes even the Hz value is equal. That > way instead of only the fake 120 Hz appearing in Display Configuration, > there are two 120 Hz options (one fake, one real). I also tried Gnome, and they list every refresh rate (all real and all fake refresh rates). And because they use decimals (e.g. 120.00 Hz and 119.94 Hz) I can distinguish between real and fake refresh rates. So it seems very useful to me if KDE (Display Configuration and kscreen-doctor) would also list all refresh rates (and not try hide duplicates) and also show decimals. (In reply to wokim from comment #7) > I also tried Gnome, and they list every refresh rate (all real and all fake > refresh rates). And because they use decimals (e.g. 120.00 Hz and 119.94 Hz) > I can distinguish between real and fake refresh rates. So it seems very > useful to me if KDE (Display Configuration and kscreen-doctor) would also > list all refresh rates (and not try hide duplicates) and also show decimals. Another problem is that even if I select the real 120 Hz through kscreen-doctor, it'll default/revert back to the fake 120 Hz after a reboot or after restarting KDE. (In reply to Zamundaaa from comment #3) > There's no flag that says they're generated, they're all "driver". So I'm > afraid we can't even mark them as generated in kscreen-doctor, and the > driver just has to make sure the modes it advertises actually work (In reply to Zamundaaa from comment #5) > Yes. You can report the modes being generated despite the option being off, > and the image being distorted with some of the generated modes at > https://gitlab.freedesktop.org/drm/amd/-/issues. > VRR not working with any generated modes is already reported at > https://gitlab.freedesktop.org/drm/amd/-/issues/2185 See this bug report for more information on what may be necessary for KDE to recognize these fake refresh rates: https://gitlab.freedesktop.org/drm/amd/-/issues/2985 (In reply to wokim from comment #8) > Another problem is that even if I select the real 120 Hz through > kscreen-doctor, it'll default/revert back to the fake 120 Hz after a reboot > or after restarting KDE. I've found a workaround for this: editing the monitors EDID with Custom Resolution Utility (through wine) and marking the 120 Hz refresh rate mode as "Preferred" in its "Detailed resolutions" data block (in its DisplayID 1.3 extension block). Then exporting the edited EDID and copying it to "/usr/lib/firmware/edid/my_edid.bin" and loading it on boot by adding to my kernel boot line "drm.edid_firmware=edid/my_edid.bin". Now KDE thinks the real 120 Hz is the only one that matters and the fake 120 Hz gets removed as a duplicate (instead of the other way around). (In reply to Zamundaaa from comment #5) > Yes. You can report the modes being generated despite the option being off, > and the image being distorted with some of the generated modes at > https://gitlab.freedesktop.org/drm/amd/-/issues. > VRR not working with any generated modes is already reported at > https://gitlab.freedesktop.org/drm/amd/-/issues/2185 Marking as resolved-upstream. (In reply to wokim from comment #7) > I also tried Gnome, and they list every refresh rate (all real and all fake > refresh rates). And because they use decimals (e.g. 120.00 Hz and 119.94 Hz) > I can distinguish between real and fake refresh rates. So it seems very > useful to me if KDE (Display Configuration and kscreen-doctor) would also > list all refresh rates (and not try hide duplicates) and also show decimals. I believe this is being tracked in https://bugs.kde.org/show_bug.cgi?id=431057 (In reply to fanzhuyifan from comment #11) > (In reply to Zamundaaa from comment #5) > > Yes. You can report the modes being generated despite the option being off, > > and the image being distorted with some of the generated modes at > > https://gitlab.freedesktop.org/drm/amd/-/issues. > > VRR not working with any generated modes is already reported at > > https://gitlab.freedesktop.org/drm/amd/-/issues/2185 > > Marking as resolved-upstream. There is a more specific issue there on this: https://gitlab.freedesktop.org/drm/amd/-/issues/2985. But the bugs here are also multiple KDE bugs and not just an AMD bug, so it shouldn't be marked as resolved-upstream. > (In reply to wokim from comment #7) > > I also tried Gnome, and they list every refresh rate (all real and all fake > > refresh rates). And because they use decimals (e.g. 120.00 Hz and 119.94 Hz) > > I can distinguish between real and fake refresh rates. So it seems very > > useful to me if KDE (Display Configuration and kscreen-doctor) would also > > list all refresh rates (and not try hide duplicates) and also show decimals. > > I believe this is being tracked in > https://bugs.kde.org/show_bug.cgi?id=431057 The refresh rates being improperly stored (bug 431057) isn't the only bug here. The other bugs here are: (1) Display Configuration hides refresh rates which are visible in kscreen-doctor, and (2) when you apply e.g. the real 120 Hz with kscreen-doctor it gets set back to the fake 120 Hz after a reboot. (In reply to wokim from comment #12) > But the bugs here are also multiple KDE bugs and not just an AMD bug, so it > shouldn't be marked as resolved-upstream. > > The refresh rates being improperly stored (bug 431057) isn't the only bug > here. The other bugs here are: (1) Display Configuration hides refresh rates > which are visible in kscreen-doctor, and (2) when you apply e.g. the real > 120 Hz with kscreen-doctor it gets set back to the fake 120 Hz after a > reboot. Thanks for the bug report! Unfortunately it reports multiple distinct issues, which will make it not actionable. See https://community.kde.org/Get_Involved/Issue_Reporting#Multiple_issues_in_a_single_Bugzilla_ticket for more explanation. Can I ask you to submit a new bug report for each specific issue? Thanks again! > The refresh rates being improperly stored (bug 431057) isn't the only bug > here. The other bugs here are: (1) Display Configuration hides refresh rates > which are visible in kscreen-doctor, and (2) when you apply e.g. the real > 120 Hz with kscreen-doctor it gets set back to the fake 120 Hz after a > reboot. Could you open a separate bug report for (1)? IMO (2) seems like a duplicate of BUG 431057, (e.g., see https://bugs.kde.org/show_bug.cgi?id=431057#c8) Are there other issues here not covered by the upstream report, and (1) and (2) here? |