Bug 475978 - External monitor loses signal when connected to USB-C dock using wayland with recent AMD APUs
Summary: External monitor loses signal when connected to USB-C dock using wayland with...
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL: https://gitlab.freedesktop.org/drm/am...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-22 19:12 UTC by Sam
Modified: 2023-10-23 21:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Framework 13 dmesg (7.17 KB, text/plain)
2023-10-22 19:12 UTC, Sam
Details
Asus X13 dmesg (7.41 KB, text/plain)
2023-10-22 19:13 UTC, Sam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam 2023-10-22 19:12:45 UTC
Created attachment 162503 [details]
Framework 13 dmesg

SUMMARY
***
When using Wayland, both SDDM and the plasma desktop will immediately cause my external monitor to lose all signal when connected through a USB-C dock. Once it has lost signal this way, it will not recover without rebooting the laptop. While signal is gone, the monitor still shows up in display manager as though it were still connected, and the laptop screen still registers as the secondary display. I have seen this behavior now with 2 laptops, one with an Nvidia GPU and one without a dGPU (Asus x13 - 6900HS + 3050ti, Framework 13 - 7840U). The Asus laptop runs Fedora 38 KDE spin, the Framework is running Fedora 39 Beta with KDE installed alongside gnome. The dock is a lenovo universal USB-C dock. If I use Gnome instead of plasma, display output shows as expected even with Wayland.

KDE/SDDM + X11 + dock = works
Gnome + wayland + dock = works
KDE/SDDM + wayland + direct cable to monitor = works
KDE/SDDM + wayland + dock = display output immediately lost
***


STEPS TO REPRODUCE
1. USB-C dock connects to monitor via HDMI
2. USB-C port with DP alt mode connects from laptop to dock (I have only tested with recent model AMD APUs using RDNA3 based iGPUs - unsure if this is required condition)
3. Attempt to render either SDDM or plasma desktop using Wayland

OBSERVED RESULT
External monitor loses signal completely, but still shows up in display settings. Display signal will not restore until laptop is rebooted.

EXPECTED RESULT
External monitor displays SDDM or plasma desktop.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Seen on both Fedora 38 KDE spin (kernel 6.5.7-200) and Fedora 39 Beta (Kernel 6.5.7-300, although this behavior is not new and has been present with older kernels)
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

After monitor loses signal, I get trace output in dmesg on both laptops which I am attaching.
Comment 1 Sam 2023-10-22 19:13:30 UTC
Created attachment 162504 [details]
Asus X13 dmesg
Comment 2 Sam 2023-10-22 20:34:03 UTC
Update: Found another much older intel based laptop (Razer blade 14 - intel 6700HQ + Mobile 1060) and there is no problem with plasma+wayland+dock. Display signal works perfectly fine.

It looks like this may be an AMD thing.
Comment 3 Nate Graham 2023-10-23 21:03:39 UTC
This will have the same root cause as https://gitlab.freedesktop.org/drm/amd/-/issues/2497.