You are not logged in.

#1 2013-10-09 18:59:22

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 69

Change grub resolution from within grub console

Hello!

I'm looking for a way to change the grub resolution from within the grub console. Note, that I am not looking for a way to change the grub resolution in the config files!

This is why I'm asking: my laptop stopped booting whenever the grub resolution is not set to 800x600x32. This is very strange and I do not know the reason for this issue. It hasn't been a problem so far, because I'm just using the config file to set the resolution to 800x600x32.

Now I'm trying to reinstall, but the live discs won't boot since the resolution of grub is not 800x600x32. I tried dropping to console and typing

set gfxmode=800x600x32
set gfxpayload=keep
load_video
insmod gfxterm

but nothing happens.

So the question is: Is there any way to change the resolution of grub from its own console? Or is there a way to manipulate the live images before burning them in order to start grub with the desired resolution?

Thanks so much!

Last edited by mjb (2013-10-09 19:00:15)

Offline

#2 2013-10-09 19:06:11

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Change grub resolution from within grub console

I was fairly certain (unless something changed recently) that the Arch live media (archiso) uses syslinux/extlinux to boot from the MBR.

To change the configs, you have two options.  You can either take a premade image, unpack the squashfs, modify, then repack.  Or you can amke your own archiso with the archiso package and scripts.  There is the ability to change things within the resulting image before it is compressed into the squashfs.  This is done with simple shell scripts, so it would be a simple sed command to change the resolution in the resulting config file.

Here's some relevant info:
https://wiki.archlinux.org/index.php/Archiso
https://wiki.archlinux.org/index.php/Re … nstall_ISO

Alternatively, you could use the arch-install-scripts package from the official repos to install from an existing Arch installation. Or you could also download the arch-bootstrap images from one of the mirrors (in the same directory archiso lives), which allows you to unpack a tar.gz file into a directory and chroot into it to get a bare bones arch install environment.  This would allow you to use any live media or existing installation you please.

Offline

#3 2013-10-09 19:06:40

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: Change grub resolution from within grub console

mjb wrote:

Hello!

I'm looking for a way to change the grub resolution from within the grub console. Note, that I am not looking for a way to change the grub resolution in the config files!

This is why I'm asking: my laptop stopped booting whenever the grub resolution is not set to 800x600x32. This is very strange and I do not know the reason for this issue. It hasn't been a problem so far, because I'm just using the config file to set the resolution to 800x600x32.

Now I'm trying to reinstall, but the live discs won't boot since the resolution of grub is not 800x600x32. I tried dropping to console and typing

set gfxmode=800x600x32
set gfxpayload=keep
load_video
insmod gfxterm

but nothing happens.

Did you add

terminal_output gfxterm

at the end. Although I doubt whether that will change the currently set menu resolution.

So the question is: Is there any way to change the resolution of grub from its own console? Or is there a way to manipulate the live images before burning them in order to start grub with the desired resolution?

You may want to checkout grub-emu (available in grub-bzr aur pkg, not in core/grub). It emulates a grub menu from which you can test all graphics related stuff. I haven't tried it myself though.

Offline

#4 2013-10-14 05:43:30

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 69

Re: Change grub resolution from within grub console

WonderWoofy wrote:

I was fairly certain (unless something changed recently) that the Arch live media (archiso) uses syslinux/extlinux to boot from the MBR.

To change the configs, you have two options.  You can either take a premade image, unpack the squashfs, modify, then repack.  Or you can amke your own archiso with the archiso package and scripts.  There is the ability to change things within the resulting image before it is compressed into the squashfs.  This is done with simple shell scripts, so it would be a simple sed command to change the resolution in the resulting config file.

Here's some relevant info:
https://wiki.archlinux.org/index.php/Archiso
https://wiki.archlinux.org/index.php/Re … nstall_ISO

Alternatively, you could use the arch-install-scripts package from the official repos to install from an existing Arch installation. Or you could also download the arch-bootstrap images from one of the mirrors (in the same directory archiso lives), which allows you to unpack a tar.gz file into a directory and chroot into it to get a bare bones arch install environment.  This would allow you to use any live media or existing installation you please.

Thanks a lot! I'll try the archiso thing out and let you know!

Offline

#5 2013-10-14 05:44:34

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 69

Re: Change grub resolution from within grub console

the.ridikulus.rat wrote:

Did you add

terminal_output gfxterm

at the end. Although I doubt whether that will change the currently set menu resolution.

Thanks! But as you guessed: it did not.

Offline

Board footer

Powered by FluxBB