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.28k stars 229 forks source link

Not working on Kali 6.10.9 #960

Closed renoproc closed 2 weeks ago

renoproc commented 1 month ago

Sadly the driver do not work with the last Kali update Kali 6.10.9-1kali1 (2024-09-09) I had problems with evdi downloaded with displaylink driver 6.0 (evdi version 1.14.4), it wouldn't compile.

"Installing
    [ Installing EVDI ]
    DEBUG local evdi_dir : /tmp/tmp.QIQe6cj2dz/evdi
    [[ Installing EVDI DKMS module ]]
    Sign command: /lib/modules/6.10.9-amd64/build/scripts/sign-file
    Signing key: /var/lib/dkms/mok.key
    Public certificate (MOK): /var/lib/dkms/mok.pub
    Creating symlink /var/lib/dkms/evdi/1.14.4/source -> /usr/src/evdi-1.14.4

    Building module:
    Cleaning build area...
    Building module(s)....(bad exit status: 2)
    Failed command:
    make -j8 KERNELRELEASE=6.10.9-amd64 all INCLUDEDIR=/lib/modules/6.10.9-amd64/build/include KVERSION=6.10.9-amd64 DKMS_BUILD=1
    Error! Bad return status for module build on kernel: 6.10.9-amd64 (x86_64)
    Consult /var/lib/dkms/evdi/1.14.4/build/make.log for more information.
    Deleting module evdi-1.14.4 completely from the DKMS tree.
    ERROR: Failed to install evdi to the kernel tree."

Because I had a similar problem as https://github.com/DisplayLink/evdi/issues/469 I then tried to install the latest evdi (version 1.1.4.7 when I write this post) But it still doesn't work, no screen detection.

renoproc commented 2 weeks ago

Finally solved (on Kali 6.10.11) using the solution proposed in this post https://github.com/AdnanHodzic/displaylink-debian/issues/965

Displayling-debian --debug was like this before :

~# ./displaylink-debian.sh --debug
--------------- Linux system info ----------------

Distro: Kali
Release: kali-rolling
Kernel: 6.10.11-amd64

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

Driver version: 1.14.4
1.14.6+dfsg
1.14.7
DisplayLink service status: up and running
EVDI service version: 1.14.7

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

Vendor: i915
Subsystem: Device
VGA: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)
VGA (3D): 
X11 version: 21.1.13-3~kali1
X11 configs: /etc/X11/20-displaylink.conf /etc/X11/xorg.conf.d/20-displaylink.conf

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

File: /etc/X11/xorg.conf.d/20-displaylink.conf
Contents:
 Section "Device"
    Identifier  "Intel"
    Driver      "intel"
EndSection

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

Providers: number : 1
Provider 0: id: 0x47 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel

-------------------------------------------------------------------

And now :

~# ./displaylink-debian.sh --debug
--------------- Linux system info ----------------

Distro: Kali
Release: kali-rolling
Kernel: 6.10.11-amd64

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

Driver version: 1.14.4
1.14.6+dfsg
1.14.7
DisplayLink service status: up and running
EVDI service version: 1.14.7

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

Vendor: i915
Subsystem: Device
VGA: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)
VGA (3D): 
X11 version: 21.1.13-3~kali1
X11 configs: /etc/X11/20-displaylink.conf /etc/X11/xorg.conf.d/20-displaylink.conf

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

File: /etc/X11/xorg.conf.d/20-displaylink.conf
Contents:
# Set with displaylink install, commented
#Section "Device"
#    Identifier  "Intel"
#    Driver      "intel"
#EndSection
# 

# See https://github.com/AdnanHodzic/displaylink-debian/issues/228#issuecomment-467889348
Section "OutputClass"
    Identifier  "DisplayLink"
    MatchDriver "evdi"
    Driver      "modesetting"
    Option      "AccelMethod" "none"
EndSection

# See https://github.com/AdnanHodzic/displaylink-debian/issues/236#issuecomment-471213411
#Section "Device"
#    Identifier  "DisplayLink"
#    Driver      "modesetting"
#    Option      "PageFlip" "false"
#EndSection

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

Providers: number : 5
Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 4 name:modesetting
Provider 1: id: 0x14f cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 2: id: 0x12e cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 3: id: 0x10d cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 4: id: 0xec cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting

-------------------------------------------------------------------