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

Joey Morris rjmorris at nc.rr.com
Sun Dec 11 14:26:22 UTC 2011


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.


More information about the mythtv-users mailing list