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

Broken after update to 4.19 kernel #191

Closed snideto closed 5 years ago

snideto commented 5 years ago
-------------------------------------------------------------------

Installing driver version: 4.4

DisplayLink Linux Software 4.4.24 install script called: install
Distribution discovered: Debian GNU/Linux buster/sid
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
ERROR (code 3): Failed to build evdi/4.4.24. Consult /var/lib/dkms/evdi/4.4.24/build/make.log for details..

-------------------------------------------------------------------
todds@todd-debian:~/git/displaylink-debian$ sudo cat /var/lib/dkms/evdi/4.4.24/build/make.log
DKMS make.log for evdi-4.4.24 for kernel 4.19.0-1-amd64 (x86_64)
Fri Dec 28 16:23:16 EST 2018
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/4.4.24/build SRCROOT=/var/lib/dkms/evdi/4.4.24/build CONFIG_MODULE_SIG= -C /lib/modules/4.19.0-1-amd64/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-1-amd64'
make -C /usr/src/linux-headers-4.19.0-1-amd64 KBUILD_SRC=/usr/src/linux-headers-4.19.0-1-common \
-f /usr/src/linux-headers-4.19.0-1-common/Makefile modules
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/4.4.24/build/.tmp_versions ; rm -f /var/lib/dkms/evdi/4.4.24/build/.tmp_versions/*
make -f /usr/src/linux-headers-4.19.0-1-common/scripts/Makefile.build obj=/var/lib/dkms/evdi/4.4.24/build
(cat /dev/null;   echo kernel//var/lib/dkms/evdi/4.4.24/build/evdi.ko;) > /var/lib/dkms/evdi/4.4.24/build/modules.order
   gcc-8 -Wp,-MD,/var/lib/dkms/evdi/4.4.24/build/.evdi_drv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/8/include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.19.0-1-common/include -I./include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.19.0-1-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.19.0-1-common/include/linux/kconfig.h -include /usr/src/linux-headers-4.19.0-1-common/include/linux/compiler_types.h  -I/var/lib/dkms/evdi/4.4.24/build -I/var/lib/dkms/evdi/4.4.24/build -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -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=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-4.19.0-1-common/= -Wno-packed-not-aligned  -I/usr/src/linux-headers-4.19.0-1-common/include/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_drv"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_drv.o /var/lib/dkms/evdi/4.4.24/build/evdi_drv.c
   gcc-8 -Wp,-MD,/var/lib/dkms/evdi/4.4.24/build/.evdi_modeset.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/8/include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.19.0-1-common/include -I./include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.19.0-1-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.19.0-1-common/include/linux/kconfig.h -include /usr/src/linux-headers-4.19.0-1-common/include/linux/compiler_types.h  -I/var/lib/dkms/evdi/4.4.24/build -I/var/lib/dkms/evdi/4.4.24/build -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -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=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-4.19.0-1-common/= -Wno-packed-not-aligned  -I/usr/src/linux-headers-4.19.0-1-common/include/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_modeset"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_modeset.o /var/lib/dkms/evdi/4.4.24/build/evdi_modeset.c
   gcc-8 -Wp,-MD,/var/lib/dkms/evdi/4.4.24/build/.evdi_connector.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/8/include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.19.0-1-common/include -I./include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.19.0-1-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.19.0-1-common/include/linux/kconfig.h -include /usr/src/linux-headers-4.19.0-1-common/include/linux/compiler_types.h  -I/var/lib/dkms/evdi/4.4.24/build -I/var/lib/dkms/evdi/4.4.24/build -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -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=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-4.19.0-1-common/= -Wno-packed-not-aligned  -I/usr/src/linux-headers-4.19.0-1-common/include/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_connector"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_connector.o /var/lib/dkms/evdi/4.4.24/build/evdi_connector.c
   gcc-8 -Wp,-MD,/var/lib/dkms/evdi/4.4.24/build/.evdi_encoder.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/8/include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.19.0-1-common/include -I./include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.19.0-1-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.19.0-1-common/include/linux/kconfig.h -include /usr/src/linux-headers-4.19.0-1-common/include/linux/compiler_types.h  -I/var/lib/dkms/evdi/4.4.24/build -I/var/lib/dkms/evdi/4.4.24/build -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -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=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-4.19.0-1-common/= -Wno-packed-not-aligned  -I/usr/src/linux-headers-4.19.0-1-common/include/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_encoder"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_encoder.o /var/lib/dkms/evdi/4.4.24/build/evdi_encoder.c
/var/lib/dkms/evdi/4.4.24/build/evdi_connector.c: In function ‘evdi_get_modes’:
/var/lib/dkms/evdi/4.4.24/build/evdi_connector.c:35:3: error: implicit declaration of function ‘drm_mode_connector_update_edid_property’; did you mean ‘drm_connector_update_edid_property’? [-Werror=implicit-function-declaration]
   drm_mode_connector_update_edid_property(connector, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drm_connector_update_edid_property
/var/lib/dkms/evdi/4.4.24/build/evdi_connector.c: In function ‘evdi_connector_init’:
/var/lib/dkms/evdi/4.4.24/build/evdi_connector.c:147:2: error: implicit declaration of function ‘drm_mode_connector_attach_encoder’; did you mean ‘drm_connector_attach_encoder’? [-Werror=implicit-function-declaration]
  drm_mode_connector_attach_encoder(connector, encoder);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  drm_connector_attach_encoder
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_encoder.o";
cc1: some warnings being treated as errors
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_drv.o";
   gcc-8 -Wp,-MD,/var/lib/dkms/evdi/4.4.24/build/.evdi_main.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/8/include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.19.0-1-common/include -I./include -I/usr/src/linux-headers-4.19.0-1-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.19.0-1-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.19.0-1-common/include/linux/kconfig.h -include /usr/src/linux-headers-4.19.0-1-common/include/linux/compiler_types.h  -I/var/lib/dkms/evdi/4.4.24/build -I/var/lib/dkms/evdi/4.4.24/build -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -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=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-4.19.0-1-common/= -Wno-packed-not-aligned  -I/usr/src/linux-headers-4.19.0-1-common/include/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_main"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_main.o /var/lib/dkms/evdi/4.4.24/build/evdi_main.c
make[4]: *** [/usr/src/linux-headers-4.19.0-1-common/scripts/Makefile.build:308: /var/lib/dkms/evdi/4.4.24/build/evdi_connector.o] Error 1
make[4]: *** Waiting for unfinished jobs....
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_modeset.o";
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/lib/dkms/evdi/4.4.24/build/.tmp_evdi_main.o";
make[3]: *** [/usr/src/linux-headers-4.19.0-1-common/Makefile:1532: _module_/var/lib/dkms/evdi/4.4.24/build] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-1-amd64'
make: *** [Makefile:22: all] Error 2

This isn't an issue with the script but rather the driver source lagging changes to the 4.19 kernel API. I'm hoping that this can be fixed by patching the files in this commit. before building evdi.

AdnanHodzic commented 5 years ago

@toddsnider-epc thanks for the heads up. Since this is a problem with source driver, I'm not sure what can be done on displaylink-debian side.

Except monitor what changes they make on their side so we can act if any additional changes will need to be done. In meantime, I'm open to any suggestions you may have.

GingoO commented 5 years ago

Same problem here... Thanks for your feedback, let's hope this issue is quickly fixed on their side.

AdnanHodzic commented 5 years ago

Problem was also mentioned by @adangel as part of https://github.com/AdnanHodzic/displaylink-debian/issues/68#issuecomment-451641559

adangel commented 5 years ago

It is apparently fixed with evdi 1.5.1, but upstream displaylink 4.4 still includes only 1.5.0. See also https://github.com/DisplayLink/evdi/issues/139.

AdnanHodzic commented 5 years ago

I've just made changes which are ought to fix problems with >= 4.19 linux kernel, I didn't merge the changes with master yet (changes are in nexgen-kernel branch).

So if any of you could run --reinstall and report back on how it worked for you and which kernel you were on I'd appreciate it.

Once in displaylink-debian directory oneliner which will do everything for you:

git fetch && git checkout nexgen-kernel && sudo ./displaylink-debian.sh --reinstall
snideto commented 5 years ago

No luck yet ...

todds@todd-debian:~/git/displaylink-debian$ git fetch && git checkout nexgen-kernel && sudo ./displaylink-debian.sh --reinstall
Already on 'nexgen-kernel'
Your branch is up to date with 'main/nexgen-kernel'.

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

Checking dependencies

unzip is installed
linux-headers-4.19.0-1-amd64 is installed
dkms is installed
lsb-release is installed
linux-source is installed
x11-xserver-utils is installed
wget is installed

Platform requirements satisfied, proceeding ...

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

Uninstalling ...

Unit dlm.service could not be found.
Error! Invalid number of parameters passed.
Usage: remove <module>/<module-version> --all
   or: remove <module>/<module-version> -k <kernel-version>
Failed to disable unit: Unit file dlm.service does not exist.
Removing Displaylink Xorg config file

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

Performing clean-up

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

Checking dependencies

unzip is installed
linux-headers-4.19.0-1-amd64 is installed
dkms is installed
lsb-release is installed
linux-source is installed
x11-xserver-utils is installed
wget is installed

Platform requirements satisfied, proceeding ...

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

Please read the Software License Agreement
available at https://www.displaylink.com/downloads/file?id=1261
and accept here: [Y]es or [N]o: y

Downloading DisplayLink Ubuntu driver:

--2019-01-09 10:19:46--  https://www.displaylink.com/downloads/file?id=1261
Resolving www.displaylink.com (www.displaylink.com)... 34.252.223.12, 54.72.7.162, 52.208.143.240, ...
Connecting to www.displaylink.com (www.displaylink.com)|34.252.223.12|:443... connected.
HTTP request sent, awaiting response... 303 See Other
Location: http://assets.displaylink.com/live/downloads/software/f1261_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.4.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1547048026&Signature=EEuZsSfoY3D5LZ2tuJAXUGsfOR4%3D [following]
--2019-01-09 10:19:47--  http://assets.displaylink.com/live/downloads/software/f1261_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.4.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1547048026&Signature=EEuZsSfoY3D5LZ2tuJAXUGsfOR4%3D
Resolving assets.displaylink.com (assets.displaylink.com)... 52.218.96.186
Connecting to assets.displaylink.com (assets.displaylink.com)|52.218.96.186|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17626360 (17M) [application/octet-stream]
Saving to: ‘DisplayLink_Ubuntu_4.4.zip’

DisplayLink_Ubuntu_ 100%[===================>]  16.81M   812KB/s    in 24s     

2019-01-09 10:20:11 (721 KB/s) - ‘DisplayLink_Ubuntu_4.4.zip’ saved [17626360/17626360]

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

Preparing for install

Archive:  DisplayLink_Ubuntu_4.4.zip
  inflating: 4.4/LICENSE             
  inflating: 4.4/displaylink-driver-4.4.24.run  
Creating directory displaylink-driver-4.4.24
Verifying archive integrity...  100%   All good.
Uncompressing DisplayLink Linux Driver 4.4.24  100%  

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

Installing driver version: 4.4

detected: 4.19, patching\n
./evdi_main.c
./evdi_params.c
./evdi_ioc32.c
./evdi_drv.h
./evdi_stats.c
./evdi_painter.c
./Kconfig
./evdi_drm.h
./Makefile
./evdi_gem.c
./evdi_params.h
./evdi_connector.c
./evdi_cursor.c
./evdi_fb.c
./LICENSE
./evdi_encoder.c
./dkms.conf
./evdi_modeset.c
./evdi_debug.h
./evdi_cursor.h
./evdi_drv.c
--2019-01-09 10:20:12--  https://github.com/DisplayLink/evdi/raw/devel/module/evdi_connector.c
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/DisplayLink/evdi/devel/module/evdi_connector.c [following]
--2019-01-09 10:20:13--  https://raw.githubusercontent.com/DisplayLink/evdi/devel/module/evdi_connector.c
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.184.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.184.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4397 (4.3K) [text/plain]
Saving to: ‘evdi-4.4.24-src/evdi_connector.c’

evdi-4.4.24-src/evd 100%[===================>]   4.29K  --.-KB/s    in 0.004s  

2019-01-09 10:20:13 (1.08 MB/s) - ‘evdi-4.4.24-src/evdi_connector.c’ saved [4397/4397]

--2019-01-09 10:20:13--  https://raw.githubusercontent.com/DisplayLink/evdi/devel/module/evdi_gem.c
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.184.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.184.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12920 (13K) [text/plain]
Saving to: ‘evdi-4.4.24-src/evdi_gem.c’

evdi-4.4.24-src/evd 100%[===================>]  12.62K  --.-KB/s    in 0.01s   

2019-01-09 10:20:13 (1.13 MB/s) - ‘evdi-4.4.24-src/evdi_gem.c’ saved [12920/12920]

evdi-4.4.24-src/
evdi-4.4.24-src/evdi_cursor.c
evdi-4.4.24-src/evdi_drv.h
evdi-4.4.24-src/evdi_params.c
evdi-4.4.24-src/evdi_drm.h
evdi-4.4.24-src/evdi_main.c
evdi-4.4.24-src/evdi_drv.c
evdi-4.4.24-src/evdi_gem.c
evdi-4.4.24-src/evdi_cursor.h
evdi-4.4.24-src/evdi_modeset.c
evdi-4.4.24-src/evdi_fb.c
evdi-4.4.24-src/LICENSE
evdi-4.4.24-src/evdi_connector.c
evdi-4.4.24-src/evdi_params.h
evdi-4.4.24-src/dkms.conf
evdi-4.4.24-src/evdi_ioc32.c
evdi-4.4.24-src/evdi_encoder.c
evdi-4.4.24-src/evdi_stats.c
evdi-4.4.24-src/Makefile
evdi-4.4.24-src/evdi_painter.c
evdi-4.4.24-src/evdi_debug.h
evdi-4.4.24-src/Kconfig
DisplayLink Linux Software 4.4.24 install script called: install
Distribution discovered: Debian GNU/Linux buster/sid
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
ERROR (code 2): Unable to add evdi/4.4.24 to DKMS source tree..

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

Performing post install steps

ln: failed to create symbolic link '/opt/displaylink/libstdc++.so.6': No such file or directory
sed: can't read /lib/systemd/system/dlm.service: No such file or directory
Failed to enable unit: Unit file dlm.service does not exist.
Setup DisplayLink xorg.conf depending on graphics card
Wrote X11 changes to: /etc/X11/xorg.conf.d/20-displaylink.conf

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

Performing clean-up
Removing redundant: "DisplayLink_Ubuntu_4.4.zip" file
Removing redundant: "4.4" directory

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

Install complete, please reboot to apply the changes
After reboot, make sure to consult post-install guide! http://bit.ly/2TbZleK
Rebot now? [y/N] 

Reboot postponed, changes won't be applied until reboot

-------------------------------------------------------------------
AdnanHodzic commented 5 years ago

@toddsnider-epc okay problem is fixed, pull the latest changes and run re-install again.

If problem persists please re-open the issue.

snideto commented 5 years ago

As of 1533409, displaylink-debian now works for me with both 4.18 and 4.19 kernels. Many thanks @AdnanHodzic and @adangel !

GingoO commented 5 years ago

Hello,

I am now on kernel 4.20, and I still see the code 3 error : --------------------------- displaylink-debian ------------------------------- DisplayLink driver installer for Debian and Ubuntu based Linux distributions:

* Debian, Ubuntu, Elementary OS, Mint, Kali, Deepin and many more! * Full list of all supported platforms: http://bit.ly/2zrwz2u * When submitting a new issue, include Debug information

Options:

[I]nstall [D]ebug [R]e-install [U]ninstall [Q]uit

Select a key: [i/d/r/u/q]: I

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

Checking dependencies

unzip is installed linux-headers-4.20.0-042000-generic is installed dkms is installed lsb-release is installed linux-source is installed x11-xserver-utils is installed wget is installed

Platform requirements satisfied, proceeding ...

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

Please read the Software License Agreement available at https://www.displaylink.com/downloads/file?id=1261 and accept here: [Y]es or [N]o: y

Downloading DisplayLink Ubuntu driver:

--2019-01-15 22:04:03-- https://www.displaylink.com/downloads/file?id=1261 Resolving www.displaylink.com (www.displaylink.com)... 54.72.7.162, 54.246.144.22, 34.252.223.12, ... Connecting to www.displaylink.com (www.displaylink.com)|54.72.7.162|:443... connected. HTTP request sent, awaiting response... 303 See Other Location: http://assets.displaylink.com/live/downloads/software/f1261_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.4.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1547587092&Signature=Em0XCebcSSZl5%2Bn4PMVivGthUoE%3D [following] --2019-01-15 22:04:04-- http://assets.displaylink.com/live/downloads/software/f1261_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.4.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1547587092&Signature=Em0XCebcSSZl5%2Bn4PMVivGthUoE%3D Resolving assets.displaylink.com (assets.displaylink.com)... 52.218.84.34 Connecting to assets.displaylink.com (assets.displaylink.com)|52.218.84.34|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 17626360 (17M) [application/octet-stream] Saving to: ‘DisplayLink_Ubuntu_4.4.zip’

DisplayLink_Ubuntu_4.4.zip 100%[===============================================>] 16,81M 935KB/s in 18s

2019-01-15 22:04:22 (967 KB/s) - ‘DisplayLink_Ubuntu_4.4.zip’ saved [17626360/17626360]

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

Preparing for install

Archive: DisplayLink_Ubuntu_4.4.zip inflating: 4.4/LICENSE inflating: 4.4/displaylink-driver-4.4.24.run Creating directory displaylink-driver-4.4.24 Verifying archive integrity... 100% All good. Uncompressing DisplayLink Linux Driver 4.4.24 100%

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

Installing driver version: 4.4

detected: 4.20, patching\n --2019-01-15 22:04:22-- https://github.com/DisplayLink/evdi/archive/v1.5.1.tar.gz Resolving github.com (github.com)... 140.82.118.3, 140.82.118.4 Connecting to github.com (github.com)|140.82.118.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/DisplayLink/evdi/tar.gz/v1.5.1 [following] --2019-01-15 22:04:23-- https://codeload.github.com/DisplayLink/evdi/tar.gz/v1.5.1 Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120 Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: ‘evdi-v1.5.1.tar.gz’

evdi-v1.5.1.tar.gz [ <=> ] 55,02K 227KB/s in 0,2s

2019-01-15 22:04:23 (227 KB/s) - ‘evdi-v1.5.1.tar.gz’ saved [56337]

evdi-1.5.1/.gitignore evdi-1.5.1/.travis.yml evdi-1.5.1/Makefile evdi-1.5.1/README.md evdi-1.5.1/ci/ evdi-1.5.1/ci/build_against_kernel evdi-1.5.1/ci/export_for_kernel evdi-1.5.1/ci/run_style_check evdi-1.5.1/docs/ evdi-1.5.1/docs/details.md evdi-1.5.1/docs/index.md evdi-1.5.1/docs/quickstart.md evdi-1.5.1/library/ evdi-1.5.1/library/LICENSE evdi-1.5.1/library/Makefile evdi-1.5.1/library/evdi_lib.c evdi-1.5.1/library/evdi_lib.h evdi-1.5.1/mkdocs.yml evdi-1.5.1/module/ evdi-1.5.1/module/Kconfig evdi-1.5.1/module/LICENSE evdi-1.5.1/module/Makefile evdi-1.5.1/module/dkms.conf evdi-1.5.1/module/evdi_connector.c evdi-1.5.1/module/evdi_cursor.c evdi-1.5.1/module/evdi_cursor.h evdi-1.5.1/module/evdi_debug.h evdi-1.5.1/module/evdi_drm.h evdi-1.5.1/module/evdi_drv.c evdi-1.5.1/module/evdi_drv.h evdi-1.5.1/module/evdi_encoder.c evdi-1.5.1/module/evdi_fb.c evdi-1.5.1/module/evdi_gem.c evdi-1.5.1/module/evdi_ioc32.c evdi-1.5.1/module/evdi_main.c evdi-1.5.1/module/evdi_modeset.c evdi-1.5.1/module/evdi_painter.c evdi-1.5.1/module/evdi_params.c evdi-1.5.1/module/evdi_params.h evdi-1.5.1/module/evdi_stats.c ./ ./Makefile ./evdi_params.h ./dkms.conf ./evdi_main.c ./evdi_params.c ./evdi_gem.c ./Kconfig ./evdi_debug.h ./evdi_stats.c ./evdi_cursor.h ./evdi_painter.c ./LICENSE ./evdi_cursor.c ./evdi_connector.c ./evdi_encoder.c ./evdi_drm.h ./evdi_fb.c ./evdi_modeset.c ./evdi_drv.c ./evdi_drv.h ./evdi_ioc32.c DisplayLink Linux Software 4.4.24 install script called: install Distribution discovered: Linux Mint 19 Tara Installing Configuring EVDI DKMS module Registering EVDI kernel module with DKMS Building EVDI kernel module with DKMS ERROR (code 3): Failed to build evdi/4.4.24. Consult /var/lib/dkms/evdi/4.4.24/build/make.log for details..

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

Performing post install steps

sed: can't read /lib/systemd/system/dlm.service: No such file or directory Failed to enable unit: Unit file dlm.service does not exist. Setup DisplayLink xorg.conf depending on graphics card Wrote X11 changes to: /etc/X11/xorg.conf.d/20-displaylink.conf

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

Performing clean-up Removing redundant: "DisplayLink_Ubuntu_4.4.zip" file Removing redundant: "4.4" directory

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

Install complete, please reboot to apply the changes After reboot, make sure to consult post-install guide! http://bit.ly/2TbZleK Reboot now? [y/N] n

Reboot postponed, changes won't be applied until reboot

I tried both with master and next-gen branch, even though I guess this one was merged. Any idea what's going on here?

AdnanHodzic commented 5 years ago

@GingoO I have an idea what the problem is. Can you also include output of:

sudo ./displaylink-debian.sh --debug
GingoO commented 5 years ago

Here is the output of --debug:


Starting Debug ...

Did you read Post Installation Guide? http://bit.ly/2TbZleK [y/N] y

Did you read Troubleshooting most common issues? http://bit.ly/2Rofd0x [y/N] y

Unit dlm.service could not be found.
--------------- Linux system info ----------------

Distro: LinuxMint
Release: tara
Kernel: 4.20.0-042000-generic

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

Driver version: 4.4
EVDI service status: 
EVDI service version: 

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

Vendor: i915
Subsystem: 
VGA: Intel Corporation UHD Graphics 620 (rev 07)
X11 version: 1.19.6-1ubuntu4.2

-------------- 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: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:Intel

-------------------------------------------------------------------
adangel commented 5 years ago

It seems, that for kernel 4.20, the evdi module needs to be adjusted as well: https://github.com/DisplayLink/evdi/issues/145

AdnanHodzic commented 5 years ago

Thanks for heads up @adangel. As soon as evdi has made changes upstream to support 4.20 kernel I'll issue a patch.

Until this happens, @GingoO I'd suggest you downgrade back to 4.19 ...

GingoO commented 5 years ago

Thanks to the both of you. Yes, may try downgrading.

AdnanHodzic commented 5 years ago

As part of https://github.com/AdnanHodzic/displaylink-debian/commit/b57cea89cc2e97de071e417bdd39ddd374072dbd commit udl/udlf will be added to blacklist.conf automatically if >= 4.14.9 is detected.

I'm not sure if this will fix your problem, but I'd definitely advise you to pull the latest changes and perform reinstall and report back if there any changes. Of course changes should still only be done on <= 4.20 kernel.

AdnanHodzic commented 5 years ago

I'm closing this issue due to inactivity.

Feel free re-open the issue If you're still experiencing same problem after pulling latest updates and running reinstall.

AdnanHodzic commented 5 years ago

I've just merged displaylink-5 branch with master which introduces big changes, among which are support for yesterday released DisplayLink 5.1 driver. Disabling modesetting as part of displaylink-debian as now all of it should be happening on EVDI level. I've included few more changes.

Regardless, please pull latest (git pull) changes on master and run sudo ./displaylink-debian.sh --install

If the issue still persists, re-open the issue and include output of sudo ./displaylink-debian.sh --debug command.