Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Grub2 and framebuffer

Linux Kernel, Network, and Services configuration.
Message
Author
emariz
Posts: 2901
Joined: 2008-10-17 07:59

Re: Grub2 and framebuffer

#46 Post by emariz »

I want to add that setting the line GRUB_GFXPAYLOAD_LINUX= in /etc/default/grub correctly sets the text console frame buffer (to one of those available in grub > vbeinfo) if the graphical terminal is in use. This is, the line GRUB_TERMINAL=console must be commented. It's contradictory that one must enable a graphical terminal to set a text terminal.
Anyway, I don't use this option because the supported resolutions don't have the same ratio of the X resolution, making the default one the most readable. Also, I seldom use virtual terminals (all bar one are disabled) and will use Plymouth as soon as it's available.

plnick
Posts: 1
Joined: 2010-04-03 09:14

Re: Grub2 and framebuffer

#47 Post by plnick »

I got the same problem with the gfxpayload set (resolution 1680x1050x32) and my self compiled kernel with new versions of grub2. After several compiled kernels (try and error) this works for me:
Setting

Code: Select all

CONFIG_FB_EFI
to yes in kernel config

greetings

plnick

Japser
Posts: 173
Joined: 2008-02-13 13:21

Re: Grub2 and framebuffer

#48 Post by Japser »

For the record, I got a good resolution with

GRUB_GFXMODE=1024x768
GRUB_GFXPAYLOAD_LINUX=1024x768

in /etc/default/grub ( and an update-grub )

the trick was to do

hwinfo --framebuffer

which revealed that I did not have 1280x800 as an option.

hth, --Japser.

hbrand
Posts: 5
Joined: 2010-04-10 22:16

Re: Grub2 and framebuffer

#49 Post by hbrand »

Don't know if this helps, but here's what I've done in "testing" to get my personal background image to load and
it seems to be immune to all upgrades I seen so far (and I upgrade daily just for fun :) ), etc.:
I found that /etc/grub.d/05_debian_theme sources /usr/share/desktop-base/grub_background.sh (if it exists)
I created that file with the following:

Code: Select all

#! /bin/bash -e
#
# My /boot/grub.d/05_debian_theme extension
#
WALLPAPER="/boot/grub/sunset.png"
COLOR_NORMAL="black/black"
COLOR_HIGHLIGHT="magenta/black"
GRUB_TERMINAL_OUTPUT="gfxterm"

oOarthurOo
Posts: 544
Joined: 2008-10-25 12:00
Location: Canada

Re: Grub2 and framebuffer

#50 Post by oOarthurOo »

Gonna try this stuff later tonight, but I'm wondering if this allows us to set a image that is behind the boot messages for the duration of the boot. gfpayloadkeep passes the display settings, but will it also pass the background image to allow the boot messages to scroll over top?

I think the Debian logo with the text scrolling past would look rather nice on bootup.

uzleepito
Posts: 1
Joined: 2010-07-30 06:14

Re: Grub2 and framebuffer

#51 Post by uzleepito »

Hi,

I'm using an Ubuntu based linux in VirtualBox, and
have a little problem with the framebuffer console.
I need to enforce the video mode into 800x600, and
with grub2 + gfxmode + gfxpayload this works fine.
My problem is that I need to achive the same effect
in grub1. I've tried lots of vga=xxx codes, but almost
all of them makes my console unusable. Can you
please tell me what kernel paramethers should I pass
in with grub1 to make this work?

Guest kernel: 2.6.23-32-generic, Ubuntu
VirtualBox: 3.2.6

THX,
s.

User avatar
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: Grub2 and framebuffer

#52 Post by dbbolton »

uzleepito wrote:Hi,

I'm using an Ubuntu based linux in VirtualBox, and
have a little problem with the framebuffer console.
I need to enforce the video mode into 800x600, and
with grub2 + gfxmode + gfxpayload this works fine.
My problem is that I need to achive the same effect
in grub1. I've tried lots of vga=xxx codes, but almost
all of them makes my console unusable. Can you
please tell me what kernel paramethers should I pass
in with grub1 to make this work?

Guest kernel: 2.6.23-32-generic, Ubuntu
VirtualBox: 3.2.6

THX,
s.
http://ubuntuforums.org/
GitHub | zsh docs in Letter PDF
Telemachus wrote:Put down the CGI.

farcry2
Posts: 2
Joined: 2010-09-09 09:16

Re: Grub2 and framebuffer

#53 Post by farcry2 »

First of all I'm very disappointed that the new debian choose GRUB2 as bootmanager. All the fancy features like ppc support, iso loading from disk, playing piano while it loads just doesn't worth to switch.
This autoconfig creator nightmare does not need for anyone. The last thing I want to hack on my OS is the bootloader...

First of all I did all the things still get the same results. My problems:

1, I have the partition in LVM what's not accessible therefore it cannot load the background splash image in the menu.
I edited the /etc/grub.d/05_debian_theme

Code: Select all

#!/bin/sh -e
# **** this crap ...

. /usr/lib/grub/grub-mkconfig_lib

  COLOR_NORMAL="black/black"
  COLOR_HIGHLIGHT="magenta/black"

set_blue_theme()
{
cat << EOF
background_image=/boot/grub/orbit.png
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
EOF
}

  set color_normal=${COLOR_NORMAL}
  set color_highlight=${COLOR_HIGHLIGHT}

  set_blue_theme
My boot partition of course accessible it's still not working.

2, Console fonts. As someone stated in the thread the console fonts with the framebuffer are working at load then it switches back to the crappy simple text version.
Interestingly it does not do this with the original vmlinuz-2.6.32-5-686 kernel.

farcry2
Posts: 2
Joined: 2010-09-09 09:16

Re: Grub2 and framebuffer

#54 Post by farcry2 »

So folks here is HOW I SOLVED THEM ALL:

1, I remove grub
apt-get remove --purge grub*

2, Reinstall grub
Now from some reason it got right the background image which loaded in grub.cfg like:

Code: Select all

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 5f11efef-1638-4f8f-9afe-b36eb49bcefb
insmod png
if background_image /grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
So as you see the path to the image is interestingly /gurb/ LOL.

3, Framebuffer edit /etc/grub.d/40_custom

Add your menu entries just like they are in the final generated grub.cfg, for example:

Code: Select all

menuentry 'Debian GNU/Linux, with Linux 2.6.35.4muh' --class debian --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set 5f11efef-1638-4f8f-9afe-b36eb49bcefb
        echo    'Loading Linux 2.6.35.4muh ...'
        linux   /vmlinuz-2.6.35.4muh root=/dev/mapper/cryptoroot vesafb vga=0x317 ro quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.35.4muh
}
As you see I added the usual vesafb vga=0x317 parameters which going to solve the framebuffer resolution problem.

4, Font fuckups
This is caused by /etc/init.d/console-setup. The default configuration for this would be in /etc/default/console-setup but the standard fonts didn't look good
so I just dumped this whole script by adding an exit 0 to the beginning of /etc/init.d/console-setup. In this case it's probably uses the defaults set in my kernel, looks perfectly.

So hopefully I saved some time for everyone writing these down. I still dislike grub2 :*

Post Reply