[mythtv-users] need help with my irblaster.info irblaster w. lirc/MythTV
Joe Auty
joe at netmusician.org
Thu Oct 4 23:57:42 UTC 2007
Nick Morrott wrote:
> On 03/10/2007, Joe Auty <joe at netmusician.org> wrote:
>> Hmmm.. Well, I found these instructions here:
>>
>> https://help.ubuntu.com/community/Install_Lirc_Feisty
>>
>> (check out "setting up two or more devices". I have two daemons now:
>>
>> # ps aux | grep lirc
>> root 5166 0.0 0.0 0 0 ? S Oct02 0:00 [lirc_dev]
>> root 21363 0.0 0.0 3848 552 ? Ss 00:22 0:00
>> /usr/sbin/lircd --device=/dev/lirc0 -d /dev/lirc0 --output=/dev/lircd
>> --listen
>
> You still have a duplicate device entry - is there a --device=x
> argument somewhere else in your lircd startup script? I'd bet that
> --device=/dev/lirc0 is listed before $LIRCD_ARGS in your
> /etc/initd/lirc file, which is why is always added to the lircd
> command line.
>
Firstly, sorry for the slow response here...
I now have what appears to be lircd correctly running and monitoring my
two devices:
# ps aux | grep lirc
root 5411 0.0 0.0 0 0 ? S 19:46 0:00 [lirc_dev]
root 5440 0.0 0.0 3848 556 ? Ss 19:46 0:00
/usr/sbin/lircd -d /dev/lirc0 --output=/dev/lircd --listen
root 6316 0.0 0.0 5940 644 ? Ss 19:49 0:00
/usr/sbin/lircd -d /dev/lirc1 --output=/dev/lircd1 --connect=localhost
8765 --pidfile=/var/run/lircd2.pid
Still no luck with my irsend though, see below for more details...
>> root 21365 0.0 0.0 5944 648 ? Ss 00:22 0:00
>> /usr/sbin/lircd --device=/dev/lirc0 -d /dev/lirc1 --output=/dev/lircd1
>> --connect=localhost 8765 --pidfile=/var/run/lircd2.pid
>
> This is not good. You specify two different LIRC devices on the same
> line - /dev/lirc0 and /dev/lirc1. You only want /dev/lirc1 here. See
> my above comments about the extra --device argument. Also, the colon
> between localhost and the port number seems to be missing in the ps
> output, but you do include it below, which is odd.
>
>> I've compiled lirc with support for lirc_i2c, lirc_pvr150, lirc_serial.
>
> Which Hauppage card are you using? If you're using a PVR card that
> *does not* support IR blasting (or you are not using it) you *do not*
> want the lirc_pvr150 module listed there. If you do want to use the IR
> blaster on a suitably-equipped Hauppauge card, you *do not* want
> lirc_i2c listed, AIUI.
>
I'm using the 250. AFAIK, it does not include built in IR blasting. I do
have a serial IR blaster... I've removed the pvr150 module:
s# lsmod | grep lirclirc_serial 16160 0
lirc_i2c 13316 2
lirc_dev 18504 2 lirc_serial,lirc_i2c
i2c_core 26496 12
cx88xx,bttv,lirc_i2c,i2c_ec,msp3400,saa7115,tuner,nvidia,i2c_viapro,ivtv,i2c_algo_bit,tveeprom
My setup is Hauppauge remote -> Hauppauge receiver, serial IR blaster ->
sat box. The transmitting is what is not working now, receiving is fine.
>> In adding the serial module it asked for the IO Port and IRQ for the
>> serial device. I didn't know what to put here, so I just used the
>> defaults (how can I determine what my IRQ and address space is? Is this
>> in the BIOS?). It also asked me whether software would be sending the
>> carrier signal. I said yes.
>
> You can check dmesg for your serial port information.
>
I've done so, reconfigured the lirc_serial module, and now I'm seeing
the following at startup:
# dmesg | grep serial
[ 18.700461] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 32.229127] tveeprom 0-0050: Hauppauge model 32062, rev C199, serial#
8552356
[ 49.343566] lirc_serial: auto-detected active high receiver
>> I now have three device nodes:
>>
>> /dev/lircd
>> /dev/lirc0
>> /dev/lirc1
>
> You are missing /dev/lirc1, probably because the second execution of
> lircd is failing.
>
>> I'm still getting:
>>
>> irsend: could not connect to socket
>> irsend: Connection refused
>
This is the error I'm still getting...
> I think /dev/lircd is still talking to the wrong device, and
> /dev/lircd1 is not being created.
>
>> my /etc/lirc/hardware.conf includes:
>>
>> LIRCD_ARGS="-d /dev/lirc0 --output=/dev/lircd --listen"
>> LIRCD2_ARGS="-d /dev/lirc1 --output=/dev/lircd1 --connect=localhost:8765
>> --pidfile=/var/run/lircd2.pid"
>
> Have you updated the startup script to run the second instance? It
> looks like you have.
>
For some reason the startup script is not starting up the second
instance on its own... I'm doing that manually for now.
Thanks for all your help and patience!
--
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
joe at netmusician.org
More information about the mythtv-users
mailing list