You are not logged in.

#1 2011-11-25 22:40:26

Padfoot
Member
Registered: 2010-09-03
Posts: 381

[SOLVED] Grub 2 config

Hi,

Hoping someone can help with a non-critical but rather annoying Grub 2 issue.

My nicely themed Grub 2 menu appears, and when I select an entry to boot, a console display is briefly overlayed on top of the menu obscuring the middle of the screen, before the splash in the kernel kicks in.

Now, no text appears in this console. I thought by disabling the grub "booting ramdisk" messages would stop the console box appearing. All this has done is ensure no messages are displayed, the now empty console still appears.

Does anyone know how to turn this console off so I don't get a black box appearing in the middle of the screen for a moment or so?

Alternatively, I can live with the screen blanking entirely between grub and kernel splash if I can get this console to display full screen rather than just a small portion in the middle.

Calling all grub 2 experts!

Following is my /etc/default/grub and the /boot/grub/themes/custom-arch/theme.txt

Cheers.

/etc/default/grub

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch Linux"
GRUB_CMDLINE_LINUX_DEFAULT="3 quiet"
GRUB_CMDLINE_LINUX="quiet logo.nologo console=tty1 splash=silent,fadein,fadeout,theme:custom-arch"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x1024x32

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-blue/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/backgrounds/Grub/archlinux-grub_1280x1024ws.png"
GRUB_THEME="/boot/grub/themes/custom-arch/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

/boot/grub/themes/custom-arch/theme.txt

title-text: ""
desktop-color: "#000000"
desktop-image: "custom-arch.png"

+ boot_menu {
	left = 380
	top = 384
	width = 520
	height = 256

	max_items_shown = 3

	selected_item_color = "#FFFFFF"

	item_color = "#000088"
	item_font = "feast of flesh bb regular 16"
	item_height = 25
	item_padding = 25
	item_spacing = 25
}

Last edited by Padfoot (2011-11-27 01:16:43)

Offline

#2 2011-11-26 00:49:47

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: [SOLVED] Grub 2 config

Have you tried commenting out:

#GRUB_TERMINAL_INPUT=console

Offline

#3 2011-11-26 21:01:16

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [SOLVED] Grub 2 config

rockin turtle wrote:

Have you tried commenting out:

#GRUB_TERMINAL_INPUT=console

Yes I have tried that. No go unfortunately.

Thanks anyway.

Offline

#4 2011-11-26 22:24:23

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Grub 2 config

I think it's one of these two lines.

GRUB_CMDLINE_LINUX_DEFAULT="3 quiet"
GRUB_CMDLINE_LINUX="quiet logo.nologo console=tty1 splash=silent,fadein,fadeout,theme:custom-arch"

Try removing the 3 from the first line.
Try removing console=tty1 from the second line.

Here is what I have, and I do not see what you do.

GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="i915.i915_enable_rc6=1"

Offline

#5 2011-11-26 22:49:46

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [SOLVED] Grub 2 config

David Batson wrote:

I think it's one of these two lines.

GRUB_CMDLINE_LINUX_DEFAULT="3 quiet"
GRUB_CMDLINE_LINUX="quiet logo.nologo console=tty1 splash=silent,fadein,fadeout,theme:custom-arch"

Try removing the 3 from the first line.
Try removing console=tty1 from the second line.

Here is what I have, and I do not see what you do.

GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="i915.i915_enable_rc6=1"

Hi David,

I should have mentioned, I have modified the script /etc/grub.d/10_linux to generate the menu entries slightly differently.

I have 3 menu entried generated:
1. My default entry uses GRUB_CMDLINE_LINUX and boots into the standard kernel with runlevel 5 for a GUI session
2. My console entry uses GRUB_CMDLINE_LINUX_DEFAULT and boots into the standard kernel with runlevel 3 for a console session
3. My fallback entry uses GRUB_CMDLINE_LINUX_DEFAULT and boots into the fallback kernel with runlevel 3 for a console session

So I know the culprit isn't the setting of runlevel 3 in CMD_LINE_LINUX_DEFAULT

I did try taking out console=tty1 in GRUB_CMDLINE_LINUX, but this isn't causing the issue. The console overlay still appears. Also, the boot splash fails to start without it.

I experience the same issue on 3 computers. My desktop with an nvidia card, tablet with ati and media centre with intel, so I can safely rule out video card issues as well.

Maybe you could post your entire /etc/default/grub and /boot/grub/<<THEME>>/theme.txt files and I can examine them for differences?

Cheers.

Offline

#6 2011-11-26 23:33:42

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Grub 2 config

I didn't try to set up any theme.  Only went with the default in respects to that.  I do not see any /boot/grub/<<THEME>>/theme.txt files on my system.

/etc/default/grub

GRUB_DEFAULT=2
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch Linux"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="i915.i915_enable_rc6=1"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-blue/black"
GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

Offline

#7 2011-11-27 01:15:25

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [SOLVED] Grub 2 config

I have finally solved the problem.

I need to have terminal-box configured in my theme.txt file

I created the following files in my theme folder (all just solid black as it didn't matter what I set as the centre image, it always just displays a black box)

terminal_c.png
terminal_e.png
terminal_n.png
terminal_ne.png
terminal_nw.png
terminal_s.png
terminal_se.png
terminal_sw.png
terminal_w.png

The weird thing, my grub resolution is 1280x1024, setting the sizes of the terminal-box images to match and completely cover my screen left an ~10px margin between the borders and the centre image ie.
terminal_w.png - width = 128 px
terminal_e.png - width = 128 px
terminal_c.png - width = 1024 px
result = ~10px gap between centre and both w/e images...hmmmmmm

I fixed this by deliberately oversizing the centre image to the entire screen resolution.

Then all I had to do was add the following line to my theme.txt file

terminal-box: "terminal_*.png"

I remember playing around with that before, but could never achieve the reults I wanted...works now though.

Thanks for all your assistance.

Cheers.

Offline

Board footer

Powered by FluxBB