Bug 498987

Summary: Display turns black when attempting to screenshot with rectangular region and adaptive sync is enabled
Product: [Plasma] kwin Reporter: contramuffin
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alixbenjamin53, kde, nafendley, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description contramuffin 2025-01-22 01:39:10 UTC
SUMMARY
If adaptive sync is enabled on the monitor, when attempting to screenshot with rectangular region, display turns black and only comes back when the screenshot is cancelled. My monitor is Sceptre E248B-FPT168 (1080p 165Hz)

STEPS TO REPRODUCE
1. enable adaptive sync
2. take a screenshot with rectangular region
3. display turns black

OBSERVED RESULT
Display turns black

EXPECTED RESULT
Display should not turn black when adaptive sync is enabled

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-13-generic (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Nathan F. 2025-01-22 23:05:08 UTC
I can confirm that I'm experiencing this bug. I have a dual-monitor setup with an ASUS VG27A (1440p 165hz) display and an FMC 1080p60 display, where the former has adaptive sync and the latter does not. When adaptive sync is "automatic" on the ASUS display, taking a screenshot as specified in the report will black out the ASUS display, while allowing a region to be selected as usual on the FMC display.

I might also note that when adaptive sync is set to "Always" on the ASUS display, it ceases to work entirely until the settings auto-revert - this may be a related issue.
Comment 2 contramuffin 2025-01-23 00:21:05 UTC
Attempted this on another monitor (Koorui GP-01, 1440p, 165 Hz, adaptive sync enabled), but Spectacle seems to work fine here. Not quite sure what the pattern is between the monitors that have this bug vs. those that don't, but it does appear to be dependent on the monitor used. (In both cases the monitor is connected via DisplayPort)
Comment 3 Zamundaaa 2025-01-23 14:28:58 UTC
Please report this to your driver vendor (at https://gitlab.freedesktop.org/drm/amd/-/issues for AMD, https://forums.developer.nvidia.com/c/gpu-graphics/linux for NVidia); KWin only turns on VRR and it's up to the driver to make it work.
Most likely the signal is getting out of the valid refresh rate range, and not all displays handle that nicely, but it might be something else as well.
Comment 4 contramuffin 2025-01-25 23:08:10 UTC
Filed bug report here:
https://gitlab.freedesktop.org/drm/amd/-/issues/3924
Comment 5 alixbenjamin53 2025-10-07 19:31:30 UTC
I also submitted a report on NVIDIA forums: https://forums.developer.nvidia.com/t/black-screen-on-full-screen-with-adaptive-sync/347058