[mythtv-users] Fedora 12 to Fedora 14: lirc / mce remote issue

Jarod Wilson jarod at wilsonet.com
Fri Dec 17 03:13:28 UTC 2010


On Dec 16, 2010, at 7:09 PM, Rodd Clarkson wrote:

> On Thu, Dec 16, 2010 at 5:34 PM, Grant McChesney <grantmc at gmail.com> wrote:
> On Wed, Dec 15, 2010 at 9:37 PM, Michael Rice <mikerice1969 at gmail.com> wrote:
> On Wed, Dec 15, 2010 at 7:08 PM, Newbury <newbury at mandamus.org> wrote:
> >
> >> Seems to have the same problem for me.
> >>
> >> [root at mythfrontend2 ~]# uname -a
> >> Linux mythfrontend2 2.6.35.10-67.fc14.i686.PAE #1 SMP Wed Dec 15
> >> 22:45:07 UTC 2010 i686 i686 i386 GNU/Linux
> >>
> >> Again the irw output from pressing a single Up after several Downs:
> >>
> >> [root at mythfrontend2 ~]# irw
> >> 0001006c00000001 00 Down devinput
> >> 0001006700000001 00 Up devinput
> >
> > And that is what you are looking for, unless I Missed something.
> 
> Nope.  When I press Up I don't want it to register Down/Up.  Just Up.  :)
> 
> It is still doing something strange.  One key press usually (or always?)
> generates two presses one of which is held until the next key is pressed
> at which time they both come out.
> 
> In the output above I had hit a bunch of down keys.  Waited a few seconds
> then ran irw and hit a single Up.  At that point the buffered Down is emitted
> along with an Up.
> 
> Glad I'm not the only one experiencing this behavior.  I've been hacking away at my lircd.conf trying to fix it.  I've resorted to my wireless keyboard until this gets sorted.
> 
> Jarod, I look forward to the fix.  Thanks!
> 
> 
> Jarrod,
> 
> I've just tried kernel-2.6.35.10-68 and it's better in terms of response time, and ironically it's worse because of this.  HUH?
> 
> I think I'm getting double inputs from my remote because both lirc and evdev at using it as an input device.  When I press some keys on my remote, they seem to be doing things twice.  For example, press the up or down I sometimes skip an item in the menu.  However, I think this is related to evdev and lirc running at the same time.
> 
> if I run `xev` and `irw` in two seperate terminal windows and then press the up and down keys on the remove I get in 'xev':
> 
> KeyPress event, serial 30, synthetic NO, window 0x4800001,
>     root 0xbf, subw 0x0, time 654082, (630,511), root:(634,560),
>     state 0x10, keycode 111 (keysym 0xff52, Up), same_screen YES,
>     XLookupString gives 0 bytes: 
>     XmbLookupString gives 0 bytes: 
>     XFilterEvent returns: False
> 
> KeyRelease event, serial 33, synthetic NO, window 0x4800001,
>     root 0xbf, subw 0x0, time 654331, (630,511), root:(634,560),
>     state 0x10, keycode 111 (keysym 0xff52, Up), same_screen YES,
>     XLookupString gives 0 bytes: 
>     XFilterEvent returns: False
> 
> KeyPress event, serial 33, synthetic NO, window 0x4800001,
>     root 0xbf, subw 0x0, time 655246, (630,511), root:(634,560),
>     state 0x10, keycode 116 (keysym 0xff54, Down), same_screen YES,
>     XLookupString gives 0 bytes: 
>     XmbLookupString gives 0 bytes: 
>     XFilterEvent returns: False
> 
> KeyRelease event, serial 33, synthetic NO, window 0x4800001,
>     root 0xbf, subw 0x0, time 655614, (630,511), root:(634,560),
>     state 0x10, keycode 116 (keysym 0xff54, Down), same_screen YES,
>     XLookupString gives 0 bytes: 
>     XFilterEvent returns: False
> 
> and in 'irw' i get:
> 
> 000000037ff07be1 00 Up mceusb
> 000000037ff07be0 00 Down mceusb
> 000000037ff07be0 01 Down mceusb
> 
> As a result, my remote now skips every second menu item.
> 
> Why is this worse?  We, because (and I'm taking an educated quess here) there were keypress delay issues in older kernels than the one above, if I pressed the buttons on the remote quickly, I saw only the output in the irw window.  However, if I held the button a little longer, i got output in both windows.  In the example above, I wouldn't have seen the KeyPress/Release event for the 'Up' action, but I would have got both Down events.
> 
> Is it fair to assume that both evdev and lirc are giving mythtv a command each and that's why I'm going up and down two menu items at a time?
> 
> How can I fix this?

echo lirc > /sys/class/rc/rc0/protocols

That effectively disables in-kernel decoding, setting only userspace
lirc decoding to be active. I'm going to push an updated lirc package
Real Soon Now that does this automatically (needs to be done every time
you reboot).

-- 
Jarod Wilson
jarod at wilsonet.com





More information about the mythtv-users mailing list