• 1
  • 5
  • 6
  • 7
  • 8(current)
  • 9
Anyone have a Emprex 3009URF MCE RC?
Nobody ?
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
(2012-11-09, 21:59)danz0l Wrote: Nobody ?

I don't think the kernel is a problem now.. I'm using 12.04 latest kernel and evtest produces a hit for every button. I think the issue now is correct configuration of Lirc.
Reply
Yes agreed. These things confuse some though LOL
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
All done now.. all keys working ( OK and Enter seem to send the same code but I can live with that ).. better write it all down before I forget it...

Setup

Acer R3700

Lubuntu... Linux meegosh 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


Install packages
Code:
apt-get install lirc inputlirc

/etc/lirc/hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="None"
REMOTE_MODULES=""
REMOTE_DRIVER=""
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="false"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

/etc/lirc/lircd.conf
Code:
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Linux input layer (/dev/input/eventX) remote:
include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput"

/etc/default/inputlirc
Code:
# Options to be passed to inputlirc.
EVENTS="/dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse"
OPTIONS="-g -m 0 -c"

Fire it up
Code:
service inputlirc start

Running irw now should produce some output when buttons are pressed
Code:
irw
2 0 KEY_1 /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd
a6 0 KEY_STOPCD /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse

Stop X from grabbing keyboard event

Add in /etc/X11/xorg.conf

Code:
Section "InputClass"
    Identifier "Ignore BTC USB Multimedia Cordless Keyboard"
    MatchProduct "BTC USB Multimedia Cordless Keyboard"
    MatchIsKeyboard "true"
    Option "Ignore" "true"
EndSection

xbmc config

~/.xbmc/userdata/Lircmap.xml
Code:
<lircmap>
    <remote device="/dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd">
        <up>KEY_UP</up>
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <down>KEY_DOWN</down>
        <select>KEY_ENTER</select>
        <zero>KEY_0</zero>
        <one>KEY_1</one>
        <two>KEY_2</two>
        <three>KEY_3</three>
        <four>KEY_4</four>
        <five>KEY_5</five>
        <six>KEY_6</six>
        <seven>KEY_7</seven>
        <eight>KEY_8</eight>
        <nine>KEY_9</nine>
        <star>SHIFT_KEY_8</star>
        <hash>SHIFT_KEY_3</hash>
        <subtitle>KEY_TEXT</subtitle>
        <clear>KEY_ESC</clear>
    </remote>
    <remote device="/dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse">
        <power>KEY_SLEEP</power>
        <record>KEY_RECORD</record>
        <pause>KEY_PAUSE</pause>
        <stop>KEY_STOPCD</stop>
        <reverse>KEY_REWIND</reverse>
        <play>KEY_PLAY</play>
        <forward>KEY_FASTFORWARD</forward>
        <skipminus>KEY_PREVIOUSSONG</skipminus>
        <skipplus>KEY_NEXTSONG</skipplus>
        <back>KEY_BACK</back>
        <info>KEY_PROPS</info>
        <display>KEY_MEDIA</display>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumeminus>KEY_VOLUMEDOWN</volumeminus>
        <mute>KEY_MUTE</mute>
        <recordedtv>KEY_TV2</recordedtv>
        <guide>KEY_PROGRAM</guide>
        <livetv>KEY_TV</livetv>
        <menu>KEY_MENU</menu>
        <mymusic>KEY_MP3</mymusic>
        <mypictures>KEY_CAMERA</mypictures>
        <myvideo>KEY_VIDEO</myvideo>
        <title>KEY_RADIO</title>
        <up>KEY_CHANNELUP</up>
        <down>KEY_CHANNELDOWN</down>
        <subtitle>KEY_TEXT</subtitle>
        <red>KEY_RED</red>
        <green>KEY_GREEN</green>
        <yellow>KEY_YELLOW</yellow>
        <blue>KEY_BLUE</blue>
    </remote>
</lircmap>

~/.xbmc/userdata/keymaps/remote.xml
Code:
<keymap>
  <global>
    <remote>
      <power>XBMC.Suspend()</power>
    </remote>
  </global>
</keymap>

