Difference between revisions of "Fbsplash"

From ArchWiki
Jump to: navigation, search
m (Added vga framebuffer size to grub params, fbsplash fails if this is not set.)
(removed link because it redirects to a totally unrelated website)
 
(45 intermediate revisions by 20 users not shown)
Line 1: Line 1:
[[Category:Bootsplash (English)]]
+
[[Category:Bootsplash]]
{{i18n|Fbsplash}}
+
[[de:Fbsplash]]
[http://fbsplash.berlios.de Fbsplash] (formerly gensplash) is a userspace implementation of a splash screen for Linux systems. It provides a graphical environment during system boot using the Linux framebuffer layer.
+
[[es:Fbsplash]]
 +
[[fr:Fbsplash]]
 +
[[it:Fbsplash]]
 +
[[ja:Fbsplash]]
 +
[[ru:Fbsplash]]
 +
[[tr:Fbsplash]]
 +
[[zh-CN:Fbsplash]]
 +
{{Out of date|using initscripts}}
 +
[http://sourceforge.net/projects/fbsplash.berlios/ Fbsplash] (formerly gensplash) is a userspace implementation of a splash screen for Linux systems. It provides a graphical environment during system boot using the Linux framebuffer layer.
 +
Fbsplash has not been actively updated in the recent years and may not be working correctly on a recent Arch setup using [[systemd]]. If you want a fancy splash screen during boot, you might want to try [[Plymouth]] instead.
  
 
==Installation==
 
==Installation==
 
===Fbsplash===
 
===Fbsplash===
The {{AUR|fbsplash}} package is available in the [[AUR]]. For console backgrounds (discussed later in this article) you should install a kernel patched with fbcondecor such as {{AUR|linux-fbcondecor}}.
+
[[Install]] the {{AUR|fbsplash}} package. For console backgrounds (discussed later in this article) you should install a kernel patched with fbcondecor such as {{AUR|linux-fbcondecor}}.
  
 
===Scripts===
 
===Scripts===
The fbsplash package provides the scripts for basic functionality. If you want more bells and whistles, like smooth progress, filesystem-check progress messages, support for boot-services/'daemons'-icons and theme hook scripts, you may also install the {{AUR|fbsplash-extras}} package.
+
The fbsplash package provides the scripts for basic functionality. If you want more bells and whistles, like smooth progress, filesystem-check progress messages, support for boot-services/'daemons'-icons and theme hook scripts, you may also install the {{AUR|fbsplash-extras}}{{Broken package link|{{aur-mirror|fbsplash-extras}}}} package.
  
 
===Themes===
 
===Themes===
Line 15: Line 24:
  
 
===Suspend to Disk===
 
===Suspend to Disk===
If you want suspend to disk with [[Uswsusp]] using Fbsplash, install the {{AUR|uswsusp-fbsplash}} package from the AUR. For more info have a look at [[Pm-utils#Using_another_sleep_backend_.28like_uswsusp.29]] or [[Suspend_to_Disk#Uswsusp_method (hibernate-script)]]. Additionally there is limited support for using Fbsplash in the {{Package AUR|tuxonice-userui}} package for those using a kernel with the TuxOnIce patch.
+
If you want suspend to disk with [[Uswsusp]] using Fbsplash, [[install]] the {{AUR|uswsusp-fbsplash}}{{Broken package link|{{aur-mirror|uswsusp-fbsplash}}}} package. Additionally there is limited support for using Fbsplash in the {{AUR|tuxonice-userui}} package for those using a kernel with the [[TuxOnIce]] patch.
  
 
==Configuration==
 
==Configuration==
  
 
===Kernel Command Line===
 
===Kernel Command Line===
Your bootloader now needs some configuring to work with Fbsplash. The following is an example for [[Grub2]] and {{Filename|/boot/grub/grub.cfg}} (the legacy [[Grub]] and [[Lilo]] follow the same pattern):
 
linux /boot/vmlinuz-linux root=/dev/... quiet loglevel=3 logo.nologo vga=790 console=tty1 splash=silent,fadein,fadeout,theme:arch-banner-icons
 
  
You may also edit the file {{Filename|/etc/default/grub}} and append your kernel options to the line GRUB_CMDLINE_LINUX_DEFAULT="":
+
You now need to set something like {{ic|1=quiet loglevel=3 logo.nologo gfxpayload=keep console=tty1 splash=silent,fadein,fadeout,theme:arch-banner-icons}} as your kernel command line parameters in your bootloader. See [[Kernel parameters]] for more info.
{{File|name=/etc/default/grub|content=GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 logo.nologo vga=790 console=tty1 splash=silent,fadein,fadeout,theme:arch-banner-icons"}}
+
  
To re-generate {{Filename|grub.cfg}} run:
+
The parameter {{Ic|1=loglevel=3}} prevents kernel messages from garbling the splash even with funny hardware (as recent initscripts do not set this by default any more). {{Ic|quiet}} is needed additionally for silencing initcpio messages. {{Ic|logo.nologo}} removes the boot logo (not needed with [https://aur.archlinux.org/packages.php?ID=50924 linux-fbcondecor] since it does not have one anyway). {{Ic|1=console=tty1}} redirects system messages to tty1 and {{Ic|1=splash=silent,fadein,fadeout,theme:arch-banner-icons}} creates a silent, splash-only boot with fading in/out ''arch-banner-icons'' theme.
{{Cli|# grub-mkconfig -o /boot/grub/grub.cfg}}
+
 
+
The parameter {{Codeline|1=loglevel=3}} prevents kernel messages from garbling the splash even with funny hardware (as recent initscripts do not set this by default any more). {{Codeline|quiet}} is needed additionally for silencing initcpio messages. {{Codeline|logo.nologo}} removes the boot logo (not needed with [https://aur.archlinux.org/packages.php?ID=50924 linux-fbcondecor] since it does not have one anyway). {{Codeline|1=console=tty1}} redirects system messages to tty1 and {{Codeline|1=splash=silent,fadein,fadeout,theme:arch-banner-icons}} creates a silent, splash-only boot with fading in/out 'arch-banner-icons' theme.
+
  
 
===Configuration Files===
 
===Configuration Files===
Put one or more of the themes you installed into {{Filename|/etc/conf.d/splash}}. You can also specify screen resolutions to save some initcpio space:
+
Put one or more of the themes you installed into {{ic|/etc/conf.d/splash}}. You can also specify screen resolutions to save some initcpio space:
{{File|name=/etc/conf.d/splash|content=SPLASH_THEMES="
+
{{hc|/etc/conf.d/splash|2=SPLASH_THEMES="
 
     arch-black
 
     arch-black
 
     arch-banner-icons/1280x1024.cfg
 
     arch-banner-icons/1280x1024.cfg
 
     arch-banner-noicons/1280x1024.cfg"}}
 
     arch-banner-noicons/1280x1024.cfg"}}
 
{{Note|The theme '''arch-banner-icons''' contains mainly symlinks to '''arch-banner-noicons'''. So if one of them is included in total, not much space will be saved by limiting the resolutions.}}
 
{{Note|The theme '''arch-banner-icons''' contains mainly symlinks to '''arch-banner-noicons'''. So if one of them is included in total, not much space will be saved by limiting the resolutions.}}
 
If you start Xorg using DAEMONS (kdm, gdm, etc.), also set the appropriate rc.d-script name to avoid VT/keyboard struggle between Xorg and the splash daemon:
 
SPLASH_XSERVICE="gdm"
 
{{note|Fbsplash will be stopped ''without'' changing to the tty1 console before the named script is started. If not set (or not enabled in DAEMONS), Fbsplash is stopped at the very end of [[Rc.multi]]. In the latter case it will change to the tty1 console if ''not'' booting into runlevel 5.}}
 
  
 
==Starting Fbsplash early in the initcpio==
 
==Starting Fbsplash early in the initcpio==
Add '''fbsplash''' to HOOKS in {{Filename|/etc/[[mkinitcpio.conf]]}}:
+
If '''uresume''' and/or '''encrypt''' HOOKS are used, add '''fbsplash''' ''after'' them in [[mkinitcpio.conf]], e.g.:
{{File|name=/etc/mkinitcpio.conf|content=HOOKS="base fbsplash ..."}}
+
{{hc|/etc/mkinitcpio.conf|2=HOOKS="base udev autodetect [...] keymap encrypt uresume fbsplash" }}
or:
+
Rebuild your initcpio via mkinitcpio. See [[mkinitcpio#Image creation and activation]] for more info.
{{File|name=/etc/mkinitcpio.conf|content=HOOKS="base udev ... uresume fbsplash ..."}}
+
or in case of system encryption:
+
{{File|name=/etc/mkinitcpio.conf|content=HOOKS="base ... keymap encrypt fbsplash ..." }}
+
Rebuild your initcpio via mkinitcpio. See the [[Mkinitcpio#Creating_the_image|Mkinitcpio article]] for more info.
+
  
{{Note|With old kernels not supporting devtmpfs, '''udev''' is needed before '''fbsplash''' to get the device nodes necessary for starting the splash (/dev/fb0 for framebuffer, etc.) and/or to avoid visible screen repaint with the Fbcondecor kernel patch. To avoid interference, the '''uresume''' hook provided by ''uswsusp-fbsplash'' will first wait for any Fbcondecor helper '''fadein''' to finish. To get a quick resume, it is recommended to put '''uswsusp''' before '''fbsplash''' or even drop fadein if using a Fbcondecor kernel.}}
+
{{Tip|For a quick resume, it is recommended to put '''uswsusp''' ''before'' '''fbsplash''' or even drop {{ic|fadein}}, if using a Fbcondecor kernel.}}
  
 
If you have trouble getting fbsplash to work and your machine uses KMS (Kernel Mode Setting), try [[Intel#KMS_.28Kernel_Mode_Setting.29|adding the appropriate driver to mkinitcpio.conf]].
 
If you have trouble getting fbsplash to work and your machine uses KMS (Kernel Mode Setting), try [[Intel#KMS_.28Kernel_Mode_Setting.29|adding the appropriate driver to mkinitcpio.conf]].
  
 
==Console backgrounds==
 
==Console backgrounds==
If you have a kernel that supports Fbcondecor (eg. {{AUR|linux-fbcondecor}}), you can get nice graphical console backgrounds beside the splash screen. Just search the AUR for [https://aur.archlinux.org/packages.php?O=0&K=fbsplash-theme&do_Search=Go fbsplash-theme].
 
  
After installing your patched kernel and fbsplash, add {{Codeline|fbcondecor}} to your {{Codeline|DAEMONS}} array in {{Filename|/etc/[[rc.conf]]}}:
+
If you have a kernel that supports Fbcondecor (eg. {{AUR|linux-fbcondecor}}), you can get nice graphical console backgrounds beside the splash screen.
{{File|name=/etc/rc.conf|content=DAEMONS=(... fbcondecor ...)}}
+
 
There is also a configuration file {{Filename|/etc/conf.d/fbcondecor}} to set up the virtual terminals to be used.
+
Currently(2015) the {{AUR|fbsplash}} package provides a deprecated daemon script to set up console backgrounds. However, the programs that actually handle console backgrounds are still working fine! Just look for /usr/bin/splash_manager or /usr/bin/fbcondecor_ctl and set up console backgrounds manually, or use them as a basis to [[Systemd#Writing_unit_files|write]] your own systemd unit.
 +
 
 +
Even if you have no interest in a splash screen, you will still need splash themes for your console background. Either get an existing one from the AUR [https://aur.archlinux.org/packages.php?O=0&K=fbsplash-theme&do_Search=Go fbsplash-theme] or create one yourself in {{ic|/etc/splash/}}. The only parameter in the theme .cfg file needed to enable console backgrounds is {{ic|pic}}.
  
 
You may even boot up with a nice console background and the plain Arch Linux boot messages instead of a splash screen. Just change your kernel command line to use the verbose mode:
 
You may even boot up with a nice console background and the plain Arch Linux boot messages instead of a splash screen. Just change your kernel command line to use the verbose mode:
Line 67: Line 63:
  
 
==Links==
 
==Links==
* http://fbsplash.berlios.de
+
* http://dev.gentoo.org/~spock/projects/fbcondecor/ {{Dead link|2014|05|01}}
* http://dev.gentoo.org/~spock/projects/fbcondecor/
+
* http://www.mepiscommunity.org/fbcondecor

Latest revision as of 13:33, 23 February 2016

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: using initscripts (Discuss in Talk:Fbsplash#)

Fbsplash (formerly gensplash) is a userspace implementation of a splash screen for Linux systems. It provides a graphical environment during system boot using the Linux framebuffer layer. Fbsplash has not been actively updated in the recent years and may not be working correctly on a recent Arch setup using systemd. If you want a fancy splash screen during boot, you might want to try Plymouth instead.

Installation

Fbsplash

Install the fbsplashAUR package. For console backgrounds (discussed later in this article) you should install a kernel patched with fbcondecor such as linux-fbcondecorAUR.

Scripts

The fbsplash package provides the scripts for basic functionality. If you want more bells and whistles, like smooth progress, filesystem-check progress messages, support for boot-services/'daemons'-icons and theme hook scripts, you may also install the fbsplash-extrasAUR[broken link: archived in aur-mirror] package.

Themes

Themes can be found by searching the AUR for fbsplash-theme, in GNOME-Look.org or in KDE-Look.org.

Note: The package fbsplash does not contain a default theme.

Suspend to Disk

If you want suspend to disk with Uswsusp using Fbsplash, install the uswsusp-fbsplashAUR[broken link: archived in aur-mirror] package. Additionally there is limited support for using Fbsplash in the tuxonice-useruiAUR package for those using a kernel with the TuxOnIce patch.

Configuration

Kernel Command Line

You now need to set something like quiet loglevel=3 logo.nologo gfxpayload=keep console=tty1 splash=silent,fadein,fadeout,theme:arch-banner-icons as your kernel command line parameters in your bootloader. See Kernel parameters for more info.

The parameter loglevel=3 prevents kernel messages from garbling the splash even with funny hardware (as recent initscripts do not set this by default any more). quiet is needed additionally for silencing initcpio messages. logo.nologo removes the boot logo (not needed with linux-fbcondecor since it does not have one anyway). console=tty1 redirects system messages to tty1 and splash=silent,fadein,fadeout,theme:arch-banner-icons creates a silent, splash-only boot with fading in/out arch-banner-icons theme.

Configuration Files

Put one or more of the themes you installed into /etc/conf.d/splash. You can also specify screen resolutions to save some initcpio space:

/etc/conf.d/splash
SPLASH_THEMES="
    arch-black
    arch-banner-icons/1280x1024.cfg
    arch-banner-noicons/1280x1024.cfg"
Note: The theme arch-banner-icons contains mainly symlinks to arch-banner-noicons. So if one of them is included in total, not much space will be saved by limiting the resolutions.

Starting Fbsplash early in the initcpio

If uresume and/or encrypt HOOKS are used, add fbsplash after them in mkinitcpio.conf, e.g.:

/etc/mkinitcpio.conf
HOOKS="base udev autodetect [...] keymap encrypt uresume fbsplash"

Rebuild your initcpio via mkinitcpio. See mkinitcpio#Image creation and activation for more info.

Tip: For a quick resume, it is recommended to put uswsusp before fbsplash or even drop fadein, if using a Fbcondecor kernel.

If you have trouble getting fbsplash to work and your machine uses KMS (Kernel Mode Setting), try adding the appropriate driver to mkinitcpio.conf.

Console backgrounds

If you have a kernel that supports Fbcondecor (eg. linux-fbcondecorAUR), you can get nice graphical console backgrounds beside the splash screen.

Currently(2015) the fbsplashAUR package provides a deprecated daemon script to set up console backgrounds. However, the programs that actually handle console backgrounds are still working fine! Just look for /usr/bin/splash_manager or /usr/bin/fbcondecor_ctl and set up console backgrounds manually, or use them as a basis to write your own systemd unit.

Even if you have no interest in a splash screen, you will still need splash themes for your console background. Either get an existing one from the AUR fbsplash-theme or create one yourself in /etc/splash/. The only parameter in the theme .cfg file needed to enable console backgrounds is pic.

You may even boot up with a nice console background and the plain Arch Linux boot messages instead of a splash screen. Just change your kernel command line to use the verbose mode:

quiet console=tty1 splash=verbose,theme:arch-banner-icons

Links