diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2011-02-17 01:44:32 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2011-02-17 01:44:32 +0100 |
commit | c3cc3a490df4937dc70cc2442c6724c4b6d956ec (patch) | |
tree | c2a58ac35d051230888a9d60ad405c44764994dc /README | |
parent | a5a5be51f1d261a43f142f8be86229f2c46b1482 (diff) | |
download | vdr-plugin-dynamite-c3cc3a490df4937dc70cc2442c6724c4b6d956ec.tar.gz vdr-plugin-dynamite-c3cc3a490df4937dc70cc2442c6724c4b6d956ec.tar.bz2 |
dynamite can call an external program if the GetTSTimeout of a device triggers
In setup.conf set dynamite.GetTSTimeoutHandler to a program you want
to execute. If the udev-property dynamite_timeout_handler_arg is set it will
be passed as the argument to it otherwise the devpath with wich the device was
attached to dynamite.
Diffstat (limited to 'README')
-rw-r--r-- | README | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -137,11 +137,20 @@ ADUM subsystem begin-of-devnode (this is what pvrinput uses) alternate command: AddUdevMonitor +"dynamite-SetGetTSTimeoutHandlerArg-v0.1" +SetGetTSTimeoutHandlerArg /dev/path/to/device arg + Sets the argument for the timout handler program. + +"dynamite-CallGetTSTimeoutHandler-v0.1" +CallGetTSTimeoutHandler arg + Calls the timout handler program with the given arguments. + Don't forget to prefix them with "plug dynamite"... Parameters in setup.conf ------------------------ dynamite.DefaultGetTSTimeout = 0 +dynamite.GetTSTimeoutHandler = /path/to/program "GetTS" watchdog ---------------- @@ -160,7 +169,11 @@ Add a rule which sets with ENV{dynamite_timeout}="10" the needed timeout value. The udev-monitor in dynamite will evaluate this device-property. For now this only works for attaching via udev-monitor! example for udev rule: -ACTION=="add", SUBSYSTEM=="dvb", ENV{DVB_DEVICE_TYPE}=="frontend", ENV{dynamite_timeout}="10" +ACTION=="add", SUBSYSTEM=="dvb", ENV{DVB_DEVICE_TYPE}=="frontend", ENV{dynamite_timeout}="10", ENV{dynamite_timeout_handler_arg}="%k" + +After the device is detached and dynamite.GetTSTimeoutHandler in setup.conf is set +to a path, this program is called. If the udev-property "dynamite_timeout_handler_arg" +is not present the devpath is provided as argument, with which the device was attached. Known issues ------------ @@ -173,4 +186,5 @@ me how to do this... TODO ---- * implement interface for other plugins to use the udev monitor +* enumerate udev-properties on devices found at startup * implement some OSD functionality for detaching, locking etc. |