Last active
October 9, 2020 15:44
-
-
Save Dramelac/d94f93caf7ca631aee834e7df81a5efb to your computer and use it in GitHub Desktop.
Debian DisplayLink auto setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "Installing DisplayLink drivers for Debian based" | |
| echo "Warning : UEFI / Secure Boot must be disable (or follow this additional procedure : https://github.com/AdnanHodzic/displaylink-debian/blob/master/self-signing-modules.md)" | |
| echo -e "\nWriting config file\n" | |
| cd /tmp | |
| sudo mkdir -p /etc/X11/xorg.conf.d/ | |
| cat | sudo tee /etc/X11/xorg.conf.d/20-displaylink.conf <<EOF | |
| Section "OutputClass" | |
| Identifier "DisplayLink" | |
| MatchDriver "evdi" | |
| Driver "modesetting" | |
| Option "AccelMethod" "none" | |
| EndSection | |
| EOF | |
| cat >> ~/.xprofile <<EOF | |
| xrandr --setprovideroutputsource 1 0 | |
| xrandr --setprovideroutputsource 2 0 | |
| xrandr --setprovideroutputsource 3 0 | |
| xrandr --setprovideroutputsource 4 0 | |
| EOF | |
| git clone https://github.com/AdnanHodzic/displaylink-debian.git | |
| echo "Installing drivers ... Please select 'I' and reboot when finished" | |
| cd displaylink-debian/ && sudo ./displaylink-debian.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment