Skip to content

Instantly share code, notes, and snippets.

@lucascosti
Last active November 15, 2017 09:36
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 lucascosti/1abd5927d339f78d06ba17b6fc287870 to your computer and use it in GitHub Desktop.
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.
# 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