[PLUGIN] IR Remote Controller feedback thread

Really, just install the plugin, it use lirc… and add a config for your remote in the folder of the plugin /data/plugins/accessory/ir_controller/configurations.
this the best and easiest way!
Once you have a working config, it can be add to the official plugin. Send a pull request on github, or simply pot it here.

It worked like a charm. Thank you!

I have a function proposition for this plugin: It would be great to have the posibility to load our own remote’s config in the graphic interface. Let me explain: I’m using Jutsboom remote, but I changed some buttons functions (home for reboot…). We have the posibility to export our config on a file (via the terminal). So It would be great that we could load this file directly by the plugin interface. In the long term, this would allow us to no longer have to use the terminal (for those who are not really comfortable with it).

Anyway, thank you for all the work you do. As a beginner in the Linux world I can say that the configuration and handling of Volumio is one of the easiest (and this despite the use of the terminal sometimes inevitable).

Currently struggling to get this plugin to work with my A1294 apple remote. It took some doing but I was able to validate that the IR receiver is in fact picking up traffic from the remote. (Followed this guide: hackster.io/achindra/learni … rry-038602 and can see traffic from button presses).

I’ve selected the correct remote in the plugin settings and have tried numerous gpio pins to see if I simply have it on the wrong pin. While I can see traffic in the console no button press triggers any events in volumio.

I’ve searched this thread but can’t seem to find the answer.

Gpio pin 25 should be the correct one if I remember right. It should be enough just to connect it and enable the plugin. I wish I could help more but for me it just works when I do that. What hardware are you using and have you updated volumio and ir-plugin?

@illtrick
There have been some posts indicating that the lircd.conf file(s) might not work for some Apple remotes (https://volumio.org/forum/remote-controller-feedback-thread-t6668-30.html#p33776 and https://volumio.org/forum/remote-controller-feedback-thread-t6668-50.html#p41445).

You might try to use the lircd.conf data Ezaul posted some time ago (https://forum.volumio.org/remote-controller-feedback-thread-t6668-110.html#p64358). I suggest to not follow the instrcutions in that post but instead taking these steps:

  1. Stop the plugin from the UI.

  2. Enable SSH access (https://volumio.github.io/docs/User_Manual/SSH.html) and connect to Volumio via SSH.

  3. Create a file A1294_lircd.conf nano A1294_lircd.conf

  4. Copy the data from Ezaul’s post and paste it into the new file.

  5. Save the file by closing nano by typing “Ctrl+x”, “y” and “Return”.

  6. Copy the new file A1294_lircd.conf into the folder /data/plugins/accessory/ir_controller/configurations/Apple Remote A1294

cp "A1294_lircd.conf" "/data/plugins/accessory/ir_controller/configurations/Apple Remote A1294/lircd.conf"

Be aware that this will overwrite the original lircd.conf file for the A1294. Feel free to make a backup… :wink:

  1. Then start the plugin from the UI, select the remote from the plugin’s configuration page and click save.

Thanks for the tips. Unfortunately that didn’t work for me either.

Here are all of the lird.conf varient’s I’ve tried:
Stock one loaded with plugin
remote-controller-feedback-thread-t6668-110.html#p64358
lirc.sourceforge.net/remotes/apple/A1294
github.com/osmc/osmc/blob/maste … lircd.conf
A few other ones I’ve randomly found.

I’ve actually gone to the extent of creating my own lircd.conf file (used this guide: instructables.com/id/Creati … With-LIRC/) and thusly created this:

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Wed Apr  8 16:35:14 2020
#
# contributed by 
#
# brand:                       /home/volumio/lircd.conf
# model no. of remote control: 
# devices being controlled by this remote:
#

begin remote

  name  /home/volumio/lircd.conf
  flags RAW_CODES
  eps            30
  aeps          100

  gap          96130

      begin raw_codes

          name KEY_UP
             9095    2195     580

          name KEY_DOWN
             9069    2218     582

          name KEY_LEFT
             9090    2196     580

          name KEY_RIGHT
             9024    2259     572

          name KEY_PLAY
             9047    2222     606

          name KEY_MENU
             9042    2232     573

          name KEY_OK
             9056    2220     580

      end raw_codes

end remote

I’m no terminal ninja so I just connected with filezilla to navigate the folder tree. Created a new folder here: /data/plugins/accessory/ir_controller/configurations/Snarfed and loaded it with the above lircd.conf file and just copy pasted the lircrc file from the original A1294 folder. I then
Oddly that doesn’t work either.

Here’s the setup:

  • Using IR breakout board that came with an arduino
  • Using +3.3V, Ground, and GPIO 25 / physical pin 22
  • Freshly flashed install of Volumio 2.729 (march 2nd release) on a formatted card
  • Plugin version: 1.2.3

I’m able to use the command mode2 -d /dev/lirc0 to validate that I’m receiving traffic from the remote. I’ll keep trying to isolate variables and update as I go. Thanks for the help all!

Bummer!

I don’t have an Apple remote to tinker with it, so I fear I can’t help much more atm. One more idea though: If you should have another Linux system with an IR receiver you could try to generate and test the lircd.conf on that system.

Okay, not sure what I was doing wrong but repetition helped. I loaded each of the lircd.conf files linked above in/etc/lirc used the IRW console command to see if any of them were working. This one: github.com/osmc/osmc/blob/maste … lircd.conf actually worked! I then moved that one into my created folder and loaded it up.

I had to remap the lircrc file to get volumio to work but I now have IR control of volumio!

Bummer is that I got all this way to discover that track and playback control is limited to the queue. :cry: Does anyone know how to get these commands to perform the logical command globally? My primary use case being Spotify Connect.

toggle, previous, next

It may be a problem with the Spotify connect plugin. It works quite good with my phone but is practically useless with my wife’s phone. I have switched to tidal.

It’s not as convenient but maybe you can use the other Spotify plugin and load playlists from within the volumio UI. Then the remote should behave as expected.

Are you using two different spotify accounts? Multi-account support was broken but ash just fixed it in a beta build. Here’s a link with install instructions: github.com/balbuze/volumio-plug … -607156749

The more I play with it the more I realize there’s a general stability issue that’s making it hard to isolate what features aren’t working as expected. I need to switch to a breadboard to make sure it’s not a crappy connection problem I’m introducing.

My wife had two different problems. She either could not connect at all or she could not control playback. Now she has given up on volumio. She’s not as patient as I am…

I have a TSOP4838 ir receiver connected with female breadboard wires and some hot glue and that has been 100% reliable so far. :slight_smile:

I have spent days trying to configure IR Remote in Volumio.

I have a RPI 3B+ running Volumio 2.729

I have separately tested the IR Receiver using an LED to confirm that it is functioning as per the test setup on this page: thepihut.com/blogs/raspberry-pi … -receivers

I have attached the IR Receiver (TSOP384.) to RPI Pin 1 3.3v, Pin 6 GND, and Pin 22 GPIO 25.

I have installed the IR Controller v 1.2.3 and configured Apple Remote A1156.

If I SSH into Volumio and issue:

sudo /etc/init.d/lirc stop
mode2 -d /dev/lirc0

I do not see any pulse / space outputs.

Can anyone suggest what I should try next…

Thanks

So this doesn’t support the pifi dac+?

Sorry but what is the link with IR Remote ?

Does anyone uses a Flirc? I got one laying around and I am wondering how to make it work (on Volumio Primo :slight_smile:). Thanks in advance

Verstuurd vanaf mijn CPH1919 met Tapatalk

Hi guys! I am trying the record my own IR remote controller using the irrecord tools. But it always give me this error message:

Now hold down button “KEY_ENTER”.
Got it.
Signal length is 0
That’s weird because the signal length must be odd!
Try again.
Sorry, something went wrong.
Try again.

Please note that I can have response from the command ‘mode2 -d /dev/lirc0’:

space 16777215
space 477362
pulse 3042
space 2941

pulse 548
space 3935
pulse 558
pulse 126187

I do some search and found a discussion "
[Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir" on the raspberrypi.org:
https://www.raspberrypi.org/forums/viewtopic.php?t=235256
It says that

the command “irrecord” included in lirc does not work with gpio-ir
because the signal from /dev/lircX generated by gpio-ir is
slightly different from that of lirc_dev.and “irrecord” included in lirc does not work with gpio-ir
because the signal from /dev/lircX generated by gpio-ir is
slightly different from that of lirc_dev.

I followed the patch procedure and tried on volumio-2.777 (built on Mon May 25 18:53:02 CEST 2020) but failed. The apt command doesn’t support the build-dep and source operations, so I am not able to download the origin source.

root@volumio:~# apt build-dep lirc
E: Invalid operation build-dep
root@volumio:~# cd build
root@volumio:~/build# apt source lirc
E: Invalid operation source

I am wondering if anyone successes on patching the licr package on the new volumio version with kernel 4.19.86-v7+ ?

I’m going to cross post this on the official Spotify Connect plugin thread as well right after this HERE

Setup: Fresh volumio install (v2.806), spotify connect plugin (v1.0.4), IR remote controller plugin (v1.2.4), apple A1294 remote (using this lircd.conf)

Operating Condition: Queued song up using mobile device and selected volumio. All commands issued by mobile device execute as expected. A song was in the “playing” state before testing.

Observed Behavior: Play/Pause/Track controls all operate as expected using volumio web interface. Using an IR remote control Track and Pause commands execute as expected however the Play command does not. It plays the last “non spotify” track. In my case it was a web radio but I’m sure it would be the same if it was a local or network file being played.

Troubleshooting Steps Performed:

  • Rebooted pi, confirmed behavior is consistent with observed behavior above.
  • Turned on debugging and observed NO LOGs generated when the Play button is pressed on the remote but ARE generated when pressing Play in the volumio web ui.
  • Confirmed that Play/Pause operates as expected using basic playback of a local mp3.

I’m not sure if it’s a problem with the lircrc mapping file or visibility of command execution by the spotify connect plugin.

I validated that @ashthespy 's fix remedy’s the conflict with the IR Remote Controller Plugin I was having.

Initial Setup: Fresh volumio install (v2.806), spotify connect plugin (v1.0.4), IR remote controller plugin (v1.2.4), apple A1294 remote (using this lircd.conf)

Operating Condition: Queued song up using mobile device and selected volumio. All commands issued by mobile device execute as expected. A song was in the “playing” state before testing.

Initial Observed Behavior: Play/Pause/Track controls all operate as expected using volumio web interface. Using an IR remote control Track and Pause commands execute as expected however the Play command does not. It plays the last “non spotify” track. In my case it was a web radio but I’m sure it would be the same if it was a local or network file being played.

Change Made: Executed command volumio pull -b volatilePlay https://github.com/ashthespy/Volumio2 Then rebooted.

Observed Behavior After Change: Play/Pause/Track controls all operate as expected using IR remote.

1 Like

Hi, I see some comments relating to https://flirc.tv/more/flirc-usb on the forum. Is it possible to use this usb IR dongle to control volumio?