Linux Console Resolution

From Wiki
Jump to navigationJump to search

Edit /etc/default/grub

Find the following line

GRUB_GFXMODE=...

And replace it with

GRUB_GFXMODE=1280x1024x16
GRUB_GFXPAYLOAD=1280x1024x16

Save and exit.

Edit /etc/grub.d/00_header

Find the following line:

if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=...

and replace it with

if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=1280x1024x16 ; fi
if [ "x${GRUB_GFXPAYLOAD}" = "x" ] ; then GRUB_GFXPAYLOAD=1280x1024x16 ; fi

Find the following line:

set gfxmode=${GRUB_GFXMODE}

And replace it with

set gfxmode=${GRUB_GFXMODE}
set gfxpayload=${GRUB_GFXPAYLOAD}

Save and exit.

If running under VirtualBox, installing the VirtualBox Additions will break this. To fix it.

echo "install vboxvideo /bin/true" >/etc/modprobe.d/vboxvideo.conf

Refresh grub with

update-grub2

And then reboot.