Unable to map PROG+/- (CH+/-) buttons in KODI as for SPMC - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164) +---- Thread: Unable to map PROG+/- (CH+/-) buttons in KODI as for SPMC (/showthread.php?tid=324342) |
Unable to map PROG+/- (CH+/-) buttons in KODI as for SPMC - Hìr0 - 2017-11-19 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 } 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 RE: Sony Android TV remote control mapping - Klojum - 2017-11-19 Please do not post log files/snippets directly into our forum, but use websites like pastebin.com instead. RE: Sony Android TV remote control mapping - Hìr0 - 2017-11-19 Ok sorry was my first post. RE: Sony Android TV remote control mapping - Hìr0 - 2017-11-21 Hello guys, I have test the SPMC app because people from Sony forum did not experienced the same problem with that. In fact by looking at the spmc.log there is nothing about the "SONY TV RC MIC 001" device, so I guess is not recognized and automatically set to keyboard. If I click on PROG +/- in the log file I can now see: Quote:23:16:39.459 T:18446744071701535008 DEBUG: webserver: request received for /acr_enabledAnd by using keymap editor addon I can map the PROG +/- buttons to channel up/down action under FullscreenLiveTV->PVR. Now the question is what is wrong in the mapping of Kodi Leila? I can I force Kodi behaving as SPMC. RE: Sony Android TV remote control mapping - Hìr0 - 2017-11-22 For your information, the keymap setting that works on SMPC is: Quote:<keymap>I have tried to do the same on Kodi 18 latest nightly but no luck. I have been tracing all CPeripheralBusAndroid calls and I have found that the device is added and removed continuously Quote:INFO: CPeripheralBusAndroid: input device "SONY TV RC MIC 001" with ID 46 detectedbut then if I press two recognized buttons like stop and play they seem to be mapped as keybord: Quote:DEBUG: Keyboard: scancode: 0x7e, sym: 0x00b3, unicode: 0x0000, modifier: 0x0Is there a bug on the mapping in Kodi Leia? If so, I could stop playing with that RE: Sony Android TV remote control mapping - Hìr0 - 2017-11-30 Still, I don't manage to make some buttons working as I would. Anybody who could help me? RE: Sony Android TV remote control mapping - aesthetiker - 2018-01-16 Did you fix that issue with Kodi18? RE: Sony Android TV remote control mapping - CiNcH - 2018-01-16 Don't you have to use the keyboard scancode to map the action? My keymap for CH+/CH- would therefore look like that: Code: <keymap> RE: Sony Android TV remote control mapping - Hìr0 - 2018-01-17 If I'm not mistaken, this is the first test I did at the beginning and described in my first post but it did not work. Is Kodi case-sensitive? Did the map work for you? In my case as soon as I press CH up or down the TV goes to the HDMI input. On SPMC the keymap did not work neither but at least CH +/- buttons do not close the app. RE: Sony Android TV remote control mapping - Hìr0 - 2018-01-17 (2018-01-16, 11:57)aesthetiker Wrote: Did you fix that issue with Kodi18?Not yet. Are the default keymaps stored somewhere? I would like to compare them against SPMC to see first of all how they manage to reserve the usage of the CH+/- buttons RE: Sony Android TV remote control mapping - DarrenHill - 2018-01-17 (2018-01-17, 00:51)Hìr0 Wrote:(2018-01-16, 11:57)aesthetiker Wrote: Did you fix that issue with Kodi18?Not yet. Are the default keymaps stored somewhere? I would like to compare them against SPMC to see first of all how they manage to reserve the usage of the CH+/- buttons https://github.com/xbmc/xbmc/tree/master/system/keymaps https://github.com/kodi-game/peripheral.joystick/tree/master/peripheral.joystick/resources/buttonmaps/xml Those are the keymap (wiki) files as installed. If you have any locally generated ones they will be in the keymaps folder in your userdata (wiki) folder, and entries in those will override equivalent entries in the default ones. You can have multiple keymap files, and they are loaded in order (so they can also override each other, last one loaded wins if they all have the same entry set in them). You can find more details on the linked wiki pages. RE: Sony Android TV remote control mapping - Hìr0 - 2018-01-18 I have almost tried all possible combinations. I did another attempt trying to remap the number 0 to 9 for testing purpose and it worked. There might be something wrong in Kodi for CH+/- buttons or I'm still missing something. Other apps like xplore or zattoo are able to use those buttons to scroll Up/Down a page or change channels. Quote:<keymap> RE: Sony Android TV remote control mapping - Hìr0 - 2018-01-18 I did a further test. I have overloaded all keymaps files from spmc in Kodi but still when I press PROG+/- buttons the TV goes out from the app and opens the last watched HDMI input. I have installed again SPMC and nothing happens when I press those buttons allowing me to use for instance keymaps editor. On kodi I cannot really use keymaps editor addon because as soon as I press the buttons it goes out. It is now clear that is a keymap problem but it has to be solved within the app itself. As I said before other apps like xPlore, ExpressVPN , etc... can uses PROG+/- buttons to scroll up/down or as for the Zattoo app to change channels. What Koying does to reserve the remote controller buttons to the app? I have seen that he is also active in this forum. Update: I can confirm that I can switch channels with PROG+/- buttons on SPMC. I have added the file sony.xml under keymaps with the following lines: Quote:<keymap>Since we do not have access to the new PVR client from Teleboy or Zattoo within SPMC I did the test using the addon PVR Demo Client. |