Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
What's the keyboard key stroke equivalent of the Blue Button?
#1
Does anybody know the keyboard key stroke equivalent of the Blue Button in Kodi?  In the remote.xml keymap file I have this working as <blue>Blue</blue> on my ODroids, but those have built-in IR and I didn't need to know the keyboard key stroke to set those up.

But I have an RPi4 for which I'm trying to program a Flirc USB device, and have linux PC running Kodi with only a keyboard also, so I need to know how to imitate the Blue Button with the keyboard.

The keyboard mappings I found on the Kodi wiki don't list the Blue Button.

Thanks,
-Brad
Reply
#2
If you enable debug logging, any keystroke received by Kodi will be logged into the debug log (wiki).

You can try that and see in the log whether the button is passed to Kodi, and if so what the corresponding keycode would be.
|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
(2020-10-29, 10:19)DarrenHill Wrote: If you enable debug logging, any keystroke received by Kodi will be logged into the debug log (wiki).

You can try that and see in the log whether the button is passed to Kodi, and if so what the corresponding keycode would be.

I can try that, but does the IR receiver actually send the keycode?
Reply
#4
(2020-10-29, 13:58)BAJ1 Wrote:
(2020-10-29, 10:19)DarrenHill Wrote: If you enable debug logging, any keystroke received by Kodi will be logged into the debug log (wiki).

You can try that and see in the log whether the button is passed to Kodi, and if so what the corresponding keycode would be.

Oh my ODroid, right?  I can try that, but does the IR receiver actually send the keycode?  I used meson-ir to configure the remote, in my case I had "0x1e29 KEY_BLUE", which doesn't tell me anything about the keyboard.
Reply
#5
(2020-10-29, 13:58)BAJ1 Wrote: I can try that, but does the IR receiver actually send the keycode?

That's what you're trying to find out by looking in the debug log (wiki).

If Kodi doesn't receive the keystroke, then it can't act on it via a keymap or any other method...

This page may also help clarify things - LIRC (wiki)
|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
#6
Okay, logs are here:
http://ix.io/2Cpv

I fired up a video (@11:45:09) and pressed the Blue Button twice on the remote, which pops up an osd with playback status, which worked.  Then I stopped playback and uploaded the logs.

I'm not hopeful the button was captured in the logs.  I couldn't see anything in the log that looked like it to me (but what do I know).  The discouraging part is the log jumps from 11:45:09 to 11:45:21 with nothing in between, which unfortunately seems like about the duration of video playback for the test I did, during which I pressed the Blue Button.

?
Reply
#7
I guess I should have mentioned I am using the NextPVR knewc program add-on, but wouldn't Kodi be passing the remote commands to the addon and therefore capture in the debug log?
Reply
#8
(2020-10-29, 19:00)BAJ1 Wrote: Okay, logs are here:
http://ix.io/2Cpv

I fired up a video (@11:45:09) and pressed the Blue Button twice on the remote, which pops up an osd with playback status, which worked.  Then I stopped playback and uploaded the logs.

I'm not hopeful the button was captured in the logs.  I couldn't see anything in the log that looked like it to me (but what do I know).  The discouraging part is the log jumps from 11:45:09 to 11:45:21 with nothing in between, which unfortunately seems like about the duration of video playback for the test I did, during which I pressed the Blue Button.

?
 
Code:
HandleKey: 254 (0xfe, obc1) pressed, action is Blue

254 should be your key id for the Blue button. So you can use this in your xml file like this:

<keymap>
<global>
<keyboard>
<key id="254">contextmenu</key>
</keyboard>
</global>
</keymap>
Reply
#9
(2020-10-29, 19:22)FXB78 Wrote:
(2020-10-29, 19:00)BAJ1 Wrote: Okay, logs are here:
http://ix.io/2Cpv

I fired up a video (@11:45:09) and pressed the Blue Button twice on the remote, which pops up an osd with playback status, which worked.  Then I stopped playback and uploaded the logs.

I'm not hopeful the button was captured in the logs.  I couldn't see anything in the log that looked like it to me (but what do I know).  The discouraging part is the log jumps from 11:45:09 to 11:45:21 with nothing in between, which unfortunately seems like about the duration of video playback for the test I did, during which I pressed the Blue Button.

?
 
Code:
HandleKey: 254 (0xfe, obc1) pressed, action is Blue

254 should be your key id for the Blue button. So you can use this in your xml file like this:

<keymap>
<global>
<keyboard>
<key id="254">contextmenu</key>
</keyboard>
</global>
</keymap>
Perhaps I'm just dense or haven't had enough coffee yet today, but how does this help me know what key(s) to press on a keyboard to generate the 254/Blue key ID?
Reply
#10
You provided a log file with a Blue button keypress, so I assumed you wanted to map that key to something else. It seems you want to map a keyboard key to the Blue button, in which case you need to find the key id from your keyboard for whichever key you want to map to Blue. This could then be mapped in keyboard.xml like <key id="123">blue</key>.
Reply
#11
I think you've got it backwards. You shouldn't be trying to find a keyboard key to generate the blue key ID, you should look at what the blue key is assigned to do, and then make a keymap for a suitable key on the keyboard which has the same action.

Looking in the default remote keymap (https://github.com/xbmc/xbmc/blob/master...remote.xml), for the most part the action is simply <blue>Blue</blue>. So what you would need to do is pick a suitable key on the keyboard, and give it the action "Blue". For example if you want to use the q key it would be <q>Blue</q>.
|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
#12
(2020-10-29, 21:06)DarrenHill Wrote: I think you've got it backwards. You shouldn't be trying to find a keyboard key to generate the blue key ID, you should look at what the blue key is assigned to do, and then make a keymap for a suitable key on the keyboard which has the same action.

Looking in the default remote keymap (https://github.com/xbmc/xbmc/blob/master...remote.xml), for the most part the action is simply <blue>Blue</blue>. So what you would need to do is pick a suitable key on the keyboard, and give it the action "Blue". For example if you want to use the q key it would be <q>Blue</q>.
Thanks Darren, I did some poking around the web on my phone while I was waiting for others tonight and after doing some reading was thinking down the same lines.  I could have sworn I had been using CTRL-B in the past with XBMC, but I know that was one or two laptops ago.  I was thinking of adding function to the other color buttons so maybe I'll try to stick with the CTRL-x scheme for consistency.

I was fairly certain I had been using it before so I was under the assumption that the keyboard map for Blue already existed in Kodi and I just had to find it, but it makes sense that I can just define it to be whatever I want it to be.
Reply
#13
Apparently the color buttons are defined as ALT-B (R, Y, and G) in Kodi.  Not sure how I missed that.
Reply

Logout Mark Read Team Forum Stats Members Help
What's the keyboard key stroke equivalent of the Blue Button?0