9 Comments

      1. Yes, sure, just edit a GRUB menu entry when booting, remove everything and enter “vbeinfo” and Ctrl+x to execute it. The VESA modes output looks like this:


        VBE info: version: 2.0 OEM software rev 1.0
        total memory: 4096 KiB
        List of compatible video modes:
        Legend: P=Packed pixel, D=Direct color, mask/pos=R/G/B/reserved
        0x101: 640 x 480 x 8 Packed
        0x110: 640 x 480 x 15 Direct, mask: 5/5/5/1 pos: 10/5/0/15
        ...
        Configured VBE mode (vbe_mode) = 0x101

        Press any key to continue ...

        Press a key and Esc and you’re back in the boot menu.

        But there is no guarantee that the displayed modes will actually work. E.g. in my QEMU/KVM VM here it is displayed that 0x117 is compatible but when setting “vga=0x317” everything remains black. So I have to set “vga=0x316” for 1024×768.

  1. So, kernel parameters have nothing to do with grub. Grub just passes them to the kernel. Therefore, grub can’t support or not support kernel parameters. Additionally, why would you convert to decimal when the kernel supports passing the parameter as hex? Just preface it with 0x such as: vga=0x31E. This reads like a how to article written by someone who doesn’t know what they are doing.

    1. > grub can’t support or not support kernel parameters.

      Grub2 does parse and manipulate the kernel parameters – https://www.gnu.org/software/grub/manual/grub/grub.html#gfxpayload . Discussions in https://wiki.debian.org/GrubTransition#fnref-231bbb76472490d8f289f110d30d2d982e08a663 too as a reference. The wording in this post was indeed not accurate and may need to be refined when I got some time for it.

      > why would you convert to decimal when the kernel supports passing the parameter as hex? Just preface it with 0x such as: vga=0x31E.

      Using decimal numbers is the safer way – https://www.kernel.org/doc/Documentation/svga.txt , although it is not common to see LILO now.

      1. This is a great article! It’s exactly the info I was looking for. The vga codes in decimal notation were a real help to me! :up:

        On the other hand, don’t pay any attention to those full of themselves. Let them write their own articles. They won’t. Because that would be work and shallow criticisms mean no effort.

        Thank you for sharing your knowledge and your time freely as you do. Regards!

Leave a Reply

Your email address will not be published. Required fields are marked *