Displaylink issue on Dell Laptop with PopOS

Posted

A few months ago, I've got a kernel update which broke my display link driver. Therefore, my second monitor stopped showing anything. However, today it broke again.
Starting DisplayLink Driver Service...
Mär 23 09:14:49 pop-os sh[140421]: modprobe: FATAL: Module evdi not found in directory /lib/modules/6.12.10-76061203-generic
Mär 23 09:14:49 pop-os sh[140447]: Kernel preparation unnecessary for this kernel. Skipping...
Mär 23 09:14:49 pop-os sh[140447]: Building module:
Mär 23 09:14:49 pop-os sh[140447]: cleaning build area...
Mär 23 09:14:51 pop-os sh[140447]: make -j8 KERNELRELEASE=6.12.10-76061203-generic all INCLUDEDIR=/lib/modules/6.12.10-76061203-generic/build/include KVERSION=6.12.10-76061203-generic DKMS_BUILD=1...(bad exit status: 2)
Mär 23 09:14:52 pop-os sh[140905]: ERROR (dkms apport): binary package for evdi: 1.14.2 not found
Mär 23 09:14:52 pop-os sh[140963]: Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Mär 23 09:14:52 pop-os sh[140963]: Consult /var/lib/dkms/evdi/1.14.2/build/make.log for more information.
Mär 23 09:14:52 pop-os systemd[1]: displaylink-driver.service: Control process exited, code=exited, status=10/n/a
Mär 23 09:14:52 pop-os systemd[1]: displaylink-driver.service: Failed with result 'exit-code'.
Mär 23 09:14:52 pop-os systemd[1]: Failed to start DisplayLink Driver Service.
Mär 23 09:14:52 pop-os systemd[1]: displaylink-driver.service: Consumed 10.704s CPU time.
Mär 23 09:14:57 pop-os systemd[1]: displaylink-driver.service: Scheduled restart job, restart counter is at 229.
Mär 23 09:14:57 pop-os systemd[1]: Stopped DisplayLink Driver Service.
It turned out that the module is too old for this kernel. I remember last time I needed to do some manual work to get it working. OK, I downloaded the sources from https://github.com/DisplayLink/evdi and extracted them. Then I naively started make:
:~/evdi-1.14.8$ make
And, yes it failed.
No package 'libdrm' found
evdi_lib.c:6:10: fatal error: libdrm/drm.h: Datei oder Verzeichnis nicht gefunden
    6 | #include 
      |          ^~~~~~~~~~~~~~
compilation terminated.
I installed the developer packaged by:
:~/evdi-1.14.8$ apt install libdrm-dev
And did another make. This time it ran through without issues. After that I discovered the module folder which contained an installation script, so I started that too:
:~/evdi-1.14.8/module$ sudo ./dkms_install.sh 
journalctl -f
stopped throwing errors and my screen as also my other devices started working again.

Author
Categories Linux