From: Julian C. <jul...@vi...> - 2003-01-21 08:56:27
|
Someone asked about this and I wanted to do the same thing. This is the quick fix solution that worked for me using the CVS sources: Scenario: Wintv i2c for receive parallel port homebrew for transmit Method: a) Run two instances of lircd, one for each remote, on different devices b) use the internet socket instead of the unix socket for sending Procedure: 1) create /dev/lirc1 major - 61, minor =1 2) alias lirc_i2c to char-major-61-0 3) alias lirc_parallel to char-major-61-1 4) in a new source tree run setup and select parallel 5) edit config.h and change to this: #define DEV_LIRCD "lirctxd" #define PID_LIRCD "lirctxd.pid" 6) make, make install 7) rename /usr/local/sbin/lircd to /usr/local/sbin/lirctxd 8) in a new source tree copy the attached patched irsend.c to the tools directory 9) run setup and select wintv, make, make install 10) edit the service start script (/etc/rc.d/init.d/lirc on RedHat): start) echo -n "Starting Infrared Remote Control: " daemon lircd -d /dev/lirc0 daemon lirctxd -l -d /dev/lirc1 daemon lircmd echo touch /var/lock/subsys/lirc ;; stop) echo -n "Shutting down Infrared Remote Control: " killproc lircmd killproc lirctxd killproc lircd echo rm -f /var/lock/subsys/lirc ;; 11) Everything should work as normal but to send codes use: irsend -p send_once <remote> <code> ... to send via the internet socket Maybe something like this can be built-in ? Julian |