Enable debugging and you should be getting in ~/.xbmc/temp/debug.log
Code:
23:29:01 T:140598791657344   DEBUG: LIRC: Update - NEW at 939153:2 0 KEY_1 /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd (KEY_1)
23:29:01 T:140598791657344   DEBUG: OnKey: 206 (ce) pressed, action is Number1
23:29:04 T:140598791657344   DEBUG: LIRC: Update - NEW at 942386:a6 0 KEY_STOPCD /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse (KEY_STOPCD)
23:29:04 T:140598791657344   DEBUG: OnKey: 224 (e0) pressed, action is Stop

enable wake from USB

Add in /etc/rc.local

Code:
echo enabled > /sys/bus/usb/devices/usb4/power/wakeup
echo enabled > /sys/bus/usb/devices/4-2/power/wakeup

Get numbers from lsusb
Code:
lsusb | grep Behavior
Bus 004 Device 002: ID 046e:5577 Behavior Tech. Computer Corp.

Think that's everything.

Edit: Updated to bind RADIO key to context menu.
Reply
wow excellent work. Will try this. Hope it works in XBMCuntu Smile
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
Thought I'd share my mapping for the 3009URF/ARF, which I'm using with XBMC on the RPi (Raspbmc) but I guess it should work on any platform.

Code:
<keymap>
  <global>
    <remote>
      <power>ActivateWindow(shutdownmenu)</power>
      <record>Screenshot</record>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <reverse>Rewind</reverse>
      <play>Play</play>
      <forward>FastForward</forward>
      <skipminus>SkipPrevious</skipminus>
      <skipplus>SkipNext</skipplus>
      <start>XBMC.ActivateWindow(Home)</start>
      <back>Back</back>
      <info>Contextmenu</info>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <recordedtv>XBMC.ActivateWindowAndFocus(MyPVR, 34,0, 13,0)</recordedtv>
      <guide>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</guide>
      <livetv>XBMC.ActivateWindowAndFocus(MyPVR, 32,0, 11,0)</livetv>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <liveradio>XBMC.ActivateWindowAndFocus(MyPVR, 33,0, 12,0)</liveradio>
      <one>Number1</one>
      <two>JumpSMS2</two>
      <three>JumpSMS3</three>
      <four>JumpSMS4</four>
      <five>JumpSMS5</five>
      <six>JumpSMS6</six>
      <seven>JumpSMS7</seven>
      <eight>JumpSMS8</eight>
      <nine>JumpSMS9</nine>
      <zero>Number0</zero>
      <enter>FullScreen</enter>
      <subtitle>NextSubtitle</subtitle>
      <red>FullScreen</red>
      <green>CodecInfo</green>
      <yellow>noop</yellow>
      <blue>noop</blue>
    </remote>
  </global>
  <Home>
    <remote>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
    </remote>
  </Home>
  <MyTV>
    <remote>
      <clear>Delete</clear>
    </remote>
  </MyTV>
  <MyFiles>
    <remote>
      <clear>Delete</clear>
      <zero>Highlight</zero>
      <star>Move</star>
      <hash>Rename</hash>
    </remote>
  </MyFiles>
  <MyMusicPlaylist>
    <remote>
      <clear>Delete</clear>
    </remote>
  </MyMusicPlaylist>
  <MyMusicPlaylistEditor>
    <remote>
      <hash>Queue</hash>
    </remote>
  </MyMusicPlaylistEditor>
  <MyMusicFiles>
    <remote>
      <hash>Queue</hash>
    </remote>
  </MyMusicFiles>
  <MyMusicLibrary>
    <remote>
      <red>UpdateLibrary(music)</red>
      <hash>Queue</hash>
    </remote>
  </MyMusicLibrary>
  <FullscreenVideo>
    <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>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <start>XBMC.ActivateWindow(Home)</start>
      <select>OSD</select>
      <title>CodecInfo</title>
      <info>Info</info>
      <guide>XBMC.ActivateWindow(PVROSDGuide)</guide>
      <subtitle>NextSubtitle</subtitle>
      <blue>AudioNextLanguage</blue>
    </remote>
  </FullscreenVideo>
  <VideoTimeSeek>
    <remote>
      <select>Select</select>
      <enter>Select</enter>
    </remote>
  </VideoTimeSeek>
  <FullscreenInfo>
    <remote>
      <info>CodecInfo</info>
      <back>Close</back>
      <menu>OSD</menu>
    </remote>
  </FullscreenInfo>
  <PlayerControls>
    <remote>
      <back>Back</back>
    </remote>
  </PlayerControls>
  <FullscreenLiveTV>
    <remote>
      <left>PreviousChannelGroup</left>
      <right>NextChannelGroup</right>
      <up>ChannelUp</up>
      <down>ChannelDown</down>
    </remote>
  </FullscreenLiveTV>
  <PVROSDChannels>
    <remote>
      <back>Back</back>
      <menu>Close</menu>
      <start>Close</start>
      <playlist>Close</playlist>
    </remote>
  </PVROSDChannels>
  <PVROSDGuide>
    <remote>
      <back>Back</back>
      <menu>Close</menu>
      <start>Close</start>
      <guide>Close</guide>
    </remote>
  </PVROSDGuide>
  <PVROSDDirector>
    <remote>
      <back>Back</back>
      <menu>Close</menu>
    </remote>
  </PVROSDDirector>
  <PVROSDCutter>
    <remote>
      <back>Back</back>
      <menu>Close</menu>
    </remote>
  </PVROSDCutter>
  <Visualisation>
    <remote>
      <left>PreviousPreset</left>
      <right>NextPreset</right>
      <up>IncreaseRating</up>
      <down>DecreaseRating</down>
      <hash>LockPreset</hash>
      <info>CodecInfo</info>
      <select>XBMC.ActivateWindow(VisualisationPresetList)</select>
      <start>OSD</start>
      <info>Info</info>
      <guide>XBMC.ActivateWindow(PVROSDGuide)</guide>
      <red>XBMC.ActivateWindow(Home)</red>
    </remote>
  </Visualisation>
  <MusicOSD>
    <remote>
      <back>Back</back>
      <title>Info</title>
      <info>CodecInfo</info>
    </remote>
  </MusicOSD>
  <VisualisationSettings>
    <remote>
      <back>Back</back>
    </remote>
  </VisualisationSettings>
  <VisualisationPresetList>
    <remote>
      <back>Back</back>
    </remote>
  </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>
    </remote>
  </SlideShow>
  <ScreenCalibration>
    <remote>
      <select>NextCalibration</select>
      <zero>ResetCalibration</zero>
      <display>NextResolution</display>
      <xbox>NextResolution</xbox>
    </remote>
  </ScreenCalibration>
  <GUICalibration>
    <remote>
      <select>NextCalibration</select>
      <zero>ResetCalibration</zero>
    </remote>
  </GUICalibration>
  <VideoOSD>
    <remote>
      <back>Back</back>
    </remote>
  </VideoOSD>
  <VideoMenu>
    <remote>
      <menu>OSD</menu>
      <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>
      <play>Select</play>
      <pageplus>SkipNext</pageplus>
      <pageminus>SkipPrevious</pageminus>
    </remote>
  </VideoMenu>
  <OSDVideoSettings>
    <remote>
      <back>Back</back>
    </remote>
  </OSDVideoSettings>
  <OSDAudioSettings>
    <remote>
      <back>Back</back>
    </remote>
  </OSDAudioSettings>
  <VideoBookmarks>
    <remote>
      <back>Back</back>
      <clear>Delete</clear>
    </remote>
  </VideoBookmarks>
  <MyVideoLibrary>
    <remote>
      <red>UpdateLibrary(video)</red>
      <hash>Queue</hash>
      <clear>Delete</clear>
    </remote>
  </MyVideoLibrary>
  <MyVideoFiles>
    <remote>
      <hash>Queue</hash>
    </remote>
  </MyVideoFiles>
  <MyVideoPlaylist>
    <remote>
      <clear>Delete</clear>
    </remote>
  </MyVideoPlaylist>
  <VirtualKeyboard>
    <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>
      <enter>Enter</enter>
      <pageminus>CursorLeft</pageminus>
      <pageplus>CursorRight</pageplus>
    </remote>
  </VirtualKeyboard>
  <ContextMenu>
    <remote>
      <title>Back</title>
    </remote>
  </ContextMenu>
  <Scripts>
    <remote>
      <info>info</info>
    </remote>
  </Scripts>
  <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>
      <back>BackSpace</back>
    </remote>
  </NumericInput>
  <Weather>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </Weather>
  <TV>
    <remote>
      <red>Red</red>
      <green>Green</green>
      <yellow>Yellow</yellow>
      <blue>Blue</blue>
    </remote>
  </TV>
  <Settings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </Settings>
  <AddonBrowser>
    <remote>
    </remote>
  </AddonBrowser>
  <AddonInformation>
    <remote>
      <back>Close</back>
    </remote>
  </AddonInformation>
  <AddonSettings>
    <remote>
      <back>Close</back>
    </remote>
  </AddonSettings>
  <TextViewer>
    <remote>
      <back>Close</back>
    </remote>
  </TextViewer>
  <MyPicturesSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyPicturesSettings>
  <MyProgramsSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyProgramsSettings>
  <MyWeatherSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyWeatherSettings>
  <MyMusicSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyMusicSettings>
  <SystemSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </SystemSettings>
  <MyVideosSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyVideosSettings>
  <NetworkSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </NetworkSettings>
  <AppearanceSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </AppearanceSettings>
  <Profiles>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </Profiles>
  <systeminfo>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </systeminfo>
  <shutdownmenu>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </shutdownmenu>
  <submenu>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </submenu>
  <MusicInformation>
    <remote>
      <info>Back</info>
    </remote>
  </MusicInformation>
  <MovieInformation>
    <remote>
      <info>Back</info>
    </remote>
  </MovieInformation>
  <LockSettings>
    <remote>
      <back>Back</back>
    </remote>
  </LockSettings>
  <ProfileSettings>
    <remote>
      <back>Back</back>
    </remote>
  </ProfileSettings>
  <PictureInfo>
    <remote>
      <skipplus>NextPicture</skipplus>
      <skipminus>PreviousPicture</skipminus>
      <info>Back</info>
    </remote>
  </PictureInfo>
  <Teletext>
    <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>
      <red>Red</red>
      <green>Green</green>
      <yellow>Yellow</yellow>
      <blue>Blue</blue>
      <info>Info</info>
      <back>Back</back>
      <teletext>Back</teletext>
    </remote>
  </Teletext>
  <Favourites>
    <remote>
      <back>Close</back>
    </remote>
  </Favourites>
   <MyTVSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyTVSettings>
  <AddonSettings>
    <remote>
      <clear>Delete</clear>
    </remote>
  </AddonSettings>
</keymap>
start
Reply
thanks for these Doveman, I wonder if I just put this text in a new file keymap.xml, will I get all of the buttons working like I can see e.g. mypictures?
Lounge rig: nVidia Shield - Official Kodi
Bedroom rig: Amazon Fire TV - Kodi 17.3
Backend: HP Microserver, Ubuntu, JBOD
Reply
You're welcome cable_guy.

As far as I know it has to be remote.xml and in userdata/keymaps. Certainly all the buttons as assigned in the xml should work but you might find you want to edit some of them to do different things as you prefer.

I've probably made some edits to fix some issues since posting that anyway, so here's my current remote.xml



Code:
<keymap>
  <global>
    <remote>
      <power>XBMC.ActivateWindow(shutdownmenu)</power>
      <record>Screenshot</record>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <reverse>Rewind</reverse>
      <play>Play</play>
      <forward>FastForward</forward>
      <skipplus>BigStepForward</skipplus>
      <skipminus>BigStepBack</skipminus>
      <start>XBMC.ActivateWindow(Home)</start>
      <back>Back</back>
      <info>Contextmenu</info>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <recordedtv>XBMC.ActivateWindowAndFocus(MyPVR, 34,0, 13,0)</recordedtv>
      <guide>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</guide>
      <livetv>XBMC.ActivateWindowAndFocus(MyPVR, 32,0, 11,0)</livetv>
      <video>noop</video>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <liveradio>XBMC.ActivateWindowAndFocus(MyPVR, 33,0, 12,0)</liveradio>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>JumpSMS2</two>
      <three>JumpSMS3</three>
      <four>JumpSMS4</four>
      <five>JumpSMS5</five>
      <six>JumpSMS6</six>
      <seven>JumpSMS7</seven>
      <eight>JumpSMS8</eight>
      <nine>JumpSMS9</nine>
      <subtitle>NextSubtitle</subtitle>
      <red>FullScreen</red>
      <green>CodecInfo</green>
      <yellow>RunScript(plugin.audio.lastfm,action=LastFM.Love)</yellow>
      <blue>RunScript(plugin.audio.lastfm,action=LastFM.Ban)</blue>
    </remote>
  </global>
  <screensaver>
    <remote>
      <power>XBMC.ActivateWindow(Home)</power>
    </remote>
  </screensaver>
  <Home>
    <remote>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
    </remote>
  </Home>
  <MyTV>
    <remote>
      <clear>Delete</clear>
    </remote>
  </MyTV>

  <MyFiles>
    <remote>
      <clear>Delete</clear>
      <zero>Highlight</zero>
      <star>Move</star>
      <hash>Rename</hash>
    </remote>
  </MyFiles>  
  <MyVideoLibrary>
    <remote>
      <zero>Queue</zero>
      <clear>Delete</clear>
    </remote>
  </MyVideoLibrary>
  <MyVideoFiles>
    <remote>
      <zero>Queue</zero>
      <star>Queue</star>
    </remote>
  </MyVideoFiles>
  <MyVideoPlaylist>
    <remote>
      <clear>Delete</clear>
      <zero>noop</zero>
    </remote>
  </MyVideoPlaylist>
  <MyMusicFiles>
    <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <back>Back</back>
    </remote>
  </MyMusicFiles>
  <MyMusicLibrary>
    <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <back>Back</back>
    </remote>
  </MyMusicLibrary>
  <MyMusicPlaylist>
    <remote>
      <clear>Delete</clear>
    </remote>
  </MyMusicPlaylist>
  <MyMusicPlaylistEditor>
    <remote>
      <zero>Queue</zero>
    </remote>
  </MyMusicPlaylistEditor>

  <FullscreenLiveTV>
    <remote>
      <guide>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</guide>
      <start>XBMC.ActivateWindow(Home)</start>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <pageplus>SkipNext</pageplus>
      <pageminus>SkipPrevious</pageminus>
    </remote>
  </FullscreenLiveTV>
  <TV>
    <remote>
      <red>Red</red>
      <green>Green</green>
      <yellow>Yellow</yellow>
      <blue>Blue</blue>
    </remote>
  </TV>

  <FullscreenVideo>
    <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>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <back>FullScreen</back>
      <start>XBMC.ActivateWindow(Home)</start>
      <select>OSD</select>
      <info>Info</info>
      <subtitle>NextSubtitle</subtitle>
      <star>noop</star>
      <hash>AudioNextLanguage</hash>
      <pageplus>BigStepForward</pageplus>
      <pageminus>BigStepBack</pageminus>
      <skipplus>BigStepForward</skipplus>
      <skipminus>BigStepBack</skipminus>
    </remote>
  </FullscreenVideo>

  <VideoTimeSeek>
    <remote>
      <select>Select</select>
    </remote>
  </VideoTimeSeek>
  <FullscreenInfo>
    <remote>
      <info>Back</info>
    </remote>
  </FullscreenInfo>
  <PlayerControls>
    <remote>
      <clear>Back</clear>
    </remote>
  </PlayerControls>
  <MusicOSD>
    <remote>
      <info>CodecInfo</info>
    </remote>
  </MusicOSD>
  <VideoOSD>
    <remote>
      <start>Back</start>
    </remote>
  </VideoOSD>
  <OSDVideoSettings>
    <remote>
      <start>Back</start>
    </remote>
  </OSDVideoSettings>
  <OSDAudioSettings>
    <remote>
      <start>Back</start>
    </remote>
  </OSDAudioSettings>
  <VideoMenu>
    <remote>
      <info>Info</info>
      <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>
      <play>Select</play>
    </remote>
  </VideoMenu>
  <VideoBookmarks>
    <remote>
      <start>Back</start>
      <zero>Delete</zero>
    </remote>
  </VideoBookmarks>
  <Visualisation>
    <remote>
      <left>PreviousPreset</left>
      <right>NextPreset</right>
      <up>IncreaseRating</up>
      <down>DecreaseRating</down>
      <hash>LockPreset</hash>
      <select>OSD</select>
      <start>XBMC.ActivateWindow(Home)</start>
      <info>Info</info>
      <guide>XBMC.ActivateWindow(PVROSDGuide)</guide>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
    </remote>
  </Visualisation>
  <VisualisationSettings>
  </VisualisationSettings>
  <VisualisationPresetList>
  </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>
      <right>NextPicture</right>
      <left>PreviousPicture</left>
      <select>Rotate</select>
    </remote>
  </SlideShow>

  <VirtualKeyboard>
    <remote>
      <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>
      <back>Back</back>
      <clear>Backspace</clear>
      <pageminus>CursorLeft</pageminus>
      <pageplus>CursorRight</pageplus>
      <skipminus>Back</skipminus>
      <skipplus>Back</skipplus>
      <blue>Enter</blue>
    </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>
      <back>Close</back>
      <clear>Backspace</clear>
      <skipminus>Back</skipminus>
      <skipplus>Close</skipplus>
      <blue>Enter</blue>
    </remote>
  </NumericInput>
  <ContextMenu>
     <back>Close</back>
  </ContextMenu>
  <Scripts>
    <remote>
      <info>info</info>
    </remote>
  </Scripts>
  <Weather>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </Weather>
  <Settings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </Settings>
  <AddonBrowser>
    <remote>
    </remote>
  </AddonBrowser>
  <AddonInformation>
    <remote>
      <back>Close</back>
    </remote>
  </AddonInformation>
  <AddonSettings>
    <remote>
      <back>Close</back>
    </remote>
  </AddonSettings>
  <TextViewer>
    <remote>
      <back>Close</back>
    </remote>
  </TextViewer>
  <MyPicturesSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyPicturesSettings>
  <MyProgramsSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyProgramsSettings>
  <MyWeatherSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyWeatherSettings>
  <MyMusicSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyMusicSettings>
  <SystemSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </SystemSettings>
  <MyVideosSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyVideosSettings>
  <NetworkSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </NetworkSettings>
  <AppearanceSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </AppearanceSettings>
  <Profiles>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </Profiles>
  <systeminfo>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </systeminfo>
  <shutdownmenu>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </shutdownmenu>
  <submenu>
    <remote>
     <back>Close</back>
    </remote>
  </submenu>
  <MusicInformation>
    <remote>
      <info>Back</info>
    </remote>
  </MusicInformation>
  <MovieInformation>
    <remote>
      <info>Back</info>
    </remote>
  </MovieInformation>
  <LockSettings>
    <remote>
      <menu>Back</menu>
    </remote>
  </LockSettings>
  <ProfileSettings>
    <remote>
      <menu>Back</menu>
    </remote>
  </ProfileSettings>
  <PictureInfo>
    <remote>
      <skipplus>NextPicture</skipplus>
      <skipminus>PreviousPicture</skipminus>
      <info>Back</info>
    </remote>
  </PictureInfo>
  <Favourites>
    <remote>
      <back>Close</back>
    </remote>
  </Favourites>
  <MyTVSettings>
    <remote>
      <back>PreviousMenu</back>
    </remote>
  </MyTVSettings>
  <AddonSettings>
    <remote>
      <clear>Delete</clear>
    </remote>
  </AddonSettings>
  <ScreenCalibration>
    <remote>
      <select>NextCalibration</select>
      <zero>ResetCalibration</zero>
    </remote>
  </ScreenCalibration>
  <GUICalibration>
    <remote>
      <select>NextCalibration</select>
      <zero>ResetCalibration</zero>
    </remote>
  </GUICalibration>

  <PVROSDChannels>
    <remote>
      <back>Close</back>
      <start>Close</start>
      <red>FullScreen</red>
    </remote>
  </PVROSDChannels>
  <PVROSDGuide>
    <remote>
      <back>Close</back>
      <start>Close</start>
      <guide>Close</guide>
      <red>FullScreen</red>
    </remote>
  </PVROSDGuide>
  <PVROSDDirector>
    <remote>
      <back>Close</back>
      <menu>Close</menu>
    </remote>
  </PVROSDDirector>
  <PVROSDCutter>
    <remote>
      <back>Close</back>
      <menu>Close</menu>
    </remote>
  </PVROSDCutter>


  <Teletext>
    <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>
      <red>Red</red>
      <green>Green</green>
      <yellow>Yellow</yellow>
      <blue>Blue</blue>
      <info>Info</info>
      <start>Back</start>
    </remote>
  </Teletext>
