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

DL-165 with error udl 2-2:1.0: [drm] *ERROR* fbdev: Failed to setup generic emulation (ret=-22) #881

Open
Viermusketiere opened this issue Dec 18, 2023 · 0 comments

Comments

@Viermusketiere
Copy link

When using displaylink-debian inside a VirtualBox VM the display wont work.
Information about the display:
Used Chip is a Displaylink DL-165 with a USB 2.0 connection.
There are two dispays over a single USB cable connected. Furthermore both displays support touch, but this works independently from the displays.

System is a Kubuntu 23.04 VM running on a Windows 10 system. EFI and secure boot are disabled for the VM. TPM is also disabled. All USB-Devices are properly passed to the VM.

Observing and testing some things resulted in the following observations:

  1. After installing drivers via displaylink-debian xrandr --listproviders retuns two more providers as expected for a dual display device
vincent@VM-Kubuntu-23:~/Downloads/displaylink-debian$ xrandr --listproviders 
Providers: number : 6
Provider 0: id: 0x648 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 1: id: 0x626 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 2: id: 0xea cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 3: id: 0xc9 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 4: id: 0xa8 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 5: id: 0x87 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
  1. Running xrandr --setprovideroutputsource 1 0 results in the following errors (for all combinations of providers):
vincent@VM-Kubuntu-23:~/Downloads/displaylink-debian$ xrandr --setprovideroutputsource 1 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  141 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x648
  Serial number of failed request:  20
  Current serial number in output stream:  21
vincent@VM-Kubuntu-23:~/Downloads/displaylink-debian$ xrandr --setprovideroutputsource 2 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  141 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x648
  Serial number of failed request:  20
  Current serial number in output stream:  21
vincent@VM-Kubuntu-23:~/Downloads/displaylink-debian$ xrandr --setprovideroutputsource 3 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  141 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x648
  Serial number of failed request:  20
  Current serial number in output stream:  21
vincent@VM-Kubuntu-23:~/Downloads/displaylink-debian$ xrandr --setprovideroutputsource 4 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  141 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x648
  Serial number of failed request:  20
  Current serial number in output stream:  21
vincent@VM-Kubuntu-23:~/Downloads/displaylink-debian$ xrandr --setprovideroutputsource 5 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  141 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x648
  Serial number of failed request:  20
  Current serial number in output stream:  21
  1. Observing syslog when connecting the display or restarting the system results in the following output:
