OK Button (MCE Remote) not working anymore on new PMP build.

I have updatet my Raspberry Pi yesterday with the new PMP build but since then my OK button is not “working” anymore in PMP. I am using a MCE remote which works fine on the latest PMP buid on Windows10 and all the other buttons are still working.

The only thing that has been changed is the PMP build.

How can i resolve this issue? I have tryed to place a custom keyboard.json and lirc.json in \192.168.x.x\Configfiles\inputmaps but that doesn’t seems to do the job (or doesn’t contains the right commands because i don’t have a clue what i was doing :)) )

Any ideas?

Nobody has the same issue?

I’ve got the same issue. I’m using a Logitech Harmony remote so maybe another command has taken the place of ‘ok’?

Glad i am not the only one :wink:

I decided to downgrade PMP on my Raspberry Pi2 today to V1.0.3.140 and the “OK” button is working again!
So it’s not my hardware.

Is there some one which kan help us out?

Ps. V1.0.4.169-da1dda84 is the version where my “OK” button doesn’t work.

Post logs from when you press that button and we’ll figure out what has changed.

@tobiashieta

Do you need the full log or is the partial log below enough?

2016-02-06 12:38:45 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_RIGHT" , repeat count: 0 , from remote "devinput " 2016-02-06 12:38:45 [ DEBUG ] InputComponent.cpp @ 86 - Input received: source: "LIRC" keycode: "KEY_RIGHT" 2016-02-06 12:38:45 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_RIGHT_UP" , repeat count: 0 , from remote "devinput " 2016-02-06 12:38:45 [ DEBUG ] InputComponent.cpp @ 86 - Input received: source: "LIRC" keycode: "KEY_RIGHT_UP" 2016-02-06 12:38:45 [ DEBUG ] CachedRegexMatcher.cpp @ 59 - No match for: "KEY_RIGHT_UP" 2016-02-06 12:38:45 [ WARN ] InputComponent.cpp @ 129 - Could not map: "LIRC" "KEY_RIGHT_UP" to any useful action 2016-02-06 12:38:46 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_ENTER" , repeat count: 0 , from remote "devinput " 2016-02-06 12:38:46 [ DEBUG ] InputComponent.cpp @ 86 - Input received: source: "LIRC" keycode: "KEY_ENTER" 2016-02-06 12:38:46 [ DEBUG ] CachedRegexMatcher.cpp @ 59 - No match for: "KEY_ENTER" 2016-02-06 12:38:46 [ WARN ] InputComponent.cpp @ 129 - Could not map: "LIRC" "KEY_ENTER" to any useful action 2016-02-06 12:38:46 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_ENTER" , repeat count: 1 , from remote "devinput " 2016-02-06 12:38:46 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_ENTER_UP" , repeat count: 0 , from remote "devinput " 2016-02-06 12:38:46 [ DEBUG ] InputComponent.cpp @ 86 - Input received: source: "LIRC" keycode: "KEY_ENTER_UP" 2016-02-06 12:38:46 [ DEBUG ] CachedRegexMatcher.cpp @ 59 - No match for: "KEY_ENTER_UP" 2016-02-06 12:38:46 [ WARN ] InputComponent.cpp @ 129 - Could not map: "LIRC" "KEY_ENTER_UP" to any useful action 2016-02-06 12:38:46 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_ENTER" , repeat count: 0 , from remote "devinput " 2016-02-06 12:38:46 [ DEBUG ] InputComponent.cpp @ 86 - Input received: source: "LIRC" keycode: "KEY_ENTER" 2016-02-06 12:38:46 [ DEBUG ] CachedRegexMatcher.cpp @ 59 - No match for: "KEY_ENTER" 2016-02-06 12:38:46 [ WARN ] InputComponent.cpp @ 129 - Could not map: "LIRC" "KEY_ENTER" to any useful action 2016-02-06 12:38:46 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_ENTER_UP" , repeat count: 0 , from remote "devinput " 2016-02-06 12:38:46 [ DEBUG ] InputComponent.cpp @ 86 - Input received: source: "LIRC" keycode: "KEY_ENTER_UP" 2016-02-06 12:38:46 [ DEBUG ] CachedRegexMatcher.cpp @ 59 - No match for: "KEY_ENTER_UP" 2016-02-06 12:38:46 [ WARN ] InputComponent.cpp @ 129 - Could not map: "LIRC" "KEY_ENTER_UP" to any useful action 2016-02-06 12:38:47 [ INFO ] InputLIRC.cpp @ 103 - LIRC Got Key : "KEY_ENTER" , repeat count: 0 , from remote "devinput " 2016-02-06 12:38:47 [ DEBUG ] InputComponent.cpp @ 86 - Input received: source: "LIRC" keycode: "KEY_ENTER" 2016-02-06 12:38:47 [ DEBUG ] CachedRegexMatcher.cpp @ 59 - No match for: "KEY_ENTER" 2016-02-06 12:38:47 [ WARN ] InputComponent.cpp @ 129 - Could not map: "LIRC" "KEY_ENTER" to any useful action

Solved my issue by placing a “LIRC.json” in “\192.168.1.x\Configfiles\inputmaps” with the code below.

