View previous topic :: View next topic |
Author |
Message |
Mr Wind-up Bird n00b
Joined: 06 Apr 2003 Posts: 5
|
Posted: Sun Apr 06, 2003 9:56 am Post subject: |
|
|
Sorry if I'm posting something everyone already knows but looking at the SuSe bootsplash scripts, the simplest way to get the progress bar working appears to be
Code: | echo "show progress_out_of_about_65534" > /proc/splash |
Do you all know about the SuSe guy's new website, http://www.bootsplash.org? |
|
Back to top |
|
|
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Tue Apr 08, 2003 11:42 pm Post subject: |
|
|
Quote: | echo "show progress_out_of_about_65534" > /proc/splash
Do you all know about the SuSe guy's new website, http://www.bootsplash.org? |
Thanks will check this out[/quote] |
|
Back to top |
|
|
Mr Wind-up Bird n00b
Joined: 06 Apr 2003 Posts: 5
|
Posted: Wed Apr 09, 2003 8:09 am Post subject: |
|
|
Hi kachaffeous,
I'm writing a hint for Linux From Scratch on how to get a bootsplash working. Hope you don't mind me using your info. I'll credit to you in the final version.
If you haven't already figured out animation (someone mentioned mng files earlier in the thread), it explains how to get it up and running. I don't use Gentoo, but it shouldn't be to hard to adapt it.
Here's the link
http://archive.linuxfromscratch.org/mail-archives/blfs-support/2003/04/0386.html |
|
Back to top |
|
|
enygma n00b
Joined: 17 Feb 2003 Posts: 4
|
Posted: Tue Apr 15, 2003 7:12 pm Post subject: |
|
|
progster wrote: |
Yes, I'm very sorry about that :-s, but I can't do anything about it... if anyone feels like mirroring it. Feel free to do so!
~Progster |
here ya go: http://www.spac3m0nk3y.com/bootsplash/images.htm |
|
Back to top |
|
|
quikchaos Tux's lil' helper
Joined: 29 Jan 2003 Posts: 107
|
Posted: Sun Apr 20, 2003 1:38 pm Post subject: |
|
|
I just flattened my system this weekend and came back with a fresh install of 1.4_rc4 and compiled a gaming kernel. The latest gaming-sources (linux-2.4.20-gaming-r2) seems to already be patched. This is cool, because I already have my initrd's made. I don't have to patch, or install bootsplash on my system now, unless I want the boot splash on other tty's, which I don't. _________________ "Whether you think you can or you think you can't... you're right." -- Henry Ford |
|
Back to top |
|
|
sth n00b
Joined: 20 Apr 2003 Posts: 4
|
Posted: Sun Apr 20, 2003 8:54 pm Post subject: |
|
|
[img:14c741b498]http://home.t-online.de/home/st.hein/misc/framebuffer-patch.jpg[/img:14c741b498]
I don't know, if this has been already mentioned here, but be sure not to use "progressive" type jpegs. They won't work ("decompression error"). |
|
Back to top |
|
|
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Thu Apr 24, 2003 11:06 pm Post subject: |
|
|
For everyone that is having problems with getting silent to work (me included). Here is a email from Stefan.
Quote: |
What graphics card are you using? There's a memory restriction that
will
keep away cards with less than 4MB RAM from showing the silent picture.
I've seen some nvidia cards to hit that restriction even though they
have a lot
more ram...
Stefan |
So if you have a old video card less then 4 megs of ram or a nvidia card that could be your problem. I recommend trying a different video card. |
|
Back to top |
|
|
fireboy1919 n00b
Joined: 28 May 2002 Posts: 47
|
Posted: Tue Apr 29, 2003 8:19 pm Post subject: Video card restriction |
|
|
I have a 2MB video card...I was able to get the silent image working at 800x600, though it won't at 1024x768.
I suppose both are being loaded directly into the video card at the same time. |
|
Back to top |
|
|
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Sat May 10, 2003 7:37 pm Post subject: one way to do progress bar |
|
|
This was posted by micha in other things gentoo, good info.
A diff
To do by hand.
Quote: | Hi,
here's my solution:
First add these functions to /sbin/functions.sh :
Code:
splash_init() {
pb_init=0
pb_count=0
pb_scripts=0
pb_rate=0
if [ -f /etc/conf.d/bootsplash.conf ]; then
. /etc/conf.d/bootsplash.conf
if [ -n "${PROGRESS_INIT_RATE}" ]; then
rate=$((65535*${PROGRESS_INIT_RATE}/100))
fi
scripts="${PROGRESS_INIT_SCRIPTS}"
fi
if [ "${RUNLEVEL}" == "S" ]; then
pb_scripts=5
pb_rate=9000
[ -n "$scripts" ] && pb_scripts="$scripts"
[ -n "$rate" ] && pb_rate="$rate"
fi
export pb_init pb_count pb_scripts pb_rate
}
splash_calc() {
pb_runs=(/etc/runlevels/$1/*)
pb_runb=(/etc/runlevels/boot/*)
pb_scripts=${#pb_runs[*]}
pb_boot=${#pb_runb[*]}
if [ -f /etc/conf.d/bootsplash.conf ]; then
. /etc/conf.d/bootsplash.conf
if [ -n "${PROGRESS_INIT_RATE}" ]; then
init_rate=$((65535*${PROGRESS_INIT_RATE}/100))
fi
if [ -n "${PROGRESS_BOOT_RATE}" ]; then
boot_rate=$((65535*${PROGRESS_BOOT_RATE}/100))
fi
fi
if [ "${BOOT}" == "yes" ]; then
pb_init=9000
pb_rate=21845
pb_count=0
[ -n "$init_rate" ] && pb_init=$init_rate
[ -n "$boot_rate" ] && pb_rate=$boot_rate
elif [ "${RUNLEVEL}" == "0" -o "${RUNLEVEL}" == "6" ]; then
pb_scripts=$(($pb_scripts + $pb_boot))
pb_rate=65534
else
pb_scripts=$(($pb_scripts + $pb_boot))
pb_init=31845
pb_rate=65534
if [ -n "$init_rate" -a -n "$boot_rate" ]; then
pb_init=$(($init_rate + $boot_rate))
fi
fi
}
splash_update() {
[ "$splash" != "silent" ] && return
[ "$PREVLEVEL" == "N" -a "$1" == "stop" ] && return
/sbin/splash "$1" "$2"
pb_count=$(($pb_count + 1))
}
Additionally the function eend() in /sbin/function.sh has to be extended by these lines ( at the beginning ) :
Code:
eend() {
if [ "${RUNLEVEL}" == "S" -a "${0}" == "/sbin/rc" ]; then
splash_update
fi
[...]
}
After that edit the /sbin/rc script and add the following (only bold lines):
Code:
at line 40:
[...]
# save $1
argv1="$1"
# Bootsplash progressbar begin
splash_init
# Bootsplash progressbar end
# first time boot stuff goes here
if [ "${RUNLEVEL}" = "S" -a "${argv1}" = "boot" ]
then
[...]
Code:
at line 247:
[...]
fi # boot ends here
# Progressbar begin
splash_calc "${argv1}"
# Progressbar end
if [ -z "${argv1}" ]
then
[...]
Code:
at line 375:
[...]
# stop services
for i in $(dolisting ${svcdir}/started/)
do
# Progressbar begin
splash_update "stop" "$i"
# Progressbar end
dep_stop ${i}
done
[...]
Code:
at line 425:
[...]
# start scripts
for i in $(dolisting ${svcdir}/softscripts/)
do
# Progressbar begin
splash_update "start" "$i"
# Progressbar end
dep_start ${i}
done
[...]
Now add some variables to /etc/conf.d/bootsplash.conf:
Code:
# /etc/init.d/bootsplash.conf
#
# only one option at the moment
#
BOOTSPLASH_THEME=SuSE-8.2
#
# Progressbar rate of inline boot scripts
# in /sbin/rc ( per cent ), e.g. "20"
#
PROGRESS_INIT_RATE="13"
PROGRESS_BOOT_RATE="33"
#
# Number of inline boot scripts in /sbin/rc
#
PROGRESS_INIT_SCRIPTS="5"
The number of init scripts has to be adapted to your configuration.
Finally remove the bootsplash-init-script from the init process (rc-update del bootsplash), move /sbin/splash to /sbin/splash.bin and copy this wrapper-script to /sbin/splash:
Code:
#!/bin/bash
#
# splash - script to paint progressbar during
# system startup/shutdown
#
# parts are based on the splash.sh script from SuSE
# execute splash binary utility because we are a wrapper
if [ "$1" == "-s" -o "$1" == "-u" -o "$1" == "-n" -o "$1" == "-f" ]; then
exec /sbin/splash.bin $*
else
( exec /sbin/splash.bin "$*" )
fi
test -r /proc/splash || exit 0
test -z "$pb_count" -a -z "$pb_scripts" && exit 0
test "$RUNLEVEL" == "6" -o "$RUNLEVEL" == "0" && SHUTDOWN="yes"
function box() { true; }
test -f /etc/conf.d/bootsplash.conf && . /etc/conf.d/bootsplash.conf
test -z "${BOOTSPLASH_THEME}" && BOOTSPLASH_THEME="default"
config="/etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg"
test -f $config && . $config
# Print text string...
if [ "$pb_count" == "0" ]; then
if [ "$SHUTDOWN" == "yes" ]; then
/sbin/splash -s -u 0 $config
echo "silent" > /proc/splash
/usr/bin/chvt 1
fi
if [ "${BOOT}" != "yes" -o "$SHUTDOWN" == "yes" ]; then
text="Booting"; test "$SHUTDOWN" == "yes" && text="Shutting down"
if [ "$text_x" != "" -a "$text_y" != "" -a "$text_color" != "" -a "$text_size" != "" ]; then
/sbin/fbtruetype -x $text_x -y $text_y -t $text_color -s $text_size \
"$text the system... Press F2 for verbose mode"
fi
fi
fi
# Paint progressbar...
test -z "$progress_enable" && exit 0
value=$(($pb_init + ($pb_count + 1) * ($pb_rate - $pb_init) / $pb_scripts))
echo "show $value" > /proc/splash
Ok, that's it.
Hope it'll work for you as good as it does for me
The splash image seems to be killed by /etc/init.d/halt.sh during shutdown. To prevent the script from doing this, comment out the following lines in /etc/init.d/halt.sh:
Code:
#ebegin "Sending all processes the TERM signal"
#killall5 -15 &>/dev/null
#eend $?
#sleep 5
#ebegin "Sending all processes the KILL signal"
#killall5 -9 &>/dev/null
#eend $?
These two signals are already emitted by the init process during shutdown and I haven't noticed any side-effects yet. |
|
|
Back to top |
|
|
farid n00b
Joined: 06 Jul 2003 Posts: 12
|
Posted: Sun Jul 06, 2003 8:35 pm Post subject: Patch for 2.4.21 |
|
|
There is a website where one could download the bootsplash patch for kernel 2.4.21 (vanilla sources):
http://members.optusnet.com.au/ckolivas/kernel/
I patched the kernel (without problems) then emerged bootsplash,
created the initrd and added initrd=/boot/initrd in grub.conf and thats it!
Here is a screenshot which i made a few seconds ago:
http://www.flammiger.org/?page=downloads
Last edited by farid on Sun Aug 17, 2003 1:40 pm; edited 1 time in total |
|
Back to top |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Thu Jul 24, 2003 6:11 pm Post subject: |
|
|
For directions on how to use an existing initrd and append the bootsplash image please see this helpful post.
Regards,
BonezTheGoon |
|
Back to top |
|
|
NiXZe Tux's lil' helper
Joined: 22 May 2003 Posts: 75 Location: Uppsala Sweden
|
Posted: Mon Aug 11, 2003 1:04 pm Post subject: |
|
|
if i don't remember compleatly wrong the bootsplash is included in gentoo-sources and also the bootsplash utilitys can be installed with
emerge bootsplash
(they may be masked)
well it's not hard att all geting it working _________________ What? Where? Oh! this one, it's Gentoo.
If you don't have anything constructive to say, you might want to consider staying quiet instead.
To many destructive comments, which in no way will help making the Gentoo community better. |
|
Back to top |
|
|
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Mon Aug 11, 2003 10:23 pm Post subject: |
|
|
here's a question for u.
If we are unable to load an initrd script (thanks to the root fs encryption in the other thread : ) is it possible to get this bootsplash up before the system boots. Like somehow at kernel time rather than splashin > /proc/splash _________________ Every begining is another begining's end. |
|
Back to top |
|
|
lotusvale Guru
Joined: 06 Mar 2003 Posts: 339 Location: Canada
|
Posted: Thu Aug 21, 2003 11:08 pm Post subject: |
|
|
hum..i'm kind a lost of what's going on here.. i mean i'm still in the first page, and i'm still digesting the rest of the pages.
but just to get it to work from the first page, first post.
i'm using gaming kernel, do i need to patch the kernel ? 'cause the patch is actually for vanilla sources. so i'm not sure whether this is necessary or not.
also, it asks to copy the config file to /usr/share/splash. what should the name be for the config file? (ie what should it be saved as?) _________________
-SuSe shot- | -G shot-
Shadowrider's Lair |
|
Back to top |
|
|
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Fri Aug 22, 2003 12:20 am Post subject: |
|
|
the patch need not be applied to gentoo-sources. _________________ Every begining is another begining's end. |
|
Back to top |
|
|
lotusvale Guru
Joined: 06 Mar 2003 Posts: 339 Location: Canada
|
Posted: Fri Aug 22, 2003 12:52 am Post subject: |
|
|
ok so i guess it's only for vanilla sources right.
so what bout the config file? i don't really get it. what should the name of the file be?
EDIT
nevermind i got it to work now. kewl _________________
-SuSe shot- | -G shot-
Shadowrider's Lair |
|
Back to top |
|
|
Stu L Tissimus Veteran
Joined: 08 Jun 2003 Posts: 1339 Location: NJ, 5 minutes from NYC
|
Posted: Wed Sep 03, 2003 12:17 am Post subject: |
|
|
Wow, this is cool. However, I'm nt sure how to do it... I do not use Vanilla or Gentoo, I use Gaming. Will it work?
SOMEONE SHOULD MAKE AN EBUILD!!! _________________ old outdated sig |
|
Back to top |
|
|
Old Gentooman n00b
Joined: 02 Sep 2003 Posts: 13 Location: way beyond the BSOD
|
Posted: Wed Sep 03, 2003 1:35 am Post subject: |
|
|
chimaera wrote: | got it running on my debian sid box.. thanks for this one ;-7 |
Dare I add yet another post to this ever popular thread, but as chimaera did, so did I patch this into my debian box. Beautiful! And then I thought, "These Gentoo folks are the real gurus... I had better convert to Gentoo". And so, thanks to this thread and its great and well presented tip, the Gentoo community has a new member. "So long Debian!" _________________ On a quiet winter's eve, if you listen closely, you'll hear the sound of Gentoo boxen compiling and Window$ machines crashing. |
|
Back to top |
|
|
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Wed Sep 03, 2003 9:07 am Post subject: |
|
|
there is an ebuild.
It puts the bootsplash into runlevel scripts, (required for gaming sources becuase the current initrd is used i believe) _________________ Every begining is another begining's end. |
|
Back to top |
|
|
Stu L Tissimus Veteran
Joined: 08 Jun 2003 Posts: 1339 Location: NJ, 5 minutes from NYC
|
Posted: Wed Sep 03, 2003 12:12 pm Post subject: |
|
|
Ah... There is an ebuild? Okay.
Also, I decided to reinstall Gentoo, and this time I'm using the Gentoo-sources. Anyway, it seems to have "Use Bootsplash instead of logo" already in it. Is it patched to already have Bootsplash support?
EDIT: I just saw the thing saying it doesn't need to be applied to gentoo-sources... But still, does it just... work? (I never get that with Gentoo... o_O) _________________ old outdated sig |
|
Back to top |
|
|
lotusvale Guru
Joined: 06 Mar 2003 Posts: 339 Location: Canada
|
|
Back to top |
|
|
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Thu Sep 04, 2003 5:05 am Post subject: |
|
|
you don't need to patch the gentoo-sources kernel, just make an image, a config, and use the splash utility (in the ebuild) to either:
a) make initrd and load it at boot time with grub, or
b) during the runlevel scrips call it to apply the image to the framebuffers. _________________ Every begining is another begining's end. |
|
Back to top |
|
|
kronon Apprentice
Joined: 11 Aug 2003 Posts: 212 Location: NL
|
Posted: Sat Sep 06, 2003 6:03 pm Post subject: |
|
|
Is there gona be a patch for 2.6* kernels? I'm dependand on those kernel ( >= 2.5 ), because I need those radeon drivers for 3d accel. |
|
Back to top |
|
|
skamp n00b
Joined: 19 Jan 2004 Posts: 13
|
Posted: Mon Jan 19, 2004 10:21 am Post subject: works fine |
|
|
i really didnt have to do much to get this to work.. emerge bootsplash. then follow the instructions on the page.. (the config file for splash) no kernel compile necessary just have to remember that the initrd was initrd-2.4.22-genkernel-r4 not just initrd
vga=792 didnt work at all but 791 did..
looks good too!!! |
|
Back to top |
|
|
beatriziya n00b
Joined: 30 Jul 2009 Posts: 1
|
Posted: Thu Jul 30, 2009 11:25 am Post subject: |
|
|
How do I get the best out of my mini vga to hdtv? I'm buying a mini vga to VGA adapter and run the vga to my hdtv as it has a vga input. I have a 32" Samsung TV.
Once connected do I need to change any settings on my TV or iMac G5 (Leopard) to make the outcome look the best it can? And how do I do so on my mac? _________________ i need help |
|
Back to top |
|
|
|