Closed snideto closed 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.
Same problem here... Thanks for your feedback, let's hope this issue is quickly fixed on their side.
Problem was also mentioned by @adangel as part of https://github.com/AdnanHodzic/displaylink-debian/issues/68#issuecomment-451641559
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.
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
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
-------------------------------------------------------------------
@toddsnider-epc okay problem is fixed, pull the latest changes and run re-install again.
If problem persists please re-open the issue.
As of 1533409, displaylink-debian now works for me with both 4.18 and 4.19 kernels. Many thanks @AdnanHodzic and @adangel !
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?
@GingoO I have an idea what the problem is. Can you also include output of:
sudo ./displaylink-debian.sh --debug
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
-------------------------------------------------------------------
It seems, that for kernel 4.20, the evdi module needs to be adjusted as well: https://github.com/DisplayLink/evdi/issues/145
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 ...
Thanks to the both of you. Yes, may try downgrading.
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.
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.
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.
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.