diff options
author | Manuel Reimer <manuel.reimer@gmx.de> | 2014-02-19 17:27:20 +0100 |
---|---|---|
committer | Manuel Reimer <manuel.reimer@gmx.de> | 2014-02-19 17:27:20 +0100 |
commit | d0ff6ce3b080400b6bf827180495473d778fc73e (patch) | |
tree | 42d6f30ff1a8da856592a07aec0a347ae43866f8 | |
parent | 03282468b5f42dabb58142f239637df80c8f8f61 (diff) | |
download | runvdr-extreme-d0ff6ce3b080400b6bf827180495473d778fc73e.tar.gz runvdr-extreme-d0ff6ce3b080400b6bf827180495473d778fc73e.tar.bz2 |
Added X startup with default paramtersnoxinit
-rw-r--r-- | HISTORY | 2 | ||||
-rwxr-xr-x | runvdr | 5 | ||||
-rw-r--r-- | runvdr.conf.example | 6 | ||||
-rw-r--r-- | runvdr.conf.pod | 10 |
4 files changed, 17 insertions, 6 deletions
@@ -5,6 +5,8 @@ XXXX-XX-XX: Version X.X.X - New: Replaced xinit with own, builtin, X server handling. Note: Please be sure to have the "-noreset" parameter in your "XSERVER" command line or the detach feature of softhddevice will fail. +- New: Now it is possible to set "XSERVER" to "1" to get the X server started + with recommended default parameters. Thanks to Copperhead for the hint. 2013-10-20: Version 0.5.0 - New: If VDRPRG is not given, runvdr-extreme defaults to "vdr" in $PATH @@ -696,7 +696,7 @@ function StartXServer() { SIG= wait $XSERVERPID - # If anything works as expected, we should have received SIGUSR1. + # If everything works as expected, we should have received SIGUSR1. if [ "$SIG" != "USR1" ]; then echo "Xserver startup failed with exit code $?!" >&2 exit 1 @@ -838,6 +838,9 @@ if [ "$DVBRESTART" != "0" ] ; then exit 0 fi +# Set default X server command if user set "XSERVER" to "1" +[ "$XSERVER" == "1" ] && XSERVER="/usr/bin/X -nolisten tcp -noreset" + # Build up VDR command BuildCommand || exit 1 diff --git a/runvdr.conf.example b/runvdr.conf.example index 5f8a798..e540966 100644 --- a/runvdr.conf.example +++ b/runvdr.conf.example @@ -180,10 +180,12 @@ DIRNAMES= # Allow coredumps if USER= is given (debugging) # USERDUMP="1" -# Fire up own X server as output device +# Fire up own X server as output device using recommended default parameters +# XSERVER="1" +# You may also set your own X startup command like this: +# XSERVER="/usr/bin/X -nolisten tcp -config /etc/X11/xorg-runvdr.conf -noreset" # Note: You need the "-noreset" parameter if you want to use the "detach" # feature of the softhddevice output plugin -# XSERVER="/usr/bin/X -nolisten tcp -config /etc/X11/xorg-runvdr.conf -noreset :0" # X startup commands, called within the X server #function XSTARTUP() { diff --git a/runvdr.conf.pod b/runvdr.conf.pod index b4cad8a..accabd7 100644 --- a/runvdr.conf.pod +++ b/runvdr.conf.pod @@ -305,11 +305,15 @@ The command "AddPlugin" is used to load a plugin, defined by the given options. =head1 X SERVER HANDLING - XSERVER="/usr/bin/X -nolisten tcp -config /etc/X11/xorg-runvdr.conf -noreset :0" + XSERVER="1" =over 5 -Fire up own X server as output device +Fire up own X server as output device using recommended default parameters. + +You may also set your own X startup command like this: + +XSERVER="/usr/bin/X -nolisten tcp -config /etc/X11/xorg-runvdr.conf -noreset" Note: You need the "-noreset" parameter if you want to use the "detach" feature of the softhddevice output plugin @@ -323,7 +327,7 @@ feature of the softhddevice output plugin =over 5 -X startup commands, called within the X server. Please not, that commands, entered here, are called with root privileges! Be sure to use "su $USER -c" where applicable. +X startup commands, called within the X server. Please note, that commands, entered here, are called with root privileges! Be sure to use "su $USER -c" where applicable. =back |