AdnanHodzic / displaylink-debian

DisplayLink driver installer for Debian and Ubuntu based Linux distributions.
https://foolcontrol.org/?p=1777
GNU General Public License v3.0
1.26k stars 230 forks source link

Full Wayland support #778

Open janvlug opened 1 year ago

janvlug commented 1 year ago

It seems that displaylink-debian does not support Wayland, when reading the prerequisites:

“When you are logging into your session you are using X server (X11) and not Wayland.”

However Displaylink should have Wayland support.

When I do: sudo -E ./displaylink-debian.sh --debug on my Librem 5 running PureOS, I get:

Can't open display

My guess is that this is because the phone runs Wayland.

See also this forum topic.

janvlug commented 1 year ago

I outcommented this line: providers="$(xrandr --listproviders)" the script continues now after this line.

janvlug commented 1 year ago

Both on my Librem 5 with PureOS and on my Fedora 37 Wayland only systems xrandr --listproviders gives Can't open display. The command xrandr --listmonitors however gives output like:

Monitors: 1
 0: +WAYLAND0 360/65x720/130+0+0  XWAYLAND0
janvlug commented 1 year ago

I tried installing displaylink-debian again on my Librem 5. After installation, the login screen does not appear, and the screen stays black. I noticed this in the prerequisites: "When you are logging into your session you are using X server (X11) and not Wayland." Maybe this is the reason why the login screen stayed black after the reboot. Fortunately, I could still login via ssh to remove displaylink-debian. After uninstalling the login screen was there again after a reboot.

cyclops1982 commented 9 months ago

+1 on this issue. Debian bookworm comes standard with wayland. Would love to help out and make this work :)

4SH-gaupee commented 6 months ago

+1 also, all major DE are dropping X11 in the coming year so I could be nice to support wayland

farion commented 6 months ago

+1

zz0rk commented 3 months ago

Please support Wayland. Thank you

vnd commented 3 months ago

FWIW somewhat surprisingly it actually works for me on Wayland (Debian bookworm) and not X11 (heavily glitchy to the point of being unusable), AMD Ryzen 7000 laptop with integrated graphics, KDE Plasma.

4SH-gaupee commented 3 months ago

Yeah same for me since evdi update, I only have a black screen on SDDM but the rest is working, I get a lot of CPU usage but this is a DisplayLink driver problem not the implementation of this script

vnd commented 3 months ago

May be I was too quick to consider it fully working, so far the only issue is that after reboot I need to re-plug DL monitor into another USB port, then it's properly detected. Could be worse I guess, glad that it's working in principle.

Epsicle commented 2 weeks ago

Just chiming in to say this is working with no modifications on Debian 12 Bookworm using KDE Plasma and Wayland. I initially tried @janvlug's modifications but that failed outright on my system so I ran the script as is and it just worked.

My HP Elitebook G4 and Targus DOCK-190USZ-81 work great together now.

I think this line in the post-install guide could probably be removed based on mine and other experiences here. Or maybe changed to just a discouragement for wayland and encouragement for X11?

When you are logging into your session you are using X server (X11) and not Wayland.

To be honest, I completely disregarded this project when I found out about it a few months back because of this line, but it's working flawlessly on Wayland. Awesome work.

vnd commented 2 weeks ago

I'm a bit puzzled, but I think on wayland it somehow works regardless of this project, as I'm typing this on DisplayLink monitor without even evdi running.

Epsicle commented 2 weeks ago

I'm a bit puzzled, but I think on wayland it somehow works regardless of this project, as I'm typing this on DisplayLink monitor without even evdi running.

If your using an AMD or Nvidia GPU that has displaylink ports, then I think your fine due to the drivers for those cards. But I don't think they're included in the iGPU drivers for some laptops and that causes issues with docking stations.

What are your system specs?

vnd commented 2 weeks ago

I'm a bit puzzled, but I think on wayland it somehow works regardless of this project, as I'm typing this on DisplayLink monitor without even evdi running.

If your using an AMD or Nvidia GPU that has displaylink ports, then I think your fine due to the drivers for those cards. But I don't think they're included in the iGPU drivers for some laptops and that causes issues with docking stations.

What are your system specs?

AMD Ryzen 7000 laptop (Thinkpad P16s) with integrated graphics, KDE Plasma

Epsicle commented 2 weeks ago

I'm a bit puzzled, but I think on wayland it somehow works regardless of this project, as I'm typing this on DisplayLink monitor without even evdi running.

If your using an AMD or Nvidia GPU that has displaylink ports, then I think your fine due to the drivers for those cards. But I don't think they're included in the iGPU drivers for some laptops and that causes issues with docking stations. What are your system specs?

AMD Ryzen 7000 laptop (Thinkpad P16s) with integrated graphics, KDE Plasma

You might be covered by your AMD drivers then. My 7th gen intel does not work at all without this project.

Epsicle commented 2 weeks ago

Oh wait, I'm dumb. My wayland login isnt working on the two displaylink displays, I'm just using my built in display to sign in.

Regardless I think the docs could be changed to indicate that so long as you don't care to using the displays your hooking up to login to your machine, they will work fine after you login.