Skip to content

Instantly share code, notes, and snippets.

@Cobesz
Last active December 6, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cobesz/f4a700a828a62fe12d2d31917ee86725 to your computer and use it in GitHub Desktop.
Save Cobesz/f4a700a828a62fe12d2d31917ee86725 to your computer and use it in GitHub Desktop.
#!/bin/bash
xrandr --output HDMI-0 --mode 1920x1080 --rate 60.00 \
--output DVI-D-0 --mode 1920x1080 --rate 60.00
sleep 5
xrandr --output HDMI-0 --primary --mode 1920x1080 --rate 60.00 \
--output DVI-D-0 --mode 3840x2160 --rate 60.00
@Cobesz
Copy link
Author

Cobesz commented Dec 6, 2020

Add this to a startup script on Linux based OS'es if you have the following setup:

Left monitor: 4k display
Right Monitor: 1080p display

This bugged for for days. It solved my problem of having a black 4k display on boot.

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