Skip to content

Instantly share code, notes, and snippets.

@torgeir
Last active June 20, 2021 05:58
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 torgeir/a0102143f2e503882b57070cb7e63cfe to your computer and use it in GitHub Desktop.
Save torgeir/a0102143f2e503882b57070cb7e63cfe to your computer and use it in GitHub Desktop.
xrandr config to bring back my display port monitor samsung lc32hg70qquxen on the DQ77kb
xrandr --output eDP1 --off
#xrandr --output DP1 --off
xrandr \
--display :0 \
--output VIRTUAL1 --off \
--output eDP1 --off \
--output DP1 --primary --mode 1024x768 --pos 0x0 --rotate normal --auto \
--output DP2 --off \
--output HDMI2 --off \
--output HDMI1 --off \
--output VGA1 --off
# if both hdmi and display port is plugged, run this to switch
# xrandr -d :0 --output DP1 --auto
#--mode 2560x1440 \
#--pos 0x0 --rotate normal --auto \
# command to fetch it: cvt x y rr
# cvt 2560 1440
xrandr --newmode ${1}2560 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync
xrandr --addmode DP1 ${1}2560
#xrandr --output DP1 --mode ${1}2560 --rate 59.96
xrandr --output DP1 --mode ${1}2560 --rate 59.95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment