I recently acquired a new A/V receiver as I have been watching quite a few films lately. So I hooked the bad boy up and sat down to watch something or other only to find that OSX EL Capitan on a Mac Mini (mid 2011) would not work correctly (and it wouldn’t work when I rolled the Mini back to fresh install of Yosemite either). Basically the screen was flickering black every 5 seconds or so. I tried a different HDMI cable with no joy but connecting the Mini back to the TV directly fixed the issue… however there was little point in that as I wasn’t getting the surround sound that I bought the damn A/V receiver for.
After lots of searching I found that the 2012 mini had an issue with HDMI handshaking and CEC which resulted in this very same problem. Whilst Apple had released a firmware update to fix this in the 2012 models the problem was never corrected in the mid 2011 models. My only solution to fix this was to either buy a new Mini, or install Windows through Bootcamp and turn the Mini into a Windows box. I ended up being fine with the latter solution, as it would soon come to my attention that Apple do not allow Atmos Bitstream audio to be passed through the OSX operating system anyway, meaning that new movies with Atmos audio wouldn’t have worked whilst running under El Capitan… you can thank the late Steve Jobs for the “My way, or the high way” Apple method of thinking.
So I install Windows 7, it all works fine after taking about 6 hours to get setup in the way I want, and then I go to use Plex. Of course I am sat there clicking the remote and nothing is happening despite a) Bootcamp installing the remote IR drivers, and b) Plex natively support Mac remotes (but no go on Windows).
Just before I continue, I did submit a feature request to Plex to support for the Apple remote on Windows, since in my mind it should be fairly trivial. However, it would seem that not many people want to see the same thing as the post got no replies at all… which actually makes me wonder why I am even bothering to post this guide if nobody actually needs it :/
Whatever though, I needed it, so it might help someone.
Now, there is a forum post where people have done this for Kodi, and that is where I got my initial information to make this work. My method changes the key mapping to work with Plex Home Theatre and Plex Media Player, and also supports button presses from the Apple MC377 remote.
First things first, you are going to have to go and download EventGhost which has flavours for both X32/X64 versions of Windows. EventGhost is a nifty little program that takes the input from almost any peripheral you can think of and then executes actions on those inputs that you assign. So, I dunno, you can make the button press of a remote send an [Escape] key command to the operating system. You see where this is going?
I’m going to do the next part as a step by step how-to, follow along carefully now!
- After you have EventGhost installed, you need to change the way the Mac IR receiver is ‘seen’ by Windows. At the moment anything you do will be intercepted and the remote will only be able to control iTunes which is no good. You will actually have to go and change the drivers in Windows (you can easily change them back). Open up Control Panel, and go to System-> Device Manager. From there, expand the “Human Interface Devices” box, and right click on the Apple IR Receiver. Go to Properties->Driver->Update Driver. From here, choose “Browse…”, then “Let me choose…” Now, choose USB Input Device. You may, or may not have to restart Windows (I didn’t).
- You now need to open up EventGhost, fire that bad boy up!
- Now the general idea is that you need to capture each button press and assign it to the action, but Chewie’s got your back and I have Pastebinned the XML file which you can open in EventGhost to have this all done for you. So copy and paste that Pastebin into a new Notepad file, and save that file as PlexRemote.xml. Then open it in EventGhost.
- EventGhost will now look something like the image below…
Credit to jhsrennie on the Kodi forum for the image
- With EventGhost open, go ahead and launch Plex Home Theatre or Plex Media Center. If you are using the same model remote as my good self then the remote should be working straight away and you can use Plex with your remote to your heart’s content.
“But Chewie” I hear your cry, “I don’t have the same model remote, what the hell is this?”.
Well my friend, in that case you will need to capture your remote buttons and assign them to each of the events.
- First of all, make sure that each ‘Folder’ in EventGhost is expanded.
- Find each instance of HID.1234546 . 123456 denotes the input from the remote. You will need to change these for your remote.
- Click the button on the remote that you want to assign, this will now be saved to the last input in EventGhost and appear in the left panel.
- You should then be able to ‘Configure’ the HID.123456 ID by right clicking on it which will then allow you to select the last remote input pressed.
- Go through each of the actions and assign your button, making sure that straight after you press the button on the remote you configure the HID element.
- There is one thing that is confusing. Both quick presses and long presses appear to have the same HID ID, but they are different by a single number, e.g…
Thanks to perezbalen on the Kodi forum
- So if you find yourself assigning an input only to test it and have Plex jump up or down (or left or right) twice then it is because you have used the “Long Press” HID.
So yeah, there you go, it is pretty straight forward once you get the hang of it. There is a command which I have muted to launch Plex using the remote as it doesn’t work correctly with Plex Media Player due to the weird way it is doing full screen. You’ll be able to unmute this and test yourself by disabling the red X on the specific event HID.
If this helps you out, and you’d like to see Plex enable native Apple remote support on Windows then please comment on the Plex Feature Request and let me know how you got on in the comments.