kernel: [ 1589.554298] usb 1-4: new full-speed USB device number 5 using ohci-pci
kernel: [ 1589.856659] usb 1-4: New USB device found, idVendor=0eef, idProduct=c002, bcdDevice= 9.00
kernel: [ 1589.856666] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 1589.856669] usb 1-4: Product: eGalaxTouch P80H32 1909 v00_T1 k03_215
kernel: [ 1589.856671] usb 1-4: Manufacturer: eGalax Inc.
kernel: [ 1589.874481] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 Touchscreen as /devices/pci0000:00/0000:00:06.0/usb1/1-4/1-4:1.0/0003:0EEF:C002.0002/input/input8
kernel: [ 1589.874713] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 Mouse as /devices/pci0000:00/0000:00:06.0/usb1/1-4/1-4:1.0/0003:0EEF:C002.0002/input/input10
kernel: [ 1589.875055] hid-generic 0003:0EEF:C002.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215] on usb-0000:00:06.0-4/input0
kernel: [ 1590.006817] usb 2-1: new high-speed USB device number 2 using ehci-pci
kernel: [ 1590.294188] usb 2-1: New USB device found, idVendor=17e9, idProduct=039a, bcdDevice= 6.25
kernel: [ 1590.294193] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 1590.294195] usb 2-1: Product: UV01DA USB Display
kernel: [ 1590.294198] usb 2-1: Manufacturer: DisplayLink
kernel: [ 1590.294199] usb 2-1: SerialNumber: 100093
kernel: [ 1590.302066] [drm] vendor descriptor length:1b data:1b 5f 01 00 19 05 00 01 03 00 04
kernel: [ 1590.304378] [drm] Initialized udl 0.0.1 20120220 for 2-1:1.0 on minor 5
kernel: [ 1590.304381] [drm] Initialized udl on minor 5
kernel: [ 1590.469848] usb 1-5: new full-speed USB device number 6 using ohci-pci
kernel: [ 1590.633368] udl 2-1:1.0: [drm] *ERROR* fbdev: Failed to setup generic emulation (ret=-22)
kernel: [ 1590.763343] usb 1-5: New USB device found, idVendor=0eef, idProduct=c002, bcdDevice= 9.00
kernel: [ 1590.763350] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 1590.763352] usb 1-5: Product: eGalaxTouch P80H32 1909 v00_T1 k03_215
kernel: [ 1590.763355] usb 1-5: Manufacturer: eGalax Inc.
kernel: [ 1590.782910] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 Touchscreen as /devices/pci0000:00/0000:00:06.0/usb1/1-5/1-5:1.0/0003:0EEF:C002.0003/input/input11
kernel: [ 1590.783132] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 Mouse as /devices/pci0000:00/0000:00:06.0/usb1/1-5/1-5:1.0/0003:0EEF:C002.0003/input/input13
kernel: [ 1590.783515] hid-generic 0003:0EEF:C002.0003: input,hiddev1,hidraw2: USB HID v1.11 Mouse [eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215] on usb-0000:00:06.0-5/input0
mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:06.0/usb1/1-4"
mtp-probe: bus: 1, device: 5 was not an MTP device
mtp-probe: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:06.0/usb1/1-5"
mtp-probe: bus: 1, device: 6 was not an MTP device
kernel: [ 1590.877020] usb 2-2: new high-speed USB device number 3 using ehci-pci
kernel: [ 1591.026711] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 as /devices/pci0000:00/0000:00:06.0/usb1/1-4/1-4:1.0/0003:0EEF:C002.0002/input/input14
kernel: [ 1591.026993] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 Mouse as /devices/pci0000:00/0000:00:06.0/usb1/1-4/1-4:1.0/0003:0EEF:C002.0002/input/input16
kernel: [ 1591.027366] hid-multitouch 0003:0EEF:C002.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215] on usb-0000:00:06.0-4/input0
kernel: [ 1591.166931] usb 2-2: New USB device found, idVendor=17e9, idProduct=039a, bcdDevice= 6.25
kernel: [ 1591.166936] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 1591.166938] usb 2-2: Product: UV01DA USB Display
kernel: [ 1591.166940] usb 2-2: Manufacturer: DisplayLink
kernel: [ 1591.166942] usb 2-2: SerialNumber: 100113
kernel: [ 1591.173123] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 as /devices/pci0000:00/0000:00:06.0/usb1/1-5/1-5:1.0/0003:0EEF:C002.0003/input/input17
kernel: [ 1591.173330] input: eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215 Mouse as /devices/pci0000:00/0000:00:06.0/usb1/1-5/1-5:1.0/0003:0EEF:C002.0003/input/input19
kernel: [ 1591.173673] hid-multitouch 0003:0EEF:C002.0003: input,hiddev1,hidraw2: USB HID v1.11 Mouse [eGalax Inc. eGalaxTouch P80H32 1909 v00_T1 k03_215] on usb-0000:00:06.0-5/input0
kernel: [ 1591.173907] [drm] vendor descriptor length:1b data:1b 5f 01 00 19 05 00 01 03 00 04
kernel: [ 1591.180879] [drm] Initialized udl 0.0.1 20120220 for 2-2:1.0 on minor 6
kernel: [ 1591.180884] [drm] Initialized udl on minor 6
systemd-udevd[3753]: js3: Process '/usr/lib/snapd/snap-device-helper add snap_firefox_firefox /devices/pci0000:00/0000:00:06.0/usb1/1-5/1-5:1.0/0003:0EEF:C002.0003/input/input13/js3 13:3' failed with exit code 1.
systemd-udevd[3750]: js2: Process '/usr/lib/snapd/snap-device-helper add snap_firefox_firefox /devices/pci0000:00/0000:00:06.0/usb1/1-4/1-4:1.0/0003:0EEF:C002.0002/input/input10/js2 13:2' failed with exit code 1.
systemd-udevd[3750]: js2: Process '/usr/lib/snapd/snap-device-helper add snap_firefox_geckodriver /devices/pci0000:00/0000:00:06.0/usb1/1-4/1-4:1.0/0003:0EEF:C002.0002/input/input10/js2 13:2' failed with exit code 1.
systemd-udevd[3753]: js3: Process '/usr/lib/snapd/snap-device-helper add snap_firefox_geckodriver /devices/pci0000:00/0000:00:06.0/usb1/1-5/1-5:1.0/0003:0EEF:C002.0003/input/input13/js3 13:3' failed with exit code 1.
mtp-probe: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:06.0/usb1/1-5"
mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:06.0/usb1/1-4"
mtp-probe: bus: 1, device: 6 was not an MTP device
mtp-probe: bus: 1, device: 5 was not an MTP device
kernel: [ 1591.513859] udl 2-2:1.0: [drm] *ERROR* fbdev: Failed to setup generic emulation (ret=-22)
mtp-probe: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1"
mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:0b.0/usb2/2-2"
mtp-probe: bus: 2, device: 3 was not an MTP device
mtp-probe: bus: 2, device: 2 was not an MTP device
mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:0b.0/usb2/2-2"
mtp-probe: bus: 2, device: 3 was not an MTP device
mtp-probe: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1"
mtp-probe: bus: 2, device: 2 was not an MTP device
kscreen_backend_launcher[2312]: kscreen.xcb.helper: RRScreenChangeNotify
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Timestamp:  1591721
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Config_timestamp:  1591721
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Window: 48234501
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Root: 1467
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Rotation:  "Rotate_0"
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Size ID: 0
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Size:  3874 1328
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011SizeMM:  1025 351
kscreen_backend_launcher[2312]: kscreen.xcb.helper: RRScreenChangeNotify
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Timestamp:  1591721
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Config_timestamp:  1591721
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Window: 48234501
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Root: 1467
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Rotation:  "Rotate_0"
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Size ID: 0
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011Size:  3874 1328
kscreen_backend_launcher[2312]: kscreen.xcb.helper: #011SizeMM:  1025 351
kscreen_backend_launcher[2312]: kscreen.xrandr: Emitting configChanged()
kded5[3864]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_mouse.so"
kded5[3864]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_touchpad.so"
kded5[3864]: kcm_touchpad: Using X11 backend
kwin_x11[2036]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 609, resource id: 69206021, major code: 18 (ChangeProperty), minor code: 0

