# Console screen resolution (framebuffer) with NVIDIA drivers on Ubuntu, Debian, or Linux Mint

*2015-05-18*

> Set the framebuffer console resolution with proprietary NVIDIA drivers on Ubuntu, Debian, or Linux Mint using GRUB 2 graphics settings.

After installing the proprietary [NVIDIA](http://www.nvidia.co.uk/Download/index.aspx?lang=en-uk) graphics drivers on [Ubuntu](http://www.ubuntu.com/), [Debian](http://debian.org), or [Linux Mint](http://linuxmint.com/), you may find that the console no longer uses the resolution you want. I use the framebuffer console from time to time and wanted it to match my primary monitor's resolution of `1680x1050`.

Here's how I configured it using GRUB 2.

First, reboot your computer. At the GRUB 2 menu, press **C** to open the command line and run:

```text
vbeinfo
```

Choose a resolution from the list of supported modes. I selected `1680x1050x32`. Press **Esc** to return to the GRUB menu, then boot Linux.

Open [Konsole](https://konsole.kde.org/) or another terminal emulator and become root:

```sh
su
```

Enter the root password when prompted.

Open `/etc/default/grub` using Vim, Nano, or your preferred text editor. For example:

```sh
vim /etc/default/grub
```

Find the `GRUB_GFXMODE=640x480` line, uncomment it if necessary, and replace the value with your chosen resolution. Add `GRUB_GFXPAYLOAD_LINUX=keep` below it. My settings were:

```sh
GRUB_GFXMODE=1680x1050x32
GRUB_GFXPAYLOAD_LINUX=keep
```

Save and close the file. Then, still working as root, regenerate the GRUB configuration and update the initramfs:

```sh
update-grub2
update-initramfs -u
```

Reboot your system. The framebuffer console should now use the selected resolution.

