DisplayLink is now working with Ubuntu 21.04

By | June 3, 2021

UPDATE [August 9, 2021]: It turns out DisplayLink doesn’t quite work in 21.04. See this blog posting for the latest on how to work around the remaining issue.

Thanks to Peter Boros for pointing out that Canonical and Synaptics have made the fixes necessary to make DisplayLink work with Ubuntu 21.04 without any of the fixes I’ve posted. I was unaware of this because, unfortunately, Canonical did not update any of the bugs I’ve filed about this to indicate that the issue was fixed, and Synaptics did not announce the new release of their software or update the Ubuntu download page to indicate that it’s compatible with 21.04. 🤷

If you’ve installed my fixes on your Ubuntu 21.04 box to make it work with DisplayLink, here’s what you should do to undo them:

  1. Download the current DisplayLink Ubuntu installer from here.
  2. Unzip it.
  3. Run “bash displaylink-driver-*.run --noexec --keep --target dl-installer“. Do this in a persistent directory like your Desktop or something, not in /tmp, because you’re going to need these files still after you’ve rebooted, and rebooting clears /tmp on Ubuntu.
  4. Make sure you’ve got a monitor plugged directly into your computer, not into your DisplayLink hub, or proceed in an SSH session into your computer from a different one.
  5. Switch directories to the dl-installer directory and run”sudo bash displaylink-installer.sh uninstall“.
  6. Download the script below as hirsute-unfix-displaylink.sh and run sudo bash -e hirsute-unfix-displaylink.sh.
  7. Reboot and log in again.
  8. If you’re working directly on your computer rather than through an SSH session, make sure your keyboard and mouse are plugged directly into your computer rather than your DisplayLink hub, because you can’t install the DisplayLink driver when the hub is plugged in.
  9. Switch into the dl-installer directory again and run “sudo bash displaylink-installer.sh install“.
  10. Reboot.

At this point DisplayLink should be working, and you can delete all of the installers and scripts that you downloaded or unpacked.

Note that this uses the evdi shared library and kernel module shipped with the DisplayLink installer, not the ones shipped with Ubuntu.

Here’s the hirsute-unfix-displaylink.sh script:

Print Friendly, PDF & Email

8 thoughts on “DisplayLink is now working with Ubuntu 21.04

  1. Pingback: DisplayLink isn’t *quite* working in Ubuntu 21.04 (Hirsute) – Something better to do

  2. Brad

    Thank you very much for this series of blog posts. Any thoughts on being able to connect/disconnect the external DL device while the system is running? At the moment if I disconnect, my primary laptop screen goes black. Have you run into this at all?

    1. jik Post author

      Do you mean that it goes black briefly when you unplug and then recovers, or goes black until you reboot or something? I’ve definitely seen it happen briefly but haven’t seen it last more than a few seconds on either macOS or Linux.

      1. Brad

        Black until I force a reboot with the power button.

  3. daktfi

    Well, this is quite nice news that DP is now working on 21.04.

    The main problem with article itself is that instead of explaining what should be done with “good packages” and what they are you only give a script (that doesn’t work on my system) that does something. I do agree that it’s way easier to run a script and forget about it… if the script in question works. And when it isn’t the explanation of what is what and what must be done can truly amend it.
    Just for reference: 21.04 lives on 5.11 kernel…

    Anyway, thanks a lot! Twiddling a bit around I managed to make script work… Dunno if it works right, of course…

  4. Anonymous

    Interestingly, this still doesn’t work for me. The install completes, but the module it installs is broken. Manually trying to start it with modprobe will give an error `modprobe: ERROR: could not insert ‘evdi’: Exec format error`

  5. Pingback: Using DisplayLink with Ubuntu 21.04 (“Hirsute Hippo”) – Something better to do

  6. Pingback: Update on using DisplayLink with Ubuntu 21.04 (Hirsute Hippo) – Something better to do

Leave a Reply

Your email address will not be published. Required fields are marked *