Skip to content

Instantly share code, notes, and snippets.

@constrict0r
Last active December 3, 2019 15:04
Show Gist options
  • Save constrict0r/4b7c441756effabdf81a77b578c41c4b to your computer and use it in GitHub Desktop.
Save constrict0r/4b7c441756effabdf81a77b578c41c4b to your computer and use it in GitHub Desktop.
Add 1366x768 resolution.
# Add the 1366x768_60.00 mode, dont' use sudo.
xrandr --newmode "1366x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync
# Run xrandr an check the output, don't use sudo.
xrandr
# Screen 0: minimum 320 x 200, current 2390 x 768, maximum 8192 x 8192
# LVDS-1 connected 1366x768+1024+0 (normal left inverted right x axis y axis) 293mm x 165mm
# 1366x768 59.98*+ 39.99
# ...
# VGA-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
# The item we want is VGA-1, add the mode to the ítem, don't use sudo.
xrandr --addmode VGA-1 "1366x768_60.00"
# Set the mode to 1366x768, don't use sudo.
xrandr --output VGA-1 --mode "1366x768_60.00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment