I'm trying to change the resolution of my ubuntu server. sadly all tutorials seem to be doing it by using xrandr which tells me "can't open display" since i'm using the non-graphical version.

I also tried editing the /etc/default/grub file by adding


followed by sudo update-grub Sadly this does nothing to change my resolution. :<

  • did you reboot after the update? you have a monitor connected to your server or are sshing in? – Joshua Besneatte Sep 28 '18 at 15:20

Modify / add the following lines to /etc/default/grub to match the ones below

GRUB_CMDLINE_LINUX_DEFAULT="video=<your_video_mode> gfxpayload=true"
GRUB_CMDLINE_LINUX="video=<your_video_mode> gfxpayload=true"
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

Run update-grub

sudo update-grub


sudo reboot

You can find more information here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.