Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: LIRC and kernel 2.6.3
OK, to answer myself.
Kernel 2.6 doesn't use the /dev/lircd directory as the device for lirc.
Instead, a new device is created: "/dev/lirc/0". There is also a socket for
the LIRC interface created as /tmp/.lircd
To get lirc working I did the following. Using the Mandrake 10 src
distribution, which includes LIRC as a kernel build option, I built all the
modules I needed. I have the serial IR device, so I just chose to do a build
for the serial module.
NOTE WELL - if you want this to work, make sure you don't have other modules
accessing the serial port - specifically, make sure you disable serial mouse
being built in to the kernel!
When Linux boots:
modprobe lirc_serial
lircd -d/dev/lirc/0
This will activate the device.
Next, in vdr.c, I changed the line that reads:
new cLircRemote("/dev/lircd");
to
new cLircRemote("/tmp/.lircd");
Once you have a decent lirc.conf, recompile and your away.
Adrian Challinor
> -----Original Message-----
> From: vdr-bounce@linuxtv.org [mailto:vdr-bounce@linuxtv.org] On Behalf Of
> Adrian P Challinor
> Sent: Sunday, March 07, 2004 12:01 AM
> To: vdr@linuxtv.org
> Subject: [vdr] LIRC and kernel 2.6.3
>
> I'm running Linux 2.6.3-3 with VDR 1.3.5 on a Mandrake distribution. I
> have
> a serial IR receiver that irrecord can see (provided lircd is not
> running).
> I have see that the IR device is created as /dev/lirc/0 rather than as
> /dev/lirc which is what the driver is expecting.
>
> However, attempts to modify vdr.c to change the device that lirc connects
> to
> have proved unsuccessful. VDR states that the IR device
> " ERROR: /dev/lirc/0: Connection refused".
>
> I have checked that I have a /tmp/.lircd file.
>
> Does anyone have a serial IR device workining under a 2.6 kernel and if
> so,
> how?
>
> Thanks Adrian
>
>
>
> --
> Info:
> To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr"
> as subject.
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index