1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
=for comment
Compile me with:
pod2man -s 5 -c runvdr -r runvdr runvdr.conf.pod | gzip > runvdr.conf.5.gz
=head1 NAME
runvdr.conf - Configuration file for runvdr-extreme
=head1 SYNOPSIS
/etc/runvdr.conf
=head1 DESCRIPTION
The file B<runvdr.conf> configures the runvdr-extreme VDR startup script.
=head1 OPTIONS
VDRPRG=
=over 5
The VDR binary to run
=back
VIDEODIR=
=over 5
Use VIDEODIR as video directory.
=back
CONFIGDIR=
=over 5
Read config files from directory CONFIGDIR
=back
LOCALEDIR=
=over 5
Location of locale files for VDR.
=back
LIBDIR=
=over 5
Search for plugins in directory LIBDIR.
=back
CACHEDIR=
=over 5
Location where VDR and plugins save cache files
=back
RESDIR=
=over 5
Location from where plugins read resource files
=back
USER=
=over 5
Run as user VDRUSER in case vdr was started as user 'root'. Starting vdr as 'root' is necessary if the system time shall be set from the transponder data, but for security reasons vdr can switch to a lesser privileged user id during normal operation.
=back
EPGFILE=
=over 5
Write the EPG data into EPGFILE. Use EPGFILE=- to disable this. If EPGFILE is a directory, the file epg.data will be created in that directory.
=back
RECORDCMD=
=over 5
Call RECORDCMD before and after a recording.
=back
SHUTDOWN=
=over 5
Call SHUTDOWN to shutdown the computer.
=back
AUDIO=
=over 5
Send Dolby Digital audio to stdin of the command AUDIO
=back
DVBDEVICE=()
=over 5
Use only the given DVB device. Set one or more DVB device numbers like this: (0 1 2). Defaults to all devices.
=back
LOGLEVEL=
=over 5
Set logging to level. 0 = no logging, 1 = errors only, 2 = errors and info, 3 = errors, info and debug. The default logging level is 3. If logging should be done to LOG_LOCALn instead of LOG_USER, add '.n' to LEVEL, as in 3.7 (n=0..7).
=back
MUTE=
=over 5
Mute audio of the primary DVB device at startup. Set to anything to mute, keep clear for not.
=back
SVDRPPORT=
=over 5
Use SVDRPPORT port for SVDRP. A value of 0 turns off SVDRP. The default SVDRP port is 6419. You need to edit the file svdrphosts.conf in order to enable access to the SVDRP port.
=back
WATCHDOG=
=over 5
Activate the watchdog timer with a timeout of sec seconds. A value of 0 (default) disables the watchdog.
=back
DAEMON=
=over 5
Run in daemon mode (implies NOKBD=1). Set to anything to activate.
=back
GRAB=
=over 5
Write images from the SVDRP command GRAB into the given directory. GRAB must be the full path name of an existing directory, without any "..", double '/' or symlinks. By default, or if GRAB=- is given, grabbing images to disk is disabled.
=back
LIRC=
=over 5
Use a LIRC remote control device. If set to 1, vdr uses /var/run/lirc/lircd. If not set, or set to 0, don't use LIRC.
=back
NOKBD=
=over 5
Don't use the keyboard as an input device. Set to anything.
=back
VFAT=
=over 5
encode special characters in recording names to avoid problems with VFAT file systems
for backwards compatibility (same as DIRNAMES=250,40,1)
=back
DIRNAMES=PATH[,NAME[,ENC]]
=over 5
Set the maximum directory path length to PATH; if NAME is also given, it defines the maximum directory name length; the optional ENC can be 0 or 1, and controls whether special characters in directory names are encoded as hex values (default: 0); if PATH or NAME are left empty (as in ",,1" to only set ENC), the defaults apply
=back
USERDUMP="1"
=over 5
Allow coredumps if USER= is given (debugging)
=back
RUNVDRPID=/var/run/runvdr.pid
=over 5
Store PID of runvdr into a file?
=back
TERMINAL=
=over 5
Set the controlling terminal. For example, /dev/tty8
=back
SWITCHTERMINAL=
=over 5
Switch console to some terminal? Needs terminal number. For example, SWITCHTERMINAL=8
=back
LANGUAGE="de_DE@euro"
=over 5
Set language for locale to run VDR on. This affects sort options in recordings.
=back
VDR_CHARSET_OVERRIDE="ISO-8859-15"
=over 5
Set character set that VDR should use
=back
MAXRESTARTS=
=over 5
If VDR restarts automatically, only do this number of restarts before giving up. Setting this to 0 will cancel any restart attempt of VDR. Default is 5.
=back
RESTARTTIME=
=over 5
Only count restart attempts where VDR did not run longer than # seconds Setting this to 0 will never count restarts, and VDR can restart forever. Default is 10.
=back
DVBUNLOADONEXIT=
=over 5
Should we unload the DVB driver when finally exiting runvdr? If not set, or set to 0, exit without unloading drivers
=back
WRAPPER=
=over 5
Command wrapper. Will be placed in front of the VDR command.
Example:
WRAPPER="gdb --args"
WRAPPER="valgrind"
=back
TERMTIMEOUT=
KILLTIMEOUT=
=over 5
Timeouts for SIGTERM and SIGKILL when stopping VDR. TERMTIMEOUT defaults to 20 secods, KILLTIMEOUT to 5 seconds.
=back
=head1 PLUGIN LOADING
AddPlugin hello -b -a "A B C"
=over 5
The command "AddPlugin" is used to load a plugin, defined by the given options. The first word in options must be the name of an existing vdr plugin, optionally followed by a blank separated list of command line options for that plugin. If options contains any blanks, you need to enclose it in quotes, like for example
=back
=head1 X SERVER HANDLING
XSERVER="/usr/bin/X -nolisten tcp -config /etc/X11/xorg-runvdr.conf :0"
=over 5
Fire up own X server as output device
=back
function XSTARTUP() {
while true ; do sleep 5; vdr-sxfe; done &
SXFEPID=$!
}
=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.
=back
function XSHUTDOWN() {
kill $SXFEPID
}
=over 5
X shutdown commands, called within the X server. Again, as with XSTARTUP, commands are executed with root privileges!
=back
=head1 DVB DRIVER LOADING/RELOADING
function DVBLOAD() {
modprobe ....
}
=over 5
Command to load the DVB drivers.
DVBLOAD will be launched before VDR starts and whenever the drivers need to be reloaded.
=back
function DVBUNLOAD() {
rmmod ....
}
=over 5
Command to unload the DVB drivers.
DVBUNLOAD will be launched whenever the drivers need to be reloaded.
=back
=head1 ADDITIONAL PARAMETERS
AddParams --whatever --you --need
=over 5
Additional parameters to pass to VDR directly, without parsing: Add them without extra quoting, like AddParams -a -b -c "Some Parameter"
=back
|