Created
December 10, 2018 19:35
-
-
Save thomsh/0cd6023d1f269b576bcb949a2c16a8a1 to your computer and use it in GitHub Desktop.
Set correct resolution for ASUS ROG PG278Q on debian stretch
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
#!/bin/bash | |
set -ex | |
# Set correct resolution for ASUS ROG PG278Q on debian stretch | |
# Problem : "gtf 2560 1440 60" didn't return correct value for this screen | |
# solution found : https://askubuntu.com/questions/621643/can-not-set-proper-resolution-on-this-one-monitor | |
# ( with https://www.entechtaiwan.com/util/moninfo.shtm ) | |
#add new mode for this "unknown display" | |
xrandr --newmode "2560x1440_60.00" 241,500 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync | |
# change DP-1 per appropriate display `xrandr -q` to list | |
xrandr --addmode DP-1 "2560x1440_60.00" | |
# Now I prefer to apply this resolution & auto rollback with gnome setting. You will find a new mode available.. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment