Coming from the Windows Media Center I have customised my IR scancode and keymapping tables. I’ve done some cleanup and rearranged the keys to match the Windows Media Center functions as closely as possible. I have three buttons who don’t work in this configuration:
- Replay, Skip, and
- The Green Button
Who knows what is wrong and how I can correct the configuration?
Store this in ~/.kodi/userdata/Lircmap.xml or /usr/share/kodi/system/Lircmap.xml.
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->
<!-- -->
<!-- How to add remotes -->
<!-- <remote device="name_Lirc_calls_the_remote"> -->
<!-- -->
<!-- For the commands the layout following layout is used -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND> -->
<!-- -->
<!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml -->
<lircmap>
<remote device="linux-input-layer">
<altname>cx23885_remote</altname>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_OK</select>
<back>KEY_EXIT</back>
<record>KEY_RECORD</record>
<play>KEY_PLAY</play>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOP</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<channelplus>KEY_CHANNELUP</channelplus>
<channelminus>KEY_CHANNELDOWN</channelminus>
<skip>KEY_NEXT</skip>
<replay>KEY_PREVIOUS</replay>
<guide>KEY_EPG</guide>
<teletext>KEY_SUBTITLE</teletext>
<mute>KEY_MUTE</mute>
<power>KEY_SLEEP</power>
<mytv>KEY_TV</mytv>
<myvideo>KEY_VIDEO</myvideo>
<mymusic>KEY_AUDIO</mymusic>
<mypictures>KEY_CAMERA</mypictures>
<livetv>KEY_TUNER</livetv>
<one>KEY_NUMERIC_1</one>
<two>KEY_NUMERIC_2</two>
<three>KEY_NUMERIC_3</three>
<four>KEY_NUMERIC_4</four>
<five>KEY_NUMERIC_5</five>
<six>KEY_NUMERIC_6</six>
<seven>KEY_NUMERIC_7</seven>
<eight>KEY_NUMERIC_8</eight>
<nine>KEY_NUMERIC_9</nine>
<zero>KEY_NUMERIC_0</zero>
<star>KEY_NUMERIC_STAR</star>
<hash>KEY_NUMERIC_POUND</hash>
<red>KEY_RED</red>
<green>KEY_GREEN</green>
<yellow>KEY_YELLOW</yellow>
<blue>KEY_BLUE</blue>
<dvdmenu>KEY_DVD</dvdmenu>
<info>KEY_INFO</info>
<recordedtv>KEY_PVR</recordedtv>
<clear>KEY_DELETE</clear>
<thegreenbutton>KEY_MEDIA</thegreenbutton>
</remote>
</lircmap>
Store this in ~/.kodi/userdata/keymaps/remote.xml or /usr/share/kodi/system/userdata/remote.xml.
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not -->
<!-- used in the current window's section. Note that there is only handling -->
<!-- for a single action per button at this stage. -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
<!-- gamepads. -->
<!-- The format is: -->
<!-- <device> -->
<!-- <button>action</button> -->
<!-- </device> -->
<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <universalremote> block to the window or <global> section: -->
<!-- <universalremote> -->
<!-- <obc45>Stop</obc45> -->
<!-- </universalremote> -->
<!-- Note that the action can be a built-in function. -->
<!-- eg <B>ActivateWindow(MyMusic)</B> -->
<!-- would automatically go to My Music on the press of the B button. -->
<keymap>
<global>
<remote>
<play>PlayPause</play>
<pause>Pause</pause>
<stop>Stop</stop>
<forward>FastForward</forward>
<reverse>Rewind</reverse>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>Select</select>
<pageplus>PageUp</pageplus>
<pageminus>PageDown</pageminus>
<back>PreviousMenu</back>
<dvdmenu>PlayDVD</dvdmenu>
<info>ContextMenu</info>
<skip>StepForward</skip>
<replay>StepBackward</replay>
<record>Record</record>
<volumeplus>VolumeUp</volumeplus>
<volumeminus>VolumeDown</volumeminus>
<mute>Mute</mute>
<power>ActivateScreensaver</power>
<myvideo>ActivateWindow(MyVideos)</myvideo>
<mymusic>ActivateWindow(RadioChannels)</mymusic>
<mypictures>Screensaver</mypictures>
<mytv>FullScreenVideo</mytv>
<guide>ActivateWindow(TVGuide)</guide>
<livetv>ActivateWindow(TVChannels)</livetv>
<recordedtv>ActivateWindow(TVRecordings)</recordedtv>
<red>Red</red>
<green>Green</green>
<yellow>Yellow</yellow>
<blue>Blue</blue>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<clear>Delete</clear>
<enter>Enter</enter>
<thegreenbutton>ActivateWindow(Home)</thegreenbutton>
<teletext>info</teletext>
</remote>
</global>
<FullscreenVideo>
<remote>
<left>StepBack</left>
<right>StepForward</right>
<mytv>CodecInfo</mytv>
<star>NextSubtitle</star>
<hash>AudioNextLanguage</hash>
</remote>
</FullscreenVideo>
<Visualisation>
<remote>
<left>PreviousPreset</left>
<right>NextPreset</right>
<up>IncreaseRating</up>
<down>DecreaseRating</down>
<back>Back</back>
<title>CodecInfo</title>
<select>ActivateWindow(VisualisationPresetList)</select>
<menu>OSD</menu>
<contentsmenu>OSD</contentsmenu>
<rootmenu>OSD</rootmenu>
<start>OSD</start>
<info>Info</info>
<guide>ActivateWindow(PVROSDGuide)</guide>
<playlist>ActivateWindow(PVROSDChannels)</playlist>
</remote>
</Visualisation>
<VirtualKeyboard>
<remote>
<clear>BackSpace</clear>
<star>Shift</star>
<hash>Symbols</hash>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<enter>Enter</enter>
<left>CursorLeft</left>
<right>CursorRight</right>
</remote>
</VirtualKeyboard>
<NumericInput>
<remote>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<enter>Enter</enter>
<clear>BackSpace</clear>
</remote>
</NumericInput>
<Teletext>
<remote>
<teletext>Back</teletext>
</remote>
</Teletext>
<FullscreenLiveTV>
<remote>
<left>StepBack</left>
<right>StepForward</right>
<up>ChannelUp</up>
<down>ChannelDown</down>
<pageplus>ChannelUp</pageplus>
<pageminus>ChannelDown</pageminus>
<star>NextSubtitle</star>
<hash>AudioNextLanguage</hash>
<teletext>ActivateWindow(Teletext)</teletext>
</remote>
</FullscreenLiveTV>
<FullscreenRadio>
<remote>
<left>StepBack</left>
<right>StepForward</right>
<up>ChannelUp</up>
<down>ChannelDown</down>
</remote>
</FullscreenRadio>
</keymap>