Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot Splash (background pic ala Suse) TIP of the YEAR!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Mr Wind-up Bird
n00b
n00b


Joined: 06 Apr 2003
Posts: 5

PostPosted: Sun Apr 06, 2003 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
kachaffeous
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2002
Posts: 86

PostPosted: Tue Apr 08, 2003 11:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr Wind-up Bird
n00b
n00b


Joined: 06 Apr 2003
Posts: 5

PostPosted: Wed Apr 09, 2003 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
enygma
n00b
n00b


Joined: 17 Feb 2003
Posts: 4

PostPosted: Tue Apr 15, 2003 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
quikchaos
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 107

PostPosted: Sun Apr 20, 2003 1:38 pm    Post subject: Reply with quote

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. :P
_________________
"Whether you think you can or you think you can't... you're right." -- Henry Ford
Back to top
View user's profile Send private message
sth
n00b
n00b


Joined: 20 Apr 2003
Posts: 4

PostPosted: Sun Apr 20, 2003 8:54 pm    Post subject: Reply with quote

:D :D :D
[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
View user's profile Send private message
kachaffeous
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2002
Posts: 86

PostPosted: Thu Apr 24, 2003 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
fireboy1919
n00b
n00b


Joined: 28 May 2002
Posts: 47

PostPosted: Tue Apr 29, 2003 8:19 pm    Post subject: Video card restriction Reply with quote

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
View user's profile Send private message
kachaffeous
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2002
Posts: 86

PostPosted: Sat May 10, 2003 7:37 pm    Post subject: one way to do progress bar Reply with quote

This was posted by micha in other things gentoo, good info.

A diff
Quote:

Hi,

I made a diff against the baselayout package (1.8.5.9) and wrote a small install script last night. It is available at http://www.aichler.net/gentoo/bootsplash/bootsplash-patch-0.1.tar.gz

Any comments are welcome, especially additional suggestions and improvements !


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
View user's profile Send private message
farid
n00b
n00b


Joined: 06 Jul 2003
Posts: 12

PostPosted: Sun Jul 06, 2003 8:35 pm    Post subject: Patch for 2.4.21 Reply with quote

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
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1398
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Jul 24, 2003 6:11 pm    Post subject: Reply with quote

For directions on how to use an existing initrd and append the bootsplash image please see this helpful post.

Regards,
BonezTheGoon
Back to top
View user's profile Send private message
NiXZe
Tux's lil' helper
Tux's lil' helper


Joined: 22 May 2003
Posts: 75
Location: Uppsala Sweden

PostPosted: Mon Aug 11, 2003 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Garbz
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 260
Location: Brisbane, Australia

PostPosted: Mon Aug 11, 2003 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Thu Aug 21, 2003 11:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Garbz
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 260
Location: Brisbane, Australia

PostPosted: Fri Aug 22, 2003 12:20 am    Post subject: Reply with quote

the patch need not be applied to gentoo-sources.
_________________
Every begining is another begining's end.
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Fri Aug 22, 2003 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Stu L Tissimus
Veteran
Veteran


Joined: 08 Jun 2003
Posts: 1339
Location: NJ, 5 minutes from NYC

PostPosted: Wed Sep 03, 2003 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Old Gentooman
n00b
n00b


Joined: 02 Sep 2003
Posts: 13
Location: way beyond the BSOD

PostPosted: Wed Sep 03, 2003 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Garbz
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 260
Location: Brisbane, Australia

PostPosted: Wed Sep 03, 2003 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Stu L Tissimus
Veteran
Veteran


Joined: 08 Jun 2003
Posts: 1339
Location: NJ, 5 minutes from NYC

PostPosted: Wed Sep 03, 2003 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Thu Sep 04, 2003 1:03 am    Post subject: Reply with quote

just follow this link
i'm using gaming and it works fine.
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
Garbz
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 260
Location: Brisbane, Australia

PostPosted: Thu Sep 04, 2003 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message
kronon
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 212
Location: NL

PostPosted: Sat Sep 06, 2003 6:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
skamp
n00b
n00b


Joined: 19 Jan 2004
Posts: 13

PostPosted: Mon Jan 19, 2004 10:21 am    Post subject: works fine Reply with quote

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
View user's profile Send private message
beatriziya
n00b
n00b


Joined: 30 Jul 2009
Posts: 1

PostPosted: Thu Jul 30, 2009 11:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum