2013-04-29, 13:37
Hello
I am using Ubuntu 12.10 minimal / XBMC 12.1 with a IMON IR receiver that is inside my OrigenAE M10 HTPC case.
I am not using LIRC (As when that was installed I had issues with double commands / presses being sent to XBMC)
I am using IR-KEYTABLE and the inbuilt kernel modules for IR.
I am using a Harmony 895 universal remote control setup as a MCE remote.
I have all the basic MCE buttons working just fine following this guide here
My question is how do I add additional custom buttons ?
For example I wanted a button to bring up the Codec Info - Keyboard shortcut O
I have gotten this working by using an existing MCE remote button that was not in use (The Red button).
This is my /etc/rc_keymaps/imon_mce file
I changed KEY_RED to be KEY_O instead
0x800ff45b KEY_O #Red button - O Diagnostic Codec Info
I did not need to edit the Keyboard.xml file as there is already a line in there that says:
<o>CodecInfo</o>
This works now when I press the Red button whilst a movie is playing the Codec Info is shown on screen.
However my real question is this, how can you add new custom buttons without using existing MCE buttons / hex codes ?
I initially tried to teach my Harmony remote the actual keyboard key of: O using a IR MCE keyboard. But when I pressed this new custom button nothing in ir-keytable -t is detected.
Also I cannot seem to get the discrete PowerOn / PowerOff commands working only PowerToggle.
Thanks
I am using Ubuntu 12.10 minimal / XBMC 12.1 with a IMON IR receiver that is inside my OrigenAE M10 HTPC case.
I am not using LIRC (As when that was installed I had issues with double commands / presses being sent to XBMC)
I am using IR-KEYTABLE and the inbuilt kernel modules for IR.
I am using a Harmony 895 universal remote control setup as a MCE remote.
I have all the basic MCE buttons working just fine following this guide here
My question is how do I add additional custom buttons ?
For example I wanted a button to bring up the Codec Info - Keyboard shortcut O
I have gotten this working by using an existing MCE remote button that was not in use (The Red button).
This is my /etc/rc_keymaps/imon_mce file
Code:
# table imon_mce, type: RC6
0x800ff415 KEY_R #Rewind
0x800ff414 KEY_F #FastForward
0x800ff41b KEY_F2 #Previous button
0x800ff41a KEY_F1 #Next button
0x800ff416 KEY_PLAY #Play
0x800ff418 KEY_PLAYPAUSE #Pause
0x800ff419 KEY_X #Stop
0x800ff417 KEY_RECORD #Record
0x02000052 KEY_UP #Up Direction
0x02000051 KEY_DOWN #Down Direction
0x0200004f KEY_RIGHT #Right Direction
0x02000050 KEY_LEFT #Left Direction
0x02000028 KEY_ENTER #OK/Enter
0x0200002a KEY_BACK #Back/Exit
0x02000029 KEY_BACKSPACE #Delete button - Backspace
0x800ff40e KEY_MUTE #Mute
0x800ff410 KEY_VOLUMEUP #Volume Up
0x800ff411 KEY_VOLUMEDOWN #Volume Down
0x800ff412 KEY_PAGEUP #ChannelUp button - PageUp
0x800ff413 KEY_PAGEDOWN #ChannelDown button - PageDown
0x0200001e KEY_1 #Numeric_1 button
0x0200001f KEY_2 #Numeric_2 button
0x02000020 KEY_3 #Numeric_3 button
0x02000021 KEY_4 #Numeric_4 button
0x02000022 KEY_5 #Numeric_5 button
0x02000023 KEY_6 #Numeric_6 button
0x02000024 KEY_7 #Numeric_7 button
0x02000025 KEY_8 #Numeric_8 button
0x02000026 KEY_9 #Numeric_9 button
0x02000027 KEY_0 #Numeric_0 button
0x02200025 KEY_NUMERIC_STAR #* button
0x02200020 KEY_NUMERIC_POUND ## button
0x800ff446 KEY_TV #Unknown button on remote control handset
0x800ff447 KEY_F3 #AUDIO button - F3 - XBMC Music
0x800ff448 KEY_PVR #Not Working Record TV button
0x800ff449 KEY_F4 #CAMERA button - F4 XBMC Pictures
0x800ff44a KEY_F5 #VIDEO button - F5 XBMC Videos
0x800ff424 KEY_F6 #DVD button - F6 ShowVideoMenu
0x800ff425 KEY_TUNER #Not Working Live TV button
0x800ff450 KEY_RADIO #Not Working Radio button
0x800ff44c KEY_LANGUAGE #Unknown button on remote control handset
0x800ff427 KEY_ZOOM #Unknown button on remote control handset
0x800ff45b KEY_O #Red button - O Diagnostic Codec Info
0x800ff45c KEY_GREEN #Green button
0x800ff45d KEY_YELLOW #Yellow button
0x800ff45e KEY_BLUE #Blue button
0x800ff40f KEY_I #Info button - Information
0x800ff426 KEY_C #EPG/Guide button - Context Menu
0x800ff45a KEY_T #Subtitle button - Toggle Subtitles (Teletext Button in Harmony)
0x800ff44d KEY_TITLE #Not Assigned
0x800ff40c KEY_SUSPEND #Power button - XBMC Shutdown function
0x800ff40d KEY_ESC #MCE Green button - Home
I changed KEY_RED to be KEY_O instead
0x800ff45b KEY_O #Red button - O Diagnostic Codec Info
I did not need to edit the Keyboard.xml file as there is already a line in there that says:
<o>CodecInfo</o>
This works now when I press the Red button whilst a movie is playing the Codec Info is shown on screen.
However my real question is this, how can you add new custom buttons without using existing MCE buttons / hex codes ?
I initially tried to teach my Harmony remote the actual keyboard key of: O using a IR MCE keyboard. But when I pressed this new custom button nothing in ir-keytable -t is detected.
Also I cannot seem to get the discrete PowerOn / PowerOff commands working only PowerToggle.
Thanks