Skip to contentSkip to conversation

Console Resolution with GRUB2

DISCUSSION Gerard Butler 5 participants 9 messages Mar 2, 2013 – Mar 7, 2013

lore
Share & tools
lore
#0 lore raw

A few things, you can lower the resolution of grub to make the console look bigger I guess, or you can use grub-mkfont to generate a larger font and set that as your grub font. From the sounds of it you're also having issue with the tty font which I googled and found that yjou could reconfigure the font size (I don't know what distro you're using, but there's stuff on Ask Ubuntu).

#1 lore raw

Yes but making a large font still does not cange the resolution down to 640x480 as needed by ncurses programs like Debian's aptitude.

Why cannot GRUB put back the easy to use command to change the boot screen.

I am not looking to make large fonts in high resolution, I am trying to get console resolution to what ncurses and ASCII graphics use.

I am using a kernel from kernel.org, there was a eay to do this by modifying gfxpayload=keep and such lines but with the latest version of grub even this difficult system no longer works.

Also if I install Grub-legacy, I can change the boot parameters to specify resolution. Everything is the same except those files that were removed by purging grub and installing grub-legacy.

Why can't this feature be kept? It ensures compatability for those users who wish to have a console only system.

If I can get what I want by removing grub and installing grub legacy, what is changing is just grub. Grub generates grub.cfg and that is the
problem: tell Grub to allow an easy to enter resolution parameter like grub-legacy allows. Just bring back that feature for us console users. Some day you wont be able to see the high resolution console with the tiny letters :-)

Can you do this for us.

David

Quoted 13 lines · Gerard Butler

A few things, you can lower the resolution of grub to make the console look bigger I guess, or you can use grub-mkfont to generate a larger font and set that as your grub font. From the sounds of it you're also having issue with the tty font which I googled and found that yjou could reconfigure the font size (I don't know what distro you're using, but there's stuff on Ask Ubuntu).

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw
In reply to Gerard Butler

GB,

Yes, I need grub to have an easy and consistant way to keep low resolution in the console just as grub-legacy allows.

grub-legacy allowed is to have 640x480 in console while having the X Desktop running at 1200 resolution at the same time.

We need grub to set console resolution, show the grub menu in that resolution, keep that resolution while the computer boots up, then when I type startx I have high resolution in X gui. If I shell out of X gui with ctrl, alt, F2, I will see the log in prompt in low resolution.

All the console programs with ncurses and ASCII graphics come out so small if the console is in high resolution, often taking up only the top left quarter of the screen.

Bring back the feature that you dropped!

David

Quoted 13 lines · Gerard Butler

A few things, you can lower the resolution of grub to make the console look bigger I guess, or you can use grub-mkfont to generate a larger font and set that as your grub font. From the sounds of it you're also having issue with the tty font which I googled and found that yjou could reconfigure the font size (I don't know what distro you're using, but there's stuff on Ask Ubuntu).

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw
Quoted 2 lines · Jr.

We need grub to set console resolution, show the grub menu in that resolution, keep that resolution while the computer boots up, then when I type startx I have high resolution in X gui.

GRUB is responsible only for GRUB. As soon as the kernel and initramfs are loaded and executed, the console resolution is up to that distribution's behavior (init for most, and systemd for others including Fedora, not sure about Debian). Once those are running, GRUB is totally dropped and has no say in the matter and as far as I know it never has.

There is a limited time inheritance of GRUB's setting, but the OS itself can override this early on in the boot process. I see that turning text only boot with at least Fedora, CentOS, and SUSE, so I'm guessing that what you attribute to GRUB2 is actually a concomitant change in behavior of your distribution's init process.

Chris Murphy

#4 lore raw

Chris,

That doesn't explain why if I go back to grub-legacy everything works. I would agree with you if it were so, but everything else is the same. But with grub-legacy being discontinued we need to have grub2 have this feature.

To the group:

In addition to thanking you all for your patience and cooperation, I want to ask you to do one little search and you will see the problem.

Open up your favorite web browser, go to http://www.google.com and search for:

change console resolution grub2

You will find many results and most of them have the word "problem" in the results.

Here is a typical result and it talks about grub2.

As usual, everything in grub is just a bit harder than it should be.

