Skip to content

Instantly share code, notes, and snippets.

@wojtekadams
Last active July 13, 2025 18:28
Show Gist options
  • Select an option

  • Save wojtekadams/4d3876196fb07a41ec54c55a8abfca0f to your computer and use it in GitHub Desktop.

Select an option

Save wojtekadams/4d3876196fb07a41ec54c55a8abfca0f to your computer and use it in GitHub Desktop.
Adding proper resolution in xrandr for AOC monitors
#!/bin/sh
# https://askubuntu.com/questions/377937/how-do-i-set-a-custom-resolution
# cvt 2560 1440
xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync
xrandr --addmode HDMI-1-2 "2560x1440"
@wojtekadams
Copy link
Author

wojtekadams commented Jan 25, 2023

`DP-2 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 527mm x 296mm

2560x1440 59.95*+ 74.97

1920x1080 119.98 99.93 60.00 60.00 50.00 59.94
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment