[PLUGIN] IR Remote Controller feedback thread

I am having exactly the same problem as the last poster.
I downloaded and installed Volumio 2.599 on a Pi 2B with an IQAudio Dac+ hat fitted with IR receiver.
I installed the Remote Controller plugin to use with an original Justboom remote.
It doesn’t work - I have tried uninstall/reinstall … still doesn’t work.
The fail is reported below:

volumio@volumio:~$ systemctl status lirc
● lirc.service - LSB: Starts LIRC daemon.
Loaded: loaded (/etc/init.d/lirc)
Active: active (exited) since Mon 2019-08-05 23:37:18 UTC; 3min 36s ago
Process: 21339 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS)

Aug 05 23:37:18 volumio lirc[21339]: Loading LIRC modules:.
Aug 05 23:37:18 volumio lirc[21339]: Unable to load LIRC kernel modules. Ve…d!
Aug 05 23:37:18 volumio lirc[21339]: selected kernel modules in /etc/lirc/h…d!
Aug 05 23:37:18 volumio lirc[21339]: Starting execution daemon: irexec: failed!
Aug 05 23:37:18 volumio systemd[1]: Started LSB: Starts LIRC daemon…
Hint: Some lines were ellipsized, use -l to show in full.

Is there a fix for this?

I had truble to get lirc working in the latest volumio version 2.599 as well. Here’s what I did to get it to work (after ca 5 hours of banging my head in the wall…):

Hardware used:
ir reciver TSOP4838 connected to pin 25, + 3.3v and ground.
Logitech harmony 650 remote loaded with profile for Odroid C2

Procedure:
Installed plugin Ir remote controller and choose Odroid remote in settings
added: dtoverlay=gpio-ir,gpio_pin=25 to /boot/config.txt
changed: /etc/lirc/hardware.conf to use MODULES=“gpio_ir_recv”

For some reason the file /etc/lirc/hardware.conf gets overwritten on every reboot. I guess that is done by the plugin.
I tried to restart lirc without rebooting and got it working that way:
(After editing /etc/lirc/hardware.conf)
sudo systemctl stop lirc
sudo systemctl start lirc

The last thing I tried was to edit /data/plugins/accessory/ir_controller/hardware.conf.tmpl
I changed MODULES="${module}" to:
MODULES=“gpio_ir_recv”
I don’t know if that works but worth a try. My thinking is that this value maybe gets written to hardware.conf on reboot.

For anyone else using Logitech harmony I recommend to change behavior for the device odroid to be always on. Otherwise the pi will get powered down everytime you press the power button to turn off your other equipment if you’re using Activities with the remote.

Hope this helps while waiting for the plugin/volumio to get updated. :slight_smile:

I opened a PR on GitHub with a fix for the IR Controller plugin: https://github.com/volumio/volumio-plugins/pull/345

Great, thanks!

Thanks so much gorgias :slight_smile:

Your fix worked like a charm and I now have a fully functioning remote !!

Will stick with this til the next full update …

ciao. scusate se non scrivo in inglese ma se no non ne esco.
il mio sensore è questo:sensore
ho collegato il mio sensore ir al +3.3, gnd e pin 25.
ho modificato il file boot/config.txt aggiungendo sotto i cancelletti:
dtoverlay=gpio-ir,gpio_pin=25
e il file /etc/lirc/hardware.conf la variabile MODULES=“gpio_ir_recv”

nel plugin installato ho selezionato il telecomando: A1294
ho preso il telecomando qui: link

vedo che al sensore arrivano i comandi ma non funziona.

ho usato il file per a1294 postato da un utente su questo topic ma non mi ha funzionato.
ho usato il comando: irrecord -d /dev/lirc0 ~/lircd.conf
e mi sono registrato i comandi raw che arrivano dal telecomando e mi è uscito questo file:

[code] name /home/volumio/lircd.conf.conf
flags RAW_CODES|CONST_LENGTH
eps 30
aeps 100

gap 110717

  begin raw_codes

      name KEY_DOWN
         9056    2263     569

      name KEY_UP
         9033    2267     543

      name KEY_OK
         9052    2266     541

      name KEY_LEFT
         9035    2266     542

      name KEY_RIGHT
         9006    2292     574

      name KEY_PLAY
         9034    2266     542

      name KEY_MENU
         9032    2267     542

  end raw_codes

end remote[/code]

ho modificato il file del plugin in questo modo:

[code]# 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 Thu Jun 20 13:41:14 2019

contributed by

brand: /home/volumio/A1294_lircd.conf

model no. of remote control:

devices being controlled by this remote:

begin remote

name /home/volumio/A1294_lircd.conf
flags RAW_CODES|CONST_LENGTH
eps 30
aeps 100

gap 110717

  begin raw_codes

      name KEY_UP
         9033    2267     543

      name KEY_DOWN
         9056    2263     569

      name KEY_LEFT
         9035    2266     542

      name KEY_RIGHT
         9006    2292     574

      name KEY_PLAY
         9034    2266     542

      name KEY_MENU
         9032    2267     542

      name KEY_OK
         9052    2266     541

  end raw_codes[/code]

niente da fare.

ho visto che il file originale del plugin non ha i codici raw ma è scritto cosi:

# 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 Mon May 15 13:59:35 2017
#
# contributed by 
#
# brand:                       lircd.conf
# model no. of remote control: 
# devices being controlled by this remote:
#

