Bug 493012

Summary: DPMS breaks Adaptive Sync on Wayland
Product: [Plasma] kwin Reporter: sidpranjale127
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: major CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description sidpranjale127 2024-09-12 09:05:32 UTC
SUMMARY
After Powerdevil turns the display off (idle DPMS), turning it back on breaks Adaptive Sync. With Adaptive Sync set to Automatic in Display Configuration, launching any full screen app turns off the display until the app is no longer in focus. If Adaptive Sync is set to "Always", the display simply turns off until the next reboot.

This behavior is not observed in Kwin X11 or Swaywm with Adaptive Sync enabled.

STEPS TO REPRODUCE
1. Allow the display to turn off.
2. Turn the display back on.
3. Attempt to use Adaptive Sync.

OBSERVED RESULT
The display remains black, with even the monitor OSD not rendering.

EXPECTED RESULT
The display stays on and displays content.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600 6-Core Processor
Memory: 30.9 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070/PCIe/SSE2

ADDITIONAL INFORMATION
This only happens on the nvidia open kernel module, and not on the proprietary kernel module.
Comment 1 sidpranjale127 2024-09-12 09:10:38 UTC
For what it's worth, even manually turning the monitor off and back on works as a Reproducer
Comment 2 Zamundaaa 2024-09-13 22:58:13 UTC
Please report this issue to https://github.com/NVIDIA/open-gpu-kernel-modules/issues, KWin doesn't do anything differently between the kernel modules.