Replacing the old linux kernel boot arg vga=791 (for example), which is grub/console gfx resolution: 1024x768
with the new harder and less user friendly grub2 method is done like this

src 1: forums.debian.net/viewtopic.php?f=5&t=41881
src 2:
harrison3001.blogspot.com/2009/09/grub-2-graphical-boot-tips-to-set.html

http://techpatterns.com/forums/about1795.html

As I said these methods no longer work, and why are they so complex? Certainly if grub could do it easily, why can't grub2 do so also?

Thank you very much!

DR

Quoted 27 lines · Chris Murphy

On Mar 1, 2013, at 11:20 PM, "D.J.J. Ring, Jr." <[email protected]> wrote:

We need grub to set console resolution, show the grub menu in that resolution, keep that resolution while the computer boots up, then when I type startx I have high resolution in X gui.

GRUB is responsible only for GRUB. As soon as the kernel and initramfs are loaded and executed, the console resolution is up to that distribution's behavior (init for most, and systemd for others including Fedora, not sure about Debian). Once those are running, GRUB is totally dropped and has no say in the matter and as far as I know it never has.

There is a limited time inheritance of GRUB's setting, but the OS itself can override this early on in the boot process. I see that turning text only boot with at least Fedora, CentOS, and SUSE, so I'm guessing that what you attribute to GRUB2 is actually a concomitant change in behavior of your distribution's init process.

Chris Murphy

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw
Quoted 3 lines · Jr.

Chris,

That doesn't explain why if I go back to grub-legacy everything works. I

My guess is that you simply didn't have the same mode configured in grub legacy as you do in grub2. If you don't think that's the case then please give us some data to work with to determine what the difference actually is.

Assuming that you're currently using grub2, and that you want a console and grub menu resolution of 1024x768 please do the following, in the order given:

1: Ensure that GRUB_GFXMODE in /etc/default/grub is set to "1024x768", that GRUB_GFXPAYLOAD is either not set, set to "keep" or also set to "1024x768"

2: Run "grub-mkconfig -o /boot/grub/grub.cfg" to ensure that these settings have been applied to the grub.cfg in use.

3: Save the full contents of both /etc/default/grub and /boot/grub/grub.cfg so that you can include them in your reply email.

4: Save the output of "grub-install --version".

5: Reboot and confirm that your console resolution is not 1024x768.

6: Install grub legacy.

7: Configure grub legacy to hand off a mode of 1024x768.

8: Save the full contents of your /boot/grub/menu.lst .

9: Save the output of "grub-install --version" again.

10: Reboot and confirm that your console resolution *is* 1024x768.

Then reply with the two saved outputs of "grub-install --version" and the full contents of /etc/default/grub, /boot/grub/grub.cfg, and /boot/grub/menu.lst .

Please do not reply with any other unrelated discussion for now, I would like to stick to one thing at a time to prevent this thread from getting more chaotic.

Signature · 1 line
Jordan Uggla (Jordan_U on irc.freenode.net)
#6 lore raw

Hello Jordan,

Thanks for your kind help.

Unfortunately I was in terrible pain due to illness and I'm blaming it for overlooking a dependency or step I needed to follow when installing grub-legacy.

It failed and I can no longer boot my computer. Since the program doesn't seem to have set up correctly SuperGrub and the other Grub fixing CDs won't work. Also since I have no native driver for either eth0 or wifi on the computer, I cannot just reinstall the system. I need to but the hard drive on another computer and install the kernel modules then pop it in my computer, but this takes time and another computer. I hope I can borrow my friend's computer where I write this.

I saved grub and grub-install --version from GRUB2 on my gmail account in case I had problems putting Grub Legacy back on this computer.

I should have tried Andrey Borzenkov's suggeston about vga= line now working. Has it worked for the start, we would not have had such trouble.
The command line community has been hacking up keep gfxpayload and other
parameters. Hopefully the developers of GRUB will put in a line # To Keep
GRUB console resolution in virtual consoles uncomment the next line by removing #. Would solve the problem for us.

More later.

Thanks again to all.

