Last active
November 15, 2017 09:36
-
-
Save lucascosti/1abd5927d339f78d06ba17b6fc287870 to your computer and use it in GitHub Desktop.
On my T450s, if my LG external monitor is connected, set RGB to full.
This file contains 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
# Colour fix for home monitor. See: https://lucascosti.com/blog/2016/08/monitor-colour-problems-over-hdmi/ and http://losca.blogspot.com.au/2013/11/workaround-for-setting-full-rgb-when.html | |
# see if there is the LG monitor we are expecting | |
if edid-decode /sys/class/drm/card0-HDMI-A-1/edid | grep 'Manufacturer: GSM Model 5ab8 Serial Number 137681'; then | |
xrandr --output HDMI-1 --set "Broadcast RGB" "Full" && xrandr --output DP-1 --set "Broadcast RGB" "Full" | |
notify-send "LG home monitor detected: I have set RGB to Full" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment