IR Remote plugin after last update is not working

If something seems really buggy, report it here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

IR Remote plugin after last update is not working

Postby gvolt » Tue Sep 03 2019 21:17

Option 1:
Open /boot/config.txt:
Code: Select all
sudo nano /boot/config.txt
and add the following line
Code: Select all
dtoverlay=gpio-ir,gpio_pin=17
After that reboot.

Note 1: gpio_pin=17 is only correct if your IR receiver uses this GPIO. In case it should use another GPIO you need to adjust the number accordingly. Make sure that the GPIO is not already occupied by the DAC (with the original HifiBerry DAC+ GPIO 17 works, but I didn't check if this is valid for the PiFi, too).

Note 2: You will have to add the line after every Volumio update.

Option 2:
Modify lines 232 and 248 of the index.js of the IR controller plugin and adjust the gpio_in_pin and gpio_pin number to your needs, e.g.
Code: Select all
exec('/usr/bin/sudo /usr/bin/dtoverlay lirc-rpi gpio_in_pin=17', { uid: 1000, gid: 1000 },
respectively
Code: Select all
exec('/usr/bin/sudo /usr/bin/dtoverlay gpio-ir gpio_pin=17', { uid: 1000, gid: 1000 },
After that reboot.

Note that modifications to the plugin's index.js will be overwritten when you reinstall or update the plugin.

P.S. I didn't find a manual for the PiFi Dac+ but saw an image of the board and from that it seems the IR receiver is using GPIO 26. If that should be correct you need to set 26 instead 17 in the lines above.
Random avatar
gvolt
Objectivist
Objectivist
 
Posts: 214
Joined: Fri Mar 02 2018 16:47

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Re: IR Remote plugin after last update is not working

Postby misko903 » Wed Sep 04 2019 00:49

Wow, thanks for quick answer! Going to try it!

For me it is unclear, why it was integrated in the Volumio, but now I need to update it manually all the time (like I am still doing with my small matrix display, as there is no plugin for it).
Is it not planned to integrate my IR support in official Volumio?

M
Random avatar
misko903
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Fri Jan 11 2019 20:17


Re: IR Remote plugin after last update is not working

Postby gvolt » Mon Sep 09 2019 08:50

AFAIK the functionality of the IR controller plugin has never been part of Volumio itself and the plugin has always been setting the GPIO in pin to 25. So, if you have used another GPIO for the IR receiver in the past, I can't imagine that it worked without any of the modifications. :?

I guess the reason for the plugin using GPIO in pin 25 is that it was initially written by/together with JustBoom (see https://forum.volumio.org/remote-controller-feedback-thread-t6668.html) - and their HATs use just that pin for the IR receiver ( https://www.justboom.co/tutorials/configure-justboom-ir-remote-lirc/ and https://www.justboom.co/technical-guides/boards-pinout/).

P.S. Has your issue been solved?
Random avatar
gvolt
Objectivist
Objectivist
 
Posts: 214
Joined: Fri Mar 02 2018 16:47


Re: IR Remote plugin after last update is not working

Postby misko903 » Mon Sep 09 2019 19:14

Hello gvolt,
Thank you for your help!

I have used option 1 and the GPIO26, as you proposed.

Strange, that it has been working all the time until the last update.

Maybe there was some "aliases" for gpio, when using hifiberry-dac in settings of Volumio?

Thanks again for your help!
Michal
Random avatar
misko903
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Fri Jan 11 2019 20:17


IR Remote plugin after last update is not working

Postby gvolt » Mon Sep 09 2019 19:40

Hi Michal,

many thanks for your feedback!

To my knowledge there haven't been any "aliases" in the past which automatically set the GPIO. Apart from manually modifying the config.txt or index.js file I can only think of a script from a third party (e.g. the DAC vendor) which did one of the mentioned modifications when you ran that some time ago.

Anyhow, good to hear your IR receiver works again. :D
Random avatar
gvolt
Objectivist
Objectivist
 
Posts: 214
Joined: Fri Mar 02 2018 16:47


Re: IR Remote plugin after last update is not working

Postby misko903 » Wed Sep 11 2019 13:39

gvolt wrote:Hi Michal,

many thanks for your feedback!

To my knowledge there haven't been any "aliases" in the past which automatically set the GPIO. Apart from manually modifying the config.txt or index.js file I can only think of a script from a third party (e.g. the DAC vendor) which did one of the mentioned modifications when you ran that some time ago.

Anyhow, good to hear your IR receiver works again. :D
It was working straight from the box - loaded the as card, chooses the hifiberry-dac, installed the plugin. So it's a kind of magic?
Random avatar
misko903
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Fri Jan 11 2019 20:17

Previous

Return to Bug reports

Who is online

Users browsing this forum: No registered users and 0 guests