How can I get a DisplayLink USB monitor work under Ubuntu?

78,415

Solution 1

On Aug 3, 2015, Displaylink finally released the USB Monitor driver for Ubuntu.

Link: http://www.displaylink.com/downloads/ubuntu.php

I have an AOC usb monitor and Ubuntu 14.04. After installing the driver, my usb Monitor start working.

If the driver works for your monitor, please let other people know by posting it. Many people waiting for this driver. I've been waiting for 2 years. :-)

Solution 2

Maybe this will get you a little bit further.

General DisplayLink adapter information for Linux is available here.

Also, if your primary graphics adapter is from NVIDIA, you should read this.

Good Luck

Solution 3

UPDATE: April 2019 -> DisplayLink with kernel > 5.0.5 also works.

UPDATE: March 2019 -> DisplayLink with kernel > 4.18.20

It is now possible to install the driver with new versions of kernels. I am writing this after updating to 4.20.13

You will have to use a script, however, which you can obtain from HERE (Github).

Once you have the script, remove the currently installed driver/module and install the new version. Script will download all dependencies for you. To remove old/install new apply the below steps:

sudo ./displaylink-debian.sh --uninstall
sudo dkms remove evdi/1.6.0 --all -q
sudo systemctl stop dlm.service
sudo systemctl disable dlm.service
sudo rm -f /lib/systemd/system/dlm.service
sudo rmmod evdi
sudo displaylink-debian.sh --install

Enjoy

February 2019 -> Ubuntu 18.04 LTS

Installation:

Download driver from HERE. Then unzip, make sure it's runable and install (change the below file names to your versions):

$ unzip DisplayLink USB Graphics Software for Ubuntu 4.4.zip
$ chmod 775 displaylink-driver-4.4.24.run
$ ./displaylink-driver-4.4.24.run

Thats it! Once installed you can connect your DisplayLink to the PC and it should fly.

Few notes:

Make sure you have dkms installed on your system.

$ sudo dpkg -l | grep dkms
ii  dkms          2.3-3ubuntu9.2        all          Dynamic Kernel Module Support Framework

Also note, it works perfectly with the 4.15.0-45-generic kernel. However, I tried with the newest kernel 4.20 and the driver will not work - evdi for dkms will not compile. I haven't tried other kernels - if I try I will update the answer - but beware of this issue!

You can check your current kernel like this:

$ uname -r
4.15.0-45-generic

EDIT: (14.02.2019)

Ok, so I decided to try some kernels and it seems that 4.18.20-041820-generic is the most recent working. Nothing higher worked for me.

Solution 4

Here's an easy way to test if your DisplayLink device is operable at a low level, under Linux. If you plug in the device and get a green screen, you're ready for the next step.

First convert a bitmap to the size of your screen, then convert it to 16 bit RGB color. Then copy to the framebuffer for the device:

convert -resize '800x480!' input.jpg temp1.png
mkdfiff -f RGB16 temp1.png > temp2.png
dd if=temp2.png of=/dev/fb1

Note that your DisplayLink is probably at /dev/fb1, but you can check with dmesg :

[581145.816821] udlfb: DisplayLink Kensington M01063 - serial #202241900817
[581145.817000] udlfb: vendor descriptor length:22 data:22 5f 01 0020 05 00 01 03 00 04
[581145.817005] udlfb: DL chip limited to 2360000 pixel modes
[581145.909488] udlfb: DisplayLink USB device /dev/fb1 attached. 800x480 resolution.

Only version 1 DisplayLink chips are supported by Linux. The DisplayLink 1 chips are limited to 16 bit RGB. Getting the device to work properly under X windows is more challenging.

Solution 5

In addition to callmebob's installtion guide on 18.04 I had to do the following routine: Workaround 1: Disable PageFlip for modesetting

It is preferred to keep using "modesetting" driver, but disabling page flipping is necessary. To do this, as a root user create a file 20-displaylink.conf under:

/usr/share/X11/xorg.conf.d/

with the following content:

Section "Device"
  Identifier "DisplayLink"
  Driver "modesetting"
  Option "PageFlip" "false"
EndSection  

A reboot is required for the setting to be effective.

Share:
78,415

Related videos on Youtube

jfmessier
Author by

jfmessier

I am a geek, who likes Linux, and stays away from Windows. I work in computers, networking and such, all on Linux machines. Windows is barely a dumb terminal to my Linux servers.

Updated on September 17, 2022

