Ahwxorg / computers

Repository to manage my computers/configurations, document issues, etc
1 stars 0 forks source link

DisplayLink dock does not extend to more than 1 display on Wayland #6

Closed Ahwxorg closed 5 months ago

Ahwxorg commented 6 months ago

I recently bought a Startech USB3DOCKH2DP docking station, this dock uses DisplayLink, and thus should be able to work without being limited to hardware, and thus allow me to use my laptop with it and 3 external displays, like I want to.

The issues

With Xorg, extending to 3 displays works fine (with the laptop screen on too, so 4 displays simultaneously), but Xorg is extremely laggy and unsupported on my laptop. With and without fbdev (Gentoo framebuffer video device)/evdi (DisplayLink video drivers), the same issues appear.

With Wayland, it does not lag nearly as bad (I don't see any noticeable lag at all), but only one monitor from the dock is detected.

Other information

I use a MacBook Pro with M2 Pro chip. It runs Gentoo GNU/Linux with the Asahi Linux kernel. When I boot to macOS, the dock has no issues whatsoever. When using a Lenovo laptop with the dock, it also has no issues whatsoever. No lag, no weird screen tearing, no glitches, nothing.

Ahwxorg commented 6 months ago

Xorg laggyness:

https://github.com/Ahwxorg/computers/assets/87855602/79b6ce3c-9dd2-4d45-8bea-80c66f876ad1

This is not usable

Ahwxorg commented 6 months ago

When running xrandr on a Xorg session, it lists 5 video outputs; eDP-1 (laptop display), HDMI-A-1 (physical HDMI port on laptop) and DVI-I-1, DVI-I-2 and DVI-I-3, all from the dock. Those are physical HDMI/DP ports.

Ahwxorg commented 6 months ago

When running wlr-randr on a Wayland session, it lists only 3 outputs; eDP-1, HDMI-A-1 and a seems-to-be-randomly-chosen DVI-I-{1..3} output from the dock.

Ahwxorg commented 6 months ago

On Wayland, the lag is nearly nonexistent, on Xorg, it's unbearable.

Ahwxorg commented 6 months ago

Seems to be talked about here: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823

Ahwxorg commented 6 months ago

With the evdi drivers loaded, some desktop application lag. Slurp is the most noticeable and is really slow.

Ahwxorg commented 6 months ago

The MacBook is for sale now, Framework Laptop 13 will be my new best friend. (that will resolve this issue)

Ahwxorg commented 6 months ago

Trying on a temporary laptop now, a Lenovo IdeaPad S340-14IWL, it (Xorg) works flawlessly on this little machine, so it definitely was an Asahi issue.

Ahwxorg commented 5 months ago

Selling the dock, so it doesn't matter anymore.