Android How to program tv remote "audio" and "subtitles" buttons on Sony Android TV?
#1
I have Sony X9300, Kodi 19, android 7.1.2. Now I am trying to configure the TV remote to open the subtitles menu when the "subtitles" button is pressed on the remote. Same for "audio". And I cannot.

Problem#1 (minor): these is no such action as "subtitles" menu to assignMy bad, it is there
Problem#2 (major): Keymap Editor does not detect "subtitles" nor "audio" buttons. Play/Stop/FF/Rewind work but not these two. I removed the joystick support as advised elsewhere but did not help.

Workaround: "next subtitles" to the "yellow" teletext and "next audio" to "green". But it is just ugly.
Is there a way to use those buttons? VLC supports them so I guess it is not like the "netflix" button which may not be assignable by android tv at all.

Cannot use VLC -- its video decoding is way too picky, does not like way too many files Smile
Reply
#2
The first thing to confirm is whether those buttons are actually passed to Kodi or not.

To do this, enable debug logging (see the wiki - debug log (wiki) for how to do that) and then press the buttons. If Kodi does see them then entries will be made in the log for those keypresses. You can use the log uploader addon to either view the log on-screen or to upload it to our paste site, where you can then view it on a PC using a web browser.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
Pressed: Play, Rewind, Audio, Subtitles, SkipPrevious, Pause (the same code as Play, huh), 5 seconds apart. Since it is 5sec apart, Audio and Subtitles did not make it to the log. So Kodi does not see them. However VLC does see these keys. Weird.
log:
2021-04-20 13:14:39.900 T:12248   DEBUG <general>: HandleKey: play_pause (0xf0bd) pressed, action is PlayPause
2021-04-20 13:14:44.596 T:12248   DEBUG <general>: Keyboard: scancode: 0x59, sym: 0x186, unicode: 0x0000, modifier: 0x0
2021-04-20 13:14:44.597 T:12248   DEBUG <general>: HandleKey: rewind (0xf0c4) pressed, action is Rewind
2021-04-20 13:14:44.932 T:12248   DEBUG <general>: Keyboard: scancode: 0x59, sym: 0x186, unicode: 0x0000, modifier: 0x0
2021-04-20 13:14:59.291 T:12248   DEBUG <general>: Keyboard: scancode: 0x58, sym: 0x177, unicode: 0x0000, modifier: 0x0
2021-04-20 13:14:59.291 T:12248   DEBUG <general>: HandleKey: prev_track (0xf0bb) pressed, action is SkipPrevious
2021-04-20 13:14:59.613 T:12248   DEBUG <general>: Keyboard: scancode: 0x58, sym: 0x177, unicode: 0x0000, modifier: 0x0
2021-04-20 13:15:04.380 T:12248   DEBUG <general>: Keyboard: scancode: 0x55, sym: 0x179, unicode: 0x0000, modifier: 0x0
2021-04-20 13:15:04.775 T:12248   DEBUG <general>: Skipped 1 duplicate messages..
2021-04-20 13:15:04.775 T:12248   DEBUG <general>: HandleKey: play_pause (0xf0bd) pressed, action is PlayPause

If it was not android, I'd dig into the code but I cannot build android apps, it is so painful Smile
Reply
#4
I'm pretty sure that this worked before. It does not work on my XG95 also but since I got that TV at around the same time when I switched to Leia I was sure that it has something to do with the new remote/TV. But today I tried Leia on my old W75C and the subtitle button does not work there either. Will try to find v17 somewhere to see if my memory is a bust or something did broke on v18.
Reply
#5
You can download apk files back to v15 (Isengard) from our mirrors.

If the CEC (wiki) is passing the key to Kodi, then it can usually be mapped and acted upon. But of course if Kodi doesn't receive it, it can't do anything with it.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply

Logout Mark Read Team Forum Stats Members Help
How to program tv remote "audio" and "subtitles" buttons on Sony Android TV?0