How do i configure an IR Remote? Lircmap.xml

Hi,

 

i am currently trying to configure my IR remote.

The standard buttons, left, right, ok, play, pause etc.. are all working.

But how du i configure the extra buttons? Like toggle watched (keyboard w), next subtitle (keyboard l), codecinfo (i), etc?

 

i tried to map the Keys n the Lircmap.xml


        
                KEY_UP
                KEY_DOWN
                KEY_LEFT
                KEY_RIGHT
                KEY_PLAY
                KEY_MENU
                KEY_OK
                KEY_GREEN
                KEY_YELLOW
                KEY_RED
                KEY_BLUE
        
 

But using the Action ID's from XBMC did not work. If i rename KEY_GREEN into KEY_SUBTITLE in the lirc.conf i am able turn the subtitles on/off without mapping it into the Lircmap.xml.

 

So any idea how i can map my extra buttons?

Bump. I'm interested in this too. Anyone?

Maybe you can have a look at this : http://wiki.openelec.tv/index.php?title=Guide_To_Test_a_Remote_and_Remap_Keys ?

hi,

there are a few steps. please check out walkthrough, https://forums.plex.tv/topic/63336-support-for-gpio-ir-receivers/

- scott

@scott, that’s what I did. But I want to assign special commands like “next subtitles” to the KEY_GREEN bottom specified in the lirc.conf.


@longchair, I checked that already before, but nowhere is mentioned where I get the commands like “next subtitle”

Hello again,

It's all in the walkthrough. You have to set up you remote in a couple of places Lircmap.xml (defines keys), lircd.conf (defines frequencies), and remote.xml (defines actions). Have you updated these three files ?

And don't forget 99-lircd.rules.   ;-)

- Scott

No i have not updated the remote.xml. Nothing in mentioned about it in the walkthrough by jason hayes.

An your post in that thread only says, that you used a costum remote.xml, but not where it is located or how to write it.

I guess its not ALL in the walkthrough.

Could you tell me how to do it?

No i have not updated the remote.xml. Nothing in mentioned about it in the walkthrough by jason hayes.

An your post in that thread only says, that you used a costum remote.xml, but not where it is located or how to write it.

I guess its not ALL in the walkthrough.

Could you tell me how to do it?

hey luthien,

have you found a way to map some special functions to buttons on your remote?

i'm trying to map the "ToggleWatched" action to a button on my remote, but it doesn't work.

christoph 

hey luthien,

have you found a way to map some special functions to buttons on your remote?
i'm trying to map the "ToggleWatched" action to a button on my remote, but it doesn't work.

christoph


You can map functions to buttons on the remote by creating a keymap.xml file and placing it in the /userdata/keymaps directory.

Attached is a file which maps the coloured buttons for CEC remotes to additional functions, including ToggleWatched, give it a try, you can always modify it with your own functions but this is what I find useful.

Regards

You can map functions to buttons on the remote by creating a keycap.xml file and placing it in the /userdata/keymaps directory.

Attached is a file which maps the coloured buttons for CEC remotes to additional functions, including ToggleWatched, give it a try, you can always modify it with your own functions but this is what I find useful.

Regards

thanks.

I tried to add ToggleWatched into the file (/storage/.plexht/userdata/keymaps/keymap.xml)

I have the Lircmap.xml file(/storage/.plexht/userdata/Lircmap.xml) which includes this:

        
                KEY_UP
                KEY_DOWN
                KEY_LEFT
                KEY_RIGHT
                KEY_PLAY
                KEY_MENU
                
                KEY_STOP
                KEY_W
        
 

I also have the lircd.conf file(/storage/.config/lircd.conf) which includes the KEY_W button.

I tested the button with the irw command.

I got this output:

11 0 KEY_W devinput

11 1 KEY_W devinput

11 0 KEY_W_UP devinput

I have no idea what my mistake is.

Do you have any idea?

great idea using the coloured buttons for additional features!

all I want to do is make the backup button on the factory remote to work as labelled and "go back" it currently makes the screen go blank. will have to irw to see what key its programmed as. at the moment the END button on my remote is "go back"

will definitely use the red/green/yellow/blue though, would like "INFO" "CONTEXT" "SUBTITLES" and "AUDIO" to be on them!

cheers!

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