Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-12-2019, 10:11 AM   #1
emilie
Junior Member
 
Join Date: Jun 2019
Posts: 2
Default Ubuntu 18.04.2 LTS with A 5.1.9 KERNEL

Hello,
I am running Ubuntu 18 with an updated kernel 5.1.9
(I had to use a new kernel because sound wasn't supported on the regular LTS kernel which is 4.18 I think)

The problem now is that I don't manage to install DisplayLink driver on my device.
When I try to do so:

sudo ./displaylink-driver-5.1.26.run
Verifying archive integrity... 100% All good.
Uncompressing DisplayLink Linux Driver 5.1.26 100%
DisplayLink Linux Software 5.1.26 install script called: install
Distribution discovered: Ubuntu 18.04.2 LTS
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
ERROR (code 3): Failed to build evdi/5.1.26. Consult /var/lib/dkms/evdi/5.1.26/build/make.log for details..

Quote:
DKMS make.log for evdi-5.1.26 for kernel 5.1.9-050109-generic (x86_64)
mercredi 12 juin 2019, 10:53:01 (UTC+0200)
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/5.1.26/build SRCROOT=/var/lib/dkms/evdi/5.1.26/build CONFIG_MODULE_SIG= -C /lib/modules/5.1.9-050109-generic/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.1.9-050109-generic'
Makefile:205: ================= WARNING ================
Makefile:206: 'SUBDIRS' will be removed after Linux 5.3
Makefile:207: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:208: ==========================================
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /var/lib/dkms/evdi/5.1.26/build/.tmp_versions ; rm -f /var/lib/dkms/evdi/5.1.26/build/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/lib/dkms/evdi/5.1.26/build
........
gcc -Wp,-MD,/var/lib/dkms/evdi/5.1.26/build/.evdi_painter.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_painter"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/5.1.26/build/evdi_painter.o /var/lib/dkms/evdi/5.1.26/build/evdi_painter.c
/var/lib/dkms/evdi/5.1.26/build/evdi_drv.c:45:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.fault = evdi_gem_fault,
^~~~~~~~~~~~~~
/var/lib/dkms/evdi/5.1.26/build/evdi_drv.c:45:11: note: (near initialization for ‘evdi_gem_vm_ops.fault’)
/var/lib/dkms/evdi/5.1.26/build/evdi_connector.c:124:16: error: ‘drm_helper_probe_single_connector_modes’ undeclared here (not in a function); did you mean ‘drm_helper_move_panel_connectors_to_head’?
.fill_modes = drm_helper_probe_single_connector_modes,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drm_helper_move_panel_connectors_to_head
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_connector.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_connector.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -Wp,-MD,/var/lib/dkms/evdi/5.1.26/build/.evdi_params.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_params"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/5.1.26/build/evdi_params.o /var/lib/dkms/evdi/5.1.26/build/evdi_params.c
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c: In function ‘evdi_driver_setup’:
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c:54:2: error: implicit declaration of function ‘drm_kms_helper_poll_init’; did you mean ‘drm_modeset_lock_init’? [-Werror=implicit-function-declaration]
drm_kms_helper_poll_init(dev);
^~~~~~~~~~~~~~~~~~~~~~~~
drm_modeset_lock_init
/var/lib/dkms/evdi/5.1.26/build/evdi_painter.c: In function ‘evdi_painter_connect’:
/var/lib/dkms/evdi/5.1.26/build/evdi_painter.c:675:2: error: implicit declaration of function ‘drm_helper_hpd_irq_event’; did you mean ‘drm_helper_crtc_in_use’? [-Werror=implicit-function-declaration]
drm_helper_hpd_irq_event(evdi->ddev);
^~~~~~~~~~~~~~~~~~~~~~~~
drm_helper_crtc_in_use
cc1: some warnings being treated as errors
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_drv.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_drv.o] Error 1
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c: In function ‘evdi_driver_unload’:
/var/lib/dkms/evdi/5.1.26/build/evdi_main.c:95:2: error: implicit declaration of function ‘drm_kms_helper_poll_fini’; did you mean ‘drm_modeset_lock_fini’? [-Werror=implicit-function-declaration]
drm_kms_helper_poll_fini(dev);
^~~~~~~~~~~~~~~~~~~~~~~~
drm_modeset_lock_fini
cc1: some warnings being treated as errors
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_main.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_main.o] Error 1
cc1: some warnings being treated as errors
scripts/Makefile.build:275: recipe for target '/var/lib/dkms/evdi/5.1.26/build/evdi_painter.o' failed
make[2]: *** [/var/lib/dkms/evdi/5.1.26/build/evdi_painter.o] Error 1
Makefile:1571: recipe for target '_module_/var/lib/dkms/evdi/5.1.26/build' failed
make[1]: *** [_module_/var/lib/dkms/evdi/5.1.26/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.1.9-050109-generic'
Makefile:22: recipe for target '
I did ./displaylink-driver-5.1.26.run --noexec --keep

and also cloned and compiled https://github.com/DisplayLink/evdi devel branch
now I have made evdi_lib.o and libevdi.so
I just don't know how to proceed to finish installing (https://support.displaylink.com/know...r-to-other-lin)
please help
emilie is offline   Reply With Quote
Old 06-12-2019, 01:53 PM   #2
emilie
Junior Member
 
Join Date: Jun 2019
Posts: 2
Default

I eventually managed to compile and install (I will explain what I did just in case someone has the same problem than me)
So far so good: DisplayLink seems to work good for me on Ubuntu 18.04 with a 5.1.9 kernel and 2 screens plugged on a amazon dock

I did
Code:
./displaylink-driver-5.1.26.run --noexec --keep
cd displaylink-driver-5.1.26
sudo displaylink-installer.sh install
it failed with the error I pasted ahead
then I downloaded evdi v1.6.1 on https://github.com/DisplayLink/evdi/releases since it has support for 5.0 and 5.1 kernels
rm the content of /usr/src/evdi-5.1.26
unzipped evdi-1.6.1.zip and copied evdi-1.6.1/module/* in /usr/src/evdi-5.1.26
retried
HTML Code:
sudo displaylink-installer.sh install 
reboot
/!\ there must be a less dirty way than replace code
emilie is offline   Reply With Quote
Old 06-18-2019, 10:44 AM   #3
jinnko
Junior Member
 
Join Date: Sep 2018
Posts: 6
Default Didn't need DisplayLink drivers on 5.x kernels with D6000

FWIW - on Ubuntu 18.04 I started using UKUU to get the latest 5.1 stable kernels, and the whole experience has just been far better than the stock 4.15 kernel, HWE 4.18 kernel and HWE-Edge 5.0 kernels provided in the main Ubuntu repos.

I have a Dell D6000 dock and a Dell XPS 9370 and I'm still able to use the dock without issue, plugged into a single 4k monitor via the HDMI interface. The DisplayLink drivers never worked with the 2 DVI ports, and I haven't tested those with the 5.1 kernel yet, so all I can claim is at least feature parity.

I have successfully uninstalled the DisplayLink and EVDI drivers without losing any functionality. In fact, I no longer have the DisplayLink process hogging between 20-50% CPU constantly, so a big win there.

I did have a quick skim of the LWN kernel archives to see if there was any obvious support gained by the kernel but didn't find anything relevant, so I'm at a loss for why this even works.

Other than that, battery life on the laptop has improved even when disconnected from the dock (even when I hadn't yet removed the DisplayLink drivers and service). And both bluetooth and wifi are slightly more reliably when it comes to suspend/resume.

I'd be interested to know if others are able to forego the DisplayLink driver with other hardware and an upgrade to the 5.1 stable kernels.
jinnko is offline   Reply With Quote
Old 06-19-2019, 04:55 PM   #4
blackfede
Junior Member
 
Join Date: Jun 2019
Posts: 2
Default

We have two D6000 and we never been able to get the displaylink working correctly on linux. It's a pain.

On Ubuntu (tried different version) sometimes it works with the two displayport, but randomly goes blank. I tried the official and the githib repo

On Fedora DP never worked.

On both works without driver just with one hdmi. We ended using the hdmi on the d6000 and another phisical from the notebook.
blackfede is offline   Reply With Quote
Old 07-01-2019, 07:00 PM   #5
lukinhasb
Junior Member
 
Join Date: Jul 2019
Posts: 3
Default

I have Ubuntu 18.04.2 LTS and Linux Kernel 5.1.9, too.

My adapter (UGA-165) worked plug-and-play, however, the colors were distorted.

I then downloaded the 5.1 Displaylink drivers for Ubuntu and had exactly the same issues as you, and managed to install it, too, I just had to do one thing differently, Instead of:

- unzipped evdi-1.6.1.zip and copied evdi-1.6.1/module/* in /usr/src/evdi-5.1.26

I had to:

- extract evdi-1.6.1.zip
- cd into evdi.1.6.1/modules
- run tar -zcvf evdi-5.1.26.tar.gz .
- replace displaylink-driver-5.1.26/evdi-5.1.26.tar.gz with the one I've just created on the previous step, since the installer will extract and use that

The driver installed, but now, it's not recognizing the monitor anymore. The adapter just blinks twice and nothing happens.

I'll keep this updated if I manage to get it working.

-- Edit

I see that during the installer, it says:

Adding udev rule for DisplayLink DL-3xxx/4xxx/5xxx/6xxx devices

But I'm using UGA-165. I wonder if that's why it's not working?

-- Edit 2

Uninstalled displaylink-driver-5.1.26 and installed displaylink-driver-4.4.24 using the same techniques as above, but got the same results. Installer says:

Adding udev rule for DisplayLink DL-3xxx/5xxx devices

Wondering if I should do something else for the UGA-165

Last edited by lukinhasb; 07-01-2019 at 07:09 PM.
lukinhasb is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:02 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.