How to change console font in grub2?
Tom H
tomh0665 at gmail.com
Tue Oct 12 03:18:23 UTC 2010
On Mon, Oct 11, 2010 at 5:47 PM, Dean S. Messing <deanm at sharplabs.com> wrote:
> On Fri, 8 Oct 2010 02:21:08 Tom H <tomh0665 at gmail.com> wrote:
>> On Thu, Oct 7, 2010 at 8:07 PM, Dean S. Messing <deanm at sharplabs.com> wrote:
>> >
>> > Does anyone know the secret sauce that's needed to change the colour of
>> > the font in a high-res (1600x1200) console when using grub2 in F13? (By
>> > "console" I mean the "framebuffer-based" console. X isn't running yet.)
>> >
>> > The back-story:
>> >
>> > Last evening I built and installed grub2 on my new F13 system. Turns
>> > out that "vga=838" (i.e. 1600x1200x16) at the end of the kernel line
>> > no longer works. In Grub1 it gave a nice 1600x1200 console outside
>> > of X.
>> >
>> > Below, I've marked the two magic lines I added to the "menuentry" in
>> > /boot/grub/grub.cfg to get the hi-res console. But the font is an
>> > ugly hard-to-read green on black and I don't know how to make it
>> > white on black like I had before.
>> >
>> > menuentry "F13, with Linux 2.6.34.7-56.fc13.x86_64" --class gnu-linux --class gnu --class os {
>> >
>> > ## These two lines give a 1600x1200 console ##
>> > set gfxmode=1600x1200x16
>> > insmod vbe
>> > ##############################################
>> >
>> > insmod ext2
>> > set root='(hd1,2)'
>> > search --no-floppy --fs-uuid --set d5b13a6e-3c0c-432a-bcff-5f1706acea29
>> > linux /vmlinuz-2.6.34.7-56.fc13.x86_64 root=LABEL=root ro rd_LVM_LV=vg_F13/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rdblacklist=nouveau nomodeset
>> > initrd /initramfs-2.6.34.7-56.fc13.x86_64.img
>> > }
>>
>> I haven't used grub2 with Fedora in a while but I've never come across
>> anything but white-on-black. It sounds like your video settings are
>> screwed up. You might have to add "set gfxpayload=1600x1200x16" after
>> "set gfxmode=1600x1200x16".
>>
>> I'm sure whether that really matters but "insmod vbe" might have to
>> come before "set gfxmode=1600x1200x16".
>>
>> You also try to add "insmod gfxterm".
>
> Thanks Tom.
>
> Tried them all, and some other ideas. I either got no change or the big
> (white) VGA font that.
(Had forgotten a "might" in my last line!) :(
You're welcome. Sorry, no more ideas...
More information about the users
mailing list