Update: Driver version 1.4 works on 17.10 without hacks mentioned below.
(there is whole journey of me and DisplayLink, NVidia, Intel and Dell troublemakers – see here and here and here)
After last updates I ended up with unbelievably annoying flickering, and sometimes completely missing, cursor on main display.
Desperate people do desperate actions. So I have tried to upgrade to Ubuntu 17.10 with kernel 4.13. Attempt to install “DisplayLink USB Graphics Software for Ubuntu 1.3.54” failed with following issue:
/var/lib/dkms/evdi/1.3.54/build/evdi_gem.c: In function ‘evdi_prime_create’:
/var/lib/dkms/evdi/1.3.54/build/evdi_gem.c:276:15: error: implicit declaration of function ‘drm_malloc_ab’; did you mean ‘dma_alloc_wc’? [-Werror=implicit-function-declaration]
obj->pages = drm_malloc_ab(npages, sizeof(struct page *));
I have asked on forum when 17.10 will be supported. Meanwhile there is workaround:
- Download 1.3.54 driver from http://www.displaylink.com/downloads/ubuntu
- Run installer with parameter keep ./displaylink-driver-1.3.54.run –keep
- It fails, but in current directory there is folder displaylink-driver-1.3.54
- There is file evdi-1.3.54-src.tar.gz, move it somewhere into temp directory
- Unpack using tar -zxvf evdi-1.3.54-src.tar.gz
- Replace evdi_gem.c by this file from this commit
- Pack it again using tar cvzf evdi-1.3.54-src.tar.gz *
- Replace original file in folder displaylink-driver-1.3.54
- Install driver using ./displaylink-driver-1.3.54/displaylink-installer.sh install
- Reboot computer, device should be recognized
- But Gnome with Wayland will switch off because recognizes unsupported device. (when will be supported Wayland is a big question)
- So first other shell is selected – Plasma in my case. Unfortunatelly most of packages is missing so nasty error appears.
- Log out, and on login screen below credentials select cog and there Unity
- Then it works except screen connected on DisplayLink shows only cursor
- Apply workaround 2 from here, reboot computer
[There is updated article for Ubuntu 17.10]
My desktop looks like:
I wanted to have 2 external monitors, but my Dell Inspiron 15 (7559) has only one HDMI port. Other thing was that I had to plug/unplug many cables when I wanted to go to meeting room. So I decided to buy USB 3.0 dock. Not an easy task when you love Linux. Most docks only support Windows and OSX.
I have purchased i-tec USB 3.0 Dual Docking because they promise Ubuntu 16.04 compatibility. They only “forgot” to mention that only KMS drivers are supported, so forgot official NVIDIA blob drivers. Even with Nouveau drivers there was issues. Because I had also another issues I switched off dedicated card completely.
Then it was necessary to install DisplayLink driver from here. But after reboot graphic part of dock did not work. By running dmesg I have found out that kernel module was not loaded. I am using SecureBoot and their kernel module is not signed. So I have to do following as root:
#generate certificate - do this once, but keep result files - you will have to sign modules for every kernel update
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/"
#import your certificate as trusted into SecureBoot
#remember entered password - you have to fill it after reboot and confirm adding certificate
mokutil --import MOK.der
#sign your module - you have to do this on every kernel update
/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n evdi)
Then reboot your computer, authorize new certificate and dock should work!
Currently I have last issue: when playing music through dock it is time to time reset. It disconnects monitors, network and audio…
I had purchased Dell Inspiron 15 (7559) when I entered my current job at Navigo3. I was asked to buy Dell to keep same brand with other laptops in company. I made some research and only feasible option (SSD, 16GB RAM, …) was this one. Unfortunately it is based on Intel Skylake which is not fully supported in Ubuntu 16.04 yet. It should be better with 4.8 kernel that should be backported in February 2017.
However main issue is dedicated graphics. I have experiences various issues from freezing during boot, problems with suspend, setting resolution on multiple screens, etc. Because I mostly do web development, I don’t need dedicated graphic card. So I decided to switch off dedicated card and keep only Intel HD Graphics 530. It is quite easy:
apt install bbswitch-dkms
Switch off NVIDIA card by appending following into /etc/modules
Blacklist NVIDIA by appending following into /etc/modprobe.d/blacklist.conf
And finally update initial ramdisk by running
After reboot only Intel should be enabled:
Credits: http://askubuntu.com/a/709552/93726 (Sorry, I cannot upvote because I don’t have enough reputation points)