PDA

View Full Version : IRDA LIRC and remote control xmms etc...


robvnl
3rd August 2008, 04:57 PM
For some days now I have spend a lot of time in getting any remote control device to work with LIRC. in /var/log/messages I get hopefull entries but still with mode2 I do not see anything happening when I press a random button on the remote controller.

It is not clear anymore what I need exactly to setup for IrDA before LIRC.

I use a thinkpad T60 with a infrared device IBM SC-20H2987 on fedora 8, kernel 2.6.25.11-60.fc8. In the BIOS the infrared is enabled and the device is configured at I/O 0x3E8 IRQ 4 and DMA 3

I have followed the IRDA pages at
http://tuxmobil.org/Infrared-HOWTO/infrared-howto-s-configuration.html
and the poor description for LIRC at http://lirc.linux-mirror.org/html/install.html#installing

When I just start the lirc service and I modprobe the lirc_sir module it seems the ir port is listening but it is not.
Aug 3 17:19:00 L3 kernel: lirc_dev: IR Remote Control driver registered, major 61
Aug 3 17:19:00 L3 kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Aug 3 17:19:00 L3 kernel: lirc_sir: I/O port 0x03e8, IRQ 4.
Aug 3 17:19:00 L3 kernel: lirc_sir: Installed.

# mode2
< nothing shows when pressing keys on the remote control>

The first question rised is do I need the service irda running. irattach fails
Aug 3 17:44:30 L3 irattach: tcgetattr: Input/output error
Aug 3 17:44:30 L3 irattach: Stopping device /dev/ttyS2
Aug 3 17:44:30 L3 irattach: ioctl(SIOCGIFFLAGS): No such device
Aug 3 17:44:30 L3 irattach: exiting ...

Is there anybody here who has remote control working and would like to share the way it is done, or anybody with a useful tip. I will appreciate highly!
Many thanks in advance.

robvnl
5th August 2008, 11:04 PM
I followed the procedure listed here:
http://www.thinkwiki.org/wiki/How_to_make_use_of_IrDA#LIRC_and_IrDA
I needed to blacklist nsc-ircc also, like described, otherwise my system freezed.
But then Irda will not start anymore:
Aug 5 23:54:23 L3 irattach: executing: '/sbin/modprobe irda0'
Aug 5 23:54:23 L3 irattach: + FATAL: Module irda0 not found.
Aug 5 23:54:23 L3 irattach: Trying to load module irda0 exited with status 1
Aug 5 23:54:23 L3 irattach: executing: 'echo L3CRA82 > /proc/sys/net/irda/devname'
Aug 5 23:54:23 L3 irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Aug 5 23:54:23 L3 irattach: Starting device irda0
Aug 5 23:54:23 L3 irattach: ioctl(SIOCGIFFLAGS): No such device
Aug 5 23:54:23 L3 irattach: Stopping device irda0
Aug 5 23:54:23 L3 irattach: ioctl(SIOCGIFFLAGS): No such device
Aug 5 23:54:23 L3 irattach: exiting ..

When I do not blacklist nsc-ircc irda starts up normal, but lirc_sir cannot load. port in use.

Somebody who can help to let LIRC communicate with IRDA?
Thx!
.