Skip to content

Instantly share code, notes, and snippets.

@tuananh
Created March 14, 2024 08:50
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 tuananh/e22ec85938045b6326098abf6cacd45d to your computer and use it in GitHub Desktop.
Save tuananh/e22ec85938045b6326098abf6cacd45d to your computer and use it in GitHub Desktop.
Ubuntu: how to change tty resolution at boot

Edit /etc/default/grub file

sudo nano /etc/default/grub

Edit the GRUB_CMDLINE_LINUX_DEFAULT flag to add nomodeset and vga=795. Change vga modeset accordingly. You can reference the table below.

Color Depth 800x600 1024x768 1152x864 1280x1024 1600x1200
8 bit vga=771 vga=773 vga=353 vga=775 vga=796
16 bit vga=788 vga=791 vga=355 vga=794 vga=798
24 bit vga=789 vga=792 vga=795 vga=799

It should look like this

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset vga=795"

Update GRUB & reboot.

sudo update-grub2
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment