[ATrpms-devel] lirc no kernel module - lirc-devices
Paulo Cavalcanti
promac at gmail.com
Fri Nov 17 20:55:44 CET 2006
Hi,
the attached file should create a udev rule for lirc:
udev.sh pci kbd lirc
After the execution, if the file lirc.rules is empty, it is because
it has not been found any card. Otherwise, the rule can be copied to
/etc/udev/rules.
It is working for me. I would like to know if it works for other capture
cards/remotes.
/Paulo Roma.
On 11/16/06, Paulo Cavalcanti <promac at gmail.com> wrote:
>
> 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 lircmodes, 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/20061117/8d408cba/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udev.sh
Type: application/x-sh
Size: 751 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20061117/8d408cba/attachment.sh
More information about the atrpms-devel
mailing list