DisplayLink / evdi

Extensible Virtual Display Interface
MIT License
689 stars 179 forks source link

ABGR8888 causes DisplayLink reconnection loop on Wayland sessions #459

Closed YourSandwich closed 1 month ago

YourSandwich commented 4 months ago

Freeze Issue with DisplayLink Monitors on Wayland with ARGB8888 Based Compositors

Summary

A significant issue has been identified affecting users of the Plasma 6 environment when connecting monitors through a Lenovo dud9011d1 docking station via DisplayLink to a Lenovo ThinkBook 14 G3 laptop. The core of the problem lies in the freezing of kwin_wayland when the compositor uses ARGB8888 pixel format. This freezing manifests shortly after the monitors are connected, either becoming static or entering a loop of continuous reinitialization.

Steps to Reproduce

  1. Initiate a Plasma Wayland session (applicable to both Plasma 5 and 6).
  2. Connect monitors using the Lenovo dud9011d1 docking station.
  3. Attach the docking station to the laptop via DisplayLink.

Observed Behavior

System Information

Resolution

The issue was effectively mitigated by switching the pixel format from ARGB8888 to XRGB8888, utilizing the KWIN_DRM_NO_AMS=1 environment variable. This adjustment resulted in the stable operation of all connected displays without the prior freezing or reinitialization issues.

Additional Context

Through extensive discussions and diagnostics tracked in the KDE bug report (#475922), the problem is suggested to stem from a driver-level inconsistency specifically related to the handling of the ARGB8888 pixel format by the DisplayLink technology. Switching to the XRGB8888 format, which Xorg usually uses by default, has been a solid quick fix for Plasma 6.

YourSandwich commented 4 months ago

More details available at the KDE Issue Tracker -> https://bugs.kde.org/show_bug.cgi?id=475922

stollr commented 4 months ago

I have the same issue on my TUXEDO Aura 15 Gen1 Notebook: CPU: AMD Ryzen 7 4700U Graphic: AMD Radeon™ RX Vega Graphics

Docking station: i-tec USB 3.0 / USB-C / Thunderbolt 3, 3x 4K Docking Station + Power Delivery 85W (CATRIPLE4KDOCKPD):

OS: KDE neon 6.0 (based on Ubuntu 22.04) Kernel: Linux version 6.5.0-10022-tuxedo

YourSandwich commented 4 months ago

You can fix that temporary for Plasma by setting KWIN_DRM_NO_AMS=1 env Variable This will enforce XRGB8888 pixel formatting.

Contik commented 4 months ago

Also affected, workaround works:

# grep -s . /sys/devices/evdi/*
/sys/devices/evdi/count:2
/sys/devices/evdi/loglevel:4
/sys/devices/evdi/version:1.14.2
stollr commented 4 months ago

@YourSandwich Thank you! Your suggested workaround works for me :-)

Sino-Huang commented 3 months ago

Sorry to trouble but I do not understand the effect ofKWIN_DRM_NO_AMS=1 Will it affect any other things in the computer?

Zamundaaa commented 3 months ago

Right now it reduces the maximum bits per color on all displays to 8, and may increase latency a tiny bit. As a temporary workaround it's fine to use

Sino-Huang commented 3 months ago

Greeting, does Plasma 6.0.3 solve the problem?

YourSandwich commented 3 months ago

No

adam-kaleta commented 1 month ago

Hello Looks like that the latest released evdi=1.14.4-80 (released on 11.04.2024) is fixing this problem. Could you please try to upgrade evdi and recheck if it is fixing this problem on your side as well?

displaylink-emajewsk commented 1 month ago

Closing. Please reopen or create new issue if the problem reappears