Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: A couple questions related to fbsplash
Date: Fri, 01 Jun 2012 01:38:58
Message-Id: CAEH5T2O3s0qVGkBek0FGyjojH-efN7H+Or3-_TPe2XAkr__fcQ@mail.gmail.com
In Reply to: [gentoo-user] Re: A couple questions related to fbsplash by Nikos Chantziaras
1 On Thu, May 31, 2012 at 2:09 AM, Nikos Chantziaras <realnc@×××××.com> wrote:
2 > On 31/05/12 06:29, Paul Hartman wrote:
3 >>
4 >> [...]
5 >>
6 >> I see Tux for a microsecond, then the splash screen appears
7 >
8 >
9 > To fix that one, disable the "Bootup logo" in the kernel config:
10 >
11 >
12 > CONFIG_LOGO: Device drivers -> Graphics support
13 >
14 >
15 >
16 >> and
17 >> flashes black three times before stabilizing. I don't think it is the
18 >> display changing modes (the backlight stays on), it just looks like
19 >> it's switching between blank screen and back to showing the graphics.
20 >> It happens at the very beginning of the splash, before root is
21 >> remounted and the progress bar is moving.
22 >
23 >
24 > Make sure that SPLASH_XSERVICE is *not* set in /etc/conf.d/splash.  If it's
25 > set, comment it out:
26 >
27 >  # Name of the boot service starting X.  Useful in cases when X is
28 >  # started by a custom initscript, other than the usual 'xdm'.  If you
29 >  # are using a custom X initscript and do not set this variable
30 >  # correctly, do not be surprised if you end up at tty1 at the end of
31 >  # the boot process (instead of in an X session).
32 >  # SPLASH_XSERVICE="xdm"
33 >
34 >
35 >
36 >> I'm using dracut's gensplash
37 >> module to generate the initrd, maybe it's doing something funny.
38 >
39 >
40 > OK, to verify that it's not a problem with dracut, try to use Gentoo's
41 > native tool for this (splash_geninitramfs).  Try the below, which should
42 > duplicate my own working config:
43 >
44 >  emerge media-gfx/splash-themes-livecd
45 >
46 >  emerge media-gfx/splashutils
47 >
48 >  splash_geninitramfs --verbose --res 1920x1080 --generate \
49 >  /boot/initrd.splash1920x1080 livecd-2007.0
50 >
51 > Then edit your grub config:
52 >
53 >  kernel <your kernel> <your other opts> quiet splash=theme:livecd-2007.0
54 > console=tty1
55 >  initrd /boot/initrd.splash1920x1080
56 >
57 > (Substitute 1920x1080 with whatever you're using.)
58 >
59 > Another useful thing to do is to disable clearing the text of tty1, so that
60 > the OpenRC messages don't get cleared.  To do that, find this line:
61 >
62 >  c1:12345:respawn:/sbin/agetty 38400 tty1 linux
63 >
64 > in /etc/inittab and append "--noclear" to it:
65 >
66 >  c1:12345:respawn:/sbin/agetty 38400 tty1 linux --noclear
67 >
68 > Lastly, make sure that tty7 doesn't get a decoration.  In
69 > /etc/conf.d/fbcondecor, set something like:
70 >
71 >  FBCONDECOR_TTYS="1 2 3 4 5 6"
72 >
73 > to only decorate tty1 through tt6.  Reboot and check if it works, especially
74 > automatic switching to tty7/xdm.
75
76 Thanks. By eliminating dracut, the flashing & the XDM problem both
77 went away. splash & fbcondecor both worked properly.
78
79 Going back to my dracut config, trying to eliminate modules to find
80 out which ones cause the flashing. This was my first time using dracut
81 and I'm using the default modules (with the -H switch) with the
82 addition of the gensplash module.
83
84 Omitting the "i18n" module got rid of the largest blank screen delay
85 during splash. Two shorter delays remain, but they are quick flashes.
86 Omitting the "resume" module fixed the xdm-starts-in-the-background
87 problem. Omitting other modules resulted in kernel panic/unbootable
88 system... ran out of patience trying every possible combination.
89
90 Nex experiment: A minimal dracut (no modules except for "btrfs" and
91 "gensplash"). This does not allow me to boot by UUID on the kernel
92 commandline, but with this configuration I get no blank flashing
93 screen and XDM starts properly. With this I don't see any kernel
94 messages/OpenRC stuff at all during boot, just like using the
95 non-dracut configuration.
96
97 Thanks,
98 Paul