</keymap>
Reply
that's really good of you. I assumed you wouldn't find my reply due to the date of the last post! I will try creating this remote.xml in the keymaps folder tonight as I just received the remote and was annoyed that the "pictures" etc buttons didn't work as they seem perfect for opening the relevant category :-) thanks again
Lounge rig: nVidia Shield - Official Kodi
Bedroom rig: Amazon Fire TV - Kodi 17.3
Backend: HP Microserver, Ubuntu, JBOD
Reply
(2014-01-14, 10:32)cable_guy Wrote: that's really good of you. I assumed you wouldn't find my reply due to the date of the last post! I will try creating this remote.xml in the keymaps folder tonight as I just received the remote and was annoyed that the "pictures" etc buttons didn't work as they seem perfect for opening the relevant category :-) thanks again

I had this thread subscribed so I saw your message.....

You do realize most of the messing around with this remote is no longer needed?

Modern systems like openelec / (xbmc live?) recognize every button on this remote and all key presses are now handled by lircinput to send inputs to XBMC.

This also means you can run scripts easily using irexec.

The remote buttons are mapped to XBMC inputs via the Lircmap.xml (which you have to copy to writable area storage/.xbmc/userdata/Lircmap.xml to make changes)

Only XBMC keymap changes I like to make now is that power button opens power menu not switch off PC.
If you try openelec (you can run it off a usb stick its tiny)
then to change keymap all you have to do is:

