Kodi Community Forum

Full Version: Any way to start vdr when launching xbmc?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have problems with vdr automatically loading at boot, as it starts too early and i can't view any channels..

Any way to disable auto-load vdr and start it when I fire up xbmc?

Thanks
It has to be running before XBMC starts, otherwise XBMC won't pick it up anymore.

Can't you write a simple bash script which first launches VDR, then waits a while and then proceeds to starting XBMC?
Hopelessone Wrote:Hi,

I have problems with vdr automatically loading at boot, as it starts too early and i can't view any channels..

Any way to disable auto-load vdr and start it when I fire up xbmc?

Thanks

Do you mean the other way round?

XBMC is starting before VDR?
Or is the VDR frontend displaying?
MartijnGP Wrote:Can't you write a simple bash script which first launches VDR, then waits a while and then proceeds to starting XBMC?

not really...

I moved the file:
sudo gedit /etc/init.d/vdr

and put it in my home directory

I start it with:
Code:
sudo ./vdr start
but cant get sudoers to work with it..

so i can start it:
Code:
#!/bin/bash
./vdr start
I think the best approach is to use udev rules and upstart. udev checks when the dvb device is ready and signals upstart to launch vdr. Then start XBMC standalone as session or put it in your autostart folder.
I dont know if it is the dvb device i tried editing the vdr start-stop script:
Quote:startvdr()
{
ENABLED="1"
if [ "$ENABLED" != "0" ] ; then
# only start vdr if there is no other instance running
if start-stop-daemon --start --startas $DAEMON --test \
--name $(basename $DAEMON) --pidfile $PIDFILE >/dev/null
then
getplugins
mergecommands "commands"
mergecommands "reccmds"
configure_console_input

if [ "$VFAT" == "1" ]; then
OPTIONS="--vfat $OPTIONS"
fi

if [ -n "$LIRC" ]; then
LIRC_OPT="--lirc=$LIRC"
else
LIRC_OPT="--lirc"
fi

while [ ! -d /dev/dvb/adapter0 ] ; do
sleep 2
done

sleep 15

start-stop-daemon --start --quiet --startas $DAEMON --background \
--name $(basename $DAEMON) --pidfile $PIDFILE --make-pidfile -- \
-v $VIDEO_DIR -c $CFG_DIR -L $PLUGIN_DIR -r $REC_CMD \
-s $VDRSHUTDOWN -E $EPG_FILE -u $USER -g /tmp \
--port $SVDRP_PORT $LIRC_OPT $PLUGINS $OPTIONS $REDIRECT

else
echo -n " - seems to be running already"
fi
else
echo -n " - aborted (to enable the daemon, edit /etc/default/vdr)"
fi
}

but same result...