# Plex commands via CEC

**URL:** <https://forums.plex.tv/t/plex-commands-via-cec/32229>\
**Category:** Apps & Creations\
**Created:** [April 5, 2013, 5:49pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229 "2013-04-05T17:49:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ionut\_David](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ionut_david/32/88645_2.png) [@Ionut\_David](https://forums.plex.tv/u/Ionut_David)\
**Post date:** [April 5, 2013, 5:49pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/1 "2013-04-05T17:49:18Z")

</div>

I've been&nbsp;controlling&nbsp;my Rasplex using CEC through my Panasonic TV. It's been mostly a good experience though I sometimes experience double clicks when pressing a button. This might have something to do with my Harmony remote that controls the TV but I didn't have time to fiddle with that.

&nbsp;

But the reason of this thread is that sometimes I miss some extra commands that neither the Android/iOS remotes nor standard CEC seems to have, like context menu (C on the keyboard), subtitle language (S on the keyboard), audio track (A on the keyboard) etc.

&nbsp;

Is there a way to have those buttons mapped somehow to work through CEC? Or if not, is there an Android app that sends key presses to Plex?

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ionut\_David](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ionut_david/32/88645_2.png) [@Ionut\_David](https://forums.plex.tv/u/Ionut_David)\
**Post date:** [April 8, 2013, 9:19am UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/2 "2013-04-08T09:19:29Z")

</div>

Anybody? Nobody?

---

<div class="post-metadata">

**Author:** ![Boomshaw](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/boomshaw/32/130123_2.png) [@Boomshaw](https://forums.plex.tv/u/Boomshaw)\
**Post date:** [April 8, 2013, 2:47pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/3 "2013-04-08T14:47:31Z")

</div>

I have the same issue.&nbsp; I only have basic playback and menu&nbsp;navigation control with my TV remote and CEC.&nbsp; I tried to set up my Harmony remote for CEC control but I can't even get the Play/Pause buttons to work.&nbsp; It would be nice if the remotes could do more than just basic control.&nbsp; I'd especially like to be able to marks shows watched/unwatched with the remote.

I'm thinking a proper IR receiver for the Pi is the only way to get the Harmony working nicely.&nbsp; You can then set up a Windows MCE keyboard device on the Harmony and add that to a Plex activity, which allows you to send keyboard presses to the Pi, like this guy did: [http://forums.plexapp.com/index.php/topic/47847-how-to-get-harmony-remote-working-perfectly-in-windows/](http://forums.plexapp.com/index.php/topic/47847-how-to-get-harmony-remote-working-perfectly-in-windows/)

---

<div class="post-metadata">

**Author:** ![Ionut\_David](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ionut_david/32/88645_2.png) [@Ionut\_David](https://forums.plex.tv/u/Ionut_David)\
**Post date:** [April 8, 2013, 2:50pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/4 "2013-04-08T14:50:45Z")

</div>

Yeah I've been thinking of that solution also, but I'm trying to figure out if it's worth buying a Flirc (which is not that cheap IMHO), or wait for the RasPlex case that I understand it has built in IR receiver.

I was trying to figure out if there's a way to edit the CEC mapping by changing the XML file, but I don't know how exactly and with what.

---

<div class="post-metadata">

**Author:** ![Boomshaw](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/boomshaw/32/130123_2.png) [@Boomshaw](https://forums.plex.tv/u/Boomshaw)\
**Post date:** [April 8, 2013, 3:26pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/5 "2013-04-08T15:26:05Z")

</div>

I bought a $6 usb IR receiver from ebay last week to try out while I wait for a RasPlex case with its integrated IR receiver.&nbsp; I wouldn't know where to start with editing XML files either.

---

<div class="post-metadata">

**Author:** ![Ionut\_David](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ionut_david/32/88645_2.png) [@Ionut\_David](https://forums.plex.tv/u/Ionut_David)\
**Post date:** [April 8, 2013, 4:02pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/6 "2013-04-08T16:02:01Z")

</div>

Yeah, I think this is the best solution for the moment. Sad part is, where I live I can only find a IR+Remote (which is useless as I have a Harmony) bundle for about 25$ which is a lot. Buying from eBay would also add shipping costs which also raises the price to around 20ish

It also hard to imagine why doesn't the official Plex app remote support this. Even the unofficial ones don't.

---

<div class="post-metadata">

**Author:** ![khaki54](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/khaki54/32/95545_2.png) [@khaki54](https://forums.plex.tv/u/khaki54)\
**Post date:** [April 20, 2013, 12:52am UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/7 "2013-04-20T00:52:42Z")

</div>

RasPlex + GPIO IR does not work for me with Microsoft MCE Keyboard setting in logitech remote. &nbsp;'Media Center Extender' works but then I can't send all the same commands. &nbsp;Is there some setting that I need to add to recognize keyboard strokes from a remote?

Got the GPIO IR reciever from here: [http://nwazet.com/nwazet-pi-infrared-receiver](http://nwazet.com/nwazet-pi-infrared-receiver)

These guys are based out of&nbsp;Washington&nbsp;State and make everything in the US. &nbsp;They also have cases and matching power supplies that all work together.

---

<div class="post-metadata">

**Author:** ![jhayes](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jhayes/32/114601_2.png) [@jhayes](https://forums.plex.tv/u/jhayes)\
**Post date:** [April 20, 2013, 2:12am UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/8 "2013-04-20T02:12:10Z")

</div>

> RasPlex + GPIO IR does not work for me with Microsoft MCE Keyboard setting in logitech remote. &nbsp;'Media Center Extender' works but then I can't send all the same commands. &nbsp;Is there some setting that I need to add to recognize keyboard strokes from a remote?

Did you follow the steps for setting up the remote?&nbsp;[http://sourceforge.net/p/rasplex/wiki/GPIO-IR/](http://sourceforge.net/p/rasplex/wiki/GPIO-IR/)

---

<div class="post-metadata">

**Author:** ![khaki54](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/khaki54/32/95545_2.png) [@khaki54](https://forums.plex.tv/u/khaki54)\
**Post date:** [April 20, 2013, 3:21pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/9 "2013-04-20T15:21:53Z")

</div>

...sigh. &nbsp;No. &nbsp;I literally spent several hours going through the rasplex.com documentation, plex forums, openelec docs and forums and xmbc. &nbsp;Google also. &nbsp;Did not check the Rasplex sourceforge wiki, haha. &nbsp;This is probably the first project I've seen that&nbsp;actually&nbsp;populates the documentation&nbsp;on sourceforge rather than just including a link to somewhere else.

Thanks Jason, this looks like exactly what I need I will give it a try.

---

<div class="post-metadata">

**Author:** ![CptanPanic](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cptanpanic/32/92958_2.png) [@CptanPanic](https://forums.plex.tv/u/CptanPanic)\
**Post date:** [April 21, 2013, 9:11pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/10 "2013-04-21T21:11:04Z")

</div>

The way I got around this limitation is to take advantage of the fact that my tv passed the keys 0-9 through to the raspi. &nbsp;So in my remote.xml keymap, I just remapped these buttons to be play/pause/fwd/rewind/etc. &nbsp;

---

<div class="post-metadata">

**Author:** ![Driesione](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@Driesione](https://forums.plex.tv/u/Driesione)\
**Post date:** [September 19, 2013, 9:21am UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/11 "2013-09-19T09:21:44Z")

</div>

> The way I got around this limitation is to take advantage of the fact that my tv passed the keys 0-9 through to the raspi. &nbsp;So in my remote.xml keymap, I just remapped these buttons to be play/pause/fwd/rewind/etc. &nbsp;

CptanPanic,&nbsp;

Where can I find this remote.xml keymap in my raspberry pi? I have a remote keyboard and I cannot pop up the menu to select/deselect the subtitle file that I want:-)&nbsp;  
Thanks in advance!&nbsp;

---

<div class="post-metadata">

**Author:** ![markmckim](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@markmckim](https://forums.plex.tv/u/markmckim)\
**Post date:** [September 20, 2013, 8:34am UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/12 "2013-09-20T08:34:12Z")

</div>

This is how i changed my remote keymaps for my TV remote. Hope it helps:

Enable SSH in&nbsp;RasPlex  
Open new SSH in Windows (e.g. using puTTY)  
ssh&nbsp;[root@192.168.0.17](mailto:root@192.168.0.17)&nbsp;(or whatever&nbsp;RasPlex&nbsp;IP is)  
Enter password:&nbsp;rasplex  
Type:  
cp /usr/share/xbmc/system/keymaps/remote.xml /storage/.plex-ht/userdata/keymaps/  
then cd /storage/.plex-ht/userdata/keymaps/  
nano remote.xml  
Then change whatever you need to. In my case, my tv remote doesnt send CEC signals for the Back button, so i changed to stop button to have back functionality...

Change  
Stop  
to  
Back

Save & Quit  
Reboot&nbsp;Plex

---

<div class="post-metadata">

**Author:** ![jvanpuym](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jvanpuym](https://forums.plex.tv/u/jvanpuym)\
**Post date:** [October 27, 2013, 8:09pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/13 "2013-10-27T20:09:57Z")

</div>

Control Plex via CEC is the same as controlling your TV. &nbsp;On your harmony, there is no need to add a device, just add an activity: watch TV.

Select the right HDMI input, rename the activity to "watch plex" or something and that's it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 11:10pm UTC](https://forums.plex.tv/t/plex-commands-via-cec/32229/14 "2019-12-20T23:10:37Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