{ "name": "LIRC IR", "idmatcher": "LIRC*", "mapping": { "KEY_LEFT": "left", "KEY_RIGHT": "right", "KEY_UP": "up", "KEY_DOWN": "down", "KEY_MENU": "unknown", "KEY_SELECT": "enter", "KEY_OK": "enter", "KEY_BACK": "back", "KEY_EXIT": "back", "KEY_RED": "red", "KEY_GREEN": "green", "KEY_YELLOW": "yellow", "KEY_BLUE": "blue", "KEY_PLAY": "play", "KEY_STOP": "stop", "KEY_PAUSE": "pause", "KEY_SEEKFWD": "seek_forward", "KEY_FASTFORWARD" : "seek_forward", "KEY_SEEKBCK": "seek_backward", "KEY_REWIND": "seek_backward", "KEY_SUBTITLES": "cycle_subtitles", "KEY_INFO": "unknown", "KEY_NEXT": "step_forward", "KEY_PREV": "step_backward", "KEY_HOME": "home", "KEY_NUMERIC_([0-9])": "%1", "KEY_ENTER": "enter", "KEY_ENTER_UP": "enter" } }

I added “KEY_ENTER”: “enter”, and “KEY_ENTER_UP”: “enter” in the “LIRC.json” file in “\192.168.1.x\Configfiles\inputmaps\examples” and copied to “\192.168.1.x\Configfiles\inputmaps”.
After a rebooting the Raspberry it worked instantly.

Seems the “OK” button is interperted in another way in the latest version as before.

Ps. Now i seem to understand what the .json files do :smiley:

Thanks for investigating this - I’ll update mine as well. I discovered that I could use plex on my phone to remote control the unit attached to the TV which is kinda cool as a backup plan.

@ffhjansen said:
Solved my issue by placing a “LIRC.json” in “\192.168.1.x\Configfiles\inputmaps” with the code below.

{ "name": "LIRC IR", "idmatcher": "LIRC*", "mapping": { "KEY_LEFT": "left", "KEY_RIGHT": "right", "KEY_UP": "up", "KEY_DOWN": "down", "KEY_MENU": "unknown", "KEY_SELECT": "enter", "KEY_OK": "enter", "KEY_BACK": "back", "KEY_EXIT": "back", "KEY_RED": "red", "KEY_GREEN": "green", "KEY_YELLOW": "yellow", "KEY_BLUE": "blue", "KEY_PLAY": "play", "KEY_STOP": "stop", "KEY_PAUSE": "pause", "KEY_SEEKFWD": "seek_forward", "KEY_FASTFORWARD" : "seek_forward", "KEY_SEEKBCK": "seek_backward", "KEY_REWIND": "seek_backward", "KEY_SUBTITLES": "cycle_subtitles", "KEY_INFO": "unknown", "KEY_NEXT": "step_forward", "KEY_PREV": "step_backward", "KEY_HOME": "home", "KEY_NUMERIC_([0-9])": "%1", "KEY_ENTER": "enter", "KEY_ENTER_UP": "enter" } }

I added “KEY_ENTER”: “enter”, and “KEY_ENTER_UP”: “enter” in the “LIRC.json” file in “\192.168.1.x\Configfiles\inputmaps\examples” and copied to “\192.168.1.x\Configfiles\inputmaps”.
After a rebooting the Raspberry it worked instantly.

Seems the “OK” button is interperted in another way in the latest version as before.

Ps. Now i seem to understand what the .json files do :smiley:

You don’t need to enter KEY_ENTER_UP as that simple means the button was released. You only need this for KEY_ENTER unless of course you want it to send an ENTER/OK IR command on both pushing down and release.

i noticed some strange stuff yesterday evening when ik tryed to navigate PMP.
So i toke @lqvnguyen advice and now it seems to work better!

Anyone knows if there is a list of these key’s and commands for PMP?
I would love to get the volume up and down key to be working again as in PHT.

Thnx for all thoose who replyed!

thanks, this fixed it for me.

Is there a list of commands we can put in that file? for harmony remotes?

In the last version (1.03) the play/pause button on the harmony remote was half working (it wasnt pausing but it was unpausing). now in 1.04 it doesnt do anything (with the lirc.json file above)

Changed the following two lines in LIRC.json and I can pause again :slight_smile:

“KEY_PLAY”: “play_pause”,
“KEY_PAUSE”: “play_pause”,

Plex Media Player 1.0.5 was just released.

NEW

  • Volume control: +/- is now mapped to volume control. Change your mapping to do increase/decrease_volume

Thanks @tobiashieta to implement it.
Works like a charm after editing the LIRC.json.
Now i can get rid of one remote.

After browsing the forum and FAQ i found the link below.
So in the future i ll first try a search and then ask a question later :slight_smile:

I have been having the same issue you ran into. I tried to use the commands you mapped in my custom map file for the remote but it still will not work for me. Are you able to see the key press in your logs?

@armega i don’t use pmp anymore on my raspberry. I switched to rasplex a time ago and does all i want for now. If you press the keys you want to map and then look at the logs are they the same name as in the lirc file?

I press the “OK” button and the logs show I never pressed it. It’s like PMP is not even picking up the keypress at all.

I was going to start out with rasplex as well but then the cold hard truth hit me… The project is dead (or at least in hiatus) and has not even tried to support my raspberry pi 3b+ in like 6+ months etc. So rasplex is dead to me.

Stupid question on my part, is PMP in TV mode?

Just checked, yes the media client in question is in TV mode. The only other option is “Auto” but it IS currently in TV mode.