Comments

  • jfmessier
    jfmessier over 1 year

    I have a DisplayLink-based external USB monitor, which has both power and data over USB, and seems to work perfectly under Windows 7, but only can display a text console under Ubuntu 10.10, and that I can only use when I am actually switched to it. So the only Use I can have so far is to have some text-based monitoring or console that I can watch while working on the graphic display.

    I know there are some development done for DisplayLink, but I never could get it to actually run properly.

    Yes, I tried the detailed setup described in other posts, but they did not work, and instead crashed my X that I had to restore.

    Merci :-)

    • Nathan Osman
      Nathan Osman over 13 years
      Can you give us the name of your monitor? (manuf. and model)
    • jfmessier
      jfmessier over 13 years
      Mine s the iMo USB Sub-Monitor, as sold at ThinkGeek.com / The Model is actually the XT-7, as I can see on the CDROM.
    • Admin
      Admin about 13 years
      Which laptop/computer and graphics card do you have? I have an HP dv7 4183cl, and am trying to setup a triple head using 1 displaylink monitor.
    • noleti
      noleti over 9 years
      I would like to add that only USB2 Displaylink devices are supported in Linux, but the newer USB3 devices are NOT supported. More info here: askubuntu.com/questions/517339/…
  • jfmessier
    jfmessier over 13 years
    Lots of useful links. Will take me some time to read it all and setup, but I htink I"m in the right way to get it working.
  • vaquito
    vaquito about 13 years
    @jfmessier, did you get it working?
  • jfmessier
    jfmessier about 13 years
    Not yet. All I can get so far is a graphical display, but then the other monitors are black, useless. I still have to merge the configuration files together. My existing xorg.conf file is empty, and if I put the config file for the DisplayLink, it disables everything. So I need to generate the xorg.conf file for my existing monitors and then figure out how to append the DisplayLink stuff in it. BTW: I now have an ATI-based dual-monitor display, while I used to only connect to the on-board Intel-based adapter.
  • Ken Kinder
    Ken Kinder almost 12 years
    I see it's been a while since this was updated. Would you mind telling me whether DisplayLink USB monitors work well for you with current software?
  • Shnatsel
    Shnatsel over 10 years
    @Ken, they work out of the box only on Linux 3.9 and later which ships in Saucy Salamander.
  • jfmessier
    jfmessier over 10 years
    I have to try this tonight. I did not come to check it until I got a reminder from StackExchange about another response to this question. If I can make this working with 13.10, this would be great !!!!!!
  • Bryce
    Bryce over 10 years
    Note that the DL 1x0 and 1x5 chips support only 16 bit RGB, which means all your X displays need to be 16 bit RGB. This may be unacceptable depending on your use case.
  • vishal
    vishal over 9 years
    thank you the above confirmed my monitor can work. I wish there was a write up on how to install if though
  • jfmessier
    jfmessier over 8 years
    I've been waiting for four years now. Actually, the monitor is in some box somwehere in the home. But I will get the driver and see hw if works on my installation. I now use Ubuntu 15.04. Thanks for the link.
  • Reinier Post
    Reinier Post over 8 years
    It works for me on Ubuntu 14.04 after installing a more recent kernel than the standard one (sudo apt-get install linux-generic-lts-utopic). In my case, the monitors themselves do not use USB, but I use a Dell or HP docking station / port replicator to which I connect them. With compiz, the displays are not updated after each keystroke (only upon the next one), which is really annoying. With metacity, this problem does not occur.
  • igorsantos07
    igorsantos07 over 8 years
    @user1715991 would you kindly tell us exactly what's your AOC monitor?
  • Ingo Karkat
    Ingo Karkat over 8 years
    Thank you so much (finally)! I can confirm this working with an HP NL571AA USB Graphics Adapter, Ubuntu 14.04.3 LTS 64-bit, and a HP 1955 19" (tertiary) monitor. I only had to switch from the binary NVIDIA drivers to the open source Nouveau ones to make it work.
  • 13rac1
    13rac1 about 8 years
    You can use the framebuffer directly from VLC: vlc --vout fb --no-fb-tty --fbdev /dev/fb1 video.mp4
  • JLTD
    JLTD over 7 years
    Also working here for a HP NL571AA on 16.04 64bit with Nouveau at 1920x1080 external res.
  • malisokan
    malisokan about 7 years
    Works for me on the Acer Aspire v3-371 with Ubuntu 14.04 64bit (Kernel 3.16.0-77) and DisplayLink driver 1.3.52. I use two displays: Samsung SyncMaster 24" and Benq BL2405 24"
  • David Knipe
    David Knipe over 5 years
    It's best to avoid downloading software from an unsecured address (http:// instead of https://). In this case it seems that the whole site is available as both http and https - most sites would probably redirect from http to https, but this one hasn't bothered.