No GRUB2, o método preferido para definir a resolução do framebuffer (para o GRUB e o kernel) é editar /etc/default/grub
para conter essas variáveis:
-
GRUB_GFXMODE
define a resolução do GRUB -
GRUB_GFXPAYLOAD_LINUX
controla se o kernel linux manterá a resolução, e se você quiser que o kernel linux use resolução diferente do GRUB, você pode configurá-lo com esta variável no formuláriowidthxheight
.
Para mostrar todos os modos que você pode usar:
-
hwinfo --framebuffer
no terminal linux -
vbeinfo
no prompt do GRUB
Exemplo de configuração da resolução do framebuffer
Estas linhas são inseridas em /etc/default/grub
:
GRUB_GFXMODE=1024x768x32
GRUB_GFXPAYLOAD_LINUX=keep
Para gerar as alterações, execute
# grub-mkconfig -o /boot/grub/grub.cfg
Trecho do Manual GNU GRUB 2.00
‘GRUB_GFXMODE’
Set the resolution used on the
‘gfxterm’
graphical terminal. Note that you can only use modes which your graphics card supports via VESA BIOS Extensions (VBE), so for example native LCD panel resolutions may not be available. The default is‘auto’
, which tries to select a preferred resolution. See gfxmode.
‘GRUB_GFXPAYLOAD_LINUX’
Set to
‘text’
to force the Linux kernel to boot in normal text mode,‘keep’
to preserve the graphics mode set using‘GRUB_GFXMODE’
,‘widthxheight’
[‘xdepth’
] to set a particular graphics mode, or a sequence of these separated by commas or semicolons to try several modes in sequence. See gfxpayload.Depending on your kernel, your distribution, your graphics card, and the phase of the moon, note that using this option may cause GNU/Linux to suffer from various display problems, particularly during the early part of the boot sequence. If you have problems, set this option to
‘text’
and GRUB will tell Linux to boot in normal text mode.