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
Re: Grub2 and framebuffer
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.
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.
Re: Grub2 and framebuffer
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 to yes in kernel config
greetings
plnick
Setting
Code: Select all
CONFIG_FB_EFI
greetings
plnick
Re: Grub2 and framebuffer
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.
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.
Re: Grub2 and framebuffer
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:
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"
-
- Posts: 544
- Joined: 2008-10-25 12:00
- Location: Canada
Re: Grub2 and framebuffer
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.
I think the Debian logo with the text scrolling past would look rather nice on bootup.
Re: Grub2 and framebuffer
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.
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.
Re: Grub2 and framebuffer
http://ubuntuforums.org/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.
Re: Grub2 and framebuffer
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
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.
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
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.
Re: Grub2 and framebuffer
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:
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:
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 :*
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 ###
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
}
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 :*