Bug 473460 - Screen freezes when entering full screen or forcing Adaptive Sync in Wayland session
Summary: Screen freezes when entering full screen or forcing Adaptive Sync in Wayland ...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.27.7
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-16 18:00 UTC by Victor Zhavoronkov
Modified: 2023-08-16 18:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
journalctl output for a boot with an attempt to set Adaptive Sync to Always; system was manually reset after ~5s of freeze (243.95 KB, text/plain)
2023-08-16 18:00 UTC, Victor Zhavoronkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Zhavoronkov 2023-08-16 18:00:20 UTC
Created attachment 161012 [details]
journalctl output for a boot with an attempt to set Adaptive Sync to Always; system was manually reset after ~5s of freeze

SUMMARY
Full screen freeze (unable to move mouse cursor / switch to TTY) when either entering full screen with Adaptive Sync set to Automatic or trying to set Adaptive Sync to Always through Display Configuration.

STEPS TO REPRODUCE
1. Have Adaptive Sync set to Automatic
2. Open Firefox and try to enter a full screen (F11)

or

1. Open Display Configuration
2. Set Adaptive Sync to Always
3. Press Apply

OBSERVED RESULT
Screen freezes, mouse cursor is static, unable to switch to TTY

EXPECTED RESULT
No freeze

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230813
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.9-1-default (64-bit)
Graphics Platform: Wayland
Processors: 14 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XT
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-8.0

ADDITIONAL INFORMATION
I use a single 144Hz 4k monitor with 150% scaling.

Note that even though I currently use a VM with GPU passthrough this behaviour was reproducible on bare metal.

It might have been introduced several months ago since I remember full screen working fine previously on this installation.
Comment 1 Victor Zhavoronkov 2023-08-16 18:20:37 UTC
Would like to add that full screen mode is not 100% smooth with Adaptive Sync set to Never too - when moving a mouse there are severe frame drops, mouse cursor is changing size and there are a lot of "kwin_wayland[1665]: kwin_screencast: Dropping a screencast frame because the compositor is slow" entries in system logs.
Comment 2 Zamundaaa 2023-08-16 18:41:31 UTC
I see
> Aug 16 21:19:03 MiWiFi-RA82-srv kernel: [drm:dc_dmub_srv_wait_idle [amdgpu]] *ERROR* Error waiting for DMUB idle: status=3
in your log, so this is almost certainly a driver bug. Please report it to https://gitlab.freedesktop.org/drm/amd/-/issues