[mythtv-users] need help with my irblaster.info irblaster w. lirc/MythTV

Joe Auty joe at netmusician.org
Wed Oct 3 04:32:06 UTC 2007


Nick Morrott wrote:
> On 02/10/2007, Joe Auty <joe at netmusician.org> wrote:
> 
>> I've compiled and installed lirc from source using the following build
>> options:
>>
>> --prefix=/usr --with-transmitter --with-driver=hauppauge
>> --with-driver=serial
>>
>> Doing the following, I'm getting the connect to socket error
>>
>> # irsend --device=/dev/lirc0 SEND_ONCE dish 3
>> irsend: could not connect to socket
>> irsend: Connection refused
>>
>>
>> The irsend manpage says the following:
>>
>>  If lircd is not running (or /dev/lircd lacks write permissions) rc
>> aborts with the following diagnostics:
>>        "irsend: could not connect to socket"
>>        "irsend: Connection refused" (or "Permission denied").
>>
>>
>>
>> if lircd is running as root, this would rule out permission issues,
>> right? Any ideas what I should look into here?
> 
> I would configure another lircd socket, /dev/lircd1, attached to the
> serial transmitter's LIRC device (likely /dev/lirc1). I think your
> system is trying to use /dev/lircd which is attached to the Hauppauge
> device, which does not support sending.
> 
> You can do this if using two different LIRC kernel modules such as
> lirc_serial and lirc_i2c. I think you still have to compile 2 separate
> instances (with unique major/minor numbers, info on the MythTV wiki)
> if using lirc_serial with two different serial port devices.
> 

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
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
root     21533  0.0  0.0   5024   832 pts/1    S+   00:25   0:00 grep lirc



I've compiled lirc with support for lirc_i2c, lirc_pvr150, lirc_serial.
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.

I now have three device nodes:

/dev/lircd
/dev/lirc0
/dev/lirc1


I'm still getting:

irsend: could not connect to socket
irsend: Connection refused



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"


MODULES="lirc_i2c lirc_pvr150 lirc_dev lirc_serial"



Can you suggest anything I can try? Perhaps I should see if I can find
an lirc list?





-- 
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
joe at netmusician.org


More information about the mythtv-users mailing list