# Personalize Mapping samsung remote.

**URL:** <https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219>\
**Category:** Apps & Creations\
**Created:** [March 22, 2014, 5:01pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219 "2014-03-22T17:01:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_ChaY](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/t_chay/32/3284_2.png) [@T\_ChaY](https://forums.plex.tv/u/T_ChaY)\
**Post date:** [March 22, 2014, 5:01pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/1 "2014-03-22T17:01:22Z")

</div>

Hi RasPlex users !&nbsp;  
  
I would like to personalize the mapping of my samsung remote&nbsp;([http://lc.cx/samsungrc](http://lc.cx/samsungrc)). I want to use my tv remote control more efficiently. For that i need help because i'm not an expert in xml code and don't know where i can find the exact tag of touch.&nbsp;

remote.xml is the file which have to be modfy. the is located here&nbsp;./usr/share/xbmc/system/keymaps/remote.xml. but it's not possible to update it and you have to copy/paste&nbsp;that file to /storage/.plexht/userdata/keymaps.  
&nbsp;

You can see below what my TV remote does currently and what i think it should have to do for better use.&nbsp;

&nbsp;

Someone motivated to help me ?&nbsp; :)&nbsp;Thank's&nbsp;

&nbsp;

> 1) Menu
> 
> - exit : nothing
> - return: option
> - Return should do nothing, exit should show option menu in order to choose how we want to turn off rasplex.
> 
> 2) on deck and recently added :
> 
> - exit : back to the menu
> - return : option menu
> - Exit and return can return to the menu
> - Option should be in "Tools" touch  
> &nbsp;
> 
> 3) Movie section (Blu-Ray Movie for example)
> 
> - exit : back to the menu
> - return: option
> - Exit and return can return to the menu
> - Option should be in "Tools" touch
> 
> 4) Movie description
> 
> - exit: back to Movie section
> - return: nothing
> - Exit should return to the menu section
> - Return should return to the Movie section
> - Option should be in "Tools" touch
> 
> 5)When movie is playing.
> 
> - exit: quit and back to the film description.
> - return: show detail infos
> - exit should return to the Movie section
> - Return should return to the Movie description
> - Details infos should be in "Infos" Touch
> 
> 6) When menu bar is showing (durind a movie)
> 
> - exit: quit menu bar
> - return: do nothing
> - exit should still quit movie
> - return should quit menu bar.
> 
> &nbsp;

---

<div class="post-metadata">

