How to make displaylink work with wayland and gnome

I pur hased a i-tec Universal 6x 4K/60Hz Display Docking Station + Power Delivery 140W without clue about what Linux compatibility means. Apparently it works with displayLink to get it working with displays.

As suggested under Need Help with DisplayLink I added evdi to kernelModules but I still have no singal. Any ideas?

I am using Gnome and Wayland so no Xserver.

Seems evdi does not exist. If I add it to boot.kernelModules the build fails with

 modprobe: FATAL: Module evdi not found in directory /nix/store/b1g1sllmva5y8l2gm341916plmxmpjyx-linux-6.12.21-modules/lib/modules/6.12.21

I then installed displayLink driver but the issue stays the same: No display output

Here my current config:

  boot = {
    kernelPackages = pkgs.linuxPackages_6_12;
    initrd = {
      availableKernelModules = [
        "xhci_pci"
        "thunderbolt"
        "nvme"
        "usb_storage"
        "usbhid"
        "sd_mod"
      ];
      kernelModules = [
        "evdi"
      ];
      ....
      extraModulePackages = [
        # Add other modules here if you have any
        config.boot.kernelPackages.evdi
      ];
  };

    # host-specific packages
  environment.systemPackages = with pkgs; [
    displaylink # DisplayLink DL-7xxx, DL-6xxx, DL-5xxx, DL-41xx and DL-3x00 Driver for Linux
  ];

I see the module is loaded

lsmod | grep evdi
evdi                  135168  0

But I also see errors on boot

[   23.300032] PTP clock support registered
[   23.336093] usb 3-2.4.2: 5:2: cannot get min/max values for control 2 (id 5)
[   23.336337] usbcore: registered new interface driver snd-usb-audio
[   23.336429] usb 3-2.4.2: Found UVC 1.00 device HD Pro Webcam C920 (046d:08e5)
[   23.336445] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 2 on unit 3: -19 (exp. 1).
[   23.336451] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 3 on unit 3: -19 (exp. 1).
[   23.336455] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 7 on unit 3: -19 (exp. 1).
[   23.336459] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 8 on unit 3: -19 (exp. 1).
[   23.336462] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 10 on unit 3: -19 (exp. 1).
[   23.336465] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 1 on unit 3: -19 (exp. 1).
[   23.336468] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 4 on unit 3: -19 (exp. 1).
[   23.336471] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 5 on unit 3: -19 (exp. 1).
[   23.336475] usb 3-2.4.2: Failed to query (GET_CUR) UVC control 5 on unit 3: -19 (exp. 1).
[   23.336479] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 11 on unit 3: -19 (exp. 1).
[   23.336486] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 2 on unit 1: -19 (exp. 1).
[   23.336490] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 3 on unit 1: -19 (exp. 1).
[   23.336493] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 4 on unit 1: -19 (exp. 1).
[   23.336497] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 6 on unit 1: -19 (exp. 1).
[   23.336501] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 11 on unit 1: -19 (exp. 1).
[   23.336505] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 13 on unit 1: -19 (exp. 1).
[   23.336508] usb 3-2.4.2: Failed to query (GET_INFO) UVC control 8 on unit 1: -19 (exp. 1).
[   23.336518] usb 3-2.4.2: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[   23.336521] uvcvideo 3-2.4.2:1.1: Failed to query (GET_CUR) UVC probe control : -19 (exp. 26).
[   23.336524] uvcvideo 3-2.4.2:1.1: Failed to initialize the device (-5).

Ok finally figured it out

  1. Add displayLink driver to nix store

  2. Install displayLink package

    environment.systemPackages = with pkgs; [
     displaylink
    ];
    
  3. Define videoDrivers

    services.xserver.videoDrivers = [ "displaylink" ];
    
  4. add dlm service

    systemd.services.dlm.wantedBy = [ "multi-user.target" ];
    

Not sure if every step is really needed, but I will add it for now to

The only thing I have on my system is the videoDriver set and that is sufficient for hyprland. Works great. Perhaps some of the other stuff is necessary for gnome?

Reading trough this forum I get mixed information. But I checked, and yes the edvi module apparently is NOT needed