Bug 424997 - When monitor supports 59.94hz refresh rate, it does not appear in the refresh rate combobox, but choosing 60Hz sets the refresh rate to 59.94hz
Summary: When monitor supports 59.94hz refresh rate, it does not appear in the refresh...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kscreen (show other bugs)
Version: 5.18.5
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-04 09:14 UTC by mercuriete
Modified: 2023-06-28 03:40 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mercuriete 2020-08-04 09:14:36 UTC
SUMMARY

Kscreen is not showing all video modes, resulting in not showing the default mode.

When your monitor have 60hz and 59.94hz, the values get rounded to 60 and the dropdown you can't choose 60hz instead you have a 60hz label but enables the non default 59.94hz

Workaround: when you delete the folder .local/share/kscreen the monitors gets the default video mode.




STEPS TO REPRODUCE
1. buy an screen with 60hz and 59.94hz
2. change video mode to 30hz with kscreen
3. change again to 60hz
4. see xrandr output.

OBSERVED RESULT

59.94hz (non default videomode) is choosen

EXPECTED RESULT

60hz is choosen

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.18.5

Xrand output:

HDMI-A-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 640mm x 360mm
   1920x1080     60.00 +  50.00    59.94*   30.00    25.00    24.00    29.97    23.98  
   1680x1050     60.00  
   1280x1024     60.02  
   1440x900      60.00  
   1360x768      59.80  
   1280x800      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94
Comment 1 mercuriete 2020-08-04 10:22:11 UTC
Posible implementation:

when iterating for all refresh rates...
if they are rounded to the same number on the dropdown...
if the refresh rate is a default videomode dont deduplicate or discard the others refresh rates with the same number.

Another implementation:

use 2 decimal points on the drop down.
Comment 2 mercuriete 2021-03-08 16:35:17 UTC
I think this is related to
https://bugs.kde.org/show_bug.cgi?id=423576

but is not the same bug.
Comment 3 Méven Car 2021-07-27 08:36:25 UTC
What does `kscreen-doctor -o` returns ?
Comment 4 Méven Car 2021-07-27 09:05:10 UTC
And the content of .local/share/kscreen when the bug occurs ?
Comment 5 valdikss 2021-08-17 14:08:43 UTC
Just a side note unrelated to a bug: 59.94 _is_ a proper mode computed with CVT Reduced Blanking algorithm. It reduces pixel clock requirement and resulting in slightly better power saving.
You should prefer 59.94 to 60 wherever possible.
Comment 6 Nate Graham 2022-11-08 22:15:23 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Plasma 5.25 or 5.26?

If it is, please change the status to CONFIRMED when replying. If not, or if you can't because you no longer use this setup, you can change the status to RESOLVED WORKSFORME. Thanks a lot!
Comment 7 valdikss 2022-11-17 14:07:13 UTC
(In reply to Nate Graham from comment #6)
> Thank you for the bug report. Unfortunately we were not able to get to it
> yet. Can we ask you to please check if this is still an issue with Plasma
> 5.25 or 5.26?
> 
> If it is, please change the status to CONFIRMED when replying. If not, or if
> you can't because you no longer use this setup, you can change the status to
> RESOLVED WORKSFORME. Thanks a lot!

This is still an issue as of KDE 5.25.4 on Fedora 35.
Comment 8 Nate Graham 2022-11-18 17:19:30 UTC
Thanks. Can you paste the output of `kscreen-doctor -o` after you've reproduced the issue?
Comment 9 valdikss 2022-11-18 17:29:44 UTC
(In reply to Nate Graham from comment #8)
> Thanks. Can you paste the output of `kscreen-doctor -o` after you've
> reproduced the issue?

Unfortunately, no, I won't be able to use the PC this or next week.
See my bug 431057, it contains more information. It's not exactly the same bug, but the root could be the same.
Comment 10 Nate Graham 2022-11-18 20:41:09 UTC
Similar, yeah, and possibly the same issue. Ironically Bug 431057 shows that we store the refresh rate as a floating point value, probably to support the case of a refresh rate of 59.94hz. But apparently it's not working, since you have this bug too, and storing the data that way also causes Bug 431057. What a mess!