begin remote

  name  lircd.conf
  bits            8
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9065  4437
  one           590  1634
  zero          590   530
  ptrail        589
  repeat       9065  2205
  pre_data_bits   16
  pre_data       0x77E1
  post_data_bits  8
  post_data      0xE6
  gap          107996
  toggle_bit_mask 0x0

      begin codes
          KEY_MENU                 0xC0
          KEY_PLAY                 0xFA 0xA0
          KEY_ENTER                0x3A 0xA0
          KEY_LEFT                 0x90
          KEY_RIGHT                0x60
          KEY_DOWN                 0x30
          KEY_UP                   0x50
      end codes

end remote

ma io non so come estrapolare il codice 0x…

mi potete aiutare? dove sbaaglio?

aggiungo che con il telecomando del tv samsung configurato semplicemente dal plugin funziona tutto senza problemi

mi

Hi everyone!

(Since I did not know on which thread to post my question, I put it in duplicate on the 2 threads of the plugins concerned (I would update the one that will not have an answer))

Is there a command line to refresh the display? For example, when I do an update search, the screen shows me the pop-up window specifying if there is a new version or not. Even if I close this window on my smartphone, it doesn’t close it on the screen of my player (and I cannot do it manually since I do not have a touch screen). At this point I have to disable then enable touchdisplay plugin for the window to close. So I was wondering if it was possible to assign a function to a button of the remote to refresh the display. The trick is that I would also like to use it to refresh the track info when these are wrong: sometimes the specified track info are those of the track that comes after the one that is listening. Maybe a command line to refresh webUI?.. Not sure it will work for track infos…

Any proposals?

See https://forum.volumio.org/touch-display-t12586-10.html#p70812

CYRUS OWNERS BEWARE!
I got a justboom remote and hooked up a receiver to my DAC - Audiophonics iSabre.
The justboom remote works fine BUT - it uses exactly the same IR command for volume as the Cyrus uses to switch inputs so is no use to Cyrus owners.
Worse than that - using volume on the Cyrus remote crashes the R-Pi.
I’ve ordered an Apple remote which ought to be fine.

I would like this plugin to support the FLIRC USB device.

Not everybody wants to mess about with GPIO pins, wires and soldering irons.

Hello there !
I configured my RPI2 box with PIFI DAC to use lirc and a custom remote.
All the configuration has been completed and verified with irw.
The remote key are recognized well, but when using the remote nothing happens…it’s really wierd and I don’t know how to figure it out.
Here is my configuration:

Volumio Version 2.729

/boot/userconfig.txt

# Add your custom config.txt options to this file, which will be preserved during updates dtoverlay=gpio-ir,gpio_pin=26

/etc/lirc/hardware.conf

[code]# /etc/lirc/hardware.conf

Arguments which will be used when launching lircd

LIRCD_ARGS="–uinput"

#Don’t start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don’t start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

Run “lircd --driver=help” for a list of supported drivers.

DRIVER=“default”

usually /dev/lirc0 is the correct setting for systems using udev

DEVICE="/dev/lirc0"
MODULES=“gpio_ir_recv”

Default configuration files for your hardware if any

LIRCD_CONF=""
LIRCMD_CONF=""[/code]

/etc/lirc/lircd.conf

[code]# 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 Tue Mar 24 09:13:51 2020

contributed by

brand: LG

model no. of remote control: MKJ37815701

devices being controlled by this remote:

begin remote

name MKJ37815701
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

one 522 1704
zero 522 587
ptrail 522
repeat 8892 2283
pre_data_bits 16
pre_data 0x20DF
gap 107349
toggle_bit_mask 0x0

  begin codes
      KEY_UP                   0x00FF
      KEY_DOWN                 0x807F
      KEY_LEFT                 0xC03F
      KEY_RIGHT                0x40BF
      KEY_ENTER                0x22DD
      KEY_POWER                0x10EF
      KEY_RED                  0x4EB1
      KEY_GREEN                0x8E71
      KEY_YELLOW               0xC639
      KEY_BLU                  0x8679
      KEY_MENU                 0xC23D
      KEY_SLEEP                0x708F
      KEY_MUTE                 0x906F
  end codes

end remote
[/code]

/home/volumio/lircrc /etc/lirc/lircrc

begin prog = irexec button = KEY_MENU config = mpc toggle end begin prog = irexec button = KEY_RIGHT config = /usr/local/bin/volumio next end begin prog = irexec button = KEY_LEFT config = /usr/local/bin/volumio previous end begin prog = irexec button = KEY_UP config = /usr/local/bin/volumio volume plus end begin prog = irexec button = KEY_DOWN config = /usr/local/bin/volumio volume minus end begin prog = irexec button = KEY_RED config = /usr/local/bin/volumio seek minus end begin prog = irexec button = KEY_OK config = /usr/local/bin/volumio toggle end begin prog = irexec button = KEY_MUTE config = /usr/local/bin/volumio stop end begin prog = irexec button = KEY_YELLOW config = /usr/local/bin/volumio random end begin prog = irexec button = KEY_GREEN config = /usr/local/bin/volumio repeat end begin prog = irexec button = KEY_BLU config = /usr/local/bin/volumio seek plus end

Any help is well appreciated!!

PS:
I didn’t install the plugin IR Remote because I read an old thread that said there where incompatibilities with non supported remotes.
I simply installed manually lirc.
Might be that the problem?

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