What is the correct format for the GRUB_GFXMODE variable in /etc/default/grub?

Should it have a dash before the color depth?...


Or, should it use an "x" before the color depth?...


Also, should the color depth be "32" or "24" ?

  • 1
    It should be an "x". You can use any valid number, I doubt you will notice any difference between 24 and 32 bit in grub or the console. – Panther Mar 24 '15 at 1:04

The correct syntax is to use an x:


Interestingly, at the top of the file it mention a command to get help with this file :)

info -f grub -n 'Simple configuration'

This command will give you the following information at 15.1.10:


There is also web documentation in HTML format.

About the depth value, as long as it is an integer you'd be fine :-)

  • I did review the info file, but didn't see that. Thanks for finding this and posting the image and documentation link! – PJ Singh Mar 24 '15 at 1:20
  • No problem, glad it helped! BTW, I don't blame you about that, the resolution section was down under, a lot of scrolling to reach it :) – Lucio Mar 24 '15 at 3:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.