Skip to content

Instantly share code, notes, and snippets.

@shirou
Created April 25, 2020 12:41
Show Gist options
  • Save shirou/4b5ef5553e6078c3940a7d7986f7ade2 to your computer and use it in GitHub Desktop.
Save shirou/4b5ef5553e6078c3940a7d7986f7ade2 to your computer and use it in GitHub Desktop.
how to enable high resolution display with Ubuntu 20.04 on VirtualBox
# change your display setting in VirtualBox to VBoxVGA
# execute 'cvt 2560 1360' to get the newmode line
xrandr --newmode "2560x1360_60.00" 293.50 2560 2744 3016 3472 1360 1363 1373 1410 -hsync +vsync
xrandr --addmode VGA-1 "2560x1360_60.00"
xrandr --output VGA-1 --mode 2560x1360_60.00
# 2560x1400 is not working for me with below error and I don't know why
#
# xrandr --verbose --output VGA-1 --mode 2560x1440_60.00
# screen 0: 2560x1440 675x380 mm 96.25dpi
# crtc 0: 2560x1440_60.00 59.96 +0+0 "VGA-1"
# xrandr: Configure crtc 0 failed
# crtc 0: disable
# screen 0: revert
# crtc 0: revert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment