[Fbsplash] Impossible de lancer fbsplash

Applications, problèmes de configuration réseau
leosw
newbie
Messages : 8
Inscription : mar. 28 janv. 2014, 17:56

[Fbsplash] Impossible de lancer fbsplash

Message par leosw »

Salut à tous,

Je suis en mode "on donne un look sympa à mon PC" et j'en suis à l'étape du Fbsplach pour le splash screen.

Malheureusement il ne se lance pas au démarrage, alors que la commande de démo fonctionne (à condition de le lancer en root)

Code : Tout sélectionner

sudo splash_manager -c demo -t leosw --steps 100
Des infos, j'utilise syslinux, et ma résolution c'est 1366x768

Pour les fichiers que j'ai modifié :

/etc/conf.d/splash

Code : Tout sélectionner

#
# /etc/conf.d/splash
#

####  WARNING!
## This file is also sourced in the initcpio hook.
## No BASH-code (like arrays) is allowed here!

####  initcpio and Fbsplash daemon  ##########################################

## Themes to include into initcpio
## For a smaller initcpio you may try theme cfg files instead of directories.
SPLASH_THEMES="
    leosw
    arch-black
"

## Override the initial silent splash screen status message defaults.
## Note: '$progress' will be replaced by Fbsplash itself.
## * initcpio - (no effect with fbcondecor kernel)
SPLASH_INIT_MESSAGE="Initializing the kernel"
## * bootup
SPLASH_BOOT_MESSAGE="Booting '$HOSTNAME' (\$progress%)"
## * reboot
SPLASH_REBOOT_MESSAGE="Rebooting '$HOSTNAME' (\$progress%)"
## * shutdown
SPLASH_SHUTDOWN_MESSAGE="Shutting down '$HOSTNAME' (\$progress%)"

## Include and use the Fbsplash daemon (1.5 MiB) in the initcpio
## instead of the small helper only.
## Usefull to show animations early.
## Note: Themes with 'scripts/rc_init-pre' like 'arch-banner-icons' are
##       supported now if fbsplash-extras>=2.0.10 is installed, but there
##       might still be some sophisticated ones which break when using this.
SPLASH_DAEMON="early"

## Make the splash daemon use fade effects.
## Note: The initcpio helper does only use the kernel parameter!
# Just use fadein on bootup and fadeout on shutdown/reboot
case $PREVLEVEL in  N   ) SPLASH_EFFECTS="fadein" ; esac
case  $RUNLEVEL in [06] ) SPLASH_EFFECTS="fadeout"; esac
# Uncomment this line to allways use both
# SPLASH_EFFECTS="fadein,fadeout"

## Enable the textbox when starting the Fbsplash daemon.
## Useful if the theme provides a message log or other textbox.
## The scripts write any initscripts [FAIL] messages to the log.
## Note: The textbox can also be toggled by pressing F3-key.
SPLASH_TEXTBOX="yes"

## Splash progress timeout
## If set to a positive value, Fbsplash will automatically switch to verbose
## mode if there is no progress for the specified number of seconds.
SPLASH_AUTOVERBOSE=0

####  scripts behaviour  #####################################################

## Change to verbose mode on any initscripts [FAIL] message
## Useful with very simple themes and also when starting Xorg from DAEMONS
SPLASH_VERBOSE_ON_ERRORS="no"

## Name of the DAEMONS script starting Xorg if any
## Set this to avoid virtual terminal change struggle between X and Fbsplash.
#SPLASH_XSERVICE="gdm"
#SPLASH_XSERVICE="kdm"
#SPLASH_XSERVICE="xdm"
#SPLASH_XSERVICE="lxdm"
#SPLASH_XSERVICE="slim"

## Push initscripts [BUSY] messages to the splash status message line.
SPLASH_PUSH_MESSAGES="no"

# EOF #
/boot/syslinux/syslinux.cfg

Code : Tout sélectionner

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples

DEFAULT arch
PROMPT 0        # Set to 1 if you always want to display the boot: prompt 
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl

# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux 
#UI menu.c32
UI vesamenu.c32

# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU BACKGROUND splash.png

MENU WIDTH 60
MENU MARGIN 4
MENU ROWS 15
MENU VSHIFT 15
MENU HSHIFT 55

MENU COLOR border       30;44   #00000000 #00000000 std
MENU COLOR title        1;36;44 #00000000 #00000000 std
MENU COLOR sel          7;37;40 #ffaaaaaa #ff212121 all
MENU COLOR unsel        37;44   #ffcccccc #ff000000 std
MENU COLOR timeout_msg  37;40   #00000000 #00000000 std
MENU COLOR timeout      1;37;40 #00000000 #00000000 std
MENU COLOR tabmsg       31;40   #00000000 #00000000 std
MENU RESOLUTION 1366 768

# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda5 rw console=tty1 splash=silent,theme:arch-black
    INITRD ../initramfs-linux.img
    
LABEL ubuntu
       MENU LABEL Ubuntu Gnome
       COM32 chain.c32
       APPEND hd0 2

LABEL windows
       MENU LABEL Windows 7
       COM32 chain.c32
       APPEND hd0 1

MENU SEPARATOR 

LABEL archfallback
    MENU LABEL Arch Linux Fallback
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda5 rw
    INITRD ../initramfs-linux-fallback.img

LABEL hdt
        MENU LABEL HDT (Hardware Detection Tool)
        COM32 hdt.c32

LABEL reboot
        MENU LABEL Reboot
        COM32 reboot.c32

LABEL poweroff
        MENU LABEL Poweroff
        COM32 poweroff.c32
mon theme : /etc/splash/leosw/1366x768.cfg

Code : Tout sélectionner

bgcolor=0

tx=32
ty=43
tw=1304
th=628

text_x=15
text_y=732
text_size=12
text_color=0xdedede

pic=/etc/splash/leosw/FbSplash_silent.png
silentpic=/etc/splash/leosw/FbSplash_silent.png

# progress bar
box silent noover          3  730 1363  733 #221f29
box silent inter           3  730    3  732 #221f29
box silent                 3  730 1363  732 #ececec


# border of the progress bar
box silent                 3  730 1363  730 #221f29
box silent                 3  733 1363  733 #221f29
box silent                 3  730    3  733 #221f29
box silent              1023  730 1363  733 #221f29
Note, il n'y a rien dans les logs boot.log et message, ni dmesg contenant fbsplash.

Si quelqu'un arrive à comprendre pourquoi un fois le menu syslinux éteind, je vois encore les logs et non le splash screen (note encore, j'ai bien essayé F2)

Amicalement,

Léo :)
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [Fbsplash] Impossible de lancer fbsplash

Message par benjarobin »

Bonsoir,
Il manque quiet sur ligne kernel. De plus as tu modifié /etc/mkinitcpio.conf et régénéré l'initramfs ?
De plus il est très important d'inclure le driver graphique dans MODULES=""
Bref il faut suivre https://wiki.archlinux.fr/Fbsplash#Lanc ... s_t.C3.B4t
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
leosw
newbie
Messages : 8
Inscription : mar. 28 janv. 2014, 17:56

Re: [Fbsplash] Impossible de lancer fbsplash

Message par leosw »

Salut,

J'avais essayé la méthode normale dans un premier temps, mais j'ai ajouté quiet et ajouté module, mit le bon thème (erreur de ma part) et ajouté le hook puis regénéré.

Maintenant pendant le boot je peux voir :
Failed to load theme 'leosw'.
cat: can't open '/sys/class/input/input*/capabilities/ev' : No such file or directory
/init: line 618: aithmetic syntax error
Merci pour la réponse rapide :)

Léo
leosw
newbie
Messages : 8
Inscription : mar. 28 janv. 2014, 17:56

Re: [Fbsplash] Impossible de lancer fbsplash

Message par leosw »

Il semble plusieurs choses :

* Il faut mettre fbsplash après udev dans les hooks
* le vga= est obligatoire dans le syslinux.cfg

D'où le problème, pour une résolution de 1366x768, je ne trouve pas le code vga correspondant.

Léo
leosw
newbie
Messages : 8
Inscription : mar. 28 janv. 2014, 17:56

Re: [Fbsplash] Impossible de lancer fbsplash

Message par leosw »

Update, à moitié résolu

Il fallait donc mettre fbsplash après udev, et aussi ajouter le vga qui se trouve via "sudo hwinfo --framebuffer". 0x037f dans mon cas.

Mais il reste encore un soucis, au démarrage, j'ai toujours eu deux étapes visibles, une résolution de merde, un écran noir, et la résolution normale. Pendant tout ce temps le log s'affichait, et je pense que l'écran noir correspond à une détection matérielle.

Mon problème est que le splash est là avant (en 1366x768 vu que j'ai passé le paramètre au kernel via vga), mais pas sur la seconde partie après le refresh de l'écran. Si quelqu'un à une piste.

Léo
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [Fbsplash] Impossible de lancer fbsplash

Message par benjarobin »

Hum, tu as quoi comme carte graphique et quel driver graphique utilises tu ? Car l'option vga est incompatible avec les drivers libres car est en conflit avec KMS.
Quel est le contenu de ton /etc/mkinitcpio.conf ?
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
leosw
newbie
Messages : 8
Inscription : mar. 28 janv. 2014, 17:56

Re: [Fbsplash] Impossible de lancer fbsplash

Message par leosw »

Salut :)

J'ai en fait fait une bêtise, j'ai confondu mes deux PC, et donc sur celui ci j'ai nvidia comme drivers graphiques (j'ai enlevé nouveau de la liste des modules).

J'ai donc le fichier suivant, /etc/mkinitcpio.conf :

Code : Tout sélectionner

	# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev fbsplash autodetect modconf block filesystems keyboard fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""
Ça ne marche pas encore, et j'ai observé cette erreur pendant le sudo mkinitcpio -p linux :
/etc/rc.d/functions.d/fbsplash-extras.sh: ligne 370: /etc/rc.conf: Aucun fichier ou dossier de ce type
Ma conclusion est que fbsplash se lance pendant le initcpio, mais ni au bootup, ni au shutdown.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [Fbsplash] Impossible de lancer fbsplash

Message par benjarobin »

As tu installé fbsplash-extras ? Si oui tu dois le supprimer...
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
leosw
newbie
Messages : 8
Inscription : mar. 28 janv. 2014, 17:56

Re: [Fbsplash] Impossible de lancer fbsplash

Message par leosw »

Salut :)

Alors oui j'avais installé les extras, j'ai désinstallé , refait l'initrd, mais le soucis reste le même :

Le splash s'affiche au démarage mais reste figé (la barre de chargement ne bouge pas, le texte non plus). Une fois que la détection matérielle se fait, l'écran s'éteind puis s'allume et le splash a disparu.

Léo
Répondre