Solved Remote button press behavior change after 5 minutes
#1
Solved:  Turned out to be a problem with the "Device Command Repeats" setting in the MyHarmony program.  By default it was set to 3 for my IR receiver device and setting it to 0 resolved the issue.  I have no idea why the behavior in Kodi changed after 5 min but problem now solved.

My remote control button press behavior changes after 5 minutes.  In both scenarios, the button press behavior is not correct:
  •  Kodi start to ~5 min: For all buttons, single press works fine but long press does not work at all.
  •  After ~5 min: Long press works fine but single press results in random double clicks.

Restarting Kodi recreates the same 5 min change in behavior.

I am using Kodi 17.1 on Debian Stretch.  I have a Logitech Harmony remote configured for MCE.  This is configured with keyboard emulation via the in-kernel keyboard mapping and ir-keytable.  Lirc and inputlirc are not installed.  Other than a change to the "back" behavior, the default keyboard.xml and remote.xml are in use.  Disregarding this issue, all buttons are mapped correctly and working as they should.  

Changing the remote timing via ir-keytable or remotedelay in advancedsettings.xml did nothing to help this problem.  I eliminated any CEC interference by ensuring that was disabled.

I can confirm via both "ir-keytable -t" and "xev" the remote button presses are working as they should at the OS level.  This combined with the behavior changing after 5 minutes of Kodi running looks like some sort of issue with Kodi.

I enabled debugging and here is the full log:
https://paste.ubuntu.com/p/YDgNRjryQp/

Here are the log snippets of interest:

Startup at 15:13:54:
log:
15:13:54.545 T:140126673861440  NOTICE: Starting Kodi from Debian (17.1 Debian package version: 2:17.1+dfsg1-3). Platform: Linux x86 64-bit
 
Single button press working fine:
log:
15:15:50.891 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:15:50.891 T:140126673861440   DEBUG: OnKey: down (0xf081) pressed, action is Down
15:15:51.391 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0

Button press and hold for 6 seconds not working.  "ir-keytable -t" and "xev" show button press and hold working:
log:
15:16:00.891 T:140126673861440   DEBUG: Previous line repeats 1 times.
15:16:00.891 T:140126673861440   DEBUG: OnKey: down (0xf081) pressed, action is Down
15:16:06.253 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0

Just prior to the behavior change, I noticed this entry showing the RemoteControl thread terminating.  I initially thought this was related to my problem however disabling LIRC in Kodi moved this message to startup time and had no impact on my problem.
log:
15:19:04.052 T:140125897918208   DEBUG: Failed to connect to LIRC. Giving up.
15:19:04.052 T:140125897918208   DEBUG: Thread RemoteControl 140125897918208 terminating

After ~5 min, single press stops working and results in double presses:
log:
15:19:16.057 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:19:16.057 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down
15:19:16.074 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0

However after 5 min, press and hold starts working as it should:
log:
15:20:05.740 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:20:05.740 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down
15:20:05.773 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:20:05.773 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down
15:20:05.807 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:20:05.807 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down
15:20:05.840 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:20:05.840 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down
15:20:05.875 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:20:05.875 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down
15:20:05.915 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:20:05.915 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down
15:20:05.942 T:140126673861440   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
15:20:05.942 T:140126673861440   DEBUG: OnKey: long-down (0x100f081) pressed, action is Down

Any help of what might be going on will be appreciated.
Reply

Logout Mark Read Team Forum Stats Members Help
Remote button press behavior change after 5 minutes0