jstrebel
Posts: 4
Joined: Mon Sep 09, 2013 7:36 pm

Auto start Framebuffer "fbi"

Mon Sep 09, 2013 8:42 pm

Hi,
I try to teach my pi to play automatically jpg files after shuting it up. My Problem is, that I need to press <CR> on the console, then the pi is displaying my pics. This is not suitable for a unattended reproduction of the photos.

Thank you for your help.

Here are my scripts:
(in /etc/rc.local) I have the following
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/home/pi/startfbi.sh
exit 0

(in /home/pi/ I have the following)
pi@raspberrypi:/home/pi# cat startfbi.sh
#!/bin/sh
/usr/bin/fbi -t 4 /media/usb0/*.jpg

forenbenutzer
Posts: 148
Joined: Thu Aug 02, 2012 7:08 pm

Re: Auto start Framebuffer "fbi"

Tue Sep 10, 2013 6:37 am

Pitendo - Case And Emulator Project - http://edv-huber.com/index.php/problemloesungen/12-pitendo

jstrebel
Posts: 4
Joined: Mon Sep 09, 2013 7:36 pm

Re: Auto start Framebuffer "fbi"

Tue Sep 10, 2013 6:44 pm

Hi, thank you for the link.
I adpted the script and it displays my jpg pictures nicely. As you see, I have no experience adding scripts into startup sequence of debian. The Issue I am having with the script you where referring me. It is executed in the status where my system its still in single user mode. Because I am displaying a endless loop of pictures my Raspi is not entering into a higher run level like rc3. This means the Raspi is not finishing the startup sequence.
How can I change that the script is not executed in rcS but in rc3 ?

Thank you for your help.
Jakob

forenbenutzer
Posts: 148
Joined: Thu Aug 02, 2012 7:08 pm

Re: Auto start Framebuffer "fbi"

Wed Sep 11, 2013 6:55 am

You could put the "loop" in an external script file and start it with an "&" after the path. The other startup processes should go on then.
Pitendo - Case And Emulator Project - http://edv-huber.com/index.php/problemloesungen/12-pitendo

jstrebel
Posts: 4
Joined: Mon Sep 09, 2013 7:36 pm

Re: Auto start Framebuffer "fbi"

Thu Sep 12, 2013 9:40 am

Thank you for your help.
Up to now I was not successful.
I switched to go the path using update-rd.d
update-rc.d apicshow defaults KK
So my external script is "triggered" in rc2.d this helps at least that my Raspi is now accessible trough ssh because it enters into multiuser mode.
Adding the "&" after *jpg does has the consequence that fbi is not executed.
I keep trying. I will post the result, assuming other forum users could be interested
Here is the external script
/home/pi# cat apicshow.sh
#!/bin/sh
echo "vor fbi";
/usr/bin/fbi -t 4 -a /media/usb0/*.jpg
exit 0

jstrebel
Posts: 4
Joined: Mon Sep 09, 2013 7:36 pm

Re: Auto start Framebuffer "fbi"

Thu Sep 12, 2013 6:23 pm

I found fbi can't run in the background.

tvjon
Posts: 769
Joined: Mon Jan 07, 2013 9:11 am

Re: Auto start Framebuffer "fbi"

Thu Sep 12, 2013 7:24 pm

jstrebel wrote:....
I keep trying. I will post the result, assuming other forum users could be interested
....
I am sure that is the case.

Have a look here too for similar:

http://www.raspberrypi.org/phpBB3/viewt ... 63&t=53964

When I get a spare moment I'll take a look at this problem too!

Return to “Graphics, sound and multimedia”