HOWTO: Change Framebuffer in Grub – Debian

03Apr11

Just a quick note lest I need it again later.

It’s possible to change the framebuffer (think of it as console resolution) in Debian and probably Ubuntu, by modifying GRUB’s default settings.

In your favourite editor, open up /etc/grub.d/00_header

Navigate down to line 126. You should see something like this,

if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT_PATH}"` ; then
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm

Add the following line ” set gfxpayload=widthxheightxdepth”, so that it looks something like this,

if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT_PATH}"` ; then
set gfxmode=${GRUB_GFXMODE}
set gfxpayload=1024x768x32
load_video
insmod gfxterm
Run update-grub, reboot, and voila!
About these ads


4 Responses to “HOWTO: Change Framebuffer in Grub – Debian”

  1. 1 tom

    Thank you sir, this had been a bugbear of mine since the switch to grub2.

  2. Better way: edit /etc/default/grub and add/change the following:

    GRUB_GFXPAYLOAD_LINUX=1024x768x32

    …and run update-grub. This is less hack-y than changing the non-“custom” files in /etc/grub.d .

  3. I am in fact thankful to the owner of this web page who has shared
    this wonderful piece of writing at here.



Follow

Get every new post delivered to your Inbox.

Join 68 other followers

%d bloggers like this: