Support for GPIO IR Receivers

Everything os like it should - your lircd.conf is used. Verify your hardware is working (see wiki for details) and the lircd.conf has valid and working settings.

Yeah, as described before: the lircd.conf works just fine, it's the mapping in my lircmap.xml that's totally ignored for some reason.

So a_wein, just to be sure:

if you change your lircmap.xml as in my earlier example, does pressing your remote control UP button result in a down action on the screen? Or in what way have you verified the lircmap.xml?

Best of all would of course be if anyone else, who has followed the wiki remote setup recepie, could verify that the mapping in lircmap.xml has effect.

I'll wipe my SD card and start over and see if that helps.

Happy Easter everyone!

Everything os like it should - your lircd.conf is used. Verify your hardware is working (see wiki for details) and the lircd.conf has valid and working settings.

works for me.

works for me.

The lircmap.xml mapping?

If you placed your lircmap.xml where the walkthrough says to then it works. I have created a Harmony One lircmap.xml file and placed it there and it works just fine.

I've just swapped the KEY values for up and down and rebooted RasPlex.
It seems you're right and the lircmap.xml will be ignored and XBMC just uses the lird.conf KEY values.

I've done some research and it seems the remote device name needs to be "devinput" (output from irw) and the lircmap.xml needs to be renamed to Lircmap.xml (start with upper 'L').

The wiki page is already updated. Thanks for reporting this issue!

 

Ahh, you nailed it a_wein!
Tried the devinput trick yesterday, but that didn't work...
Not until the capitalized Lircmap!

Regarding the need for device="devinput":
Doesn't that indicate that something is wrong regarding resolving the name field in lircd.conf?
From what I've come to understand irw should report this (device) name along with the remote button name.
But no matter what I put in the lircd.conf name field, irw reports devinput... (thus the need for devinput in Lircmap.xml)

This will in effect do nothing more than stop the possibility for mapping more than one remote (unless they have the same pulse parameters I guess) so it's obviously no high prio issue.
Just passing along what I've found... Saw something about a GPIO IR wizard / gui in the comings, so it might be of interest.

Thanks Wein!
- Still confused, but on a higher level.
/D

I’m confused too - irw should indeed report the remote’s name…
 
But it should be still possible to use different remotes:
Just use the same LIRC-Key’s for every remote - they should be properly mapped via Lircmap too
(It is not possible to use the same LIRC keys and map them to different XBMC keys… I don’t see a use-case for this anyway.)

Hi there guys,

and first of all big thanks to Dale & Co for all the hard work with this project!

You are incredible!

Regarding this topic: can anyone verify that Jasons recepie on the wiki page made from this thread, works "all the way" for  RasPlex 1.32?

In an attempt to bind a couple of buttons on my remote to adjust the subtitle sync via "subtitledelayminus" and "subtitledelayplus" I found that the lircmap.xml don't seem to work at all for me.

The lircd.conf file works fine; for instance can I set any button to KEY_UP and a press on that will work as intended.

However a lircmap looking like this (where the up/down/left/right are switched around) doesn't affect the function at all:

 
       
                KEY_DOWN
                KEY_UP
                KEY_RIGHT
                KEY_LEFT
                KEY_PLAY
                KEY_MENU
               
       
 

 

And, as no surprise, the lircmap.xml and 99-lircd.rules can be erased without any change in function.

Well I'm stuck... don't have enough knowledge to trace it further than this.

Does anyone else see this? Any suggestions how to find where I've gone wrong?

Edit:

Surfing around I've found that a custom "Keymap.xml" probably can be my way forward, hopefully letting me map the buttons "one level up".

The lircmap still doesn't make sense to me of course, but there are so many things in this world that doesn't... :blink:

Were you able to get the "subtitledelayminus" and "subtitledelayplus" working?  I'm having issues with those commands.

Would it be possible to use one of these instead? 

417vZBovskL._SY300_.jpg

http://www.amazon.com/Monoprice-5ft-Extender-Cable-Receiver/dp/B005E2XLNM/ref=sr_1_1?ie=UTF8&qid=1367551248&sr=8-1&keywords=ir+receiver

Plug it into the headphone jack and follow that walkthrough? Should still work? Or does the pin change? 
 

Looking forward to the feedback...

Would it be possible to use one of these instead? 

417vZBovskL._SY300_.jpg

http://www.amazon.com/Monoprice-5ft-Extender-Cable-Receiver/dp/B005E2XLNM/ref=sr_1_1?ie=UTF8&qid=1367551248&sr=8-1&keywords=ir+receiver

Plug it into the headphone jack and follow that walkthrough? Should still work? Or does the pin change? 
 

Looking forward to the feedback...

No.  This monoprice receiver is not stable at 3.3V.  I actually bought this though, and simply removed internal receiver and inserted one that is stable at 3.3V and it works great.  You can also add a 3.5mm jack onto your rasplex case and keep the 3.5mm connector.

I was incredibly frustrated that the Menu button would take you all the way to the main menu, so I did some digging and found this:

If you change it to say KEY_BACK in the /storage/.config/lircd.conf and KEY_BACK in the /storage/.plexht/userdata/lircmap.xml

it will take you back, as opposed to the main menu.

I used the old Harmony configuration I had on the remote and used this:

 

 
        
                KEY_UP
                KEY_DOWN
                KEY_LEFT
                KEY_RIGHT
                KEY_PLAY
                KEY_BACK
                KEY_MENU
                KEY_OK
        
 
 

It works very well. PageUp and PageDown don't work, but I'll save that for another day!

If this is any help...  :ph34r: I am really interested in doing this and was digging up some information.

http://www.youtube.com/watch?v=QV_QmDKx0kQ

http://learn.adafruit.com/using-an-ir-remote-with-a-raspberry-pi-media-center

hello,

i am having lots of trouble getting my gpio ir receiver to work. i have followed the wiki and seem to have the pieces in place, but no joy ...

i am using an apple remote a1294. while looking around i have found lircd.conf files for this remote for a variety of drivers : mac mini, serial, ... is there any driver i should be using for rasplex ?

 i have also seen the "remote control sends keyboard presses” in preferences->system->input devices. does this need to be activated or not activated ?

and finally, i have been working with a wireless keyboard as well. do i need to remove this device ?

thanks  !

- scott

Hi, I also have the same problem than scott, I also tried this all yesterday, following the wiki, but it's not working. 

The only difference is that I don't use a wireless keyboard, but I also control via cec.

Thanks

hello again,

i gave up on making the apple remote and moved to using an ir-blaster that emulates an apple remote (my target configuration). i got a mostly working lircd.conf file by using the irrecord. fafoulon, have you tried this ?

i ran into some new issues. for one, my ir-blaster does not emulate "select", so i mapped it to the play key. it seems to be context dependent...

but i'm having some troubles. for one, the keys have a tendency to repeat. i tried using the min_repeat parameter in the lircd.conf file, but it just made the whole remote stop working. are there any other ways to stop repeats ?

there are other issues that may be related to the double-mapping of "play". for example, during playback the "play" key does not pause the movie. if i use the osd to select pause it most often functions as if i had stopped the movie sending me back to main menu.

as usual, any help from the forum would be greatly appreciated !

- scott

good evening,

lircd.conf is as follows if that could help.

- scott

# Please make this file available to others
# by sending it to
#
# this config file was automatically generated
# using lirc-0.9.1-git(default) on Mon Aug  5 19:23:11 2013
#
# contributed by 
#
# brand: bang & olufsen
# model no. of remote control: puc apple remote 
# devices being controlled by this remote: rasplex
#
 
begin remote
 
  name  /storage/.config/lircd.conf
  bits            8
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100
 
  header       9094  4497
  one           543  1684
  zero          543   580
  ptrail        542
  repeat       9045  2267
  pre_data_bits   16
  pre_data       0x77E1
  post_data_bits  8
  post_data      0xDE
  gap          109284
  toggle_bit_mask 0x0
 
      begin codes
          KEY_UP                   0xD0
          KEY_DOWN                 0xB0
          KEY_LEFT                 0x10
          KEY_RIGHT                0xE0
          KEY_PLAY                 0xBA
          KEY_MENU                 0x40
      end codes
 
end remote

reply to self,

i have made some progress ... (mostly) fixed repeat problem by adding "min_repeat   0" *after* gap in lircd.conf. irw shows that there is only one 'up' for each press.

however, rasplex still shows strange behavior sporadically acting as if the button in question had been repeated twice.

i solved the play/select problem by making a custom remote.xml to specify different behaviour in menu and while watching video.

any help with the phantom double button would be appreciated.

- scott

reply to self,

i have made some progress ... (mostly) fixed repeat problem by adding "min_repeat   0" *after* gap in lircd.conf. irw shows that there is only one 'up' for each press.

however, rasplex still shows strange behavior sporadically acting as if the button in question had been repeated twice.

i solved the play/select problem by making a custom remote.xml to specify different behaviour in menu and while watching video.

any help with the phantom double button would be appreciated.

- scott

Scott

I have the same issue and have added the 'suppress_repeat' option in the lircd.conf. I have not yet fully tested the remote after I have added the line in lircd.conf. But, give it a try.

Here are more results from Google:

https://www.google.com/search?q=lirc+suppress_repeat

You have mentioned that you've used a custom remote.xml file. Do you mind sharing it? e.g. example of that file, its stored location, how/where to invoke this file?

Thanks

Jack

hey guys - here's my setup:

- rasplex 3.1

- GPIO reciever 

- harmony remote (emulating windows MCE remote)

this IR remote setup works OOB which makes my life really easy.  

there's only one issue I have:  after an extended period of non-use, it takes 5+ minutes for the remote to start working again.  does anyone else have this issue?