Code:
cp /usr/share/xbmc/system/keymaps/remote.xml /storage/.xbmc/userdata/keymaps/
vi /storage/.xbmc/userdata/keymaps/remote.xml

and in my case edit
Code:
<power>XBMC.ShutDown()</power>
to be
Code:
<power>XBMC.ActivateWindow(shutdownmenu)</power>

If you want to run a script on a keypress like Kill XBMC when a addon has crashed then use command
Code:
irw

To display what keycode corresponds to what remote button press (they are fairly obvious)

In my case I want to use the Red Colour key at bottom (KEY_RED).
So first I want to stop that key from doing something else in XBMC so I edit
storage/.xbmc/userdata/Lircmap.xml and set KEY_RED to something madeup
Code:
<madeup>KEY_RED</madeup>

Create and edit
Code:
vi /storage/.config/.lircrc

Enter the following
Code:
begin
        button = KEY_RED
        prog = irexec
        config = /bin/killall -9 xbmc.bin &
end

Set IRExec to run on startup

edit autostart.sh and add line

Code:
/usr/bin/irexec -d /storage/.config/.lircrc

Every button is on remote is full mapped and I can restart XBMC using the red key.
Suspend/Resume using the emprex remote also worked fully without any changes (although suspend breaks some things in XBMC).
Reply
thanks for the reply! I had read some chatter about linux' kernel containing more remote stuff, but I wasn't aware of the consequences. I did find my remote almost fully functional except I would like to make a few tweaks of my own.

