[mythtv-users] Zapway and LIRC Issue

Nick knowledgejunkie at gmail.com
Sun Feb 26 00:49:18 UTC 2006


On 25/02/06, Ben Curtis <mythtv at nosolutions.com> wrote:

> I've got /dev/lirc pointing to /dev/ttyS0.  Whenever I start irw, I get:
>
> Feb 25 18:46:59 tvserver lircd: lircd(serial) ready
> Feb 25 18:47:01 tvserver lircd: accepted new client on /dev/lircd
> Feb 25 18:47:01 tvserver lircd: could not get hardware features
> Feb 25 18:47:01 tvserver lircd: this device driver does not support the
> new LIRC interface
> Feb 25 18:47:01 tvserver lircd: major number of /dev/lirc is 4
> Feb 25 18:47:01 tvserver lircd: LIRC major number is 61
> Feb 25 18:47:01 tvserver lircd: check if /dev/lirc is a LIRC device
> Feb 25 18:47:01 tvserver lircd: caught signal

Your /dev/lirc device is not setup correctly. I needs a major number
of 61 as the message states. The output of my /dev/lirc* is:

[mythtv at pvr mythtv]$ ll /dev/lirc*
crwxrwxrwx  1 root   root   61, 0 May 20  2005 /dev/lirc
srwxrwxrwx  1 mythtv mythtv     0 Jan 17 22:51 /dev/lircd
prwxrwxrwx  1 mythtv mythtv     0 Feb  6 00:58 /dev/lircm

>I did notice when compiling LIRC, I got this:
>
> : #warning "******************************************"
> /files/Software/lircd/lirc-0.8.0/drivers/lirc_serial/lirc_serial.c:68:2:
> warning: #warning " Your serial port driver is compiled into "
> /files/Software/lircd/lirc-0.8.0/drivers/lirc_serial/lirc_serial.c:69:2:
> warning: #warning " the kernel. You will have to release the "
> /files/Software/lircd/lirc-0.8.0/drivers/lirc_serial/lirc_serial.c:70:2:
> warning: #warning " port you want to use for LIRC with:      "
> /files/Software/lircd/lirc-0.8.0/drivers/lirc_serial/lirc_serial.c:71:2:
> warning: #warning "    setserial /dev/ttySx uart none        "
> /files/Software/lircd/lirc-0.8.0/drivers/lirc_serial/lirc_serial.c:72:2:
> warning: #warning "******************************************"
>
> Which is why I was using the setserial command (which incedently I didn't
> need for the logitech, but DID need in my redhat 9 install).

You'll need the setserial command to release the serial port as you
know. The lircd startup script can be a bit finicky, so I've run the
LIRC related commands from rc.local:

/bin/setserial /dev/ttyS0 uart none
/sbin/modprobe lirc_serial
sleep 2
/usr/local/sbin/lircd
/usr/local/sbin/lircmd

My modprobe.conf wrt LIRC is:

# LIRC
alias char-major-61 lirc_serial
options lirc_serial irq=4 io=0x3f8

This has always worked for me (both on FC2 and FC4, adjusting modprobe
to match serial port settings) so perhaps it will help you out.

First thing though is to correctly create the /dev/lirc node (you can
use mknod for this, however the LIRC package provides a script that
should do this so I'm not sure why you have ended up with /dev/lirc
created incorrectly.)

Nick


More information about the mythtv-users mailing list