**Author:** ![guyldn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/guyldn/32/7808_2.png) [@guyldn](https://forums.plex.tv/u/guyldn)\
**Post date:** [March 23, 2014, 7:04pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/2 "2014-03-23T19:04:12Z")

</div>

hello

I too am using Samsung, but I do not have the problems you are having - but then my remote is not the same one.

I have this one:

[http://www.amazon.co.uk/Remote-Control-BN59-00611A-LCD-SAMSUNG/dp/B00CRLQ5WC/ref=sr\_1\_2?ie=UTF8&qid=1395596180&sr=8-2&keywords=remote+for+samsung+tv](http://www.amazon.co.uk/Remote-Control-BN59-00611A-LCD-SAMSUNG/dp/B00CRLQ5WC/ref=sr_1_2?ie=UTF8&qid=1395596180&sr=8-2&keywords=remote+for+samsung+tv)

**Are you using the remote in TV mode and not BD mode?**

Keys that function on my Samsung remote :

Exit - to go back

Enter

Return - when playing media displays info about the media

Up, down, left, right

Stop - stops media playing

Play/ Pause

Numbers keys - use to input&nbsp; a time followed by ENTER to jump to that time.

---

<div class="post-metadata">

**Author:** ![guyldn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/guyldn/32/7808_2.png) [@guyldn](https://forums.plex.tv/u/guyldn)\
**Post date:** [March 23, 2014, 7:09pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/3 "2014-03-23T19:09:37Z")

</div>

I found info on remote control XMBC keymaps at:

[http://wiki.xbmc.org/index.php?title=Keymap](http://wiki.xbmc.org/index.php?title=Keymap)

And this is what a basic remote.xml file should looks like:

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

&nbsp;   
&nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Play  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FastForward  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rewind  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stop  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Left  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Right  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Up  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Down  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select  
&nbsp;&nbsp;&nbsp;   
&nbsp;

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

It seems simple enough, and I will play with this myself as it will be useful to use the colour keys to shortcut to home screen etc.

And below the actions that can be used.

Note - you can assign actions to any key that is not being used by the TV when switched to the Rasplex input.

One has to test this actions against keys on your remote and see what works.

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

**XMBC Main actions** :

[http://wiki.xbmc.org/index.php?title=Action\_IDs](http://wiki.xbmc.org/index.php?title=Action_IDs)

---

<div class="post-metadata">

**Author:** ![guyldn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/guyldn/32/7808_2.png) [@guyldn](https://forums.plex.tv/u/guyldn)\
**Post date:** [March 23, 2014, 8:16pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/4 "2014-03-23T20:16:05Z")

</div>

I see that the Samsung hex code keymaps are stored in the Rasberry Pi system at:

/etc/rc\_keymaps

So these are standards Samsung codes that tell the CEC in Rasplex what button is being pushed on a Samsung remote and so all Samsung remotes should behave in the same way. If you are not getting the expected result when pressing a key - make sure you press the TV button on the remote to set it to TV mode.

This is what the file contains:

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

# table samsung, type: NEC  
0x43532f KEY\_NUMERIC\_0  
0x435341 KEY\_NUMERIC\_1  
0x435342 KEY\_NUMERIC\_2  
0x435343 KEY\_NUMERIC\_3  
0x435344 KEY\_NUMERIC\_4  
0x435345 KEY\_NUMERIC\_5  
0x435346 KEY\_NUMERIC\_6  
0x435347 KEY\_NUMERIC\_7  
0x43533f KEY\_NUMERIC\_8  
0x435337 KEY\_NUMERIC\_9  
0x435305 KEY\_ENTER  
0x435300 KEY\_TITLE  
0x435326 KEY\_INFO  
0x435323 KEY\_VOLUMEUP  
0x43532b KEY\_VOLUMEDOWN  
0x435375 KEY\_FASTFORWARD  
0x435374 KEY\_REWIND  
0x43537d KEY\_PLAYPAUSE  
0x43530b KEY\_STOP  
0x435313 KEY\_NEXT  
0x43531b KEY\_PREVIOUS  
0x43530d KEY\_UP  
0x435315 KEY\_DOWN  
0x435325 KEY\_LEFT  
0x43531d KEY\_RIGHT  
0x435336 KEY\_MENU  
0x43537e KEY\_EXIT  
0x43530f KEY\_ZOOM  
0x43530e KEY\_SUBTITLE  
0x43531c KEY\_BACK

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

NOTE - no colour buttons listed !!??

---

<div class="post-metadata">

**Author:** ![jdbrookes](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jdbrookes/32/4927_2.png) [@jdbrookes](https://forums.plex.tv/u/jdbrookes)\
**Post date:** [March 23, 2014, 9:24pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/5 "2014-03-23T21:24:09Z")

</div>

I've had this issue for a while with my [Samsung TV remote](http://upload.wikimedia.org/wikipedia/commons/1/10/Samsung_Smart_TV_remote.JPG) and using Raspbmc.

The Return button, which should logically go back a screen, used to bring up the context menu. And the Exit button, which I never used, had to be used for going back a screen instead.

If you're using the Plex Samsung app, Return goes back a screen. This disparity between the Samsung Plex app and Rasplex, using the same remote, has very low WAF (wife acceptance factor).

So through some guessing I managed to edit the attached remote.xml file to the following:

Global:

RETURN button: go back a screen

RED button: go back to home screen (handy on the sluggish pi)

GREEN button: shows info where available

YELLOW button: context menu button (set watched / unwatched and the like)

GUIDE button: quick reset of rasplex if needed

And whilst playing video:

RETURN button: go back if in a menu during playback

GREEN button: show Now Playing info

YELLOW button: context menu

BLUE button: used to toggle subtitles in raspbmc, not sure if it does anything in rasplex but I left it there just in case

I found configuring this to be very confusing. should not be the label for context menu, for example! Anyway I have it working well enough. The only thing I can't figure out is which label corresponds to the EXIT button, which I would like to map to&nbsp;XBMC.ActivateWindow(Home) aka Navigate Home, my red button.

---

<div class="post-metadata">

**Author:** ![guyldn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/guyldn/32/7808_2.png) [@guyldn](https://forums.plex.tv/u/guyldn)\
**Post date:** [March 23, 2014, 11:39pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/6 "2014-03-23T23:39:22Z")

</div>

> I've had this issue for a while with my [Samsung TV remote](http://upload.wikimedia.org/wikipedia/commons/1/10/Samsung_Smart_TV_remote.JPG) and using Raspbmc.
> 
> The Return button, which should logically go back a screen, used to bring up the context menu. And the Exit button, which I never used, had to be used for going back a screen instead.
> 
> If you're using the Plex Samsung app, Return goes back a screen. This disparity between the Samsung Plex app and Rasplex, using the same remote, has very low WAF (wife acceptance factor).
> 
> So through some guessing I managed to edit the attached remote.xml file to the following:
> 
> Global:
> 
> RETURN button: go back a screen
> 
> RED button: go back to home screen (handy on the sluggish pi)
> 
> GREEN button: shows info where available
> 
> YELLOW button: context menu button (set watched / unwatched and the like)
> 
> GUIDE button: quick reset of rasplex if needed
> 
> And whilst playing video:
> 
> RETURN button: go back if in a menu during playback
> 
> GREEN button: show Now Playing info
> 
> YELLOW button: context menu
> 
> BLUE button: used to toggle subtitles in raspbmc, not sure if it does anything in rasplex but I left it there just in case
> 
> I found configuring this to be very confusing. should not be the label for context menu, for example! Anyway I have it working well enough. The only thing I can't figure out is which label corresponds to the EXIT button, which I would like to map to&nbsp;XBMC.ActivateWindow(Home) aka Navigate Home, my red button.

Thanks for the file and info

I copied your file into the Raspberry Pi and the RETURN button is now working as you say, and the EXIT button still doing the return function exactly the same too, as it has always done.

My colour buttons on my older Samsung remote control have no input to the CEC - I checked using the CEC-Client monitoring through SSH.

But figured out that the EXIT button is performing the function and so changed it in section (even if you stated it did not work) :

**_XBMC.ActivateWindow(Home)_**

&nbsp;and yes it works for my remote taking me back to the home screen.

---

<div class="post-metadata">

**Author:** ![guyldn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/guyldn/32/7808_2.png) [@guyldn](https://forums.plex.tv/u/guyldn)\
**Post date:** [March 24, 2014, 1:56pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/7 "2014-03-24T13:56:36Z")

</div>

The problem with Samsung remotes is that the RETURN function has got mapped to the EXIT/OPTION button and vice versa. This key is the main key used to navigate with the arrow and Enter key and Stop and Play/pause keys.  
  
Keys that work on Samsung remotes with Rasplex or RaspXMBC etc  
  
ENTER  
ARROW keys  
EXIT  
RETURN  
STOP  
PLAY/PAUSE  
  
NUMBERS (these work when playing media if you input for example 200 following quickly by the enter key. Then the play point will jump forward 2 minutes ----&nbsp; etc.  
Also when in a listing of media (list or poster view - the number keys can be used to jump&nbsp; around - I have yet to figure out the logic of it)  
  
-/-- (This key in my Samsung remote does the same as the RETURN key i.e. the exit/option functions)  
  
The REWIND and FASTFORWARD keys give me no response, but might on other Samsung remotes.  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![jdbrookes](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jdbrookes/32/4927_2.png) [@jdbrookes](https://forums.plex.tv/u/jdbrookes)\
**Post date:** [March 24, 2014, 8:36pm UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/8 "2014-03-24T20:36:07Z")

</div>

I didn't even know HDMI-CEC was a thing when I started messing with my raspberry pi. I was very pleasantly surprised when I found I could navigate XBMC with my TV remote, bye bye IR dongle and MCE remote! I can't understand why graphics cards&nbsp;in general&nbsp;don't have HDMI-CEC built in, but I've been using the pulse eight adapter with great results to fill in this gap.

Hopefully in the coming months we will see&nbsp;libcec updated so that the mapped buttons correspond more closely with their likely functions.

---

<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 21, 2019, 1:39am UTC](https://forums.plex.tv/t/personalize-mapping-samsung-remote/61219/9 "2019-12-21T01:39:07Z")

</div>

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