GRUB2 fails to set resolution

Bug #512245 reported by Dmitry Soldatov
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: grub2

1) Release: ubuntu 9.10
2) grub-pc version: 1.97~beta4-1ubuntu3

3) I found that grub2 detects monitor resolution and creates specific /etc/grub.d/00_header to support it in terminals (Ctrl+Alt+F1,2,3, ...). It works perfectly on Acer Aspire 5315 with Intel GM965 graphic card and 1280x800 screen.
But on my desktop widescreen with Radeon 4870 and 1680x1050 resolution file /etc/grub.d/00_header is empty and default 640x480 mode looks ugly.
3) I request support for 1680x1050 mode in grub2 and terminals.

Tags: grub2
Revision history for this message
Felix Zielcke (fzielcke) wrote : Re: [Bug 512245] [NEW] GRUB2 fails to set resolution

Am Montag, den 25.01.2010, 09:38 +0000 schrieb Soldatov Dmitry:
> Public bug reported:
>
> Binary package hint: grub2
>
> 1) Release: ubuntu 9.10
> 2) grub-pc version: 1.97~beta4-1ubuntu3
>
> 3) I found that grub2 detects monitor resolution and creates specific /etc/grub.d/00_header to support it in terminals (Ctrl+Alt+F1,2,3, ...). It works perfectly on Acer Aspire 5315 with Intel GM965 graphic card and 1280x800 screen.

The Intel Card probable uses KMS and so the kernel does that directly.
How does your grub.cfg look like on that PC?

> But on my desktop widescreen with Radeon 4870 and 1680x1050 resolution file /etc/grub.d/00_header is empty and default 640x480 mode looks ugly.
> 3) I request support for 1680x1050 mode in grub2 and terminals.

GRUB for itself supports all resolutions your graphic card supports
throuh the VESA BIOS extensions.
Use GRUB_GFXMODE in /etc/default/grub to set the resolution for GRUB.
For the Kernel you would need to copy /etc/grub.d/40_custom to for
example /etc/grub.d/05_gfxpayload and in there use:
set gfxpayload="1680x1050"
or you could try `set gfxpayload=keep' to use GRUB_GFXMODE also for
Linux.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Revision history for this message
Dmitry Soldatov (listener13) wrote :

Sorry, you are right. These settings located in 40_custom file. On my notebook it was automatically created with these lines:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
set gfxmode="1280x800"
set gfxfont="Unifont Regular 16"
loadfont /boot/grub/themes/fonts/unifont.pf2
loadfont /boot/grub/themes/fonts/aqui.pf2
loadfont /boot/grub/themes/fonts/edges.pf2
loadfont /boot/grub/themes/fonts/lime.pf2
loadfont /boot/grub/themes/fonts/7x13B.pf2
loadfont /boot/grub/themes/fonts/smoothansi.pf2
loadfont /boot/grub/themes/fonts/Helvetica-Bold-14.pf2
insmod vbe
insmod png
insmod coreui
load_config /boot/grub/themes/ubuntu/theme.txt

On desktop PC there is only header:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

I was interested why GRUB2 supports my notebook resolution and does not support desktop. Now I understood that the key is in KMS support. Thank you.

Revision history for this message
Luc Bruninx (luc2005) wrote :
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.