Skip to content

Instantly share code, notes, and snippets.

@bremme
Last active September 10, 2018 13:13
Show Gist options
  • Save bremme/cca1884e5008ca748f35 to your computer and use it in GitHub Desktop.
Save bremme/cca1884e5008ca748f35 to your computer and use it in GitHub Desktop.
ir-keytable configuration for hp media center receiver and remote (Bus 004 Device 002: ID 1934:5168 Feature Integration Technology Inc. (Fintek) F71610A or F71612A Consumer Infrared Receiver/Transceiver)
<?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. -->
<!-- Joysticks / Gamepads: -->
<!-- See the sample PS3 controller configuration below for the format. -->
<!-- -->
<!-- Joystick Name: -->
<!-- Do 'cat /proc/bus/input/devices' or see your xbmc log file to find the names of -->
<!-- detected joysticks. The name used in the configuration should match the detected name. -->
<!-- -->
<!-- Button Ids: -->
<!-- 'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear -->
<!-- in xbmc.log when they are pressed. Use your log to map custom buttons to actions. -->
<!-- -->
<!-- Axis Ids / Analog Controls -->
<!-- Coming soon. -->
<keymap>
<global>
<keyboard>
<p>Play</p>
<q>Queue</q>
<f>FastForward</f>
<r>Rewind</r>
<y>SwitchPlayer</y>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<left mod="ctrl">analogseekback</left>
<right mod="ctrl">analogseekforward</right>
<pageup>PageUp</pageup>
<pagedown>PageDown</pagedown>
<return>Select</return>
<enter>Select</enter>
<backspace>Back</backspace>
<key id='65446'>Back</key>
<m>ActivateWindow(PlayerControls)</m>
<s>ActivateWindow(shutdownmenu)</s>
<escape>PreviousMenu</escape>
<i>Info</i>
<menu>ContextMenu</menu>
<c>ContextMenu</c>
<space>Pause</space>
<x>Stop</x>
<period>SkipNext</period>
<comma>SkipPrevious</comma>
<tab>FullScreen</tab>
<printscreen>Screenshot</printscreen>
<s mod="ctrl">Screenshot</s>
<minus>VolumeDown</minus>
<plus>VolumeUp</plus>
<equals>VolumeUp</equals>
<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>
<numpadminus>VolumeDown</numpadminus>
<numpadplus>VolumeUp</numpadplus>
<numpadzero>Number0</numpadzero>
<numpadone>Number1</numpadone>
<numpadtwo>Number2</numpadtwo>
<numpadthree>Number3</numpadthree>
<numpadfour>Number4</numpadfour>
<numpadfive>Number5</numpadfive>
<numpadsix>Number6</numpadsix>
<numpadseven>Number7</numpadseven>
<numpadeight>Number8</numpadeight>
<numpadnine>Number9</numpadnine>
<!-- <backslash>ToggleFullScreen</backslash> -->
<f11>ToggleFullScreen</f11>
<home>FirstPage</home>
<end>LastPage</end>
<power>ActivateWindow(shutdownmenu)</power>
<sleep>ActivateWindow(shutdownmenu)</sleep>
<!-- PVR windows -->
<e>ActivateWindow(TVGuide)</e>
<h>ActivateWindow(TVChannels)</h>
<j>ActivateWindow(RadioChannels)</j>
<k>ActivateWindow(TVRecordings)</k>
<b>ActivateWindow(TVTimers)</b>
<!-- Multimedia keyboard keys -->
<browser_back>Back</browser_back>
<browser_forward/>
<browser_refresh/>
<browser_stop/>
<browser_search/>
<browser_favorites>ActivateWindow(Favourites)</browser_favorites>
<browser_home>ActivateWindow(Home)</browser_home>
<volume_mute>Mute</volume_mute>
<volume_down>VolumeDown</volume_down>
<volume_up>VolumeUp</volume_up>
<next_track>SkipNext</next_track>
<prev_track>SkipPrevious</prev_track>
<stop>Stop</stop>
<play_pause>PlayPause</play_pause>
<fastforward>FastForward</fastforward>
<rewind>Rewind</rewind>
<record/>
<launch_mail></launch_mail>
<launch_media_select>ActivateWindow(MyMusic)</launch_media_select>
<launch_app1_pc_icon>ActivateWindow(MyPrograms)</launch_app1_pc_icon>
<launch_app2_pc_icon>ActivateWindow(MyPrograms)</launch_app2_pc_icon>
<launch_file_browser/>
<launch_media_center/>
<!-- ****************************************************** -->
<!-- MS Media Center keyboard shortcuts sent by MCE remotes -->
<!-- See http://msdn.microsoft.com/en-us/library/bb189249.aspx -->
<p mod="ctrl,shift">Play</p> <!-- Play -->
<s mod="ctrl,shift">Stop</s> <!-- Stop -->
<p mod="ctrl">Pause</p> <!-- Pause -->
<f mod="ctrl,shift">FastForward</f> <!-- Fwd -->
<b mod="ctrl,shift">Rewind</b> <!-- Rew -->
<f mod="ctrl">SkipNext</f> <!-- Skip -->
<b mod="ctrl">SkipPrevious</b> <!-- Replay -->
<d mod="ctrl">Info</d> <!-- MCE Details -->
<f10>VolumeUp</f10> <!-- MCE Vol up -->
<f9>VolumeDown</f9> <!-- MCE Vol down -->
<f8>Mute</f8> <!-- MCE mute -->
<g mod="ctrl">ActivateWindow(TVGuide)</g> <!-- MCE Guide -->
<m mod="ctrl">ActivateWindow(music)</m> <!-- MCE My music -->
<i mod="ctrl">ActivateWindow(pictures)</i> <!-- MCE My pictures -->
<e mod="ctrl">ActivateWindow(video)</e> <!-- MCE videos -->
<m mod="ctrl,shift">PlayerControl(ShowVideoMenu)</m> <!-- MCE DVD menu -->
<o mod="ctrl">ActivateWindow(TVRecordings)</o> <!-- MCE Recorded TV -->
<t mod="ctrl">ActivateWindow(TVChannels)</t> <!-- MCE Live TV -->
<t mod="ctrl,shift">ActivateWindow(TVChannels)</t> <!-- MCE My TV -->
<a mod="ctrl">ActivateWindow(RadioChannels)</a> <!-- MCE My Radio -->
<!-- MCE keypresses without an obvious use in XBMC -->
<u mod="ctrl">Notification(MCEKeypress, DVD subtitle, 3)</u>
<a mod="ctrl,shift">Notification(MCEKeypress, DVD audio, 3)</a>
</keyboard>
</global>
<LoginScreen>
<keyboard>
<end mod="ctrl">ShutDown()</end>
</keyboard>
</LoginScreen>
<Home>
<keyboard>
<i>info</i>
<end mod="ctrl">ShutDown()</end>
</keyboard>
</Home>
<VirtualKeyboard>
<keyboard>
<backspace>Backspace</backspace>
</keyboard>
</VirtualKeyboard>
<MyTVChannels>
<keyboard>
<m>Move</m>
</keyboard>
</MyTVChannels>
<MyTVRecordings>
<keyboard>
<delete>Delete</delete>
<r>Rename</r>
</keyboard>
</MyTVRecordings>
<MyTVTimers>
<keyboard>
<delete>Delete</delete>
<r>Rename</r>
</keyboard>
</MyTVTimers>
<MyRadioChannels>
<keyboard>
<m>Move</m>
</keyboard>
</MyRadioChannels>
<MyRadioRecordings>
<keyboard>
<delete>Delete</delete>
<r>Rename</r>
</keyboard>
</MyRadioRecordings>
<MyRadioTimers>
<keyboard>
<delete>Delete</delete>
<r>Rename</r>
</keyboard>
</MyRadioTimers>
<MyFiles>
<keyboard>
<space>Highlight</space>
<delete>Delete</delete>
<m>Move</m>
<r>Rename</r>
</keyboard>
</MyFiles>
<MyMusicPlaylist>
<keyboard>
<n>Back</n>
<delete>Delete</delete>
<u>MoveItemUp</u>
<d>MoveItemDown</d>
</keyboard>
</MyMusicPlaylist>
<MyMusicPlaylistEditor>
<keyboard>
<u>MoveItemUp</u>
<d>MoveItemDown</d>
<delete>Delete</delete>
</keyboard>
</MyMusicPlaylistEditor>
<MyMusicFiles>
<keyboard>
<n>Playlist</n>
<q>Queue</q>
<delete>Delete</delete>
</keyboard>
</MyMusicFiles>
<MyMusicLibrary>
<keyboard>
<n>Playlist</n>
<q>Queue</q>
</keyboard>
</MyMusicLibrary>
<FullscreenVideo>
<keyboard>
<f>FastForward</f>
<r>Rewind</r>
<period>StepForward</period>
<comma>StepBack</comma>
<backspace>Fullscreen</backspace>
<quote>SmallStepBack</quote>
<opensquarebracket>BigStepForward</opensquarebracket>
<closesquarebracket>BigStepBack</closesquarebracket>
<return>OSD</return>
<enter>OSD</enter>
<m>OSD</m>
<i>Info</i>
<o>CodecInfo</o>
<z>AspectRatio</z>
<t>ShowSubtitles</t>
<t mod="ctrl">SubtitleAlign</t>
<l>NextSubtitle</l>
<left>StepBack</left>
<right>StepForward</right>
<up>ChapterOrBigStepForward</up>
<down>ChapterOrBigStepBack</down>
<a>AudioDelay</a>
<escape>Fullscreen</escape>
<c>Playlist</c>
<v>ActivateWindow(Teletext)</v>
<up mod="ctrl">SubtitleShiftUp</up>
<down mod="ctrl">SubtitleShiftDown</down>
<pageup>SkipNext</pageup>
<pagedown>SkipPrevious</pagedown>
</keyboard>
</FullscreenVideo>
<VideoTimeSeek>
<keyboard>
<return>Select</return>
<enter>Select</enter>
</keyboard>
</VideoTimeSeek>
<FullscreenInfo>
<keyboard>
<f>FastForward</f>
<r>Rewind</r>
<period>StepForward</period>
<o>CodecInfo</o>
<i>Back</i>
<d mod="ctrl">Back</d>
<m>OSD</m>
</keyboard>
</FullscreenInfo>
<PlayerControls>
<keyboard>
<m>Back</m>
</keyboard>
</PlayerControls>
<Visualisation>
<keyboard>
<f>FastForward</f>
<r>Rewind</r>
<period>SkipNext</period>
<comma>SkipPrevious</comma>
<backspace>Fullscreen</backspace>
<return>OSD</return>
<enter>OSD</enter>
<m>OSD</m>
<i>Info</i>
<p>ActivateWindow(VisualisationPresetList)</p>
<v>ActivateWindow(VisualisationSettings)</v>
<n>ActivateWindow(MusicPlaylist)</n>
<left>SkipPrevious</left>
<right>SkipNext</right>
<up>IncreaseRating</up>
<down>DecreaseRating</down> <!--<back>NextPreset</back>!-->
<o>CodecInfo</o>
<l>LockPreset</l>
<escape>FullScreen</escape>
<g>ActivateWindow(PVROSDGuide)</g>
<c>ActivateWindow(PVROSDChannels)</c>
</keyboard>
</Visualisation>
<MusicOSD>
<keyboard>
<f>FastForward</f>
<r>Rewind</r>
<period>SkipNext</period>
<comma>SkipPrevious</comma>
<m>Back</m>
<i>Info</i>
<o>CodecInfo</o>
<p>ActivateWindow(VisualisationPresetList)</p>
<v>ActivateWindow(VisualisationSettings)</v>
<n>ActivateWindow(MusicPlaylist)</n>
</keyboard>
</MusicOSD>
<VisualisationSettings>
<keyboard>
<f>FastForward</f>
<r>Rewind</r>
<period>SkipNext</period>
<comma>SkipPrevious</comma>
<m>Back</m>
<i>Info</i>
<o>CodecInfo</o>
<p>ActivateWindow(VisualisationPresetList)</p>
<v>Back</v>
<n>ActivateWindow(MusicPlaylist)</n>
</keyboard>
</VisualisationSettings>
<VisualisationPresetList>
<keyboard>
<f>FastForward</f>
<r>Rewind</r>
<period>SkipNext</period>
<comma>SkipPrevious</comma>
<m>Back</m>
<i>Info</i>
<o>CodecInfo</o>
<p>Back</p>
<v>Back</v>
<n>ActivateWindow(MusicPlaylist)</n>
</keyboard>
</VisualisationPresetList>
<SlideShow>
<keyboard>
<zero>ZoomNormal</zero>
<one>ZoomLevel1</one>
<two>ZoomLevel2</two>
<three>ZoomLevel3</three>
<four>ZoomLevel4</four>
<five>ZoomLevel5</five>
<six>ZoomLevel6</six>
<seven>ZoomLevel7</seven>
<eight>ZoomLevel8</eight>
<nine>ZoomLevel9</nine>
<i>Info</i>
<o>CodecInfo</o>
<period>NextPicture</period>
<comma>PreviousPicture</comma>
<plus>ZoomIn</plus>
<minus>ZoomOut</minus>
<return>Rotate</return>
<enter>Rotate</enter>
<r>Rotate</r>
</keyboard>
</SlideShow>
<ScreenCalibration>
<keyboard>
<return>NextCalibration</return>
<enter>NextCalibration</enter>
<d>ResetCalibration</d>
<r>NextResolution</r>
</keyboard>
</ScreenCalibration>
<GUICalibration>
<keyboard>
<return>NextCalibration</return>
<enter>NextCalibration</enter>
<d>ResetCalibration</d>
</keyboard>
</GUICalibration>
<VideoOSD>
<keyboard>
<m>Back</m>
<g mod="ctrl">Back</g> <!-- MCE Guide button -->
<i>Info</i>
<o>CodecInfo</o>
</keyboard>
</VideoOSD>
<VideoMenu>
<keyboard>
<opensquarebracket>BigStepForward</opensquarebracket>
<closesquarebracket>BigStepBack</closesquarebracket>
<m>OSD</m>
<i>Info</i>
<o>CodecInfo</o>
<z>AspectRatio</z>
<t>ShowSubtitles</t>
<l>NextSubtitle</l>
<a>AudioDelay</a>
<escape>Fullscreen</escape>
<return>Select</return>
<enter>Select</enter> <!-- backspace>Fullscreen</backspace -->
<pageup>SkipNext</pageup>
<pagedown>SkipPrevious</pagedown>
</keyboard>
</VideoMenu>
<OSDVideoSettings>
<keyboard>
<i>Info</i>
<o>CodecInfo</o>
</keyboard>
</OSDVideoSettings>
<OSDAudioSettings>
<keyboard>
<i>Info</i>
<o>CodecInfo</o>
</keyboard>
</OSDAudioSettings>
<VideoBookmarks>
<keyboard>
<delete>Delete</delete>
</keyboard>
</VideoBookmarks>
<MyVideoLibrary>
<keyboard>
<delete>Delete</delete>
<n>Playlist</n>
<w>ToggleWatched</w>
</keyboard>
</MyVideoLibrary>
<MyVideoFiles>
<keyboard>
<n>Playlist</n>
<q>Queue</q>
<w>ToggleWatched</w>
</keyboard>
</MyVideoFiles>
<MyVideoPlaylist>
<keyboard>
<n>Back</n>
<delete>Delete</delete>
<u>MoveItemUp</u>
<d>MoveItemDown</d>
</keyboard>
</MyVideoPlaylist>
<MyPictures>
<keyboard>
<delete>Delete</delete>
</keyboard>
</MyPictures>
<ContextMenu>
<keyboard>
<c>Back</c>
<menu>Back</menu>
</keyboard>
</ContextMenu>
<Scripts>
<keyboard>
<i>info</i>
</keyboard>
</Scripts>
<MusicInformation>
<keyboard>
<i>Back</i>
<d mod="ctrl">Back</d>
</keyboard>
</MusicInformation>
<MovieInformation>
<keyboard>
<i>Back</i>
</keyboard>
</MovieInformation>
<PictureInfo>
<keyboard>
<period>NextPicture</period>
<comma>PreviousPicture</comma>
<i>Back</i>
<d mod="ctrl">Back</d>
<o>Back</o>
<space>Pause</space>
</keyboard>
</PictureInfo>
<Teletext>
<keyboard>
<v>Back</v>
</keyboard>
</Teletext>
<Favourites>
<keyboard>
<backspace>Close</backspace>
<u>MoveItemUp</u>
<d>MoveItemDown</d>
</keyboard>
</Favourites>
<NumericInput>
<keyboard>
<backspace>Close</backspace>
</keyboard>
</NumericInput>
<FullscreenLiveTV>
<keyboard>
<left>PreviousChannelGroup</left>
<right>NextChannelGroup</right>
<up>ChannelUp</up>
<down>ChannelDown</down>
</keyboard>
</FullscreenLiveTV>
<FullscreenRadio>
<keyboard>
<left>PreviousChannelGroup</left>
<right>NextChannelGroup</right>
<up>ChannelUp</up>
<down>ChannelDown</down>
</keyboard>
</FullscreenRadio>
<PVROSDChannels>
<keyboard>
<backspace>Close</backspace>
<escape>Close</escape>
<c>Close</c>
</keyboard>
</PVROSDChannels>
<PVROSDGuide>
<keyboard>
<backspace>Close</backspace>
<escape>Close</escape>
</keyboard>
</PVROSDGuide>
<PVROSDDirector>
<keyboard>
<backspace>Close</backspace>
<escape>Close</escape>
</keyboard>
</PVROSDDirector>
<PVROSDCutter>
<keyboard>
<backspace>Close</backspace>
<escape>Close</escape>
</keyboard>
</PVROSDCutter>
<MyTVSettings>
<keyboard>
<backspace>PreviousMenu</backspace>
</keyboard>
</MyTVSettings>
<FileBrowser>
<keyboard>
<space>Highlight</space>
</keyboard>
</FileBrowser>
<ShutdownMenu>
<keyboard>
<s>Back</s>
</keyboard>
</ShutdownMenu>
<AddonInformation>
<keyboard>
<i>Back</i>
</keyboard>
</AddonInformation>
<AddonSettings>
<keyboard>
<delete>Delete</delete>
</keyboard>
</AddonSettings>
<Addon>
<keyboard>
<f1>Red</f1>
<f2>Green</f2>
<f3>Yellow</f3>
<f4>Blue</f4>
</keyboard>
</Addon>
</keymap>
# table rc6_nec_kodi, type: RC6,NEC
# HP MCE Remote RC1804912/06 RC6 key mappings ##################################
0x800f040c KEY_SLEEP # SLEEP COMPUTER
0x800f045a KEY_V # KEY_SUBTITLE
0x800f0481 KEY_F11 # KEY_PLAYPAUSE
0x800f045b KEY_KP0 # KEY_RED KP0 -> Insert(keypad)
0x800f045c KEY_KP1 # KEY_GREEN KP1 -> End(keypad)
0x800f045d KEY_KP2 # KEY_YELLOW KP2 -> Down(keypad)
0x800f045e KEY_KP3 # KEY_BLUE KP3 -> Next(keypad)
# 0x800f046f KEY_PLAYER # GO TO PICTURES
0x800f0448 KEY_H # KEY_PVR
0x800f0480 KEY_HOME # KEY_BRIGHTNESSDOWN
0x800f0425 KEY_J # KEY_TUNER
0x800f0426 KEY_E # KEY_EPG
0x800f0427 KEY_TAB # KEY_ZOOM
0x800f040f KEY_I # KEY_INFO
0x800f041e KEY_UP
0x800f041f KEY_DOWN
0x800f0420 KEY_LEFT
0x800f0421 KEY_RIGHT
0x800f0422 KEY_ENTER # KEY_OK
0x800f0423 KEY_ESC # KEY_EXIT
0x800f0410 KEY_VOLUMEUP
0x800f0411 KEY_VOLUMEDOWN
0x800f040d KEY_MEDIA # START KODI
0x800f040e KEY_MUTE
0x800f0412 KEY_UP # KEY_CHANNELUP
0x800f0413 KEY_DOWN # KEY_CHANNELDOWN
0x800f0417 KEY_V # KEY_RECORD
# 0x800f0424 KEY_DVD # GOTO VIDEO
0x800f0415 KEY_COMMA # KEY_REWIND
0x800f0416 KEY_SPACE # KEY_PLAY
0x800f0418 KEY_SPACE # KEY_PAUSE
0x800f0414 KEY_DOT # KEY_FASTFORWARD
0x800f041b KEY_LEFTBRACE # KEY_PREVIOUS
0x800f0419 KEY_X # KEY_STOP
0x800f041a KEY_RIGHTBRACE # KEY_NEXT
0x800f0401 KEY_1 # KEY_NUMERIC_1
0x800f0402 KEY_2 # KEY_NUMERIC_2
0x800f0403 KEY_3 # KEY_NUMERIC_3
0x800f0404 KEY_4 # KEY_NUMERIC_4
0x800f0405 KEY_5 # KEY_NUMERIC_5
0x800f0406 KEY_6 # KEY_NUMERIC_6
0x800f0407 KEY_7 # KEY_NUMERIC_7
0x800f0408 KEY_8 # KEY_NUMERIC_8
0x800f0409 KEY_9 # KEY_NUMERIC_9
0x800f0400 KEY_0 # KEY_NUMERIC_0
0x800f041d KEY_NUMERIC_STAR
0x800f041c KEY_NUMERIC_POUND
0x800f040a KEY_DELETE
0x800f040b KEY_ENTER
# Philips SRP4004 remote NEC protocol key codes ################################
0x70702 KEY_SLEEP # PWR TODO Does not wake?
# 0x70701 # AV
0x7074f KEY_E # Guide EPG
# 0x7071a # Menu
0x7071f KEY_I # Info
0x7072d KEY_ESC # Exit
0x70765 KEY_LEFT # Left
0x70760 KEY_UP # Up
0x70762 KEY_RIGHT # Right
0x70761 KEY_DOWN # Down
0x70768 KEY_ENTER # OK
0x7076c KEY_KP0 # Red KP0 -> Insert(keypad)
0x70714 KEY_KP1 # Green KP1 -> End(keypad)
0x70715 KEY_KP2 # Yellow KP2 -> Down(keypad)
0x70716 KEY_KP3 # Blue KP3 -> Next(keypad)
0x70707 KEY_VOLUMEUP # Vol+
0x7070b KEY_VOLUMEDOWN # Vol-
0x7070f KEY_MUTE # Mute
0x70713 KEY_ESC # Back
0x70712 KEY_UP # Prog+
0x70710 KEY_DOWN # Prog-
0x7072c KEY_V # P<
0x7071b KEY_TAB # P>
0x4048 KEY_COMMA # << (double 0x7 code)
0x7071a KEY_SPACE # Play
0x7072f KEY_DOT # >>
0x424 KEY_X # Stop (double 0x7 code)
#0x450 # Rec
# # Pause
0x70704 KEY_1 # 1
0x70705 KEY_2 # 2
0x70706 KEY_3 # 3
0x70708 KEY_4 # 4
0x70709 KEY_5 # 5
0x7070a KEY_6 # 6
0x7070c KEY_7 # 7
0x7070d KEY_8 # 8
0x707oe KEY_9 # 9
0x70711 KEY_0 # 0
0x7073e KEY_V # * TXT
0x70723 KEY_NUMERIC_POUND # # Help
#
# Keymaps table
#
# This table creates an association between a keycode file and a kernel
# driver. It can be used to automatically override a keycode definition.
#
# Although not yet tested, it is mented to be added at udev.
#
# To use, you just need to run:
# ./ir-keytable -a
#
# Or, if the remote is not the first device:
# ./ir-keytable -a -s rc1 # for RC at rc1
#
# Format:
# driver - name of the driver provided via uevent - use * for any driver
# table - RC keymap table, provided via uevent - use * for any table
# file - file name. If directory is not specified, it will default to
# /etc/rc_keymaps.
# For example:
# driver table file
# cx8800 * ./keycodes/rc5_hauppauge_new
# * rc-avermedia-m135a-rm-jx ./keycodes/kworld_315u
# saa7134 rc-avermedia-m135a-rm-jx ./keycodes/keycodes/nec_terratec_cinergy_xs
# em28xx * ./keycodes/kworld_315u
# * * ./keycodes/rc5_hauppauge_new
# Table to automatically load the rc maps for the bundled IR's provided with the
# devices supported by the linux kernel
#driver table file
* rc-digittrade digittrade
* rc-powercolor-real-angel powercolor_real_angel
* rc-budget-ci-old budget_ci_old
* rc-imon-pad imon_pad
* rc-eztv eztv
* rc-msi-tvanywhere-plus msi_tvanywhere_plus
* rc-pixelview-002t pixelview_002t
* rc-tbs-nec tbs_nec
* rc-delock-61959 delock_61959
* rc-total-media-in-hand total_media_in_hand
* rc-technisat-usb2 technisat_usb2
* rc-kworld-315u kworld_315u
* rc-avermedia-rm-ks avermedia_rm_ks
* rc-msi-digivox-ii msi_digivox_ii
* rc-norwood norwood
* rc-nec-terratec-cinergy-xs nec_terratec_cinergy_xs
* rc-videomate-s350 videomate_s350
*1111 rc-digitalnow-tinytwin digitalnow_tinytwin
# * rc-rc6-mce rc6_mce
* rc-avermedia-cardbus avermedia_cardbus
* rc-dib0700-nec dib0700_nec
* rc-nebula nebula
* rc-terratec-slim terratec_slim
* rc-videomate-k100 videomate_k100
* rc-medion-x10-or2x medion_x10_or2x
* rc-cinergy-1400 cinergy_1400
* rc-dm1105-nec dm1105_nec
* rc-terratec-slim-2 terratec_slim_2
* rc-flydvb flydvb
* rc-pinnacle-pctv-hd pinnacle_pctv_hd
* rc-pctv-sedna pctv_sedna
* rc-it913x-v1 it913x_v1
* rc-avermedia avermedia
* rc-iodata-bctv7e iodata_bctv7e
* rc-real-audio-220-32-keys real_audio_220_32_keys
* rc-asus-ps3-100 asus_ps3_100
* rc-pv951 pv951
* rc-avermedia-m135a avermedia_m135a
* rc-reddo reddo
* rc-kworld-pc150u kworld_pc150u
* rc-kaiomy kaiomy
* rc-avermedia-dvbt avermedia_dvbt
* rc-azurewave-ad-tu700 azurewave_ad_tu700
* rc-dntv-live-dvb-t dntv_live_dvb_t
* rc-cinergy cinergy
* rc-npgtech npgtech
* rc-leadtek-y04g0051 leadtek_y04g0051
* rc-manli manli
* rc-streamzap streamzap
* rc-winfast-usbii-deluxe winfast_usbii_deluxe
* rc-behold behold
* rc-gadmei-rm008z gadmei_rm008z
* rc-purpletv purpletv
* rc-it913x-v2 it913x_v2
* rc-adstech-dvb-t-pci adstech_dvb_t_pci
* rc-terratec-cinergy-xs terratec_cinergy_xs
* rc-dntv-live-dvbt-pro dntv_live_dvbt_pro
* rc-flyvideo flyvideo
* rc-tivo tivo
* rc-trekstor trekstor
* rc-em-terratec em_terratec
* rc-gotview7135 gotview7135
* rc-msi-tvanywhere msi_tvanywhere
* rc-alink-dtu-m alink_dtu_m
* rc-videomate-tv-pvr videomate_tv_pvr
* rc-avertv-303 avertv_303
* rc-ati-tv-wonder-hd-600 ati_tv_wonder_hd_600
* rc-ati-x10 ati_x10
* rc-medion-x10-digitainer medion_x10_digitainer
* rc-dib0700-rc5 dib0700_rc5
* rc-medion-x10 medion_x10
* rc-genius-tvgo-a11mce genius_tvgo_a11mce
* rc-avermedia-a16d avermedia_a16d
* rc-behold-columbus behold_columbus
* rc-pinnacle-grey pinnacle_grey
* rc-imon-mce imon_mce
* rc-snapstream-firefly snapstream_firefly
* rc-hauppauge hauppauge
* rc-asus-pc39 asus_pc39
* rc-kworld-plus-tv-analog kworld_plus_tv_analog
* rc-fusionhdtv-mce fusionhdtv_mce
* rc-encore-enltv-fm53 encore_enltv_fm53
* rc-evga-indtube evga_indtube
* rc-total-media-in-hand-02 total_media_in_hand_02
* rc-msi-digivox-iii msi_digivox_iii
* rc-lme2510 lme2510
* rc-winfast winfast
* rc-pixelview-mk12 pixelview_mk12
* rc-encore-enltv encore_enltv
* rc-anysee anysee
* rc-pixelview-new pixelview_new
* rc-twinhan1027 twinhan_vp1027_dvbs
* rc-tevii-nec tevii_nec
* rc-apac-viewcomp apac_viewcomp
* rc-pinnacle-color pinnacle_color
* rc-encore-enltv2 encore_enltv2
* rc-pixelview pixelview
* rc-avermedia-m733a-rm-k6 avermedia_m733a_rm_k6
* rc-tt-1500 tt_1500
* rc-proteus-2309 proteus_2309
# * * a800 # found in a800.c
# * * af9005 # found in af9005-remote.c
# * * cinergyt2 # found in cinergyT2-core.c
# * * dvico_mce # found in cxusb.c
# * * dvico_portable # found in cxusb.c
# * * d680_dmb # found in cxusb.c
# * * dibusb # found in dibusb-common.c
# * * digitv # found in digitv.c
# * * dtt200u # found in dtt200u.c
# * * dw210x # found in dw2102.c
# * * tevii # found in dw2102.c
# * * tbs # found in dw2102.c
# * * su3000 # found in dw2102.c
# * * megasky # found in m920x.c
# * * tvwalkertwin # found in m920x.c
# * * pinnacle310e # found in m920x.c
# * * haupp # found in nova-t-usb2.c
# * * opera1 # found in opera1.c
# * * vp702x # found in vp702x.c
# * * vp7045 # found in vp7045.c
# custom keymaps
* rc-rc6-mce rc6_nec_kodi
#!/bin/sh
sudo apt-get install -y xdotool
# set shortcuts, this can also be done using unity-control-center > Keyboard > Shortcuts > Custom Shortcuts
# AutoMedia > KEY_MEDIA Mapped to Launch Kodi
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name "'Launch kodi'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command "'kodi'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding "'AutoMedia'"
# KP_End > KEY_KP1 > KEY_GREEN Mapped to Alt+Tab
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/name "'Alt Tab'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/command "'xdotool key alt+Tab'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/binding "'KP_End'"
# KP_Insert > KEY_KP0 > KEY_RED Mapped to Close Window
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/name "'Close Window'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/command "'xdotool key alt+F4'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/binding "'KP_Insert'"
# KP_Down > KEY_KP2 > KEY_YELLO Mapped to Super+w
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/name "'Super W'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/command "'xdotool key Super+w'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/binding "'KP_Down'"
# KP_Next > KEY_KP3 > KEY_BLUE Mapped to Launch Chromium
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/name "'Launch Chromium'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/command "'chromium-browser'"
sudo dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/binding "'KP_Next'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment