Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268468 - fbsplash doesn't switch to verbose mode in initramfs
Summary: fbsplash doesn't switch to verbose mode in initramfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-05-03 16:40 UTC by loux thefuture
Modified: 2011-02-09 16:19 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add auto-verbose swap mode to initrd.scripts (fix-crypt_filter.patch,308 bytes, patch)
2010-02-19 17:53 UTC, June Tate-Gans
Details | Diff
Additional splash calls added to chooseKeymap (fix-chooseKeymap.patch,752 bytes, patch)
2010-02-19 17:59 UTC, June Tate-Gans
Details | Diff
Added the SPLASH and SPLASH_THEME options with explanations. (genkernel.conf.diff,651 bytes, patch)
2011-02-08 18:30 UTC, PhobosK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description loux thefuture 2009-05-03 16:40:24 UTC
building an kernel/initramfs with :
- gentoo-sources-2.6.29-r2
- genkernel-3.4.10.903
and grub command line :
... video=uvesafb:1024x768-32,mtrr:3,ywrap splash=silent,theme:natural_gentoo console=tty1 quiet dokeymap

Reproducible: Always

Steps to Reproduce:
1.emerge gentoo-sources-2.6.29-r2
2.emerge genkernel-3.4.10.903
3.genkernel --splash=natural_gentoo --postclear --unionfs --luks --disklabel --do-keymap-auto all

Actual Results:  
splash quiet progression without asking keymap !

Expected Results:  
splash switch to verbose to display the list of keymap and then read the answer
Comment 1 loux thefuture 2009-05-03 16:42:18 UTC
additionnals informations :

kernel config :
...
CONFIG_INITRAMFS_SOURCE="/usr/share/v86d/initramfs"
...
CONFIG_FB_BOOT_VESA_SUPPORT=y
...
CONFIG_FB_UVESA=y
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
...
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-09 01:57:11 UTC
I do not use fbsplash myself. Please submit a patch for this.
Comment 3 loux thefuture 2009-05-09 07:00:30 UTC
Hello,
i don't know where the trouble is. I'm not an fbsplash expert :(
But with : 
- gentoo-sources-2.6.29-r2
- genkernel-3.4.10.904
- grub + option dokeymap
then : the linuxrc scripts display correctly the message and wait for the input, the only trouble is I need to switch manualy to verbose mode with Alt-f1 to see that otherwise the process wait 30s in quiet and go on the boot process

Comment 4 loux thefuture 2009-05-11 19:51:58 UTC
Hi,
i got something wrong about /dev/fbcon_decor missing in initramfs,
mdev is not creating it so splash 'verbose' can not "talk" to fbcon i guess
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2009-05-16 16:15:02 UTC
Could you please reinstall splashutils, update to gentoo-sources-2.6.29-r3, and try again with these?
Comment 6 loux thefuture 2009-05-17 08:30:22 UTC
Hi,
i update to gentoo-sources-2.6.29-r4, re-emerge splashutils and then genkernel the kernel/initramfs but i got the same trouble :
...
Failed to open the fbcon_decor control device
...
The text asking to choose a keymap is display but the fbsplash doesn't switch from quiet to verbose, so we don't see it and we can not answer, then the timeout comes and the boot process go on
Comment 7 Felipe Lessa 2009-10-11 11:50:57 UTC
(In reply to comment #0)
> Actual Results:  
> splash quiet progression without asking keymap !

I have a similar problem but with LUKS: my entire hard drive is encrypted but the initramfs doesn't switch to verbose mode and back to silent to ask for my password.  Should I open a new bug?  
Comment 8 Nuria 2010-01-30 12:48:45 UTC
Are you sure you have "Enable Tile Blitting Support" (FB_TILEBLITTING) disabled?

(In reply to comment #0)
> building an kernel/initramfs with :
> - gentoo-sources-2.6.29-r2
> - genkernel-3.4.10.903
> and grub command line :
> ... video=uvesafb:1024x768-32,mtrr:3,ywrap splash=silent,theme:natural_gentoo
> console=tty1 quiet dokeymap
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.emerge gentoo-sources-2.6.29-r2
> 2.emerge genkernel-3.4.10.903
> 3.genkernel --splash=natural_gentoo --postclear --unionfs --luks --disklabel
> --do-keymap-auto all
> 
> Actual Results:  
> splash quiet progression without asking keymap !
> 
> Expected Results:  
> splash switch to verbose to display the list of keymap and then read the answer
> 

Comment 9 loux thefuture 2010-01-31 09:03:17 UTC
Hi,
yes i have disable FB_TILEBLITTING and got the same trouble.
Everyone can do the same steps to see this, just compile the kernel/initramfs with genkernel (and a splash theme) and klibc/v86d/uvesafb then try to see if fb switch when asking for keymap !
see you
Loux


(In reply to comment #8)
> Are you sure you have "Enable Tile Blitting Support" (FB_TILEBLITTING)
> disabled?
> 
> (In reply to comment #0)
> > building an kernel/initramfs with :
> > - gentoo-sources-2.6.29-r2
> > - genkernel-3.4.10.903
> > and grub command line :
> > ... video=uvesafb:1024x768-32,mtrr:3,ywrap splash=silent,theme:natural_gentoo
> > console=tty1 quiet dokeymap
> > 
> > Reproducible: Always
> > 
> > Steps to Reproduce:
> > 1.emerge gentoo-sources-2.6.29-r2
> > 2.emerge genkernel-3.4.10.903
> > 3.genkernel --splash=natural_gentoo --postclear --unionfs --luks --disklabel
> > --do-keymap-auto all
> > 
> > Actual Results:  
> > splash quiet progression without asking keymap !
> > 
> > Expected Results:  
> > splash switch to verbose to display the list of keymap and then read the answer
> > 
> 

Comment 10 June Tate-Gans 2010-02-19 17:51:54 UTC
I've come up with a simple patch to the /usr/share/genkernel/defaults/initrd.scripts file to deal with the "failure to swap to verbose mode for LUKS password prompt" part of the issue. Simply put, it just adds a few lines to swap between silent and verbose splash mode in the crypt_filter function. I imagine it's just as simple a change for the keymap prompt as well. I'll see if I can come up with a quick patch to address that, too.

I'm running genkernel 3.4.10.907.
Comment 11 June Tate-Gans 2010-02-19 17:53:48 UTC
Created attachment 220377 [details, diff]
Patch to add auto-verbose swap mode to initrd.scripts

Patch against 3.4.10.907 genkernel.
Comment 12 June Tate-Gans 2010-02-19 17:59:44 UTC
Created attachment 220379 [details, diff]
Additional splash calls added to chooseKeymap

This is a patch against initrd.scripts chooseKeymap function to add in auto-verbose switching for splashutils (like the earlier patch to crypt_filter).
Comment 13 Andrew Gaffney (RETIRED) gentoo-dev 2010-02-20 02:20:36 UTC
I've applied both of these patches in git. Thanks!
Comment 14 Sebastian Pipping gentoo-dev 2011-01-05 22:49:44 UTC
Commit included in release 3.4.10.908, closing.
Comment 15 PhobosK 2011-02-07 21:36:11 UTC
Should be noted that all this to work a:
--splash or --splash=THEME_NAME is needed to be added to the genkernel command line.

I think there should be an option in the /etc/genkernel.conf file too for that (now only SPLASH option is available in the config file, but no SPLASH_THEME or SPLASH_RES).

And it is a bit confusing if someone uses 'splash_geninitramfs' with the add option (-a), because it does not add the /usr/share/splashutils/initrd.splash to the img and thus making changing to verbose mode when requiring a password impossible ('cause the splash() just returns 0)...
Probably a fix to the 'splash_geninitramfs' is needed too?...
Comment 16 Sebastian Pipping gentoo-dev 2011-02-07 23:46:18 UTC
(In reply to comment #15)
> Should be noted that all this to work a:
> --splash or --splash=THEME_NAME is needed to be added to the genkernel command
> line.
> 
> I think there should be an option in the /etc/genkernel.conf file too for that
> (now only SPLASH option is available in the config file, but no SPLASH_THEME or
> SPLASH_RES).

Agreed.  Please open a new bug for that.  Please attach a patch to it if you can.


> And it is a bit confusing if someone uses 'splash_geninitramfs' with the add
> option (-a), because it does not add the /usr/share/splashutils/initrd.splash
> to the img and thus making changing to verbose mode when requiring a password
> impossible ('cause the splash() just returns 0)...
> Probably a fix to the 'splash_geninitramfs' is needed too?...

This sounds like a distinct issue, too.  If it is, please open a distinct bug report.  Also, please add more information if possible.  With more information I may be able to fix it, despite little prior background with this.
Comment 17 PhobosK 2011-02-08 18:30:18 UTC
Created attachment 261851 [details, diff]
Added the SPLASH and SPLASH_THEME options with explanations.

(In reply to comment #16)
> (In reply to comment #15)
> > Should be noted that all this to work a:
> > --splash or --splash=THEME_NAME is needed to be added to the genkernel command
> > line.
> > 
> > I think there should be an option in the /etc/genkernel.conf file too for that
> > (now only SPLASH option is available in the config file, but no SPLASH_THEME or
> > SPLASH_RES).
> 
> Agreed.  Please open a new bug for that.  Please attach a patch to it if you
> can.

I do not think a new bug should be opened 'cause this is a kinda "sub-bug" of this one. What i mean is that if --splash (or SPLASH="yes" in the config file)  is not enabled when using genkernel, fbsplash will not go to verbose....

Actually SPLASH_THEME works in the config file but only if SPLASH="yes". So i just attach a patch for the genkernel.conf with the needed options and explanations...
Comment 18 PhobosK 2011-02-08 21:08:54 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > And it is a bit confusing if someone uses 'splash_geninitramfs' with the add
> > option (-a), because it does not add the /usr/share/splashutils/initrd.splash
> > to the img and thus making changing to verbose mode when requiring a password
> > impossible ('cause the splash() just returns 0)...
> > Probably a fix to the 'splash_geninitramfs' is needed too?...
> 
> This sounds like a distinct issue, too.  If it is, please open a distinct bug
> report.  Also, please add more information if possible.  With more information
> I may be able to fix it, despite little prior background with this.
> 

I opened a bug report and attached the fixed ebuild + the patch it uses...
See bug #354157
Comment 19 Sebastian Pipping gentoo-dev 2011-02-09 16:19:03 UTC
(In reply to comment #17)
> Created an attachment (id=261851) [details]
> Added the SPLASH and SPLASH_THEME options with explanations.

Thanks, applied and pushed.
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=107049cad2ad3ebbd4b60556e3bbe85b16b1c13c