From: Steven B. <sab...@ea...> - 2003-10-21 16:27:58
|
Thank you very much Jason for posting this -- it was *exactly* the starting point I was looking for. I'm now successfully receiving using my Hauppauge remote, and transmitting using my Actisys 200L. Some additional notes for anyone trying this: - If you're using devfs (as Mandrake 9.1 does in my case...), you'll find it complains in dmesg about /dev/lirc not being a directory as you modprobe the two devices and load the two daemons. The solution I used here was to rm the /dev/lirc node and let devfs make it's own nodes instead. It puts them in /dev/lirc/0 and /dev/lirc/1 in the order loaded. You then specify the correct path in each lircd call with the -d parameter. i.e.: /usr/local/sbin/lircd -d /dev/lirc/0 /usr/local/lirc-xmit/sbin/lircd -d /dev/lirc/1 /etc/lirc-xmit.conf - It's important to specify the proper lircd device when doing a send as well. Here's an example: /usr/local/lirc-xmit/bin/irsend -d /usr/local/lirc-xmit/dev/lircd SEND_ONCE gi-motorola-dct2000 3 ...will transmit a 3 using the transmit device. (I'm not sure it makes any difference which irsend you use, BTW, but I'm specifying the path just in case...) Now if only my cable box would consistently pick up what I transmit... <sigh> -->Steve Bennett On Fri, 2003-10-17 at 08:28, Jason Tackaberry wrote: > On Fri, 2003-10-17 at 00:06, Chris Morgan wrote: >> I haven't been able to find much information about this issue online. I've >> read that only one module can be loaded at one time. Is this an issue of >> lirc architecture that can be enhanced to support multiple modules? > > Actually I just did this last week. It wasn't that hard, but is kinda > kludgey. You have to compile a second copy of lirc using different > major device number, dev directory, localstate dir, and prefix. > > My normal lirc install with --prefix=/usr/local is used for my homebrew > IR receiver with lirc_serial on com2. I also have an Actisys IR200L on > com1, so I rerun ./setup.sh and configure it for that device, save > configuration and exit. > > Then I ran configure.sh this way (note configure.sh, not configure): > > ./configure.sh --prefix=/usr/local/lirc-xmit > --localstatedir=/usr/local/lirc-xmit/var > --with-devdir=/usr/local/lirc-xmit/dev --with-major=62 > > After make install, create these directories under /usr/local/lirc-xmit: > var/log/, var/run/, and dev/. Then, in the .../lirc-xmit/dev directory, > mknod lirc c 62 0. > > So, in my case, I am able to load both lirc_serial and lirc_sir because > they don't use the same major device number. I load > /usr/local/sbin/lircd normally, and then create a new config file for > lirc-xmit under /etc called lircd-xmit.conf. Then I load > /usr/local/sbin/lirc-xmit/sbin/lircd /etc/lirc-xmit.conf. > > When I want to use my IR transmitter, I make sure I don't use > /usr/local/bin/irw but rather /usr/local/lirc-xmit/bin/irw. Everything > works fine. |