################################################################################# # # # The following configuration file is generated automatically by the yaVDR # # system. Don't change this file as every update of yaVDR will overwrite # # the local changes. Instead put your required customizations # # into /etc/yavdr/templates_custom/ based on the original templates # # under /usr/share/yavdr/templates. # # # # http://www.yavdr.org/developer-zone/template-overview/ # # # # # ################################################################################# # yavdr-frontend - Starts xine or vdr-sxfe # description "yavdr-frontend" author "Gerald Dachs " start on ((started vdr and stopped openbox-tools) or vdr-frontend-restart or resume) stop on stopping vdr or suspend or stopping openbox nice -10 respawn pre-start script if [ -e /tmp/.standalone ]; then vdr-dbus-send /Remote remote.Disable ||: exit 1 fi end script env HOME=/var/lib/vdr #env XINE_BUFFER_LOG=1 env USE_AUTOCROP=0 export USE_AUTOCROP script export DISPLAY=:1`dbget vdr.tempdisplay` #ASPECT_RATIO="anamorphic" GEOMETRY=`xrandr | grep "\*" | cut -d" " -f4` ## Adding Xine ATMO-Post Plugin #XINEOPTS="$XINEOPTS --post=dfatmo:driver=serial,driver_param=/dev/ttyUSB0,top=1,bottom=1,left=1,right=1,brightness=150,enabled=1,filter_delay=2000" #XINEOPTS="-G $GEOMETRY -A alsa --config /etc/xine/config --keymap=file:/etc/xine/keymap --post vdr --post vdr_video --post vdr_audio --verbose=2 --no-gui --no-logo --no-splash --deinterlace -pq" #XINEOPTS="$XINEOPTS --post=atmo:driver=classic,driver_param=/dev/ttyUSB0,top=1,bottom=1,left=1,right=1,brightness=150,analyze_size=0,overscan=0,enabled=1" #XINEOPTS="$XINEOPTS --post=dfatmo:driver=serial,driver_param=/dev/ttyUSB0" test -f /etc/default/xine && . /etc/default/xine XINEOPTS="-G $GEOMETRY -A alsa --config /etc/xine/config --keymap=file:/etc/xine/keymap --post vdr --post vdr_video --post vdr_audio --verbose=2 --no-gui --no-logo --no-splash --deinterlace -pq --post=dfatmo:driver=serial,driver_param=/dev/ttyUSB0" if [ -n "$ASPECT_RATIO" ]; then XINEOPTS="$XINEOPTS --aspect-ratio=$ASPECT_RATIO" fi if [ "$USE_AUTOCROP" = "1" ]; then XINEOPTS="$XINEOPTS --post autocrop:enable_autodetect=1,enable_subs_detect=1,soft_start=1,stabilize=1" fi while [ ! -e /tmp/vdr-xine/stream ] ; do sleep 0.1 ; done while ! grep -q "^ 1" /proc/asound/cards ; do sleep 1 ; done while ! grep -q "^ 0" /proc/asound/cards ; do sleep 1 ; done exec start-stop-daemon --start --exec /usr/bin/xine --user vdr --chuid vdr \ -- $XINEOPTS vdr:/tmp/vdr-xine/stream#demux:mpeg_pes &> /tmp/vdr-frontend.log end script