Menu

#219 Experiencing ocassional doubling of key presses under 0.9.4 vs 0.9.3

Future
closed
nobody
None
notabug
2016-08-14
2016-08-13
John A.
No

Upon updating from lirc v0.9.3.a to v0.9.4.b and from libirman v0.4.6 to v0.5.2, I am observing some doubling of key presses within kodi. This doesn't happen consistently everytime I hit a key, it occurs 30-40% of time and seems independent of the key being presses. If I downgrade back to lirc v0.9.3.a and libirman v0.4.6, everything works as expected.

Distro: Arch Linux x86_64.
Remote: Streamzap USB.
Linux kernel: v4.7.0.

I have attached the following which do not change when I update the packages:
/etc/lirc/lirc_options.conf
/etc/lirc/lircd.conf.d/00-streamzap.conf

I am happy to provide any logs or tests to help diagnose. Thank you in advance.

1 Attachments

Discussion

  • John A.

    John A. - 2016-08-13

    Remote config attached here.

     
  • John A.

    John A. - 2016-08-13

    Here is a test without kodi running under 0.9.3.a with me hitting each button only once:
    % irw
    00000000000028c1 00 KEY_1 Streamzap_PC_Remote
    00000000000028c2 00 KEY_2 Streamzap_PC_Remote
    00000000000028c3 00 KEY_3 Streamzap_PC_Remote
    00000000000028c4 00 KEY_4 Streamzap_PC_Remote
    00000000000028c5 00 KEY_5 Streamzap_PC_Remote
    00000000000028c6 00 KEY_6 Streamzap_PC_Remote
    00000000000028c7 00 KEY_7 Streamzap_PC_Remote
    00000000000028c8 00 KEY_8 Streamzap_PC_Remote
    00000000000028c9 00 KEY_9 Streamzap_PC_Remote
    00000000000028c0 00 KEY_0 Streamzap_PC_Remote
    00000000000028cb 00 KEY_MUTE Streamzap_PC_Remote
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d7 00 KEY_PLAY Streamzap_PC_Remote
    00000000000028d8 00 KEY_PAUSE Streamzap_PC_Remote
    00000000000028d9 00 KEY_STOP Streamzap_PC_Remote
    00000000000028d5 00 KEY_MENU Streamzap_PC_Remote
    00000000000028d6 00 KEY_EXIT Streamzap_PC_Remote

    Now the same test after updating to 0.9.4.b (again without kodi running and hitting each button only once:

    % irw
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028c1 00 KEY_1 Streamzap_PC_Remote
    00000000000028c2 00 KEY_2 Streamzap_PC_Remote
    00000000000028c3 00 KEY_3 Streamzap_PC_Remote
    00000000000028c4 00 KEY_4 Streamzap_PC_Remote
    00000000000028c5 00 KEY_5 Streamzap_PC_Remote
    00000000000028c6 00 KEY_6 Streamzap_PC_Remote
    00000000000028c7 00 KEY_7 Streamzap_PC_Remote
    00000000000028c7 00 KEY_7 Streamzap_PC_Remote
    00000000000028c8 00 KEY_8 Streamzap_PC_Remote
    00000000000028d5 00 KEY_MENU Streamzap_PC_Remote
    00000000000028d6 00 KEY_EXIT Streamzap_PC_Remote

     
  • Alec Leamas

    Alec Leamas - 2016-08-14

    I think we can rule out the libirman package since you are not using this driver.

    Problem seems to be that this has been broken all the time. When everything is OK, the output should be something like

    00000000000028c1 00 KEY_1 Streamzap_PC_Remote 
    00000000000028c2 01 KEY_2 Streamzap_PC_Remote
    00000000000028c3 02 KEY_3 Streamzap_PC_Remote
    00000000000028c4 03 KEY_4 Streamzap_PC_Remote
    

    Note how the second digit increases while the same button is reported. This is how a single button press is identified. And, this has never worked, neither in 0.9.3a nor 0.9.4b.

    Basically, this implies that the config file is broken somehow. What happens if you try to use irrecord and create a new config file (you could try with just a few buttons)?

     
  • John A.

    John A. - 2016-08-14

    I remapped it last night and my own file seems to work just fine with the current version using the following 2 modifications to /etc/lirc/lirc_options.conf:
    driver = default
    device = /dev/lirc0

    My new config file.

    I will submit this upstream for inclusion into the remote database. Note that the previous version I was using came from the database. Should it be purged?

    Example:
    % irw
    00000000000028e3 00 KEY_BLUE Streamzap_PC_Remote
    00000000000028e1 00 KEY_GREEN Streamzap_PC_Remote
    00000000000028e2 00 KEY_YELLOW Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 01 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 02 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 03 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 04 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 05 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 06 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 07 KEY_LEFT Streamzap_PC_Remote
    00000000000028e0 00 KEY_RED Streamzap_PC_Remote
    00000000000028e1 00 KEY_GREEN Streamzap_PC_Remote
    00000000000028e2 00 KEY_YELLOW Streamzap_PC_Remote
    00000000000028e3 00 KEY_BLUE Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 01 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 02 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 03 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 04 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 05 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 06 KEY_LEFT Streamzap_PC_Remote
    00000000000028d1 07 KEY_LEFT Streamzap_PC_Remote
    00000000000028e0 00 KEY_RED Streamzap_PC_Remote
    00000000000028e1 00 KEY_GREEN Streamzap_PC_Remote
    00000000000028e2 00 KEY_YELLOW Streamzap_PC_Remote
    00000000000028e3 00 KEY_BLUE Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d3 01 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d3 02 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d3 03 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d3 04 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d3 05 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d3 06 KEY_RIGHT Streamzap_PC_Remote
    00000000000028e0 00 KEY_RED Streamzap_PC_Remote
    00000000000028e1 00 KEY_GREEN Streamzap_PC_Remote
    00000000000028e2 00 KEY_YELLOW Streamzap_PC_Remote
    00000000000028e3 00 KEY_BLUE Streamzap_PC_Remote
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d0 01 KEY_UP Streamzap_PC_Remote
    00000000000028d0 02 KEY_UP Streamzap_PC_Remote
    00000000000028d0 03 KEY_UP Streamzap_PC_Remote
    00000000000028d0 04 KEY_UP Streamzap_PC_Remote
    00000000000028d0 05 KEY_UP Streamzap_PC_Remote
    00000000000028e0 00 KEY_RED Streamzap_PC_Remote
    00000000000028e1 00 KEY_GREEN Streamzap_PC_Remote
    00000000000028e2 00 KEY_YELLOW Streamzap_PC_Remote
    00000000000028e3 00 KEY_BLUE Streamzap_PC_Remote
    00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
    00000000000028d4 01 KEY_DOWN Streamzap_PC_Remote
    00000000000028d4 02 KEY_DOWN Streamzap_PC_Remote
    00000000000028d4 03 KEY_DOWN Streamzap_PC_Remote
    00000000000028d4 04 KEY_DOWN Streamzap_PC_Remote
    00000000000028d4 05 KEY_DOWN Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028e0 00 KEY_RED Streamzap_PC_Remote
    00000000000028e1 00 KEY_GREEN Streamzap_PC_Remote
    00000000000028e2 00 KEY_YELLOW Streamzap_PC_Remote
    00000000000028e3 00 KEY_BLUE Streamzap_PC_Remote
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d2 01 KEY_OK Streamzap_PC_Remote
    00000000000028d2 02 KEY_OK Streamzap_PC_Remote
    00000000000028d2 03 KEY_OK Streamzap_PC_Remote
    00000000000028d2 04 KEY_OK Streamzap_PC_Remote
    00000000000028d2 05 KEY_OK Streamzap_PC_Remote
    00000000000028d2 06 KEY_OK Streamzap_PC_Remote

     

    Last edit: John A. 2016-08-14
  • Alec Leamas

    Alec Leamas - 2016-08-14
    • status: open --> closed
    • Resolution: na --> notabug
    • Milestone: 0.9.4 --> Future
     
  • Alec Leamas

    Alec Leamas - 2016-08-14

    Please submit the config file to the remote database. Let's consider what to do with the current file in that context.

    Besides this, all looks good and I close this bug. Thanks foir reporting!

     
  • John A.

    John A. - 2016-08-14

    Submitted via email per the comments in the file. Thanks for your help to debug and for all the work you and the other devs put into lirc!

     

Log in to post a comment.

MongoDB Logo MongoDB