Archive:Unbranded MCE remote

From Official Kodi Wiki
Jump to navigation Jump to search

Unbranded MCE remote

Remote-unbranded.jpg

There is no manufacturer's name on this remote or the manual, and it is sold via numerous Asian resellers, but on the PCB of the receiver you can read the OEM name www.tigerfly.net. It can be used with Logitech Harmony Remote Software by picking Computer>>Media Center PC>>Chinavasion>>CVSB-983.

They are available on Ebay and DealExtreme for as little as ~$10 including shipping (often marketed as e g $2 for the device and $8 for shipping but since the cost for two is $20 this is just a trick). It's cheap and feels a bit flimsy, but it works well enough. It simulates the MS Media Center keypresses and will work out of the box on Windows, Linux and probably OSX. It also simulates a mouse including mouse buttons, although it's no match for a proper mouse or trackpad.

It isn't very configurable and certain buttons don't work as they should: The fast forward and rewind buttons skip forward or backwards instead of moving gradually. This is because they send a bunch of keypresses (ctrl, shift, arrow, letter "B" etc). If the software is set to detect ctrl + arrow (left or right) it probably works.

If you want to add mappings for the four coloured keys here are the entries you need in keyboard.xml. Every button can be mapped, with one possible exception (the red Power button).

<f1 mod="ctrl,alt">Notification(Key, Green, 3)</f1>  <!-- Green -->
<f2 mod="ctrl,alt">Notification(Key, Orange, 3)</f2> <!-- Orange -->
<f3 mod="ctrl,alt">Notification(Key, Blue, 3)</f3>   <!-- Blue -->
<f4 mod="ctrl,alt">Notification(Key, Yellow, 3)</f4> <!-- Yellow -->

Update 16th Jan: the rewind button sends three keypresses, left, then ctrl-left, then ctrl-shift-B. The left press causes the video to jump back 30 seconds. With the later releases of XBMC the ctrl-shift-B then starts the rewind (release v9.11 ignores ctrl-keypresses).

Update 1st Nov 2010: Requires a minor kernel patch to support all buttons in Linux. See patch in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607062. Once patched, works well with Linux.

Update 12th June 2011: I've bought one recently. They must have changed hardware or whatever because mine works well with XBMC out of the box both on Win7 and Linux Ubuntu. Most keys are functioning correctly and 4 colored keys can be mapped by adding the following entries in keymap.xml:

<keyboard>
   <one mod="ctrl,alt">YourAction1</one> <!-- Green -->
   <two mod="ctrl,alt">YourAction2</two> <!-- Orange -->
   <three mod="ctrl,alt">YourAction3</three> <!-- Blue -->
   <four mod="ctrl,alt">YourAction4</four> <!-- Yellow -->
   ...
</keyboard>

Update November 6, 2011: This remote works out of the box on a vanilla install of Ubuntu (11.1). It is auto-detected as a keyboard and mouse. It is no good for typing. It is only slightly better for moving the mouse pointer around the screen. The buttons are dependable though, and if you are looking for a cheap remote that does the job this should be a candidate. Here is a more complete map for every key on the remote except the Red Power Button. These changes go in your keyboard.xml file. Make sure that there are no duplicate mappings (with PVR settings). The default behavior is to pop up a notification with the key combination passed. You should probably replace this behavior with what you want.

	<keyboard>
	...
	<!-- Generic MCE Remote Keys -->
	<one mod="ctrl,alt">Notification(Key Pressed, Ctrl+Alt+1)</one> <!-- Green -->
	<two mod="ctrl,alt">Notification(Key Pressed, Ctrl+Alt+2)</two> <!-- Orange -->
	<three mod="ctrl,alt">Notification(Key Pressed, Ctrl+Alt+3)</three> <!-- Blue -->
	<four mod="ctrl,alt">Notification(Key Pressed, Ctrl+Alt+4)</four> <!-- Yellow -->
	<f4 mod="alt">Notification(Key Pressed, Alt+F4)</f4> <!-- The [X] Button-->
	<o mod="ctrl">Notification(Key Pressed, Ctrl+O)</o> <!-- The Open File button-->
	<leftwindows>Notification(Key Pressed, Left Windows Key)</leftwindows> <!-- The Windows Button -->
	<launch_mail>Notification(Key Pressed, Launch Mail)</launch_mail> <!-- The Mail Button -->
	<browser_home>Notification(Key Pressed, Launch Browser)</browser_home> <!-- The IE Button -->
	<d mod="leftwindows">Notification(Key Pressed, LeftWin+D)</d> <!-- The Desktop Button -->
	<e mod="leftwindows">Notification(Key Pressed, LeftWin+E)</e> <!-- The My Computer Button -->
	<tab mod="alt">Notification(Key Pressed, Alt+Tab)</tab> <!-- The Switch Windows Button -->
	<return mod="alt">Notification(Key Pressed, Alt+Return)</return> <!-- The Full Screen Button -->
	<!-- Haven't gotten Power Button to work -->
	...
	</keyboard>
	    
	<!-- Button between L and R mouse buttons shows up as a joystick button -->    
	<joystick name="HID 073a:2230"> <!-- This might be different for your remote -->
	<button id="79">Notification(Key Pressed, Joystick Button 79)</button> 
	</joystick>

	<!-- End Generic Remote Keys -->


XML above tabulated :

<keyboard>
    <one mod="ctrl,alt">    CustomAction01    (Key Pressed, Ctrl+Alt+1)        </one>              <!-- Green -->
    <two mod="ctrl,alt">    CustomAction02    (Key Pressed, Ctrl+Alt+2)        </two>              <!-- Orange -->
    <three mod="ctrl,alt">  CustomAction03    (Key Pressed, Ctrl+Alt+3)        </three>            <!-- Blue -->
    <four mod="ctrl,alt">   CustomAction04    (Key Pressed, Ctrl+Alt+4)        </four>             <!-- Yellow -->
    <f4 mod="alt">          CustomAction05    (Key Pressed, Alt+F4)            </f4>               <!-- X Button-->
    <o mod="ctrl">          CustomAction06    (Key Pressed, Ctrl+O)            </o>                <!-- Open File button-->
    <leftwindows>           CustomAction07    (Key Pressed, Left Windows Key)  </leftwindows>      <!-- Windows Button -->
    <launch_mail>           CustomAction08    (Key Pressed, Launch Mail)       </launch_mail>      <!-- Mail Button -->
    <browser_home>          CustomAction09    (Key Pressed, Launch Browser)    </browser_home>     <!-- IE Button -->
    <d mod="leftwindows">   CustomAction10    (Key Pressed, LeftWin+D)         </d>                <!-- Desktop Button -->
    <e mod="leftwindows">   CustomAction11    (Key Pressed, LeftWin+E)         </e>                <!-- My Computer Button -->
    <tab mod="alt">         CustomAction12    (Key Pressed, Alt+Tab)           </tab>              <!-- Switch Windows Button -->
    <return mod="alt">      CustomAction13    (Key Pressed, Alt+Return)        </return>           <!-- Full Screen Button -->
</keyboard>

And yes, sometimes between then and now, the command for color button changes. f1, f2, f3, and f4 becomes one, two, three, and four caused by keyboard.xml auto update from the repository.


Update December 28, 2013: This remote works out of the box with Openelec 3.1.x. No configuration is needed. Some additional info regarding the red power button of this remote:

  • Only this button is able to wake-up the HTPC from sleep mode. Pressing other buttons have no effect on a suspended machine.
  • This button sends three keypresses. However it is possible to map it to switch off the system directly instead of showing a menu. See this example below.
<keyboard>
   <power>XBMC.ShutDown()</power> <!-- Power button -->
</keyboard>