[mythtv-users] How to make the LIRC_DEVICE static in Fedora 16

Gabe Rubin gaberubin at gmail.com
Mon Dec 12 17:32:41 UTC 2011


On Sun, Dec 11, 2011 at 6:26 AM, Joey Morris <rjmorris at nc.rr.com> wrote:
> Gabe Rubin <gaberubin at gmail.com> wrote on Thu, Dec 08, 2011 at 09:45:05PM -0800:
>> On Thu, Dec 8, 2011 at 2:34 AM, Boleslaw Ciesielski
>> <bc-mythtv at comcast.net> wrote:
>> > On 12/07/2011 11:55 PM, Gabe Rubin wrote:
>> >>> What do you mean it didn't help? You do not get the symlink? I have
>> >>> this in the udev rules file:
>> >>>
>> >>> KERNEL=="event[0-9]", SUBSYSTEM=="input", ATTRS{name}=="i2c IR (Hauppauge WinTV PVR-350", SYMLINK+="hauppauge-ir"
>> >>>
>> >>> and it works fine.
>> >>>
>> >>> Also, in case of PVR-x50 you need to have an executable
>> >>> something.modules file in /etc/sysconfig/modules with this in it:
>> >>>
>> >>> #!/bin/sh
>> >>> modprobe ir-kbd-i2c
>> >>>
>> >>
>> >> This was the symlink I put in per the wiki:
>> >> ln -fs /dev/input/`cat /proc/bus/input/devices|grep -A 3
>> >> "Hauppauge"|grep event|cut -d ' ' -f3` /dev/input/remote
>> >>
>> >> which created this symlink: remote -> /dev/input/
>> >> in this directory: /dev/input
>> >
>> > This seems wrong. The symlink should point to /dev/input/eventX, not to
>> > /dev/input.
>> >
>> > Try the udev rule. Create a file in /etc/udev/rules.d/ with .rules
>> > extension and put the above line in it. Then reboot. It should create
>> > symlink like this
>> >
>> > /dev/hauppauge-ir -> /dev/input/eventX
>> > _______________________________________________
>>
>> Thanks for the advice.  I created the udev rule that you recommended
>> called 20-pvr.rules and already had a file in /etc/sysconfig/modules
>> called ir.modules with that exact syntaxt.
>>
>> On reboot, I do not get a symlink in /dev like you do.  The remote
>> happened to work because I assume I got lucky and the remote was on
>> /dev/input/event6, which is what I had in /etc/sysconfig/lirc, but I
>> still would like to get this fixed for real.
>>
>> Any help would be appreciated.  Thanks
>
>
> When you did this:
>
>  # ln -fs /dev/input/`cat /proc/bus/input/devices|grep -A 3
>    "Hauppauge"|grep event|cut -d ' ' -f3` /dev/input/remote
>
> the reason you ended up with this symlink:
>
>  remote -> /dev/input/
>
> is that the cat|grep|grep|cut sequence didn't return anything. Did you
> try running cat /proc/bus/input/devices by itself on the command line
> to see what it gives you? Maybe you just need to change how you're
> grepping.

Here is what I get.  I am not sure how to modify the grep sequence
(and I am concerned that on reboot, when the event id changes, the
symlink won't reflect that).  I just used the syntax that was in the
wiki:

[root at localhost ~]# cat cat /proc/bus/input/devices
cat: cat: No such file or directory
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="i2c IR (Hauppauge WinTV PVR-350"
P: Phys=i2c-1/1-0018/ir0
S: Sysfs=/devices/virtual/rc/rc0/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=100013
B: KEY=10afc312 2142017 0 0 0 0 118000 41a8 4801 9e16c0 0 0 10000ffc
B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input3
U: Uniq=
H: Handlers=event3
B: PROP=0
B: EV=21
B: SW=100

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input4
U: Uniq=
H: Handlers=event4
B: PROP=0
B: EV=21
B: SW=100

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input5
U: Uniq=
H: Handlers=event5
B: PROP=0
B: EV=21
B: SW=100

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input6
U: Uniq=
H: Handlers=event6
B: PROP=0
B: EV=21
B: SW=100


More information about the mythtv-users mailing list