Getting my MCE remote to work properly

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
3×5

Getting my MCE remote to work properly

Post by 3×5 »

Hi, I have a Gateway RC6 Windows Media Center Edition infrared remote control. Gateway slapped their logo on it but the manufacturer is SMK. I hooked it up and noticed that right away, the mute button was working correctly, and in XBMC the arrow and playback buttons worked. However, not all buttons worked, and the volume up and volume down was pretty shaky. I had to press them over and over to get the volume to change just a little bit.

I installed lirc, and selected the configuration for Windows Media Center remotes, and this just stopped all the buttons from working. I uninstalled the package, and still the remote doesn't work anymore. Did I do something wrong? The lirc config window didn't list my specific remote. It's clear from the immediate plug-and-play functionality that my remote can talk to Mint, but I need to know how to get it back, and then how to map the buttons so they correspond to the correct actions, or even to custom actions I determine.

Thanks so much.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
stratus_ss

Re: Getting my MCE remote to work properly

Post by stratus_ss »

I am guessing that your problem is that it is not actually being broadcast as a remote.
What do I mean by that? Well the cheaper remotes actually dont identify themselves as such. More often than not they are actually telling the computer that they are a mouse/keyboard combination and therefore lirc can actually just boggle things up. (In the case of "Apple Remotes" they identify themselves often as a joystick/gamepad)

I have used and configured several remotes ranging from ATI Remote Wonder(s) I/II, Windows MCE and a host of others. None of which used, or required lirc. They all respond as a keyboard.

What I did is did some remapping

Here are my configs:

Code: Select all

#/bin/bash
#This remaps codes generated on a remote wonder ii, into something I can map in XBMC
xmodmap -e "keycode 147 = F8"
xmodmap -e "keycode 167 = F9"
xmodmap -e "keycode 184 = backslash"
xmodmap -e "keycode 176 = F10"
xmodmap -e "keycode 140 = F12"
xmodmap -e "keycode 222 = F11"
Then I put this in keymap.xml in xbmc

Code: Select all

<keymap>
  <global>
    <remote>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
      <play>Play</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>ParentDir</back>
      <menu>PreviousMenu</menu>
      <title>ContextMenu</title>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <record>Screenshot</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown()</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>

    <keyboard>
      <p>Play</p>
      <q>Queue</q>
	<backslash>Queue</backslash>
      <f>FastForward</f>
      <r>Rewind</r>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <pageup>PageUp</pageup>
      <pagedown>PageDown</pagedown>
      <return>Select</return>
      <enter>Select</enter>
      <backspace>ParentDir</backspace>
      <m>ActivateWindow(PlayerControls)</m>
      <s>ActivateWindow(shutdownmenu)</s>
      <escape>PreviousMenu</escape>
      <i>Info</i>
	<d>Info</d>
      <menu>ContextMenu</menu>
      <c>ContextMenu</c>
	<F8>ContextMenu</F8>
      <space>Pause</space>
      <x>Stop</x>
      <period>SkipNext</period>
	<F9>SkipNext</F9>
      <comma>SkipPrevious</comma>
	<F10>SkipPrevious</F10>
	<a>FullScreen</a>
      <printscreen>Screenshot</printscreen>
      <minus>VolumeDown</minus>
      <plus>VolumeUp</plus>
      <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>
      <F12>ToggleFullScreen</F12>
      <browser_home>XBMC.ActivateWindow(Home)</browser_home>
      <browser_favorites>ActivateWindow(Favourites)</browser_favorites>
      <browser_refresh></browser_refresh>
      <browser_search></browser_search>
      <launch_app1_pc_icon>ActivateWindow(MyPrograms)</launch_app1_pc_icon>
      <launch_media_select>XBMC.ActivateWindow(MyMusic)</launch_media_select>
      <play_pause>Pause</play_pause>
      <stop>Stop</stop>
      <volume_up>VolumeUp</volume_up>
      <volume_mute>Mute</volume_mute>
      <volume_down>VolumeDown</volume_down>
      <next_track>SkipNext</next_track>
      <prev_track>SkipPrevious</prev_track>
      <launch_mail></launch_mail>
      <key id="61620"></key> <!-- same as above, launch_mail, but using button code (based on vkey id) -->
      <home>FirstPage</home>
      <end>LastPage</end>
      <key id="65446">ParentDir</key>
      <key id="65459">Play</key>
    </keyboard>
  </global>

  <Home>
    <gamepad>
      <black>XBMC.Skin.ToggleSetting(HomeViewToggle)</black>
    </gamepad>

    <remote>
      <menu>XBMC.Skin.ToggleSetting(HomeViewToggle)</menu>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
    </remote>

    <keyboard>
      <i>info</i>
	<d>Info</d>
      <end>XBMC.ShutDown()</end>
    </keyboard>
  </Home>
  

  <MyFiles>
    <gamepad>
      <Y>Highlight</Y>
    </gamepad>

    <remote>
      <zero>Delete</zero>
      <one>Highlight</one>
      <four>Copy</four>
      <seven>Move</seven>
      <clear>Delete</clear>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Highlight</space>
      <delete>Delete</delete>
      <m>Move</m>
      <r>Rename</r>
    </keyboard>
  </MyFiles>
  

  <MyMusicPlaylist>
    <gamepad>
      <Y>Delete</Y>
      <black>Playlist</black> <!-- Close playlist -->
      <back>Playlist</back>   <!-- Close playlist -->
      <B>Playlist</B>         <!-- Close playlist -->
    </gamepad>

    <remote>
      <back>Playlist</back> <!-- Close playlist -->
      <clear>Delete</clear>
      <zero>Delete</zero>
      <two>MoveItemUp</two>
      <five>MoveItemDown</five>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space> <!-- Close playlist -->
      <delete>Delete</delete>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
      <backspace>Playlist</backspace> <!-- Close playlist -->
    </keyboard>
  </MyMusicPlaylist>

  <MyMusicPlaylistEditor>
    <keyboard>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
      <delete>Delete</delete>
    </keyboard>

    <gamepad>
      <Y>Queue</Y>
    </gamepad>
    <remote>
      <zero>Queue</zero>
    </remote>
  </MyMusicPlaylistEditor>
  
  <MyMusicFiles>
    <gamepad>
      <Y>Queue</Y>
      <black>Playlist</black>
    </gamepad>

     <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space>
      <q>Queue</q>
    </keyboard>
  </MyMusicFiles>


  <MyMusicLibrary>
    <gamepad>
      <Y>Queue</Y>
      <black>Playlist</black>
    </gamepad>

     <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space>
      <q>Queue</q>
    </keyboard>
  </MyMusicLibrary>


  <FullscreenVideo>
    <remote>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <back>SmallStepBack</back>
      <menu>OSD</menu>
      <start>OSD</start>
      <title>CodecInfo</title>
      <info>Info</info>
      <enter>AspectRatio</enter>
      <select>AspectRatio</select>
   </remote>

    <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>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
      <z>AspectRatio</z>
      <t>ShowSubtitles</t>
      <l>NextSubtitle</l>      
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <escape>Fullscreen</escape>
    </keyboard>
  </FullscreenVideo>


  <FullscreenInfo>
    <remote>
      <title>CodecInfo</title>
      <info>Close</info>
      <menu>OSD</menu>
   </remote>

    <gamepad>
      <B>Close</B>
      <start>OSD</start>
      <black>CodecInfo</black>
      <white>Close</white>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>StepForward</period>
      <backspace>Close</backspace>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
      <i>Close</i>
	<d>Close</d>
      <m>OSD</m>
    </keyboard>
  </FullscreenInfo>

  <PlayerControls>
    <gamepad>
      <back>Close</back>
      <start>Close</start>
    </gamepad>

    <keyboard>
      <escape>Close</escape>
      <m>close</m>
    </keyboard>

    <remote>
      <menu>Close</menu>
    </remote>
  </PlayerControls>


  <Visualisation>
    <remote>
      <left>PreviousPreset</left>
      <right>NextPreset</right>
      <up>IncreaseRating</up>
      <down>DecreaseRating</down>
      <back>LockPreset</back>
      <title>CodecInfo</title>
      <select>XBMC.ActivateWindow(VisualisationPresetList)</select>
      <menu>XBMC.ActivateWindow(MusicOSD)</menu>
      <start>XBMC.ActivateWindow(MusicOSD)</start>
      <info>Info</info>
    </remote>

    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <return>ActivateWindow(MusicOSD)</return>
      <enter>ActivateWindow(MusicOSD)</enter>
      <m>ActivateWindow(MusicOSD)</m>
      <i>Info</i>
	<d>Info</d>
      <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>
	<F11>CodecInfo</F11>
      <l>LockPreset</l>
      <escape>FullScreen</escape>
    </keyboard>
  </Visualisation>

  <MusicOSD>

    <remote>
      <menu>Close</menu>
      <title>Info</title>
      <info>CodecInfo</info>
    </remote>

    <keyboard>
      <escape>Close</escape>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Close</m>
      <i>Info</i>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>ActivateWindow(VisualisationSettings)</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </MusicOSD>


  <VisualisationSettings>

    <remote>
      <menu>Close</menu>
    </remote>

    <keyboard>
      <escape>Close</escape>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Close</m>
      <i>Info</i>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>Close</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </VisualisationSettings>

  <VisualisationPresetList>
    <gamepad>
      <B>Close</B>
      <back>Close</back>
      <start>Close</start>
      <Y>Close</Y>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <remote>
      <menu>Close</menu>
    </remote>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <escape>Close</escape>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Close</m>
      <i>Info</i>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
      <p>Close</p>
      <v>Close</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </VisualisationPresetList>


  <SlideShow>
    <remote>
      <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>
      <info>CodecInfo</info>
      <skipplus>NextPicture</skipplus>
      <skipminus>PreviousPicture</skipminus>
      <title>Info</title>
      <select>Rotate</select>
      <back>PreviousMenu</back>
    </remote>

    <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>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
      <period>NextPicture</period>
      <comma>PreviousPicture</comma>
      <plus>ZoomIn</plus>
      <minus>ZoomOut</minus>
      <r>Rotate</r>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </SlideShow>


  <ScreenCalibration>

    <remote>
      <select>NextCalibration</select>
      <enter>NextCalibration</enter>
      <zero>ResetCalibration</zero>
      <display>NextResolution</display>
      <xbox>NextResolution</xbox>
    </remote>

    <keyboard>
      <return>NextCalibration</return>
      <enter>NextCalibration</enter>
      <d>ResetCalibration</d>
      <r>NextResolution</r>
    </keyboard>
  </ScreenCalibration>


  <GUICalibration>
    <remote>
      <select>NextCalibration</select>
      <enter>NextCalibration</enter>
      <zero>ResetCalibration</zero>
    </remote>

    <keyboard>
      <return>NextCalibration</return>
      <enter>NextCalibration</enter>
      <d>ResetCalibration</d>
    </keyboard>
  </GUICalibration>


  <SelectDialog>
    <gamepad>
      <back>Close</back>
    </gamepad>

    <remote>
      <back>Close</back>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
    </keyboard>
  </SelectDialog>
  

  <VideoOSD>
    <remote>
      <back>PreviousMenu</back>
      <menu>Close</menu>
      <start>Close</start>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <m>Close</m>
      <i>Info</i>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
    </keyboard>
  </VideoOSD>

  <VideoMenu>
    <remote>
      <menu>OSD</menu>
      <back>PreviousMenu</back>
      <info>Info</info>
      <title>CodecInfo</title>
      <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>
    </remote>

    <keyboard>
      <return>Select</return>
      <enter>Select</enter>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </VideoMenu>


  <OSDVideoSettings>

    <remote>
      <back>Close</back>
      <menu>Close</menu>
      <start>Close</start>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <i>Info</i>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
    </keyboard>
  </OSDVideoSettings>

  <OSDAudioSettings>
    <remote>
      <back>Close</back>
      <menu>Close</menu>
      <start>Close</start>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <i>Info</i>
	<d>Info</d>
      <o>CodecInfo</o>
	<F11>CodecInfo</F11>
    </keyboard>
  </OSDAudioSettings>

  <VideoBookmarks>
    <remote>
      <back>Close</back>
      <menu>Close</menu>
      <start>Close</start>
      <zero>Delete</zero>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
    </keyboard>
  </VideoBookmarks>
  

  <MyVideoLibrary>
    <remote>
      <zero>Queue</zero>
      <clear>Delete</clear>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <delete>Delete</delete>
      <space>Playlist</space>
      <w>ToggleWatched</w>
    </keyboard>
  </MyVideoLibrary>


  <MyVideoFiles>
    <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space>
      <q>Queue</q>
    </keyboard>
  </MyVideoFiles>


  <MyVideoPlaylist>
    <remote>
      <back>Playlist</back> <!-- Close playlist -->
      <clear>Delete</clear>
      <zero>Delete</zero>
      <two>MoveItemUp</two>
      <five>MoveItemDown</five>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <backspace>Playlist</backspace> <!-- Close playlist -->
      <space>Playlist</space> <!-- Close playlist -->
      <delete>Delete</delete>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
    </keyboard>
  </MyVideoPlaylist>


  <VirtualKeyboard>
    <gamepad>
      <start>Enter</start>
      <B>BackSpace</B>
      <Y>Shift</Y>
      <X>Symbols</X>
      <lefttrigger>CursorLeft</lefttrigger>
      <righttrigger>CursorRight</righttrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Enter</button>
      <button id="2">BackSpace</button>
      <button id="5">Shift</button>
      <button id="4">Symbols</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Shift</button>
      <button id="7">CursorLeft</button>
      <button id="9">CursorRight</button>
      <button id="10">Symbols</button>
      <button id="11">BackSpace</button>
    </joystick>


    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>BackSpace</back>
      <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>
      <pageminus>CursorLeft</pageminus>
      <pageplus>CursorRight</pageplus>
    </remote>
  </VirtualKeyboard>


  <ContextMenu>
    <gamepad>
      <white>Close</white>
      <B>Close</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="6">Close</button>
      <button id="2">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <title>Close</title>
      <back>Close</back>
    </remote>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <c>Close</c>
	<F8>Close</F8>
      <menu>Close</menu>
      <backspace>Close</backspace>
    </keyboard>
  </ContextMenu>

  <FileStackingDialog>
    <remote>
      <back>Close</back>
    </remote>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <backspace>Close</backspace>
    </keyboard>
  </FileStackingDialog>




  <Scripts>
    <gamepad>
      <black>XBMC.ActivateWindow(ScriptsDebugInfo)</black>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="3">XBMC.ActivateWindow(ScriptsDebugInfo)</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="11">XBMC.ActivateWindow(ScriptsDebugInfo)</button>
    </joystick>

    <remote>
      <info>XBMC.ActivateWindow(ScriptsDebugInfo)</info>
    </remote>

    <keyboard>
      <i>XBMC.ActivateWindow(ScriptsDebugInfo)</i>
    </keyboard>
  </Scripts>


  <ScriptsDebugInfo>
    <gamepad>
      <white>Info</white> <!-- clears debug python info -->
    </gamepad>

    <remote>
      <info>Info</info> <!-- clears debug python info -->
    </remote>

    <keyboard>
      <i>Info</i> <!-- clears debug python info -->
    </keyboard>

    <joystick name="WiiRemote">
      <button id="11">Info</button>
    </joystick>
  </ScriptsDebugInfo>


  <NumericInput>
    <gamepad>
      <B>BackSpace</B>
      <start>Enter</start>
      <lefttrigger>SkipPrevious</lefttrigger>
      <righttrigger>SkipNext</righttrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">BackSpace</button>
      <button id="9">Enter</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="7">SkipPrevious</button>
      <button id="9">SkipNext</button>
      <button id="10">Enter</button>
      <button id="11">BackSpace</button>
    </joystick>

    <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>
      <back>BackSpace</back>
    </remote>
  </NumericInput>


  <GamepadInput>
    <gamepad>
      <start>Stop</start> <!-- Enter Password -->
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Stop</button> <!-- Enter Password -->
    </joystick>
  </GamepadInput>

  <Weather>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
      <key id="65446">PreviousMenu</key>
    </keyboard>
  </Weather>

  <Settings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </Settings>

  <MyPicturesSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyPicturesSettings>

  <MyProgramsSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyProgramsSettings>

  <MyWeatherSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyWeatherSettings>

  <MyMusicSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyMusicSettings>

  <SystemSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </SystemSettings>

  <MyVideosSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyVideosSettings>

  <NetworkSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </NetworkSettings>

  <AppearanceSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </AppearanceSettings>

  <Profiles>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </Profiles>

  <systeminfo>
    <gamepad>
      <B>PreviousMenu</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </systeminfo>

  <shutdownmenu>
    <gamepad>
      <B>PreviousMenu</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </shutdownmenu>

  <submenu>
    <gamepad>
      <B>PreviousMenu</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </submenu>

  <MusicInformation>
    <gamepad>
      <B>Close</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>Close</back>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <key id="65446">Close</key>
    </keyboard>
  </MusicInformation>

  <MovieInformation>
    <gamepad>
      <B>Close</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>Close</back>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <key id="65446">Close</key>
    </keyboard>
  </MovieInformation>

  <LockSettings>
    <gamepad>
      <start>Close</start>
      <B>PreviousMenu</B>
      <back>PreviousMenu</back>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Close</button>
      <button id="2">PreviousMenu</button>
      <button id="17">PreviousMenu</button>
    </joystick>

    <remote>
      <menu>Close</menu>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <escape>Close</escape>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </LockSettings>

  <ProfileSettings>
    <gamepad>
      <start>Close</start>
      <B>PreviousMenu</B>
      <back>PreviousMenu</back>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Close</button>
      <button id="2">PreviousMenu</button>
      <button id="17">PreviousMenu</button>
    </joystick>

    <remote>
      <menu>Close</menu>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <escape>Close</escape>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </ProfileSettings>

  <PictureInfo>
    <gamepad>
      <dpadleft>PreviousPicture</dpadleft>
      <dpadright>NextPicture</dpadright>
      <black>Close</black>
    </gamepad>

    <remote>
      <skipplus>NextPicture</skipplus>
      <skipminus>PreviousPicture</skipminus>
      <info>Close</info>
      <back>Close</back> 
    </remote>

    <joystick name="WiiRemote">
      <button id="3">PreviousPicture</button>
      <button id="4">NextPicture</button>
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="3">Left</button>
      <button id="4">Right</button>
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <period>NextPicture</period>
      <comma>PreviousPicture</comma>
      <i>Close</i>
	<d>Close</d>
      <backspace>Close</backspace>
      <space>Pause</space>
    </keyboard>
  </PictureInfo>

  <Favourites>
    <remote>
      <back>Close</back> 
    </remote>

    <keyboard>
      <backspace>Close</backspace>
    </keyboard>
  </Favourites>
