Skip to content

Instantly share code, notes, and snippets.

@luca-c-xcv
Last active March 4, 2023 15:28
Show Gist options
  • Save luca-c-xcv/981369dd97d8a1f78d45269481f216bb to your computer and use it in GitHub Desktop.
Save luca-c-xcv/981369dd97d8a1f78d45269481f216bb to your computer and use it in GitHub Desktop.
Set Linux to work with a docking station

How to configure a docking station on Linux

⚠️ read the whole guide

My setup

Laptop

ThinkPad T590

  • CPU: Intel(R) Core(TM) i7-8565U
  • RAM: 16GiB
  • GPU: UHD Graphics 620

Docking Stataion

  • ThinkPad Hybrid USB-C with USB-A Dock [ 40AF0135EU ]

Others

  • 2x HDMI monitors
  • Ubuntu 20.04 with i3 setup

1st step

  1. Download DisplayLink driver
  2. unpack the zip archive: unzip DisplayLink*.zip -d displaylink
  3. execute sudo ./displaylink/displaylink-driver*.run
  4. if the script doesn't reboot the system, reboot

2nd step

After the reboot if the external screens don't work, read below

  • execute sudo nano /etc/X11/xorg.conf.d/20-displaylink.conf
  • in the editor copy this config
Section "Device"
  Identifier "DisplayLink"
  Driver "modesetting"
  Option "PageFlip" "false"
EndSection  
  • save and exit: Ctrl + O -> Enter -> Ctrl + X

If the UEFI Secure Boot is enabled, you need to follow this official guide

3rd step

If the backlight has stopped working in the latop screen, rename the XX-intel.conf file in 10-intel.conf with this command cd /usr/share/X11/xorg.conf.d/; sudo mv XX-intel.conf 10-intel.conf (where XX is greater than or equal to 20)

Enjoy your docking station 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment