View previous topic :: View next topic |
Author |
Message |
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Thu Feb 12, 2015 6:45 pm Post subject: What causes this temporary grey screen initializing Linux? |
|
|
Hi all.
IIRC ever since mode setting has been through the kernel I always see the screen go [light] grey while Linux initializes, then quickly resized, with a grey rectangle on top left of the screen (like shown on this picture though it's not my machine, just an example) until the frame buffer splash takes over from the initrd. I wonder what causes that "grey boot artefact" (which is how I'd call it without knowing for sure what it is). This happens whether or not mode setting is used.
It happens on both my Mint laptop and Gentoo home machine, both of which have an nVidia card. But it also happen in a virtual machine that boots a modern Linux kernel. Early boot splash is enabled on my home machine, i.e. I created an initrd with splashutils, which takes care of showing my lovely Danger Girl picture. However the screen turns grey between the boot menu and splash start.
Both my laptop and home machine start with extlinux using VESA module. Both show a boot menu: choice between Windows and Gentoo on my home machine and choice between two kernel version on my Mint laptop. There's no bootsplash on my laptop though.
So what makes the screen turn white/grey while loading Linux? Is it possible to keep it black all along? Is it due to some video memory residue left by the boot loader?
EDIT: Here are my Gentoo kernel arguments
Code: | ... video=uvesafb:ywrap,1280x1024-32 splash=silent,theme:danger quiet console=tty1 |
_________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Thu Feb 12, 2015 8:25 pm Post subject: |
|
|
I just guess and assume its vbe.
Assuming my box, i have vbe in my grub.config which is loaded.
Quote: | function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
|
And therefore after the initial bios thing which loads my grub2, grub2 loads vbe.
So I highly recommend to check your grub2 config for vbe and any other glx statement like set gfxmode=1920x1200x32 |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Fri Feb 13, 2015 11:16 pm Post subject: |
|
|
tw04l124 wrote: | So I highly recommend to check your grub2 config |
VinzC wrote: | Both my laptop and home machine start with extlinux [...] |
So there's no Grub config. That said, extlinux (syslinux) uses VESA only:
/boot/extlinux/extlinux.conf: | ...
default vesamenu.c32
... |
_________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Fri Feb 13, 2015 11:56 pm Post subject: |
|
|
My guess is that after extlinux boots the kernel, restore of the VGA text mode fails. Which causes the grey screen.
At least with grub2 it is possible to keep the VESA mode after loading the kernel with GRUB_GFXPAYLOAD_LINUX, and through CONFIG_X86_SYSFB and CONFIG_FB_SIMPLE let the kernel re-use that mode (instead of using e.g. uvesafb). |
|
Back to top |
|
|
Faraclas Tux's lil' helper
Joined: 08 Dec 2014 Posts: 117
|
Posted: Thu Feb 19, 2015 5:33 pm Post subject: |
|
|
Interesting. Are you using any binary graphics drivers? I used to see this on boot using the nvidia driver. Now my screnn just goes black for 10 seconds or so until the nvidia driver loads.
However, I DO see this when I shut down the system. The screen goes crazy grey and I cant read any of the shutdown information. |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Mon Mar 02, 2015 9:23 am Post subject: |
|
|
chithanh wrote: | My guess is that after extlinux boots the kernel, restore of the VGA text mode fails. Which causes the grey screen.
At least with grub2 it is possible to keep the VESA mode after loading the kernel with GRUB_GFXPAYLOAD_LINUX, and through CONFIG_X86_SYSFB and CONFIG_FB_SIMPLE let the kernel re-use that mode (instead of using e.g. uvesafb). |
Ah, that seems to make sense indeed. Is there anything I can do with my kernel config? I guess I'll need to file a bug by [ext|sys]linux maintainer to fix that if it turns out extlinux is responsible for that, right?
Faraclas wrote: | Interesting. Are you using any binary graphics drivers? I used to see this on boot using the nvidia driver. Now my screen just goes black for 10 seconds or so until the nvidia driver loads.
However, I DO see this when I shut down the system. The screen goes crazy grey and I cant read any of the shutdown information. |
Yes, I'm using nVidia blob. However I'm not sure it's loaded as early as when I see the grey screen. Shall I try including them into the initial ramdisk? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
Faraclas Tux's lil' helper
Joined: 08 Dec 2014 Posts: 117
|
Posted: Mon Mar 02, 2015 4:23 pm Post subject: |
|
|
Quote: | Shall I try including them into the initial ramdisk? |
From http://wiki.gentoo.org/wiki/Uvesafb are you doing this?
Code: | General setup --->
[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
(/usr/share/v86d/initramfs) Initramfs source file(s) |
Note the /usr/share/v86d/initramfs |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed Mar 04, 2015 7:35 am Post subject: |
|
|
Faraclas wrote: | Note the /usr/share/v86d/initramfs |
Just saw your message. I have to check that. I'd say "yes" but I might have used another path, like copy the initramfs somewhere and use that copy.
EDIT: Confirmed, that's what I did. A long time ago and I keep this configuration along with kernel upgrades. So what's next? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
Faraclas Tux's lil' helper
Joined: 08 Dec 2014 Posts: 117
|
Posted: Thu Mar 05, 2015 4:05 pm Post subject: |
|
|
This is the grub command line that I am using, maybe double check yours?
Code: | GRUB_CMDLINE_LINUX="rootfstype=ext4 video=uvesafb:1024x768-60,mtrr:3,ywrap acpi_sleep=nonvs" |
|
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Sat Mar 07, 2015 12:44 pm Post subject: |
|
|
Faraclas wrote: | This is the grub command line that I am using, maybe double check yours?
Code: | GRUB_CMDLINE_LINUX="rootfstype=ext4 video=uvesafb:1024x768-60,mtrr:3,ywrap acpi_sleep=nonvs" |
|
Mine is on my first post, unchanged since. You can see it is quite similar to yours. I remember I had to use the default for mtrr. Is the acpi_sleep required?
EDIT: I notice you have 1024x768-60. Shouldn't it be 1024x768@60? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
|