ir-keytable and multiple key presses

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
mapota
Newcomer
Posts: 3
Joined: Fri Oct 30, 2020 12:28 am
Australia

ir-keytable and multiple key presses

Post by mapota » Thu Jun 17, 2021 2:35 am

Hi,

I have a new installation of xubuntu desktop 20.04.2 to be used for mythtv. I am having trouble with ir-keytable and multiple presses for a single ir remote press.

Code: Select all

sudo ir-keytable


returns

Code: Select all

Found /sys/class/rc/rc0/ with:
    Name: Media Center Ed. eHome Infrared Remote Transceiver (0609:0334)
    Driver: mceusb
    Default keymap: rc-rc6-mce
    Input device: /dev/input/event7
    LIRC device: /dev/lirc0
    Attached BPF protocols: Operation not supported
    Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon rc-mm 
    Enabled kernel protocols: lirc rc-6 
    bus: 3, vendor/product: 0609:0334, version: 0x0100
    Repeat delay = 500 ms, repeat period = 125 ms


Code: Select all

sudo ir-keytable --test -verbose
returns

Code: Select all

Found device /sys/class/rc/rc0/Parsing uevent /sys/class/rc/rc0/lirc0/uevent
/sys/class/rc/rc0/lirc0/uevent uevent MAJOR=239
/sys/class/rc/rc0/lirc0/uevent uevent MINOR=0
/sys/class/rc/rc0/lirc0/uevent uevent DEVNAME=lirc0
Input sysfs node is /sys/class/rc/rc0/input4/
Event sysfs node is /sys/class/rc/rc0/input4/event7/
Parsing uevent /sys/class/rc/rc0/input4/event7/uevent
/sys/class/rc/rc0/input4/event7/uevent uevent MAJOR=13
/sys/class/rc/rc0/input4/event7/uevent uevent MINOR=71
/sys/class/rc/rc0/input4/event7/uevent uevent DEVNAME=input/event7
Parsing uevent /sys/class/rc/rc0/uevent
/sys/class/rc/rc0/uevent uevent NAME=rc-rc6-mce
/sys/class/rc/rc0/uevent uevent DRV_NAME=mceusb
/sys/class/rc/rc0/uevent uevent DEV_NAME=Media Center Ed. eHome Infrared Remote Transceiver (0609:0334)
input device is /dev/input/event7
/sys/class/rc/rc0/protocols protocol rc-5 (disabled)
/sys/class/rc/rc0/protocols protocol nec (disabled)
/sys/class/rc/rc0/protocols protocol rc-6 (enabled)
/sys/class/rc/rc0/protocols protocol jvc (disabled)
/sys/class/rc/rc0/protocols protocol sony (disabled)
/sys/class/rc/rc0/protocols protocol rc-5-sz (disabled)
/sys/class/rc/rc0/protocols protocol sanyo (disabled)
/sys/class/rc/rc0/protocols protocol sharp (disabled)
/sys/class/rc/rc0/protocols protocol mce_kbd (disabled)
/sys/class/rc/rc0/protocols protocol xmp (disabled)
/sys/class/rc/rc0/protocols protocol imon (disabled)
/sys/class/rc/rc0/protocols protocol rc-mm (disabled)
/sys/class/rc/rc0/protocols protocol lirc (enabled)
Opening /dev/input/event7
Input Protocol version: 0x00010001
Testing events. Please, press CTRL-C to abort.
5982.257056: lirc protocol(rc6_mce): scancode = 0x800f0416
5982.257069: event type EV_REP(0x14): value = 125
5982.257069: event type EV_MSC(0x04): scancode = 0x800f0416
5982.257069: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5982.257069: event type EV_SYN(0x00).
5982.363046: lirc protocol(rc6_mce): scancode = 0x800f0416
5982.363063: event type EV_MSC(0x04): scancode = 0x800f0416
5982.363063: event type EV_SYN(0x00).
5982.469043: lirc protocol(rc6_mce): scancode = 0x800f0416
5982.469059: event type EV_MSC(0x04): scancode = 0x800f0416
5982.469059: event type EV_SYN(0x00).
5982.788717: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5982.788717: event type EV_SYN(0x00).
5982.799027: lirc protocol(rc6_mce): scancode = 0x800f0416 toggle=1
5982.788717: event type EV_KEY(0x01) key_up: KEY_PLAY(0x00cf)
5982.788717: event type EV_MSC(0x04): scancode = 0x800f0416
5982.788717: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5982.788717: event type EV_SYN(0x00).
5982.905005: lirc protocol(rc6_mce): scancode = 0x800f0416 toggle=1
5982.905017: event type EV_MSC(0x04): scancode = 0x800f0416
5982.905017: event type EV_SYN(0x00).
5983.011011: lirc protocol(rc6_mce): scancode = 0x800f0416 toggle=1
5983.011019: event type EV_MSC(0x04): scancode = 0x800f0416
5983.011019: event type EV_SYN(0x00).
5983.300713: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5983.300713: event type EV_SYN(0x00).
5983.432716: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5983.432716: event type EV_SYN(0x00).
5983.564715: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5983.564715: event type EV_SYN(0x00).
...
multiple repeats 
...
5995.584716: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5995.584716: event type EV_SYN(0x00).
5995.716715: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
5995.716715: event type EV_SYN(0x00).
5995.716715: event type EV_KEY(0x01) key_up: KEY_PLAY(0x00cf)
5995.716715: event type EV_SYN(0x00).
You can see the (repeat) events start at 5983.300713 and end at 5995.716715 for a period of 12.4 seconds!!!
I have tried changing the Repeat Delay and Repeat period, as suggested on many sites but no joy. I do see a difference in how frequent the events are seen but still get many repeats.

Any suggestions?

ir-keytable version is IR keytable control version 1.18.0, in case that helps.

User avatar
heyted
Senior
Posts: 211
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: ir-keytable and multiple key presses

Post by heyted » Fri Jun 18, 2021 12:02 am

There is a bug. See viewtopic.php?f=29&t=4426 . A fixed 5.8 kernel is available, but you currently need to to enable focal-proposed since testing is ongoing.

Start Software & Updates --> Developer Options tab --> Enable focal-proposed (See https://wiki.ubuntu.com/Testing/EnableProposed)
Ted | My blog

User avatar
paulh
Developer
Posts: 649
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: ir-keytable and multiple key presses

Post by paulh » Fri Jun 18, 2021 11:54 am

It's pretty obvious if it is that kernel bug since the key repeats many 100's of times causing each key press to lock up the frontend.

On the other had if for example you press the ESCAPE key and rather than going back one screen you go back 2 or 3 screens or pressing UP/DOWN jumps more than one item in a list then that's something else. Id's really like to know how to fix this myself since my dad's system does this and I haven't found a solution to fix it yet.

wesnewell
Senior
Posts: 731
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: ir-keytable and multiple key presses

Post by wesnewell » Fri Jun 18, 2021 5:42 pm

There are a lot of old screwed up kernels out there. the actual problem is not ir-keytable, but event problems. They were inrtoduced in the 5.4.x and 5.8.x kernels in sept 2020 and stayed there until early 2021 in all kernels. You can go over this here.
https://bugs.launchpad.net/ubuntu/+sour ... ug/1901089
It only takes a few minutes to install ubuntu kernels from the kernel ppa. That's where I'd start with kernel 5.11 Create a local dir named kernel-<kernel number>. Download all 4 appropriate files into that dir. The do sudo dkpg -i /path/*.deb. Reboot and test.
https://kernel.ubuntu.com/~kernel-ppa/mainline/
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.

User avatar
paulh
Developer
Posts: 649
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: ir-keytable and multiple key presses

Post by paulh » Fri Jun 18, 2021 11:16 pm

wesnewell that's a different bug to the one heyted and I saw.
https://bugs.launchpad.net/ubuntu/+sour ... ug/1926030

wesnewell
Senior
Posts: 731
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: ir-keytable and multiple key presses

Post by wesnewell » Sat Jun 19, 2021 5:07 am

paulh wrote:
Fri Jun 18, 2021 11:16 pm
wesnewell that's a different bug to the one heyted and I saw.
https://bugs.launchpad.net/ubuntu/+sour ... ug/1926030
if it's a kernel problem, just install a different kernel. it easy to do. Right now I'm running 5.4.0-74 on one FE and 5.10.0-1023 on another without problems.
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.

User avatar
paulh
Developer
Posts: 649
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: ir-keytable and multiple key presses

Post by paulh » Sat Jun 19, 2021 12:00 pm

Which is what I suggested in the post that heyted referenced above.
viewtopic.php?f=29&t=4426#p21770

It's not clear from the OP if he is seeing 100's of extra key presses or just 1 or 2 extra ones. If it's 100's then yes the answer is try a different kernel as suggested in the post above. If it's just one or two then I'm not convinced switching kernels is going to make a difference since we can use and configure ir-keytable just fine it feels more like a setup issue?

Post Reply