[ATrpms-devel] lirc no kernel module - lirc-devices
Paulo Cavalcanti
promac at gmail.com
Thu Nov 16 22:39:49 CET 2006
Hi, Axel
by what I understood if
*more /proc/bus/input/devices
*returns the capture card, then it is supported by the kernel:
I: Bus=0001 Vendor=1554 Product=4011 Version=0001
N: Name="bttv IR (card=70)"
P: Phys=pci-0000:02:04.0/ir0
S: Sysfs=/class/input/*event4*
H: Handlers=kbd event4
B: EV=100003
B: KEY=2c0814 100004 0 0 0 4 2008000 2090 2001 1e0000 4400 0 ffc
*
*Therefore, it is enough to use
*
* udevinfo -a -p `udevinfo -q path -n /dev/input/*event4*` |grep modalias
|grep pci
to get the pci identification of the card and generate a udev rule:
KERNEL=="event*",
SYSFS{modalias}=="pci:v00008086d0000244Esv00000000sd00000000bc06sc04i00**",
SYMLINK+="input/lirc"
Everything can be automated and it is even possible to have two rules for
lirc.
If the person alters his modprobe.conf and includes a lirc.modules in
/etc/sysconfig/modules,
then it will be used lirc kernel module. Otherwise, he has to do nothing and
use only the kernel.
But it would be interesting to wait for some feedback to see if this really
works for other remotes.
I have no way to test with other remotes. As I told you,
I only have one type of card. But my remote is perfect now. Using lirc
modes, I am
controlling xmcd, xmms, xawtv, tvtime, mythtv, gnomeradio and mplayer.
What do you think? Do you see a better way?
/Paulo Roma.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20061116/94fd940e/attachment.html
More information about the atrpms-devel
mailing list