HI I am looking for a how-to to get my gpio sensor working with OSMC. Via the OSMC settings app Rpi-Config I can set the enable gpio and select the w1-gpio-overlay. If I go into remotes and select the RC6-MCE remote profile and then reboot OSMC all should be well.
However no response to key presses on the remote.
I can ssh into the Rpi2 and run mode2 -d /dev/lirc0 and I can see lots of codes on screen as I press various keys. I tried a couple of mce remotes and both produce results on the terminal screen when keys are pressed.
However there is no response in OSMC. Can anyone help please. The receiver is wired correctly:
Pin 1 Data Pin 12
Pin 2 Ground Pin 6
Pin 3 Power (tried on both Pin 1 and 2 and get results on the terminal on both so used 3.3v)
Why are you selecting the w1 overlay? It’s not needed for gpio remote, just check the enable box then select your remote in the remote module and it should work. Reboot may be needed.Pin 12 is gpio 18 which is the default for the driver, in later versions of the settings app you need to set pin numbers which should be 18 in and 17 out. I’m not sure if this is released to public or only in testing so thought I’d mention it in case.
Thanks for the reply. I updated OSMC to the latest and rebooted. The new Hardware dialog has the extra settings you mentioned. I currently have Enable GPIO set and the output pin is set to 17 and the input to 18. No overlays are set.
I selected the MCE remote in the remotes app.
On reboot I get no response on screen to any key presses.
I can ssh in cat /etc/lirc/lircd.conf shows the correct mce config mapped as lircd.conf -> /etc/lirc/rc6-mce-lircd.conf
If I kill lircd and run mode2 -d /dev/lirc0 I can still see lots of codes when pressing keys so my receiver is working. Exit and reboot but still nothing in OSMC.
Hmmm, this is a fresh install ! I even tried a new receiver, I bought 3. Same result. Are you thinking maybe that the rc6-mce-lircd.conf file has the wrong codes. I tried loading the keymap editor prog. But no key presses were recognised. Will try on another pi, I have a b+ laying around, although not sure what that will prove above whether the receivers work.
In order to work the keys need to be defined as KEY_*** where the stars are different actions, I’m thinking your particular remote has keys defined wrong or is not included in the RC6 file. Try learning a couple to see if they work
Irrecord will output to ~/newlircd.conf, a file containing the results of your recording. Follow the instructions given by irrecord exactly, selecting the required buttons from the list you copied and pasted a moment ago.
Once you have recorded all required buttons, press enter to exit irrecord.
I then overwrote the rc6-mce-lircd.conf file in /etc/lirc/ with my newly recorded one. Works perfectly now. I can now use the keymap editor to customise it. Many thanks for your help.
Even though all three MCE remotes were recognised by the receiver 2 are the same and one different brand they are clearly using different codes as after recording the single one the others would not work. I am seriously impressed with how responsive and sensitive the little receiver is, should have done this a while ago.
Still have to figure out how to program the mousepad and right/left click buttons.
Now to figure out the nicest way to incorporate this into the case
Thanks for the info Dilligaf. Had the same issue with a Pi2 I recently set up for my fajer. Everything setup the same as his Pi1 but remote wasn’t being detected. Changed pins from 16-17 to 17-18 and now it works. Maybe there should be default settings for different setups, i.e. hyperion, gpio IR remote, custom (which has sliders). Anyways, thanks for the fix.
Thanks Sparticle and all that helped contribute, I wanted to configure my Apple remote A1196 with this and it worked on my RPi2, but am now trying to configure long presses in the remote and was going to follow this http://forum.kodi.tv/showthread.php?tid=115023
but didnt want to break anything on OSMC as this is an old post from an older version of XBMC.
I am going through the EXACT same thing, however when I try to record my own file it fails about halfway through with a message about knowing it’s one kind of remote. I will try to get a copy of what the error is.
I am using a honeypi receiver with a VRC-1100. When I plug in the USB on another pi it works, but against this GPIO ir receiver I can see the keypresses If I kill lircd and run mode2 -d /dev/lirc0, but not with the irw.
Here is a copy of lircd.conf for that god-forsaken VRC-1100 remote. I bought one for the cheap USB IR receiver back when I first got a Pi. Getting that stupid thing to work put SO MANY head prints on table tops!
Once you have the lircd.conf, lircmap.xml, and remote.xml files in place though, it does work. I use a Logitech Harmony though, so I reprogrammed to MCE remote once I set up the GPIO receiver. VRC-1100 lircd.conf