Bug 423576 - The highest available screen refresh rate is not selected by default
Summary: The highest available screen refresh rate is not selected by default
Status: RESOLVED WORKSFORME
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.19.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2020-06-27 10:04 UTC by Matej Mrenica
Modified: 2021-08-10 14:49 UTC (History)
4 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 Matej Mrenica 2020-06-27 10:04:05 UTC
SUMMARY
I have a laptop screen with Freesync that provides two refresh rates, 40Hz and 60Hz. Every time I log into Plasma Wayland session 40Hz is selected even though I've selected 60Hz. This issue is not present in X.org  session.

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.71
Qt Version: 5.15.0
Comment 1 Nate Graham 2020-07-02 00:44:07 UTC
That's odd.
Comment 2 Matej Mrenica 2020-07-12 09:33:13 UTC
Does anybody know which exact files store this settings? I also noticed that this issue didn't show up yet on my new user profile so this issue is most likely going to be closed after more testing.
Comment 3 Nate Graham 2020-07-12 15:28:23 UTC
Maybe somewhere in ~/.local/share/kscreen?
Comment 4 Matej Mrenica 2020-07-13 17:38:31 UTC
After deleting ~/.local/share/kscreen and re-applying my settings this issue disappeared. The config files must have been damaged or badly migrated from older versions.
Comment 5 Matej Mrenica 2020-07-19 07:54:42 UTC
This issue is back. I set my screen to 40Hz once again and now it uses this setting by default every time I login. A good way o describe this issue would be: "The lower refresh rate is used by default if it has been used at least once before." Deleting ~/.local/share/kscreen still works as a temporary fix.
Comment 6 mercuriete 2021-03-08 16:27:35 UTC
Same for me:

I am using gentoo:

kde-plasma/kscreen-5.20.5

output of my xrandr:

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
DisplayPort-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     71.91*+  60.00    59.94  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.89  
   1280x800      59.81  
   1280x720      60.00    59.94  
   1024x768      70.07    60.00  
   800x600       72.19    60.32    56.25  
   640x480       72.81    66.67    60.00    59.94  
   720x400       70.08  
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
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  

if you see...

the default for second monitor is 60hz but kscreen is taking 59.94

59.94 is rounded to 60hz on the GUI and when you select 60Hz on the GUI it set to 59.94Hz which is not the default.


Posible fix: Dont round frequencies on GUI and put a drop down with 2 decimals.


Workaround deleting .local/share/kscreen works fine until the next time you try to use kscreen.

If you need a screen capture I can provide it.


TLDR;

59.94 is rounded to 60 on GUI and real 60 is not shown.
Comment 7 mercuriete 2021-03-08 16:31:48 UTC
Sorry for the noise I reported my problem here: https://bugs.kde.org/show_bug.cgi?id=424997
Comment 8 Méven Car 2021-07-27 08:36:12 UTC
What does `kscreen-doctor -o` returns ?
Comment 9 Matej Mrenica 2021-07-27 10:13:23 UTC
I cannot reproduce this issue anymore/right now.