</keymap>
It should be noted that you may not have to remap keys any longer. You can try putting the keycode from 'xev' (see below) into your xbmc conf files.
Also note, the above excludes AppleRemote, Playstation Remotes, and Xbox remotes as I know these will not be used on my system

Running the program 'xev' in a terminal window and pressing buttons will show you how the device is being received

Here is what it looks like for "F8"

Code: Select all

KeyRelease event, serial 32, synthetic NO, window 0x4400001,
    root 0x295, subw 0x0, time 82559313, (327,262), root:(333,362),
    state 0x10, keycode 74 (keysym 0xffc5, F8), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
The keycode is the important part. It allows you to remap your keycodes into something understandable to XBMC. Be aware though if you remap something to be recognized as "F8", "F8" on your keyboard will stop working.

Since I have a dedicated media centre this is not an issue for me, but it can be an issue for a multipurpose machine
3×5

Re: Getting my MCE remote to work properly

Post by 3×5 »

Thanks for the reply. Sorry I didn't respond. I actually created a new post because I forgot that I had opened this one.

So, in a nutshell, I determined that lirc is working, but once I correctly identified and configured my remote, the plug-and-play audio control stopped working. I used to be able to turn the master volume up and down, and toggle mute, but not anymore.

I started looking into this manually, editing my .lircrc file, but I don't know what command to send to it. Some sources online say to send "amixer set Master playback toggle" but a number of forums online say that this will mute your system, but not unmute it. My own test in the terminal shows that this is true.

So my question now is this: In mint (mate), how do I use lirc to turn volume up and down, and toggle mute, with my IR remote?
Locked

Return to “Hardware Support”