Unable to map PROG+/- (CH+/-) buttons in KODI as for SPMC
#1
Hi guys,

I'm using Kodi 18(v. 20171107) and I would need your help to configure the remote control "SONY TV RC MIC 001" for the Android TV KD 49XD8077. I would like to use PROG +/-  buttons to switch channels when using the PVR client from Zattoo or Teleboy. Actually I'm not sure if the remote control is recognized as a keyboard or as a joystick, I have tried the following .xml files under .kodi/userdata/keymaps::


<keymap>
  <FullscreenLiveTV>
    <joystick profile="SONY TV RC MIC 001 (054C:0B91)">
      <button id="166">ChannelUp</button>
      <button id="167">ChannelDown</button>
    </joystick>
  </FullscreenLiveTV>
</keymap>

<keymap>
  <FullscreenLiveTV>
    <keyboard>
      <key id="166">ChannelUp</key>
      <key id="167">ChannelDown</key>
    </keyboard>
  </FullscreenLiveTV>
</keymap>

but both solutions did not work. The key IDs were taken connecting to the TV in debug mode using adb under linux but I'm not sure if they are the right one.
Quote:Tvx-TvPlayer: onUnhandledInputEvent(): event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_CHANNEL_UP, scanCode=402, metaState=0, flags=0x8, repeatCount=0, eventTime=191736862, downTime=191736862, deviceId=5, source=0x301 }
11-19 18:58:23.274  3748  3748 I SonyIrbServiceWrapper: isKeyPassThrough keyCode:166

Tvx-TvPlayer: onUnhandledInputEvent(): event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_CHANNEL_DOWN, scanCode=403, metaState=0, flags=0x8, repeatCount=0, eventTime=191830121, downTime=191830121, deviceId=5, source=0x301 }
11-19 19:08:24.122  3128  3128 D SonyIrbServiceWrapper: isKeyPassThrough keyCode:167


I have also tried to use keymap editor but as soon as I press PROG +/- buttons in Kodi the TV goes out from the app and open the HDMI 1 input. The official Zattoo app itself is able to use the PROG +/- buttons to change channels, so I believe it would be possible to use them within Kodi.

I have traced all the mesg related to Joystick Support, Kodi keeps adding and removing configuration and then it fails adding the map for the SONY TV RC MIC 001 remote control as you can see from the log. But at the end it shows this message:

NOTICE: Register - new joystickemulation device registered on application->1: keyboard player (0000:0000)

Does it mean that the remote is seen as keyboard? Can anyone help me?
Log part: https://pastebin.com/raw/qXQUaUDD
Reply


Messages In This Thread
Unable to map PROG+/- (CH+/-) buttons in KODI as for SPMC - by Hìr0 - 2017-11-19, 19:35
Logout Mark Read Team Forum Stats Members Help
Unable to map PROG+/- (CH+/-) buttons in KODI as for SPMC0