Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to change resolution of virtual console

📅 2015-Jan-12 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ resolution, ubuntu, virtual console, virtualbox ⬩ 📚 Archive

On many systems, I find that the virtual console in Ubuntu is limited to 80x40. That is, it only displays 80 columns and 40 lines of text. The resolution of my display is much higher than this and I would like to render more lines and columns in the virtual consoles.

To do that:

$ sudoedit /etc/default/grub
GRUB_GFXMODE=1920x1200x32
GRUB_GFXPAYLOAD_LINUX=keep
$ sudo update-grub

Note: This also works for virtual console of Ubuntu running inside a VirtualBox virtual machine. Since the VirtualBox window can be resized (and the virtual console cannot), I provide a smaller resolution to GRUB there. For example: 1024x768.

Tried with: Ubuntu 14.04