Especially the lines with the following error seem to be connected to the issue:

kernel: [ 1591.513859] udl 2-2:1.0: [drm] *ERROR* fbdev: Failed to setup generic emulation (ret=-22)

These lines are also displayed initially during boot.

  1. I observed that both displays worked for a very short moment, after initially installing displaylink-debian.
    When the installation finished I confirmed the reboot via the request in the script. After the system shutdown the Kubuntu logo was shortly shown during the startup process on both displays until the error mentioned in 3. was shown on the main display.

  2. When looking at the common issues / post install guide I wonder why I have four providers listed with xrandr --listproviders but no one can be easily identified as main provider.

  3. Disconnecting the display, unloading the udl kernel module with rmmod udl, loading udlfb via modprobe udlfb and reconnecting the displays results in both screens turning green, signalizing that from hardware and framebuffer side everything is working fine.

Output of ./displaylink-debian.sh --debug

--------------- Linux system info ----------------

Distro: Ubuntu
Release: lunar
Kernel: 6.2.0-39-generic

---------------- DisplayLink info ----------------

Driver version: 1.14.1
DisplayLink service status: up and running
EVDI service version: 1.14.1

------------------ Graphics card -----------------

Vendor: vmwgfx
Subsystem: Adapter
VGA: VMware SVGA II Adapter
VGA (3D): 
X11 version: 21.1.7-1ubuntu3.4
X11 configs: /etc/X11/xorg.conf.d/20-displaylink.conf /etc/X11/xrdp/xorg.conf

-------------- DisplayLink xorg.conf -------------

File: /etc/X11/xorg.conf.d/20-displaylink.conf
Contents:
 Section "OutputClass"
    Identifier  "DisplayLink"
    MatchDriver "evdi"
    Driver      "modesetting"
    Option      "AccelMethod" "none"
EndSection

-------------------- Monitors --------------------

Providers: number : 6
Provider 0: id: 0x648 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 1: id: 0x626 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 2: id: 0xea cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 3: id: 0xc9 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 4: id: 0xa8 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting
Provider 5: id: 0x87 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting

Thanks in advance

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

No branches or pull requests

1 participant