Cannot exit omxplayer autorun rc.local - Raspberry Pi Forums


greets all!

have edited rc.local in order 3 things upon startup:
  • connect using sakis3g (usb 3g dongle)
  • looping video omxplayer @ same time as
  • run forever looping executable (which have written in c) in background
having 2 problems appreciate with:
  • if sakis3g fails connect, try again.
  • the terminal not respond commands while playing video (i can't stop video , stuck in infinite loop, forces me power down pi , edit rc.local on computer)
knowledge terminal, shells, , rpi quite crude, far understand it, while program running terminal, not listen keyboard actions. had problem executable mentioned above, inside executable wrote small function listens keypress , exits executable.

if advise how fix this, great! thought of potential solution asking sakis3g connect opening omxplayer , looping video within executable. run executable rc.local. i'm not sure how this. see below have appended rc.local

code: select all

sudo /usr/bin/modem3g/sakis3g connect sleep 3 omxplayer --loop /home/pi/video.mp4 sudo /home/pi/desktop/executable  exit 0 
in advance
edit: forgot include put in rc.local

yungroobz wrote:

code: select all

sudo /usr/bin/modem3g/sakis3g connect sleep 3 omxplayer --loop /home/pi/video.mp4 sudo /home/pi/desktop/executable  exit 0
couple of things
  • your rc.local script never finishes. when omxplayer loops ever, executable never gets run
  • you don't need use sudo in rc.local run root
  • the rc.local script not attached terminal
try:

code: select all

/usr/bin/modem3g/sakis3g connect sleep 3 omxplayer --loop /home/pi/video.mp4 & /home/pi/desktop/executable &  exit 0


raspberrypi



Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support