David J. Ring, Jr., N1EA <http://www.qsl.net/n1ea/> Radio-Officers Group<http://groups.google.com/group/radio-officers?hl=en>-- Join CW email list <http://mailman.qth.net/mailman/listinfo/cw%20> -- Historic Morse Recordings <http://tiny.cc/n1ea>
*Gopher Hole:* gopher://sdf.org/1/users/djringjr/ (native or with Firefox's Overbite extension) or via http to gopher gateway<http://gopher.floodgap.com/gopher/gw?gopher://sdf.org/1/users/djringjr/> *C**hat* Skype: djringjr MSN: [email protected] AIM: N1EA icq: 27380609

=30=

Quoted 54 lines · Jordan Uggla
Quoted 3 lines · Jr.

Chris,

That doesn't explain why if I go back to grub-legacy everything works. I

My guess is that you simply didn't have the same mode configured in grub legacy as you do in grub2. If you don't think that's the case then please give us some data to work with to determine what the difference actually is.

Assuming that you're currently using grub2, and that you want a console and grub menu resolution of 1024x768 please do the following, in the order given:

1: Ensure that GRUB_GFXMODE in /etc/default/grub is set to "1024x768", that GRUB_GFXPAYLOAD is either not set, set to "keep" or also set to "1024x768"

2: Run "grub-mkconfig -o /boot/grub/grub.cfg" to ensure that these settings have been applied to the grub.cfg in use.

3: Save the full contents of both /etc/default/grub and /boot/grub/grub.cfg so that you can include them in your reply email.

4: Save the output of "grub-install --version".

5: Reboot and confirm that your console resolution is not 1024x768.

6: Install grub legacy.

7: Configure grub legacy to hand off a mode of 1024x768.

8: Save the full contents of your /boot/grub/menu.lst .

9: Save the output of "grub-install --version" again.

10: Reboot and confirm that your console resolution *is* 1024x768.

Then reply with the two saved outputs of "grub-install --version" and the full contents of /etc/default/grub, /boot/grub/grub.cfg, and /boot/grub/menu.lst .

Please do not reply with any other unrelated discussion for now, I would like to stick to one thing at a time to prevent this thread from getting more chaotic.

--
Jordan Uggla (Jordan_U on irc.freenode.net)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#7 lore raw
Quoted 5 lines · Jr.

Hello Jordan,

Thanks for your kind help.

Quoted 7 lines

Unfortunately I was in terrible pain due to illness and I'm blaming it for overlooking a dependency or step I needed to follow when installing grub-legacy.

It failed and I can no longer boot my computer. Since the program doesn't seem to have set up correctly SuperGrub and the other Grub fixing CDs won't work. Also since I have no native driver for either eth0 or wifi

If all that's missing is a proper grub installation, then Super GRUB2 Disk should be able to boot your system without any issues (if not, then I'd like to know why so that I can fix it) . Please start a thread on [email protected] or [email protected], or join #grub or #sgrub on irc.freenode.net and I should be able to get you running again one way or another without too much trouble (I'd personally recommend IRC, this type of thing is usually most easily solved with real time questions and discussion).

Quoted 10 lines

on the computer, I cannot just reinstall the system. I need to but the hard drive on another computer and install the kernel modules then pop it in my computer, but this takes time and another computer. I hope I can borrow my friend's computer where I write this.

I saved grub and grub-install --version from GRUB2 on my gmail account in case I had problems putting Grub Legacy back on this computer.

I should have tried Andrey Borzenkov's suggeston about vga= line now working. Has it worked for the start, we would not have had such trouble.

vga= has always worked exactly the same way in grub2 as it did in grub legacy, it just gives a deprecation warning with grub2.

Quoted 4 lines

The command line community has been hacking up keep gfxpayload and other
parameters. Hopefully the developers of GRUB will put in a line # To Keep
GRUB console resolution in virtual consoles uncomment the next line by removing #. Would solve the problem for us.

GFXPAYLOAD=keep is the default, so you shouldn't need to uncomment anything to get what you're asking for *from grub*, but that doesn't prevent the kernel from discarding the mode that grub hands off to it and setting its own (as is the default with newer kernels and KMS). I've said this many times now, and I still stand by it: I think that what you're noticing is *NOT* a change in grub, but a change in the linux kernel with the advent of kernel mode setting. Please at least entertain the possibility that that is the case and stop stating the contrary as if it were fact.

Quoted 4 lines

More later.

Thanks again to all.

You're welcome, and I hope you are able to get your system working again soon.

Signature · 1 line
Jordan Uggla (Jordan_U on irc.freenode.net)