So if I copy the remote.xml file to /storage/.xbmc/userdata/keymaps/ I can just edit it to swap which keys I want to do different things?

e.g. add in the line <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic> to make the music button bring up the Music section? This sounds great Smile
Lounge rig: nVidia Shield - Official Kodi
Bedroom rig: Amazon Fire TV - Kodi 17.3
Backend: HP Microserver, Ubuntu, JBOD
Reply
(2014-01-14, 12:14)Crispy2 Wrote: I had this thread subscribed so I saw your message.....

You do realize most of the messing around with this remote is no longer needed?

Well that rather depends on whether you're happy with the default mappings.

If not then you have to edit/create userdata/keymaps/remote.xml as I suggested and in fact that's also what you've gone on to describe doing, albeit in a rather more complicated way than just copying a ready-made file there.

I'm using XBMC on a Raspberry Pi anyway, so if cable_guy is using a PC, then maybe some of my mappings aren't suitable for him.

I personally like using RED for it's default "Switch between GUI/Fullscreen video" and wouldn't really advise setting a button to restart XBMC as it would be rather annoying if it was accidentally pressed, which is all too easy when fumbling with the remote in the dark Smile
Reply
yea i'm going to try your file first doveman, I get it now, thanks so much for posting it up!
Lounge rig: nVidia Shield - Official Kodi
Bedroom rig: Amazon Fire TV - Kodi 17.3
Backend: HP Microserver, Ubuntu, JBOD
Reply
Glad to be of help cable_guy Smile
Reply
Hi guys I pasted doveman2's exact remote.xml into my .xbmc/userdata/keymaps folder and rebooted XBMC and it doesn't seem to have worked, any tips please?
Lounge rig: nVidia Shield - Official Kodi
Bedroom rig: Amazon Fire TV - Kodi 17.3
Backend: HP Microserver, Ubuntu, JBOD
Reply
  • 1
  • 5
  • 6
  • 7
  • 8(current)
  • 9

Logout Mark Read Team Forum Stats Members Help
Anyone have a Emprex 3009URF MCE RC?0