Last active
June 20, 2021 05:58
-
-
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
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
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