[ltp] Re: IR-DRIVER-TINY-HOWTO (Linux IrDA on a ThinkPad)]
Tino Keitel
linux-thinkpad@linux-thinkpad.org
Thu, 8 Jul 2004 09:37:43 +0200
On Wed, Jul 07, 2004 at 01:52:07 +0100, Phil Stopford wrote:
> Tony Whitmore wrote:
>
> >Phil Stopford wrote:
> >
> >>Phil Stopford wrote:
> >>
> >>>I'd *really* appreciate any pointers, documents or tools to simplify
> >>>getting this working (and any hints about getting the sound to work
> >>>after a suspend event). I'm still wading through the 18,000+
> >>>messages in the archive, but hoped this post might yield faster
> >>>results :)
> >>>
> >>>Phil.
> >>>
> >>
> >>In follow up to this, I see the following output in /var/log/messages
> >>
> >>irattach: irattach: tty: set_disc(11): Bad file descriptor
> >>irattach: Stopping device /dev/ttyS1
> >>irattach: ioctl(SIOCGIFFLAGS): No such device
> >>irattach: exiting ...
> >>
> >>I'm not sure if that helps to explain what might be going on. All
> >>work so far has been based around the 2.6.5 kernel if that is also
> >>helpful.
> >
> >
> >Just to check, but is the IrDA port detected by the kernel in the
> >first place? The output of "dmesg | grep tty" should show a line
> >relating the IrDA port to a serial port.
> >
> >Cheers,
> >
> >Tony
>
> All I get from dmesg | grep tty is the following :
>
> ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
If you want to use the irport driver, you have to take away the
resources from the serial driver:
setserial /dev/ttyS1 uart none port 0 irq 0
and load the irport module after this, or use a kernel with the serial
driver as a module and load the irport driver before the serial driver
(should work, but not tested by myself).
If you want to use the serial driver, you can not use irport, but irtty
will work (this incorporates with the serial driver to access the IrDA
hardware).
Here is what I do to start IrDA:
setserial /dev/tts/1 uart none port 0 irq 0
modprobe irda
modprobe nsc-ircc
irattach irda0 -s
If nsc-ircc doesn't work for you (this is the Fast-IR driver for my
A30), just try irport.
Regards,
Tino