Kodi Community Forum

Full Version: Why are my TV remote key presses only being handled on the main screen?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a SHIELD Android TV connect to my Sony Android TV and HDMI-CEC is enabled. When I press the buttons on my TV's remote controller while I'm at the main Kodi screen (navigating libraries, etc) I get the following output on Kodi's debug log:
Code:
11:03:41.044 T:140179629296   DEBUG: Keyboard: scancode: 0x5a, sym: 0x00bb, unicode: 0x0000, modifier: 0x0
11:03:41.044 T:140179629296   DEBUG: HandleKey: fastforward (0xf0c5) pressed, action is FastForward
11:03:43.296 T:140179629296   DEBUG: Keyboard: scancode: 0x58, sym: 0x00b1, unicode: 0x0000, modifier: 0x0
11:03:43.297 T:140179629296   DEBUG: HandleKey: prev_track (0xf0bb) pressed, action is SkipPrevious
11:03:45.613 T:140179629296   DEBUG: Keyboard: scancode: 0x57, sym: 0x00b0, unicode: 0x0000, modifier: 0x0
11:03:45.614 T:140179629296   DEBUG: HandleKey: next_track (0xf0ba) pressed, action is SkipNext
11:03:48.728 T:140179629296   DEBUG: Keyboard: scancode: 0x7f, sym: 0x00b3, unicode: 0x0000, modifier: 0x0
11:03:48.961 T:140179629296   DEBUG: HandleKey: play_pause (0xf0bd) pressed, action is PlayPause
11:03:50.005 T:140179629296   DEBUG: Keyboard: scancode: 0x56, sym: 0x00b2, unicode: 0x0000, modifier: 0x0
11:03:50.006 T:140179629296   DEBUG: HandleKey: stop (0xf0bc) pressed, action is Stop
11:03:56.631 T:140179629296   DEBUG: Keyboard: scancode: 0x16, sym: 0x0113, unicode: 0x0000, modifier: 0x0
11:03:56.632 T:140179629296   DEBUG: HandleKey: right (0xf083) pressed, action is Right
11:03:56.731 T:140179629296   DEBUG: Keyboard: scancode: 0x16, sym: 0x0113, unicode: 0x0000, modifier: 0x0
11:03:57.598 T:140179629296   DEBUG: Keyboard: scancode: 0x14, sym: 0x0112, unicode: 0x0000, modifier: 0x0
11:03:57.598 T:140179629296   DEBUG: HandleKey: down (0xf081) pressed, action is Down
11:03:57.777 T:140179629296   DEBUG: Keyboard: scancode: 0x14, sym: 0x0112, unicode: 0x0000, modifier: 0x0
11:04:00.045 T:140179629296   DEBUG: Keyboard: scancode: 0x17, sym: 0x000d, unicode: 0x0000, modifier: 0x0
11:04:00.243 T:140179629296   DEBUG: HandleKey: return (0xf00d) pressed, action is Select

Given the log above, can we assume that the HDMI-CEC from my SHIELD/TV is sending all the button signals to Kodi? Ok, great... Now, why isn't the same happening when I play start playing a video? I mean, when I'm in the full video screen playing something, any button key presses on my TV remote controller does not print any "DEBUG: HandleKey" messages.

Is there a reason for this? Is it expected behavior? A bug? A bad configuration on my end?
Anyone?
(2018-11-07, 14:20)Nazgulled Wrote: [ -> ]Now, why isn't the same happening when I play start playing a video? I mean, when I'm in the full video screen playing something, any button key presses on my TV remote controller does not print any "DEBUG: HandleKey" messages.
Just to be clear:
Your TV remote keeps working okay while in full videoscreen, it's just that there are no keycodes being registered in the log. Is that your question/observation?

(2018-11-07, 14:20)Nazgulled Wrote: [ -> ]Is there a reason for this? Is it expected behavior? A bug? A bad configuration on my end?
No idea. Developers could have had a lazy moment. Expected: probably not. A bug: could be. A dev will have to take a peek in the code.
Bad config: unlikely, as the keycode logging itself seems to work fine. Just not all the time, apparently.
(2018-11-30, 23:54)Klojum Wrote: [ -> ]
(2018-11-07, 14:20)Nazgulled Wrote: [ -> ]Now, why isn't the same happening when I play start playing a video? I mean, when I'm in the full video screen playing something, any button key presses on my TV remote controller does not print any "DEBUG: HandleKey" messages.
Just to be clear:
Your TV remote keeps working okay while in full videoscreen, it's just that there are no keycodes being registered in the log. Is that your question/observation? 
Yes, that's correct. My TV remote is still working in full video screen but Kodi doesn't seem to record any key codes at all.
I have this problem even in my tv box with android tv with the recent nightlies.
I reinstalled a nightly November 22nd and the remote is back to work (sorry for my English)
(2018-12-01, 21:30)pippo20 Wrote: [ -> ]I have this problem even in my tv box with android tv with the recent nightlies.
I reinstalled a nightly November 22nd and the remote is back to work (sorry for my English)
 note that even in RC2 the remote control does not work with a nightly November 22nd everything is OK
Me to... With an Android box and TV style remote, the system worked perfectly on Leia-RC1. When I updated to RC2, Kodi spotted that I had a new controller (same as before), I selected the TV controller, and the configuration sequence seemed to go OK. The remote will allow me to go though the Kodi menus, BUT I can't select ANY movie or music (have to use ENTER on a keyboard) and once in the movie, the remote doesn't do anything...

Its almost if there are 2 different Keymaps in use, and the movie one is on "some other" default??

Andrew
I don't think we are talking about the same issues. The original problem I posted exists for me long before Leia builds.