Skip to content

Instantly share code, notes, and snippets.

@ImaginativeShohag
Created July 13, 2019 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ImaginativeShohag/91a935e9a962811ddbdfbba3e3d95738 to your computer and use it in GitHub Desktop.
Save ImaginativeShohag/91a935e9a962811ddbdfbba3e3d95738 to your computer and use it in GitHub Desktop.
Ubuntu: Change monitor resolution of Unknown Display
#!/bin/bash
xrandr --newmode $(cvt 1920 1080 60 | grep Mode | sed -e 's/.*"/1920x1080/') 2> /dev/null
xrandr --addmode VGA-1 1920x1080
xrandr --output VGA-1 --mode 1920x1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment