Corry
Posts: 5
Joined: Fri Jul 20, 2012 6:13 pm

Anybody know how to make a splash screen

Fri Jul 20, 2012 6:16 pm

Anybody got any ideas on how to make a splash screen instead of the boot messages?
Thanks

Corry
Posts: 5
Joined: Fri Jul 20, 2012 6:13 pm

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 12:20 pm

Nobody? :(

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 3:15 pm

Sure this will put a nice splash screen on bootup

Code: Select all

load   MyBmpImage, ScreenBuffer                  
sync                                              
end                                                

MyBmpImage:                                      
file 'Bg.bmp'                           
align 4                                         
ProgramSize:                                    
ScreenBuffer:                                               
Batteries not included, Some assembly required.

Corry
Posts: 5
Joined: Fri Jul 20, 2012 6:13 pm

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 4:01 pm

DexOS wrote:Sure this will put a nice splash screen on bootup

Code: Select all

load   MyBmpImage, ScreenBuffer                  
sync                                              
end                                                

MyBmpImage:                                      
file 'Bg.bmp'                           
align 4                                         
ProgramSize:                                    
ScreenBuffer:                                               
Thanks for the reply.
Where abouts would I put that code, and where would I place the bmp file?

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 5:53 pm

Sorry it was a joke, it would put a splash screen, but little else.
As it's for bare metal coding, without a OS (eg: no linux).
And i sure thats not what you want.
Batteries not included, Some assembly required.

Corry
Posts: 5
Joined: Fri Jul 20, 2012 6:13 pm

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 6:13 pm

DexOS wrote:Sorry it was a joke, it would put a splash screen, but little else.
As it's for bare metal coding, without a OS (eg: no linux).
And i sure thats not what you want.
:cry:

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4224
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 6:50 pm

fbsplash is probably what you want

http://fbsplash.alanhaggai.org/

mikerr
Posts: 2825
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 7:23 pm

fbi - linux framebuffer imageviewer

Code: Select all

 sudo apt-get install fbi 
then run it as

Code: Select all

fbi -a /usr/share/images/desktop-base/spacefun-grub-widescreen.png 
Android app - Raspi Card Imager - download and image SD cards - No PC required !

Corry
Posts: 5
Joined: Fri Jul 20, 2012 6:13 pm

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 7:34 pm

mikerr wrote:fbi - linux framebuffer imageviewer

Code: Select all

 sudo apt-get install fbi 
then run it as

Code: Select all

fbi -a /usr/share/images/desktop-base/spacefun-grub-widescreen.png 
Will this display the image on boot?
Do I have to put the line 'fbi - linux framebuffer imageviewer' in my config file or anything?

mikerr
Posts: 2825
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Anybody know how to make a splash screen

Sat Jul 21, 2012 7:38 pm

No, the "fbi - a /usr/share/images..." line is what displays an image.

Try it at the command line.


Ultimately you'd put that in the startup (backgrounded), but to be honest I've just noticed this is in the beginners section,
so not so sure you should be editing the startup scripts as you could easily end up with an unbootable SD card, needing a reimage.
Android app - Raspi Card Imager - download and image SD cards - No PC required !


Shaner3721
Posts: 2
Joined: Thu Oct 18, 2012 5:51 am

Re: Anybody know how to make a splash screen

Tue Nov 27, 2012 6:58 am

Hey All,

New here to the raspberry pi and hoping to learn a lot! Anyway, I have been trying to get a splash screen setup for a while now, followed the instructions at the above post and all commands seemed to run great... but I don't see the image when I reboot. Any ideas?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Anybody know how to make a splash screen

Tue Nov 27, 2012 9:56 am

Did you try the linked tutorial ?

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Shaner3721
Posts: 2
Joined: Thu Oct 18, 2012 5:51 am

Re: Anybody know how to make a splash screen

Tue Nov 27, 2012 3:50 pm

ghans wrote:Did you try the linked tutorial ?

ghans
Yes, I have already went through that process and it seems to work, but then I don't get a splash screen...

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Anybody know how to make a splash screen

Sun Dec 02, 2012 7:16 pm

Error messages ?
Any peculiar behaviour ?

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

haxxa
Posts: 5
Joined: Fri Jul 27, 2012 11:44 am

Re: Anybody know how to make a splash screen

Thu Dec 06, 2012 2:06 pm

On boot it shows that the script has launched however has [FAIL] next to it. :(

Patfeesh
Posts: 7
Joined: Thu Dec 06, 2012 11:47 pm

Re: Anybody know how to make a splash screen

Fri Jan 04, 2013 4:26 pm

I followed the same guide and got a fail too. Right at the start it returns:
asplashscreen: no such file or directory

I've executed "fbi /etc/splash.png" in the terminal when the pi is fully loaded and it displays the image fine. I've also confirmed that both the fbi file and the splash image are in the correct locations in the file system over FTP.

Any ideas?

Thanks

Patfeesh
Posts: 7
Joined: Thu Dec 06, 2012 11:47 pm

Re: Anybody know how to make a splash screen

Fri Jan 04, 2013 8:32 pm

Solved (and caused) my own problem.

I had authored my script file in notepad++ in windows, which makes it unreadable as windows and UNIX deal with /n etc differently.

Write your script on a UNIX box or SSH into the pi and use nano. That fixed it for me

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Anybody know how to make a splash screen

Mon Jan 07, 2013 3:04 pm

Patfeesh wrote:I had authored my script file in notepad++ in windows, which makes it unreadable as windows and UNIX deal with /n etc differently.

Write your script on a UNIX box or SSH into the pi and use nano. That fixed it for me
I wonder if RPi Linux distros come with the 'dos2unix' utility included? ;)
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

norex
Posts: 7
Joined: Wed Jan 09, 2013 12:50 pm

Re: Anybody know how to make a splash screen

Wed Jan 09, 2013 12:56 pm

I got this to work, dispute experiencing the copy paste issue. Only problem is... now when ever my pi boots, it will display the image for a couple of seconds and then goes into a blank screen. I have my resolution set to 1920x1200 w/32bit. Anyone else experience this?

:oops: Full disclosure, the OS is still running in the background, I know because I have logged in and run startx while in the blank screen state. The screen becomes visible on once X is loaded.

Patfeesh
Posts: 7
Joined: Thu Dec 06, 2012 11:47 pm

Re: Anybody know how to make a splash screen

Wed Jan 09, 2013 2:51 pm

yes the same thing happens with me. I've left it there in the hope that any issues on boot dont result in a screen full of error text and instead sticks with the splash screen

User avatar
MattHawkinsUK
Posts: 538
Joined: Tue Jan 10, 2012 8:48 pm
Location: UK
Contact: Website

Re: Anybody know how to make a splash screen

Wed Jan 09, 2013 4:06 pm

In Notepad++ on Windows it tells you what format the file is in. If it says "Dos\Windows" in the lower-right status bar then go to :

Edit > EOL Conversion > UNIX Format

The status in the lower-right will change to "UNIX". You can then FTP to your Pi and not have any problems. When you re-open the text file it will already be in UNIX format and you can make changes, re-upload etc.
My Raspberry Pi blog and home of the BerryClip Add-on board : http://www.raspberrypi-spy.co.uk/
Follow me on Google+, Facebook, Pinterest and Twitter (@RPiSpy)

norex
Posts: 7
Joined: Wed Jan 09, 2013 12:50 pm

Re: Anybody know how to make a splash screen

Thu Jan 10, 2013 2:08 pm

MattHawkinsUK wrote:In Notepad++ on Windows it tells you what format the file is in. If it says "Dos\Windows" in the lower-right status bar then go to :

Edit > EOL Conversion > UNIX Format

The status in the lower-right will change to "UNIX". You can then FTP to your Pi and not have any problems. When you re-open the text file it will already be in UNIX format and you can make changes, re-upload etc.
Yea, I figured that out, but this going to a blank screen thing is killing me. So the way this works is that it loads a slide show at boot. When I run it verbose it is showing that 2 images are listed to show. Problem is, when it goes to the next image (a full black screen), it never exits and continues the boot sequence in the background. What's even stranger is that I can still log in, so fbi couldn't still be running could it?

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Anybody know how to make a splash screen

Thu Jan 10, 2013 3:13 pm

You could use the 'ps' (process list) utility to see if fbi is still running - maybe it does not exit by itself from the slideshow mode. Or maybe fbi leaves the display in a graphical mode or messes up the framebuffer palette...
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

User avatar
skidoobond
Posts: 40
Joined: Mon Feb 25, 2013 8:26 pm

Re: Anybody know how to make a splash screen

Sat Mar 09, 2013 8:25 pm

You need a script that will pkill fbi when you want the splash screen to be over. Fbi, AFAIK, doesn't exit by itself.

Return to “General programming discussion”