DisplayLink / evdi

Extensible Virtual Display Interface
MIT License
712 stars 185 forks source link

Second connected monitor is initialised but blank #307

Open viraptor opened 3 years ago

viraptor commented 3 years ago

I've got two Dell monitors connected to the Lenovo hybrid USB-C dock. The xrandr layout is:

Monitors: 3
 0: +*eDP-1 1920/344x1080/194+297+1440  eDP-1
 1: +DVI-I-3-2 2560/597x1440/336+0+0  DVI-I-3-2
 2: +DVI-I-2-1 2560/597x1440/336+2560+0  DVI-I-2-1

The monitors are: DVI-I-3-2 - Dell S2721DGF DVI-I-2-1 - Dell U2715H

The 3-2 works fine. The 2-1 is blank. Neither the cursor nor the windows are displayed on it.

There are no messages in the displaylink journal beyond the standard start/stop. Nothing suspicious in system journal either.

Dmesg has only:

[  197.420790] evdi: [I] (card3) Connector state: connected
[  197.420886] evdi: [I] (card3) Edid property set
[  197.421048] evdi: [I] (card2) Connector state: connected
[  197.421130] evdi: [I] (card2) Edid property set
[  648.680785] evdi: [I] (card2) Notifying display power state: on
[  648.680797] evdi: [I] (card2) Notifying mode changed: 2560x1440@60; bpp 32; pixel format XR24 little-endian (0x34325258)
[  648.680799] evdi: [I] (card2) Notifying display power state: on
[  673.853404] evdi: [I] (card2) Notifying display power state: off
[  673.906372] evdi: [I] (card2) Notifying display power state: on
[  673.979108] evdi: [I] (card2) Notifying mode changed: 2560x1440@60; bpp 32; pixel format XR24 little-endian (0x34325258)
[  673.979121] evdi: [I] (card2) Notifying display power state: on
[  674.013955] evdi: [I] (card3) Notifying display power state: on
[  674.013968] evdi: [I] (card3) Notifying mode changed: 2560x1440@120; bpp 32; pixel format XR24 little-endian (0x34325258)
[  674.013971] evdi: [I] (card3) Notifying display power state: on
[  775.927093] evdi: [I] (card2) Notifying display power state: off
[  775.980370] evdi: [I] (card2) Notifying display power state: on
[  775.997296] evdi: [I] (card2) Notifying mode changed: 2560x1440@60; bpp 32; pixel format XR24 little-endian (0x34325258)
[  775.997316] evdi: [I] (card2) Notifying display power state: on
[  776.044642] evdi: [I] (card3) Notifying display power state: off
[  776.045144] evdi: [I] (card3) Notifying display power state: on
[  776.053807] evdi: [I] (card3) Notifying mode changed: 2560x1440@120; bpp 32; pixel format XR24 little-endian (0x34325258)
[  776.053819] evdi: [I] (card3) Notifying display power state: on

The laptop is Dell XPS 15 7590. The graphics card is UHD Graphics 630 + GeForce GTX 1650 Mobile / Max-Q

All logs and edids attached.

DisplayLinkManager.log FirmwareTrace.log displaylink.log edids.tar.gz

MarkMuth commented 3 years ago

Hi I'm having problems with DisplayLink now too. As soon as I connect a second screen to my Dell D3100 USB3.0 Dock the system just hangs and all screens go black. This same configuration used to work for the last 12 month! Here's my configuration: Laptop: Dell XPS 15 7590 with NVIDIA GeForce GTX 1650 Linux Distributions: Ubuntu 20.04 / Ubuntu 21.04 DisplayLink Drivers: displaylink-driver-5.4.0-55.153 / displaylink-driver-5.4.1-55.174 evdi, 1.9.1, 5.11.0-34-generic, x86_64: installed

There are a few suspicious entries (even when only one monitor is connected) in the dmesg output here as well (see full dmesg output for more infos...):

[  +0,010602] evdi: loading out-of-tree module taints kernel.
[  +0,000003] kernel BUG at drivers/dma-buf/dma-buf.c:1269!

DisplayLinkManager.log dmesg.log FirmwareTrace.log

leuchtrakete666 commented 3 years ago

i had the same problems. i found that the intel integrated graphics with the modesetting driver is giving this problems. what i did is installed the xf86-video-intel and followed this github: https://github.com/Ashark/DisplayLink-switch

i than made a new grub boot entry for my system with additional systemd.unit=displaylink.target in the kernel parameters. now, when i am in office i boot up with the new entry, the intel driver exclusively is loaded, no nvidia. now i got all my monitors.

using this method: https://support.displaylink.com/knowledgebase/articles/1181623-displaylink-ubuntu-driver-after-recent-x-upgrades

had no effect on my system.

the downsides are to use the intel driver and not modesetting for the integrated graphics and in kde plasma the compositor should be deactivated, simple with Alt - Shift - F12. otherwise your cursor will go crazy, leaving artifacts all over the monitors.

leuchtrakete666 commented 3 years ago

i had the same problems. i found that the intel integrated graphics with the modesetting driver is giving this problems. what i did is installed the xf86-video-intel and followed this github: https://github.com/Ashark/DisplayLink-switch

i than made a new grub boot entry for my system with additional systemd.unit=displaylink.target in the kernel parameters. now, when i am in office i boot up with the new entry, the intel driver exclusively is loaded, no nvidia. now i got all my monitors.

using this method: https://support.displaylink.com/knowledgebase/articles/1181623-displaylink-ubuntu-driver-after-recent-x-upgrades

had no effect on my system.

the downsides are to use the intel driver and not modesetting for the integrated graphics and in kde plasma the compositor should be deactivated, simple with Alt - Shift - F12. otherwise your cursor will go crazy, leaving artifacts all over the monitors.

forget what i was writing there. i have overseen this section in the archwiki:

Only 1 Display is recognized after boot

In case multiple displays are connected to a DisplayLink Docking station, but only 1 is recognized after bootup, a possible fix is to force evdi to search for multiple displays at boot by adding the evdi module to /etc/modules-load.d/evdi.conf and options evdi initial_device_count=2 to /etc/modprobe.d/dkms.conf

ArchWiki DisplayLink Only 1 Display is recognized after boot