Skip to content

Instantly share code, notes, and snippets.

@thomsh
Created December 10, 2018 19:35
Show Gist options
  • Save thomsh/0cd6023d1f269b576bcb949a2c16a8a1 to your computer and use it in GitHub Desktop.
Save thomsh/0cd6023d1f269b576bcb949a2c16a8a1 to your computer and use it in GitHub Desktop.
Set correct resolution for ASUS ROG PG278Q on debian stretch
#!/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