InfraRed / IRDA -- lirc_sir ??
I'm trying to get my IrDA port working (with the ultimate aim of taking commands from an IR remote control).
I found a guide for my system here; Quote:
I installed irda-utils with apt-get which returned at the end; Code:
.udevdb or .udev prescencer implies active udev. Aborting MAKEDEV invocation. Info: Kernel: 2.6.38-voyage (Voyage linux). |
My IR remote was a bit of a trick to setup. The receiver is listened for on a socket, rather than ttyS0. Don't know if this helps, but perhaps it is a clue.
< gratuitous plug > see my website for a how-to on Lirc < /gratuitous plug > |
Well, NB that this guide [although it is 7 years old(!)] was from someone with the exact same hardware (Acer Aspire 2012 WLMi), so i would assume it would be on ttyS0 ? Maybe get to Lirc once i know it actually works in some capacity. Anyway as OP i need to figure out how to install irattach??
|
Found there is a section 'IrDA (infrared) subsystem support' under networking in make menuconfig. Selected this and a few suboptions.. rebuilding now.
|
Now the 'irattach /dev/ttyS0 -s' command works (returns 'NET: Registered protocol family 23'), and running '- cat /proc/net/irda/discovery' outputs
Code:
IrLMP: Discovery log: |
OK, have made some good progress but hit a wall...
The info at lirc.org suggests which modules i need; Quote:
Code:
lirc_register_driver: dev pointer not filled in! Googling this suggested using the GIT version of LIRC. so, i followed the guide below (after installing git) Quote:
at the next point, when running 'mode2' i get 'mode2: could not get file information for /dev/lirc, mode2: default_init(): no such file or directory'. AFAICT, the issue is that there is no /dev/lirc (or /dev/lirc0, /dev/lircd) i foud somewhere that said this means the driver is probably not properly installed. Which makes sense as modprobe lirc_sir still returns the original result. (I'm not 100% sure i installed LIRC correctly from git.. as i didn't uninstall anything first?). EDIT: yes, it was loading the old lirc_sir from the kernel.. i renamed this .ko file (bad practice, i'm sure, but i CBA to rebuild the kernel again just to try that).. re-removed/installed lirc from GIT again, rebooted. Now get 'lirc_sir: i/o port 0xXXXX already in use.' this required '/bin/setserial /dev/ttyS0 uart none' and then 'modprobe lirc_sir' worked(!!). THEN just 'cd /dev, ln -s lirc0 lirc' and mode2 takes inputs now i 'just' need to set the remote /commands up. |
All times are GMT -5. The time now is 11:49 PM. |