Bug 513579

Summary: Sometime reported refreshrate is not what is actually set
Product: [Plasma] kwin Reporter: borna.vincek1
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kscreen-doctor
drm_info

Description borna.vincek1 2025-12-19 13:14:28 UTC
Created attachment 187796 [details]
kscreen-doctor

KDE,Nvidia,Wayland

From time to time after login i notice both screens go dark as if someone/something attempted to change screen settings, after that consistently second monitor has it's refresh rate set from above 60 to 60, opening the settings refreshrate is shown to be in my case 160, but the feel is of 60

the way i found i can fix it is manually switching to refreshrate other than the current one, and then back to 160, following that it's working as expected until few restarts pass and i notice again that black screen right after login which replicates the behavior

running xrandr shows the *+ on incorrect setting
running kscreen-doctor --outputs shows weird output, 
    * on incorrect 
    ! on actual
`Modes:  1:3840x2160@60.00!  2:3840x2160@160.00*  3:3840x2160@143.85` attached screenshot
what i would expect is if it's renegotiating the refreshrate to show the updated "current" state in the settings dialog, not the incorrect one
Comment 1 Zamundaaa 2025-12-19 13:27:10 UTC
Please attach the output of drm_info when this happens.
Comment 2 borna.vincek1 2025-12-19 15:26:51 UTC
Created attachment 187800 [details]
drm_info
Comment 3 borna.vincek1 2025-12-19 15:27:19 UTC
(In reply to Zamundaaa from comment #1)
> Please attach the output of drm_info when this happens.

I have added drm_info attachment to the issue
Comment 4 Zamundaaa 2025-12-21 13:53:25 UTC
drm_info confirms it's set to 60Hz by KWin, not sure how that could happen though.
Comment 5 borna.vincek1 2025-12-21 14:17:01 UTC
of note just rebooting is sometimes enough to revert it to the valid configuration.
so: login, black screen display starts being at 60 ->   reboot, ->  if no black screen after login, it is back to what it should be(did not happen enough times to say it's consistent)