WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: splash screen feature is enabled ?  (Read 8557 times)

Offline imaad

  • Jr. Member
  • **
  • Posts: 70
  • stii ... nu intodeauna stii
splash screen feature is enabled ?
« on: February 24, 2015, 11:12:14 AM »
Hi,

How can I know if the splash screen feature was enabled in the kernel (linux kernel 3.16.6)?

Thank you your answer,
Best regards,
imaad

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: splash screen feature is enabled ?
« Reply #1 on: February 24, 2015, 05:12:14 PM »
Hi imaad,
may I ask, what is "splash screen feature"?
Download a copy and keep it handy: Core book ;)

Offline imaad

  • Jr. Member
  • **
  • Posts: 70
  • stii ... nu intodeauna stii
Re: splash screen feature is enabled ?
« Reply #2 on: February 25, 2015, 11:04:29 AM »
Hi Misalf,
I saw that in many documentations for exemple (http://www.stlinux.com/howto/splash-screen).
In fact, I think it's about framebuffer kernel mod. I don't understand very well.
I try to show just a image at boot. I can show a image in the grub menu but not when the system boot.
What is the best solution to display a image when the system boot until to X server start?
It's better to use a program like plymouth, xsplash or to modify initrd and to display the image?
Best regards,
imaad

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: splash screen feature is enabled ?
« Reply #3 on: February 25, 2015, 01:50:26 PM »
Yes, you can build plymouth and modify the (or create an additional) initrd.
http://wiki.tinycorelinux.net/wiki:boot_splash
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: splash screen feature is enabled ?
« Reply #4 on: February 25, 2015, 01:54:38 PM »
If you search the forum, it's been discussed many times, last here:
http://forum.tinycorelinux.net/index.php/topic,18086.msg109616.html#msg109616
The only barriers that can stop you are the ones you create yourself.

Offline imaad

  • Jr. Member
  • **
  • Posts: 70
  • stii ... nu intodeauna stii
Re: splash screen feature is enabled ?
« Reply #5 on: February 25, 2015, 03:06:30 PM »
Thank Misalf and curaga for yours advices.
Even if I spent some day before, to search about splash screen for Tiny Core, I didn't found the wiki:boot_splah page  :o

curaga why have you abandoned the fbv to view an image at boot? It's the fliking the cause?
It is an equivalent soft for tc 6.x version (just to view an image like the fbv you have made for 2.x or 1.x version)?
How did you run the fbv at boot?
You say
Quote
then in the start of tc-config start a framebuffer image viewer, and in the end kill it
what is tc-config ? How to start framebuffer at boot?
Best regards,
imaad

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: splash screen feature is enabled ?
« Reply #6 on: February 25, 2015, 04:15:52 PM »
You can get fbv by entering this in a terminal
Code: [Select]
cd /etc/sysconfig/tcedir/optional
wget http://tinycorelinux.net/4.x/x86/tcz/fbv.tcz
tce-load -i fbv

fbv does work on TC 6.x.
To test fbv, exit out of X (Ctrl+Alt+Backspace) and enter
Code: [Select]
/local/bin/fbv -a -i /usr/local/share/pixmaps/logo.png

/etc/init.d/tc-config  needs to be modified to start fbv - preferably before any messages are shown I guess - this needs remastering of  core.gz . Also, fbv needs to be added to core.gz so it is available before extensions are getting loaded.

I believe framebuffer is enabled by  vga=  boot code?
Download a copy and keep it handy: Core book ;)

Offline imaad

  • Jr. Member
  • **
  • Posts: 70
  • stii ... nu intodeauna stii
Re: splash screen feature is enabled ?
« Reply #7 on: February 27, 2015, 02:02:29 PM »
Misalf I implemented fbv and modify tc-config to start fbv at boot of the system.
Everything work corectly the image is show at start of system, but the booting not continue, I need to tap Enter or Space and the system continu to boot as normally.
I try to put the command even in background but is the same think.
Code: [Select]
/local/bin/fbv -a -i /usr/local/share/pixmaps/logo.png &
It this comportment normal or I missed something ?
Thank for info.

You can get fbv by entering this in a terminal
Code: [Select]
cd /etc/sysconfig/tcedir/optional
wget http://tinycorelinux.net/4.x/x86/tcz/fbv.tcz
tce-load -i fbv

fbv does work on TC 6.x.
To test fbv, exit out of X (Ctrl+Alt+Backspace) and enter
Code: [Select]
/local/bin/fbv -a -i /usr/local/share/pixmaps/logo.png

/etc/init.d/tc-config  needs to be modified to start fbv - preferably before any messages are shown I guess - this needs remastering of  core.gz . Also, fbv needs to be added to core.gz so it is available before extensions are getting loaded.

I believe framebuffer is enabled by  vga=  boot code?
Best regards,
imaad

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: splash screen feature is enabled ?
« Reply #8 on: February 27, 2015, 02:52:59 PM »
I've done something like that in the past. First direct the console out with console=/dev/null, then in the start of tc-config start a framebuffer image viewer, and in the end kill it. [...]

I guess  console=/dev/null  is a kernel boot code?
Download a copy and keep it handy: Core book ;)

Offline imaad

  • Jr. Member
  • **
  • Posts: 70
  • stii ... nu intodeauna stii
Re: splash screen feature is enabled ?
« Reply #9 on: February 28, 2015, 03:39:25 AM »
Now it's working, I have the image at boot.
Just some remarks :
   - at the beginning the logo tiny core is show for approximately 1 second (the logo is kept in background even if my own logo is showed)
   - until the x server start I have a black screen approximately 3 seconds (I think that is because the video driver is load and the resolution change)
   - when I look in process liste the fbv is already killed (I think it's kill when the video driver is loading).

This remarks are not really a problem but I will try to fix them.
Best regards,
imaad

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: splash screen feature is enabled ?
« Reply #10 on: February 28, 2015, 05:41:47 AM »
If the image disappears for some reason, you might be able to tell fbv to redraw the image by using its slideshow feature. Note the  -d  parameter which stands for "delay" and also the REPEAT variable.
This makes fbv showing the same picture 10 times with a delay of 200 ms:
Code: [Select]
[ -e /bin/fbv ] && killall -q fbv ; /bin/fbv -a -i -d 2 `REPEAT=10; while [ $REPEAT -gt 0 ]; do REPEAT=$(($REPEAT - 1)); echo -n " /usr/local/share/pixmaps/logo.png"; done` 2>/dev/null &
After the last image is shown however, fbv will quit. Might be extendable so fbv is executed again in background after the loop to show the image once more until killed.

Not sure about the old logo staying on screen after showing another one.
the parameters  -c -u  actually do this, if they are used (also nice without  console=/dev/null  boot code).
You might be able to clear the screen with  clear  before running  fbv  again.

I have no idea about what the preferred way to kill fbv would be. Maybe it just dies when  tc-config  is done?
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: splash screen feature is enabled ?
« Reply #11 on: February 28, 2015, 06:21:54 AM »
I'm testing fbv on my netbook.
As the plymouth wiki says, intel graphics cards might make the screen resolution to change during boot. This happens for me too (even though the correct resolution is already set via vga= boot vode) and it will cause the image drawn by fbv to disappear.

There seems to be more in tc-config which interferes with fbv though.
fbv might need to be re-executed several times (or using slideshow)?

--

Full-screen ( -e  parameter) 16x16 sized pictures look crisp clean and super retro. (:
Download a copy and keep it handy: Core book ;)

Offline imaad

  • Jr. Member
  • **
  • Posts: 70
  • stii ... nu intodeauna stii
Re: splash screen feature is enabled ?
« Reply #12 on: February 28, 2015, 01:08:24 PM »
Hi Misalf,

I'm agree with you, I have a nice image if I use -p parameter.  I guess that I start an old player game.  :)

I tried to use your code, without success. No error is showed. Do I need to put fbv in "/bin" ? I have used "/local/bin/fbv" instead of "/bin/fbv".
What mean [ -e /bin/fbv ] ?

Code: [Select]
[ -e /bin/fbv ] && killall -q fbv ; /bin/fbv -a -i -d 2 `REPEAT=10; while [ $REPEAT -gt 0 ]; do REPEAT=$(($REPEAT - 1)); echo -n " /usr/local/share/pixmaps/logo.png"; done` 2>/dev/null &
Anyway if I put (restart) the fbv after the xvesa driver is load in tc-config the image is reloaded and I have no black screen.

 
Best regards,
imaad

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: splash screen feature is enabled ?
« Reply #13 on: February 28, 2015, 01:56:18 PM »
Oh, I put it in  /bin  because there is usually no  /local  directory in my file system root. It just seemed strange.
You need to change the code to point to  /local/bin/fbv .

Code: [Select]
[ -e /bin/fbv ]
This checks if the file  /bin/fbv  does exist (-e) so the rest is only executed if that is true (&&).
Download a copy and keep it handy: Core book ;)

Offline imaad

  • Jr. Member
  • **
  • Posts: 70
  • stii ... nu intodeauna stii
Re: splash screen feature is enabled ?
« Reply #14 on: February 28, 2015, 03:49:59 PM »
OK I found the problem. When I wrote the commande I put ' instead of `, so the fbv could not find the path of logo.

Everything works now. Thank

PS: It's fbv also disponible in the repo for raspberry ? I tried to find it, but I don't see fbv for arm platform.
Where can I find the source of http://tinycorelinux.net/4.x/x86/tcz/fbv.tcz to recompile it.
Best regards,
imaad