Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland support #58

Closed
helloIAmPau opened this issue Nov 16, 2016 · 71 comments
Closed

Wayland support #58

helloIAmPau opened this issue Nov 16, 2016 · 71 comments

Comments

@helloIAmPau
Copy link

Hi all,
do you have any plan to support wayland?

It looks to be the new standard for Linux (in Arch Linux already it is) and it is a little frustrating I can't use my dell dock at work.

Thanks and have a nice day :)

@displaylink-mlukaszek
Copy link
Contributor

Our distro of focus is Ubuntu, so after X is dropped it will probably be Mir first. However, I thought Wayland still builds on KMS? Page flipping support is already present in evdi as this is how Chrome OS and its Ozone interfaces with it.

I'll keep this open, in hope that someone familiar with Wayland takes over and proposes changes if necessary.

@sheepdestroyer
Copy link

wayland becomes default in Fedora 25 next week too
would be nice to keep using my two external screens at work when I update.

@helloIAmPau
Copy link
Author

Ok, I can confirm that evdi works fine on Ubuntu and I don't have any problem to switch the Linux distribution on my laptop. It will be great to have it working on Arch as well, but I can wait for it.

@ghost
Copy link

ghost commented Nov 25, 2016

I have it working nearly without bugs on F24 Wayland. F25 evdi doesnt work at all.
4.8.8-200.fc24 ,4.8.8-300.fc25

Fedora 25, up to date. Displaylink installed without any issues.

https://gist.github.com/ment0s/fc9a11c6b77a41870e215e7a5d4522dc

@displaylink-mlukaszek
Copy link
Contributor

To work with Wayland, evdi lacks GBM. For anyone that would be willing to have a go and develop a GBM backend, here's how it was already implemented for Chrome OS in their minigbm: https://chromium.googlesource.com/chromiumos/platform/minigbm/+/master/evdi.c

@konradrenner
Copy link

So with Ubuntu shifting back to GNOME: https://insights.ubuntu.com/2017/04/05/growing-ubuntu-for-cloud-and-iot-rather-than-phone-and-convergence/
they will also use Wayland as display server in the future. So any chance to get Wayland support :-) ?

@cacarr-pdxweb
Copy link

cacarr-pdxweb commented May 30, 2017

With the aforementioned death of Mir and Ubuntu's move to Wayland, it would be nice to know DisplayLink's intentions -- support Wayland or give up on Linux desktop distros entirely?

*** update ***

Wayland support is in the works, apparently. Alban Rampon on Twitter: "It's a big job, in progress."

@MichaelJCole
Copy link

MichaelJCole commented Sep 7, 2017

Pinged Alban Rampon on Twitter. He hasn't gotten back to me yet. Maybe you have better luck?

@cacarr-pdxweb
Copy link

Haven't hear anything more from Alban Rampon.

Sure would be nice to use my DisplayLink display in vertical orientation, with my Antergos-running X1 Carbon.

@agronholm
Copy link

I doubt this will ever happen, as Thunderbolt/USB-C type docks are becoming increasingly common and require no specific software drivers.

@MichaelJCole
Copy link

@agronholm Have you tried this with multiple monitors on Linux? A quick search didn't pull up anything on Amazon, but I'm not sure what I'm looking for. The DisplayLink I bought from Amazon was supposed to work but well...

@agronholm
Copy link

agronholm commented Sep 8, 2017

I have a 3 monitor setup right now with a Dell Thunderbolt dock. Works quite well.

Clarification: Laptop + 2 external monitors via the dock.

@cacarr-pdxweb
Copy link

@agronholm

You think Mr. Rampon is lying about it being in progress? Or do you think they'll give up on the project?

@displaylink-mlukaszek
Copy link
Contributor

Rest assured, we have every intention to add Wayland support. It is just not trivial, as current versions of Wayland don't play well with multiple GPUs in the system. Hang in there.

@cacarr-pdxweb
Copy link

@displaylink-mlukaszek

Will the Wayland-supporting version enable rotation/portrait orientation?

@cacarr-pdxweb
Copy link

@displaylink-mlukaszek

Also, is development of this driver contingent on updates to Wayland?

@agronholm
Copy link

I had not seen that twitter message or the edited comment that mentioned it.

@displaylink-mlukaszek
Copy link
Contributor

Having no legacy of X makes it easier to make it resilient to updates to Wayland, or to support features like rotation. Note that rotation works on some systems even with X.

@MichaelJCole
Copy link

MichaelJCole commented Sep 11, 2017

@displaylink-mlukaszek Thanks! I'd be happy to test. I'm running Gnome Ubuntu 17.04 with Wayland (which is +/- the base for the next Ubuntu LTS).

@b3nto
Copy link

b3nto commented Sep 12, 2017 via email

@RussianNeuroMancer
Copy link

RussianNeuroMancer commented Oct 3, 2017

@MichaelJCole

Have you tried this with multiple monitors on Linux? A quick search didn't pull up anything on Amazon, but I'm not sure what I'm looking for.

I didn't find your e-mail, so answering here.

I tested Dell WD15 dock with Dell 5855 and Dell 9250.
Dell 5855 is USB 3.1 Gen 1 tablet, so only one display works.
Dell 9250 is USB 3.1 Gen 2 tablet, so two displays works. I tested HDMI+VGA, so I have no idea if HDMI+DVI will work or not.
If you are Ok with HDMI+VGA - Dell WD15 is most easy way.

If you want two or three displays attached via HDMI and DVI - then Dell TB16 is better choice, but keep in mind that you need latest firmware in dock AND in laptop/tablet so first thing to do is upgrade drivers for Thunderbolt 3 controller and upgrade firmware in laptop or tablet (both is requirement for dock firmware upgrade) only after this you can upgrade firmware in dock. Dock firmware upgrade is done in two steps: at first step Windows utility prepare UEFI for dock upgrade, at second step laptop reboot and perform dock upgrade from UEFI. So you'll need Dell's laptop or tablet with Thunderbolt 3 and running Windows to perform Dell TB16 upgrade. Without firmware upgrade TB16 is unusable. And don't buy TB15 as it has faulty hardware.

After firmware upgrade - Dell TB16 should work with any other Thunderbolt 3 compatible laptop or tablet with fresh firmware in Thunderbolt 3 controller (get upgraded as part of UEFI upgrade) running Linux.

@MichaelJCole
Copy link

MichaelJCole commented Oct 3, 2017

Hey @RussianNeuroMancer, thanks for the reply. I had a Pluggable with the 3900 chip and it was cheaply made, very unstable under X, and a no-go on wayland.

I reinstalled Ubuntu to switch back to X, installed Gnome, and still had problems with it (needed to reconfigure screens every few minutes), so I threw it away.

I bought a SIIG docking station with the 5900 chip and it's much more stable under X. Haven't tried Wayland. https://www.amazon.com/gp/product/B074ZJ143Q/

Thanks for the feedback and advice, hopefully we'll help the next person.

@damianatorrpm
Copy link

damianatorrpm commented Nov 4, 2017

I don't know when this happened but wayland works for me with fedora-26-displaylink-1.5.0-1.x86_64.rpm
runnning on Fedora 27 beta.

Thank you so much!

@MartinBriza
Copy link

It does? Hmm, I'm on Fedora 27 and I don't get anything in my user session. It only seems to "work" with GDM, where I get either only the displaylink screen or my regular screen but not both at the same time... :/

@cacarr-pdxweb
Copy link

Any sort of progress update would be appreciated.

@b3nto
Copy link

b3nto commented May 12, 2018 via email

@cacarr-pdxweb
Copy link

@b3nto I was referring to a progress report on Wayland support.

@cacarr-pdxweb
Copy link

@MartinBriza

DisplayLink adapters still work under X

Except for xorg server versions > 1.19.6

@cacarr-pdxweb
Copy link

Alban Rampon says: "Work for Wayland has now started."

https://support.displaylink.com/forums/287786-displaylink-feature-suggestions/suggestions/16639654-linux-wayland-support?tracking_code=3a6981f74b15bf4aadbb24b70634a566

@GammaPi
Copy link

GammaPi commented Jan 23, 2019

Wayland support is really necessary, because xorg doesn't support different scale for different monitor.

@50nar
Copy link

50nar commented Apr 21, 2019

is there any update on this ? More and more laptop displays come with 2k-4k displays and its not possible to have different scaling with evdi atm. This would be really useful to have wayland support

@damianatorrpm
Copy link

DisplayLink is history. There are Dockingstations based on plain usb3 (laptop with 2 attached monitors on wayland here) and Thunderbold. Just sell your DisplayLink

@50nar
Copy link

50nar commented Apr 21, 2019

there are devices in corporate environment which you cant sell. There are and there will be displaylink devices out there so support for wayland is definitely needed.

@mlukaszek
Copy link

mlukaszek commented May 23, 2019

Update: the development in GNOME compositor, mutter, has now reached a milestone that allows people use DisplayLink driver with Wayland if they have GNOME 3.32.1 installed. The packages for Ubuntu 19.04 are currently waiting in “disco-proposed” repository and they should be included in normal updates soon. Interested users are welcome to enable Proposed (https://wiki.ubuntu.com/Testing/EnableProposed) and upgrade libmutter and gir1.2-mutter packages. For more information about the final fix, see https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1826182

@swinny89
Copy link

@mlukaszek does this mean that DisplayLink support is to be handled on a per Wayland compositor basis?

@mlukaszek
Copy link

@swinny89 correct. The compositor must be able to know how to handle secondary display devices, that are additional to the main GPU, and are hot-plugable. If you review contributions to mutter by Pekka Paalanen and Emilio Pozuelo Monfort, you can see what is the nature of changes that are needed.

https://gitlab.gnome.org/GNOME/mutter/merge_requests?scope=all&utf8=%E2%9C%93&state=merged&author_username=ppaalanen
https://gitlab.gnome.org/GNOME/mutter/merge_requests?scope=all&utf8=%E2%9C%93&state=merged&author_username=epm

@MrSorcus
Copy link

MrSorcus commented Jun 3, 2019

Up. What about compositors that's based on wlroots (Sway WM)?

@marektamaskovic
Copy link

@displaylink-mlukaszek any news about other compositors? e.g. sway wm

@swinny89
Copy link

swinny89 commented Aug 9, 2019

@displaylink-mlukaszek any news about other compositors? e.g. sway wm

Sway dev says it should be working, but I have not been able to get it to work.
swaywm/sway#4176 (comment)

@charims
Copy link

charims commented Aug 9, 2019

@swinny89 Arch with sway/wlroots works most of the time for me with my Dell D6000 dock at work. I'm on a Dell Latitude 7480. It stopped working recently, but not sure of the cause yet. We should listen to sircmpwn though and open an issue against wlroots if we are still having problems. I would be happy to share my "previously-working" setup if you like. You can reach out to me, I basically just followed the arch wiki though.

@japrogramer
Copy link

@charims can you link us to the Arch Wiki entry ?

@charims
Copy link

charims commented Aug 9, 2019

Sure, the section I followed:
https://wiki.archlinux.org/index.php/DisplayLink#USB_3.0_DL-6xxx,_DL-5xxx,_DL-41xx,_DL-3xxx_Devices

Installation
Basically, I needed to install displaylink from the AUR. I believe it has a dependency of evdi, also from the AUR. It should install evdi as a DKMS module. You will want to ensure displaylink.service is enabled and running before plugging in the dock. The wiki page mostly talks about X11, which is not applicable in sway/wlroots. There should be no special configuration required. When I plug my dock in, it takes a second, then the display lights up.

Note to users: Installing from the AUR can be dangerous, as these are user-maintained packages. It should not be done naively, one should know the contents of the repositories and what code is being installed before installing them.

To move the displays around in sway/wlroots:
https://github.com/swaywm/sway/wiki#display-configuration

Please note on the D6000 there are times where the HDMI output works better than the DisplayPort. Also, I have had updates break displaylink, but it is normally working again in a couple days. YMMV.

@maxadamo
Copy link

maxadamo commented Sep 11, 2019

I'm not the developer but for the sake of staying constructive, please refrain from developing conspiracy theories in this issue.

@MartinBriza it's not developing cospiracy but a business decision.

Let's please just be patient.

It's 3 years now. Do you believe someone took his device apart for 3 years, without connecting any external monitoring and patiently waiting for the new drivers to be released? Everyone running Linux has probably sold the device or threw it in the garbage. In my case, since it was bought by my organisation, we gave the device to a windows users and I got a new thunderbolt device.

I am not a fan of conspiracy theories. I'm realistic: device doesn't work after 3 years and it will never work, because it's now close to its End Of Life, and nobody will spend time on it.
But you are free to patiently wait for the coming decades.

@damo2929
Copy link

I'm not the developer but for the sake of staying constructive, please refrain from developing conspiracy theories in this issue.

@MartinBriza it's not developing cospiracy but a business decision.

Let's please just be patient.

It's 3 years now. Do you believe someone took his device apart for 3 years, without connecting any external monitoring and patiently waiting for the new drivers to be released? Everyone running Linux has probably sold the device or threw it in the garbage. In my case, since it was bought by my organisation, we gave the device to a windows users and I got a new thunderbolt device.

I am not a fan of conspiracy theories. I'm realistic: device doesn't work after 3 years and it will never work, because it's now close to its End Of Life, and nobody will spend time on it.
But you are free to patiently wait for the coming decades.

wayland is working fine on my units. with fedora 31

@RussianNeuroMancer
Copy link

@damo2929

wayland is working fine on my units. with fedora 31

Did you tried to change screen layout?

@damo2929
Copy link

@damo2929

wayland is working fine on my units. with fedora 31

Did you tried to change screen layout?

yes I have dual output and have been able to alter the layout to match the physical configuration fine.

@RussianNeuroMancer
Copy link

yes I have dual output and have been able to alter the layout to match the physical configuration fine.

Last time I tried it didn't work well. Will check once again with Gnome She'll 3.36 and next stable driver release.

@damo2929
Copy link

damo2929 commented Apr 5, 2020

using Gnome Shell 3.36.1 the display does have taring issues, but Wayland is alive allows screens to be moved. I am not sure if the issue with Gnome Shell 3.36 is related to me using and AMD ryzen chip or not but using the same OS version and driver but using a an intel core i7 6th gen laptop the driver version etc works fine with Gnome Shell 3.36

@displaylink-dkurek
Copy link
Contributor

It's been a long journey, but I think we can at this point close this issue.
Any issues should be raised separately. Thanks everyone :)

To conclude I will just cite from last ReleaseNote for DisplayLinkManager
Minimum supported Xorg version is 1.16, minimum supported Mutter (Wayland) version is 3.32..

@spikespaz
Copy link

I see that the service only uses After=display-manager.service. I could use the udev rule to start the service, or just have it running. Does anyone know what, in a Wayland environment, should this start after? I also would like a WantedBy to have the service start as early as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests