# Installation et customization usplash \[debian etch/sid\]

**URL:** <https://www.debian-fr.org/t/installation-et-customization-usplash-debian-etch-sid/5191>\
**Category:** Trucs et Astuces\
**Created:** [Février 20, 2016, 3:16 UTC](https://www.debian-fr.org/t/installation-et-customization-usplash-debian-etch-sid/5191 "2016-02-20T15:16:48Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Février 20, 2016, 4:34 UTC](https://www.debian-fr.org/t/installation-et-customization-usplash-debian-etch-sid/5191/41 "2016-02-20T16:34:37Z")

</div>

non, ton inittab a l’air correct. Regardes aussi s’il n’y a pas un /etc/default/usplash, et surtout, il faut voir comment /etc/init.d/usplash fait appel à la commande usplash: est ce que par hasard, il ne rajouterait pas un -c, ou le contraire.

---

<div class="post-metadata">

**Author:** ![Thibaud](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/t/ad7895/32.png) [@Thibaud](https://www.debian-fr.org/u/Thibaud)\
**Post date:** [Février 20, 2016, 4:36 UTC](https://www.debian-fr.org/t/installation-et-customization-usplash-debian-etch-sid/5191/42 "2016-02-20T16:36:51Z")

</div>

Il n’y a pas de /etc/defaults/usplash, mais un /etc/usplash.conf qui indique la résolution de l’écran usplash.  
Tiens, je n’arrive pas à faire fonctionner l’hibernation avec usplash, ça bloque au moment de la lecture de l’image. Quelqu’un a-t-il testé ?  
Quant au fichier /etc/init.d/usplash , j’avoue ne pas y voir d’option -c. Voici le mien :

[code]#! /bin/sh

### BEGIN INIT INFO

# Provides: usplash

# Required-Start: $all

# Required-Stop: $all

# Default-Start: 2 3 4 5

# Default-Stop: 0 1 6

# Short-Description: Stop and start usplash

# Description: This script stops and starts the userspace bootsplash screen.

# On start it stops the usplash daemon and on stop it starts it.

# This is conter-intuitive, but usplash already got started in

# initramfs (early userspace).

### END INIT INFO

# 

# The usplash script makes sure that usplash exits at the end of

# the boot sequence and re-run the [console-screen.sh](http://console-screen.sh) script to make

# sure that the console fonts are actually set

# 

# Written by Miquel van Smoorenburg [miquels@cistron.nl](mailto:miquels@cistron.nl).

# Modified for Debian

# by Ian Murdock [imurdock@gnu.ai.mit.edu](mailto:imurdock@gnu.ai.mit.edu).

# 

# Version: @(#)skeleton 1.9 26-Feb-2001 [miquels@cistron.nl](mailto:miquels@cistron.nl)

# 

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin  
DAEMON=/sbin/usplash  
NAME=usplash  
DESC=“Userspace bootsplash utility”

test -x $DAEMON || exit 0

set -e

usplash\_quit() {  
# first some sanity checks if we actually have usplash on the system  
#  
# check if usplash is runing and if it does, exit it  
# then re-run [console-screen.sh](http://console-screen.sh) because it can’t set console-fonts  
# properly while the screen is in graphics mode  
#  
# also check if we are ended up in console 8. This means that  
# no gdm/kdm/xdm was started (otherwise we would be on vt7).  
# It happens when e.g. usplash timed out  
if type setupcon \>/dev/null 2\>&1; then  
CONSOLE\_SCREEN=  
elif [-x /etc/init.d/console-screen.sh]; then  
CONSOLE\_SCREEN=/etc/init.d/console-screen.sh  
else  
CONSOLE\_SCREEN=  
fi  
if type usplash \>/dev/null 2\>&1 && grep -q splash /proc/cmdline &&  
( pidof usplash \> /dev/null || [“$(fgconsole 2\>/dev/null)” = “8”] ); then  
# Clear VT 8 of any console messages  
clear \>/dev/tty8

```
	# ask usplash to go away
	usplash_write QUIT

	# wait until it is really gone or kill it if it dosn't exit
	i=0
	while pidof usplash > /dev/null; do
		i=$(($i + 1))
		if [$i -gt 10]; then
			kill -9 `pidof usplash`
			break
		fi
		sleep 1
	done

	# reset all our virtual consoles, yay!
	if ["$CONSOLE_SCREEN"]; then
		$CONSOLE_SCREEN
	fi
	if ["$(fgconsole 2>/dev/null)" = "8"] && ["$DO_NOT_SWITCH_VT" != "yes"]; then
	    chvt 1
	fi
fi

```

}

case “$1” in  
start)  
usplash\_quit  
;;  
stop)  
# only run with splash boot cmdline  
if [-r /proc/cmdline] && grep -q splash /proc/cmdline; then  
usplash -c &  
usplash\_write "TEXT Resetting the usplash timeout…"  
usplash\_write "TIMEOUT 15"  
usplash\_write "SUCCESS ok"  
fi  
;;  
\*)  
N=/etc/init.d/$NAME  
# echo “Usage: $N {start|stop|restart|reload|force-reload}” \>&2  
echo “Usage: $N {start|stop}” \>&2  
exit 1  
;;  
esac

exit 0[/code]  
Tiens, je n’arrive pas à faire fonctionner l’hibernation avec usplash, ça bloque au moment de la lecture de l’image. Quelqu’un a-t-il testé ?

---

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Février 20, 2016, 4:36 UTC](https://www.debian-fr.org/t/installation-et-customization-usplash-debian-etch-sid/5191/43 "2016-02-20T16:36:52Z")

</div>

ben tu vois bien que le stop fait un usplash -c ?  
essayes en le supprimant.

---

<div class="post-metadata">

**Author:** ![Thibaud](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/t/ad7895/32.png) [@Thibaud](https://www.debian-fr.org/u/Thibaud)\
**Post date:** [Février 20, 2016, 4:37 UTC](https://www.debian-fr.org/t/installation-et-customization-usplash-debian-etch-sid/5191/44 "2016-02-20T16:37:00Z")

</div>

Oups, je devais être fatigué hier soir ! Donc j’ai commenté la ligne en question, et ça marche nickel, y compris l’hibernation ! Merci beaucoup…

[Page précédente](https://www.debian-fr.org/t/installation-et-customization-usplash-debian-etch-sid/5191.md?page=2)
