[PLUGIN] IR Remote Controller feedback thread

well… this is what I got using that url (and last time aswell)

[code]Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
volumio@volumio:~$ wget https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller
converted ‘https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller’ (ANSI_X3.4-1968) -> ‘https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller’ (UTF-8)
–2018-10-31 12:05:51-- https://github.com/volumio/volumio-plugins/blob/master/plugins/accessory/ir_controller
Resolving github.com (github.com)… 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller [following]
converted ‘https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller’ (ANSI_X3.4-1968) -> ‘https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller’ (UTF-8)
–2018-10-31 12:05:52-- https://github.com/volumio/volumio-plugins/tree/master/plugins/accessory/ir_controller
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: ‘ir_controller.3’

ir_controller.3 [ <=> ] 50.93K 107KB/s in 0.5s

2018-10-31 12:05:53 (107 KB/s) - ‘ir_controller.3’ saved [52148]
[/code]

and then if i use plugin install command I get:

[code]volumio@volumio:~$ volumio plugin install

This command will install the plugin on your device

No package found[/code]

Sorry guys still lost :stuck_out_tongue:

OK, sorry that it didn’t work. But this should do it: wget https://github.com/volumio/volumio-plugins/raw/gh-pages/plugins/volumio/armhf/accessory/ir_controller/ir_controller.zip
I posted this just some days ago https://volumio.org/forum/remote-controller-plugin-and-extra-remote-controll-t10819.html#p53999 and didn’t remember it… :blush:

Well that link worked, now I’ve got to figure out the IR part… I believe the ir is on GPIO 17 so I’ll mess around with that… Thanks for the help so far. :slight_smile:

To allow setting the GPIO pin jlagden recently made a PR on GitHub https://github.com/volumio/volumio-plugins/pull/272 for a future version of the plugin.

For the time being you can edit index.js and change line 224 to exec('/usr/bin/sudo /usr/bin/dtoverlay lirc-rpi gpio_in_pin=17', {uid:1000,gid:1000},
Assuming you have extracted the downloaded ir_controller.zip file to ~/ir_controller you can do it as follows:cd ir_controller nano index.js
With ctrl+w search for “gpio_in_pin=25” and edit the pin number as needed.

Save the file withctrl+x y return
Then refresh the plugin volumio plugin refresh and reboot.

Instead of editing with nano you can also use sed:sed -i -e 's/gpio_in_pin=25/gpio_in_pin=17/g' index.js

For all parties involved, i’m still unable to use either Apple A1156 or A1294 Remotes despite using ver 1.2 of the plugin.
I’m using a Vishay diode connected to the recommended pins. I’ve tested it with a multimeter, everything is fine.

Xbox One remote and Samsung remotes are working fine on my setup. I’m just having the issue with the apple remotes.

Regards

I have no Apple remotes so I can’t test but there have been some posts indicating that the lircd.conf file(s) might not work for some 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). If exchanging the lircd.conf file with the ones you can find in the linked posts should not help I would recommend to just record the lircd.conf file by yourself, e. g.

irrecord -n -d /dev/lirc0 ~/A1294_lircd.conf

You can test the learned keys with:

irw

If that works copy the A1294_lircd.conf to /data/plugins/accessory/ir_controller/configurations/Apple Remote A1294.

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

Then select the remote from the plugin’s configuration page and click save.

I was able to make a working .conf file for the A1294 thanks to your instructions.
My A1156 template works but with a few oddities.
I made a conf file for the Hauppauge remote already used within OSMC as well.

lircd.conf

# 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 Nov 20 15:29:57 2018
#
# contributed by
#
# brand:                       /home/volumio/Hauppauge_lircd.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  /home/volumio/Hauppauge_lircd.conf
  bits           13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           887   878
  zero          887   878
  plead         900
  gap          113518
  toggle_bit_mask 0x0

      begin codes
          KEY_POWER                0x1FBD
          KEY_UP                   0x1794
          KEY_DOWN                 0x1F95
          KEY_LEFT                 0x1796
          KEY_RIGHT                0x1F97
          KEY_OK                   0x17A5
          KEY_VOL+                 0x1F90
          KEY_VOL-                 0x1791
          KEY_MUTE                 0x1F8F
          KEY_CHANNEL+             0x17A0
          KEY_CHANNEL-             0x1FA1
          KEY_STOP                 0x17B6
          KEY_REW                  0x1FB2
          KEY_FF                   0x17B4 0x1FB4
          KEY_PREVIOUS             0x17A4
          KEY_NEXT                 0x1F9E
          KEY_PLAY                 0x17B5
          KEY_PAUSE                0x1FB0
      end codes

end remote

lircrc

begin
prog = irexec
button = KEY_OK
config = /usr/local/bin/volumio toggle
end
begin
prog = irexec
button = KEY_VOL+
config = /usr/local/bin/volumio volume plus
end
begin
prog = irexec
button = KEY_VOL-
config = /usr/local/bin/volumio volume minus
end
begin
prog = irexec
button = KEY_NEXT
config = /usr/local/bin/volumio next
end
begin
prog = irexec
button = KEY_PREVIOUS
config = /usr/local/bin/volumio previous
end
begin
prog = irexec
button = KEY_MUTE
config = /usr/local/bin/volumio volume toggle
repeat = 0
end
begin
prog = irexec
button = KEY_FF
config = /usr/local/bin/volumio seek plus
end
begin
prog = irexec
button = KEY_REW
config = /usr/local/bin/volumio seek minus
end
begin
prog = irexec
button = KEY_BACK
config = /usr/local/bin/volumio repeat
end
begin
prog = irexec
button = KEY_PLAY
config = /usr/local/bin/volumio play
end
begin
prog= irexec
button = KEY_STOP
config = /usr/local/bin/volumio stop
end
begin
prog = irexec
button = KEY_POWER
config = shutdown -h now
end
begin
prog = irexec
button = KEY_PAUSE
config = /usr/local/bin/volumio pause
end

Last question :
Many remotes have numbered keys. Is there a specific command that i could invoke and link to the digits in order to call a specific radio URL ?
For instance, The 1 button would play BBC Radio 1, 2 for radio 2, etc…

Thanks

Great it works and thanks for your feedback.

Regarding your “last question”:
There is no specific single command I’m aware of. But it’s doable with a script. Have a look at https://volumio.org/forum/remote-controller-plugin-and-extra-remote-controll-t10819.html#p54043

Is it possible to use the plugin and change the settings for the keys like the old way with manual lirc installation?

Which file should I use with the plugin?

With lirc i used:
nano ~/.lircrc

Thanks BR Markus

Hi Karine-Johanne,
you could use the Rest API to call a playlist and put the desired radio station in that playlist.
I did it like this.

prog = irexec
button = KEY_1
config = curl -v “localhost:3000/api/v1/commands/?cmd=playplaylist&name=1”
end

if you do this for each button 1 till 0 you only have to change the playlist when you need to change a radio station.

I find this very usefull for daily use.

cheers,
Dennis

Hello.
Can u do some IR controller like has BlueSound?

  1. Must have some free IR comtroller
  2. Choose some button
  3. Search some function which I want to controll on BlueSound
    4)Click on it ať BlueSound
  4. Click on The button on IR Controller
  5. Use this button for this function
    It is nice - can somebody prepare something like this for Volumio?

Hi everybody,
my problem is that I can’t avoid double commands with lirc.

I have RPi 3B+ with Allo Boss DAC and I just purchased a RemotePi Board to power on and off but moreover to control Volumio with IR Remote. Note that the BOSS only exposes some GPIO pins so I had to make some hardware change:
I connected
+5V to +5V
GND to GND
and I changed as follows data transmission:
GPIO14 of RemotePi to GPIO24 of DAC (for the shutdown signal and TxD for the serial communication)
GPIO15 of RemotePi to GPIO27 of DAC (for the shutdown signal and RxD for the serial communication)
GPIO18 of RemotePi to GPIO17 of DAC for the IR receiver

I followed the instructions on the website so:

  1. I somehow installed the hardware and as the following configuration to use GPIO 17 instead of GPIO 18 for the IR receiver (as stated here msldigital.com/pages/suppor … -plus-2015) seemed not to work i DID NOT DO it

    [code]In most modern OS distributions (tested in OpenElec and Volumio) this should be achieved by editing the config.txt in the root of the SD card and changing the line

    dtoverlay=gpio-ir
    To
    dtoverlay=gpio-ir,gpio_pin=17

    for older OS distros that still use LIRC the change would be:

    dtoverlay=lirc-rpi
    To
    dtoverlay=lirc-rpi,gpio_in_pin=17[/code]
    I instead only modified /data/plugins/accessory/ir_controller/index.js at line 221:

    221 exec('/usr/bin/sudo /usr/bin/dtoverlay lirc-rpi gpio_in_pin=25', {uid:1000,gid:1000},
    I changed gpio_in_pin=17 as my IR sensor is on GPIO 17 as suggested earlier in this thread, and this worked.

  2. I installed the shutdown scripts manually as stated here msldigital.com/pages/shutdo … or-volumio , not using the RemotePi plugin, modifying and/or creating
    /etc/rc.local
    /etc/irswitch.sh
    /etc/shutdown.sh
    /etc/systemd/system/irswitch2.service

  3. I configured the RemotePi Board to power on and off using my remote with some button press

  4. I configured my remote to navigate the menus installing the IR Remote Controller 1.2.0 plugin and manually configuring it as described here msldigital.com/pages/support-for-remote.
    Basically I created my lircd.conf e lircrc in my configurations folder.

now the problem is that I have double commands even if I set repeat and delay oprions in lircrc.
irw also displais this behavoiur.

I performed a dmesg and this is the output:

[ 10.735064] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry [ 10.735087] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517 [ 11.040073] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator [ 11.040140] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator [ 11.040189] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator [ 11.158647] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok [ 11.238824] brcmfmac: F1 signature read @0x18000000=0x15264345 [ 11.246994] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006 [ 11.250871] usbcore: registered new interface driver brcmfmac [ 11.655384] random: crng init done [ 11.655398] random: 7 urandom warning(s) missed due to ratelimiting [ 11.672639] systemd-journald[168]: Received request to flush runtime journal from PID 1 [ 11.725081] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04 [ 11.725632] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28 [ 12.345306] brcmfmac: power management disabled [ 13.530117] brcmfmac: power management disabled [ 14.245523] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 14.730982] ip_tables: (C) 2000-2006 Netfilter Core Team [ 14.857497] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) [ 16.633604] Under-voltage detected! (0x00050005) [ 27.041852] Voltage normalised (0x00000000) [ 31.202005] Under-voltage detected! (0x00050005) [ 33.255074] lirc_dev: IR Remote Control driver registered, major 243 [ 33.273265] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned. [ 34.331836] lirc_rpi: auto-detected active low receiver on GPIO pin 17 [ 34.332004] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0 [ 34.332007] lirc_rpi: driver registered! [ 34.441276] input: lircd as /devices/virtual/input/input0 [ 35.351861] Voltage normalised (0x00000000) [ 42.357426] input: lircd as /devices/virtual/input/input1

so, is it correct that I have both
/devices/virtual/input/input0
and
/devices/virtual/input/input1 ?
What should I do?

Here are some more information:

ls /dev/lirc0

chrisp@volumio:~$ ls /dev/lirc0 /dev/lirc0

systemctl status lirc

[code]
chrisp@volumio:~$ systemctl status lirc
● lirc.service - LSB: Starts LIRC daemon.
Loaded: loaded (/etc/init.d/lirc)
Active: active (running) since Mon 2019-03-11 22:41:34 UTC; 7s ago
Process: 21553 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/lirc.service
├─21563 /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput
└─21566 /usr/bin/irexec -d /etc/lirc/lircrc

Mar 11 22:41:34 volumio lirc[21553]: Loading LIRC modules:.
Mar 11 22:41:34 volumio lircd-0.9.0-pre1[21563]: lircd(default) ready, using /var/run/lirc/lircd
Mar 11 22:41:34 volumio lirc[21553]: Starting remote control daemon(s) : LIRC :.
Mar 11 22:41:34 volumio lircd-0.9.0-pre1[21563]: accepted new client on /var/run/lirc/lircd
Mar 11 22:41:34 volumio lirc[21553]: Starting execution daemon: irexec:.
Mar 11 22:41:34 volumio systemd[1]: Started LSB: Starts LIRC daemon…[/code]

ATM I have no access to my Raspberry so cannot check but I guess: No.

Don’t know if it is related, but your dmesg output shows under-voltage problems. Could you try running the system with a sufficient power supply and have a look if the issue remains?

Maybe post your lircrc and lircd.conf, too.

So I thought I had one problem, now I discover I have two. :frowning:
I would exclude the PSU: it is the Raspberry offcial one, I guess it is of good quality.

I did a couple rebooting and the situations seems not so good:

[    9.238229] systemd[1]: Set hostname to <volumio>.
[    9.313975] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    9.429115] random: systemd: uninitialized urandom read (16 bytes read)
[    9.509121] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
[    9.509188] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
[    9.509246] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
[    9.509322] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
[    9.569387] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    9.572880] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.917288] fuse init (API version 7.26)
[   10.080128] i2c /dev entries driver
[   10.202421] systemd-udevd[195]: starting version 215
[   10.792050] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   10.793157] snd_bcm2835: unknown parameter 'index' ignored
[   10.794718] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[   10.970760] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   10.970780] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.187021] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator
[   11.187085] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator
[   11.187131] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator
[   11.315217] brcmfmac: F1 signature read @0x18000000=0x15264345
[   11.315360] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[   11.323187] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[   11.325272] usbcore: registered new interface driver brcmfmac
[   11.730925] random: crng init done
[   11.730939] random: 7 urandom warning(s) missed due to ratelimiting
[   11.760401] systemd-journald[174]: Received request to flush runtime journal from PID 1
[   11.812629] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[   11.813175] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[   12.676234] brcmfmac: power management disabled
[   13.269766] brcmfmac: power management disabled
[   13.989478] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.586966] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.648799] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   16.631882] Under-voltage detected! (0x00050005) <---
[   29.111865] Voltage normalised (0x00000000)
[   31.191979] Under-voltage detected! (0x00050005) <---
[   34.496243] lirc_dev: IR Remote Control driver registered, major 243
[   34.510996] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   35.581918] lirc_rpi: auto-detected active low receiver on GPIO pin 17
[   35.582510] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[   35.582520] lirc_rpi: driver registered!
[   35.796440] input: lircd as /devices/virtual/input/input0
[   41.591911] Voltage normalised (0x00000000)
[   44.470527] input: lircd as /devices/virtual/input/input1
[   45.751990] Under-voltage detected! (0x00050005) <---
[   54.072017] Voltage normalised (0x00000000)
[    8.505340] initramfs: With Option:
[    8.614809] initramfs: VOLUMIO_VERSION="2.555"
[    8.614967] initramfs: Finish initramfs, continue booting Volumio
[    9.045153] random: systemd: uninitialized urandom read (16 bytes read)
[    9.048932] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    9.049239] systemd[1]: Detected architecture 'arm'.
[    9.190589] NET: Registered protocol family 10
[    9.191856] Segment Routing with IPv6
[    9.192034] systemd[1]: Inserted module 'ipv6'
[    9.204851] systemd[1]: Set hostname to <volumio>.
[    9.295212] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    9.389160] random: systemd: uninitialized urandom read (16 bytes read)
[    9.468522] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
[    9.468587] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
[    9.468645] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
[    9.468721] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
[    9.528427] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    9.531885] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.855731] fuse init (API version 7.26)
[    9.876545] systemd-udevd[177]: starting version 215
[    9.929377] i2c /dev entries driver
[   10.605680] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   10.606741] snd_bcm2835: unknown parameter 'index' ignored
[   10.608448] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[   10.966697] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   10.966717] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.082561] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator
[   11.082628] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator
[   11.082706] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator
[   11.101729] brcmfmac: F1 signature read @0x18000000=0x15264345
[   11.112712] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[   11.117725] usbcore: registered new interface driver brcmfmac
[   11.205024] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[   11.554163] random: crng init done
[   11.554178] random: 7 urandom warning(s) missed due to ratelimiting
[   11.608009] systemd-journald[167]: Received request to flush runtime journal from PID 1
[   11.622728] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[   11.623317] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[   12.316921] brcmfmac: power management disabled
[   13.492108] brcmfmac: power management disabled
[   14.201885] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.722483] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.020913] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   16.631913] Under-voltage detected! (0x00050005) <--
[   35.991030] lirc_dev: IR Remote Control driver registered, major 243
[   36.015839] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   37.071934] lirc_rpi: auto-detected active low receiver on GPIO pin 17
[   37.072263] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[   37.072270] lirc_rpi: driver registered!
[   37.302683] input: lircd as /devices/virtual/input/input0
[   41.591919] Voltage normalised (0x00000000)
[   45.752009] Under-voltage detected! (0x00050005)<---
[   46.427777] input: lircd as /devices/virtual/input/input1
[   49.911995] Voltage normalised (0x00000000)
[   51.992063] Under-voltage detected! (0x00050005) <---
[   56.152039] Voltage normalised (0x00000000)
[  420.155200] rpi_firmware_get_throttled: 3 callbacks suppressed[/b] <---
[  420.155207] Under-voltage detected! (0x00050005)[/b] <---
[  426.395198] rpi_firmware_get_throttled: 3 callbacks suppressed <---
[  426.395202] Voltage normalised (0x00000000)

the fact is that if I power directly the Raspberry and detach the external power button from the RemotePi Board it seems to get better from the electric point of view, but not for software/virtual devices:

[   10.076914] i2c /dev entries driver
[   10.185569] systemd-udevd[195]: starting version 215
[   10.705220] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   10.706523] snd_bcm2835: unknown parameter 'index' ignored
[   10.713081] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[   10.757289] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   10.757311] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.032246] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   11.032265] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.035036] brcmfmac: F1 signature read @0x18000000=0x15264345
[   11.042054] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[   11.044568] usbcore: registered new interface driver brcmfmac
[   11.044922] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   11.044938] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.113967] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator
[   11.114036] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator
[   11.114084] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator
[   11.224067] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[   11.561281] random: crng init done
[   11.561297] random: 7 urandom warning(s) missed due to ratelimiting
[   11.675236] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[   11.675859] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[   11.703608] systemd-journald[167]: Received request to flush runtime journal from PID 1
[   12.518733] brcmfmac: power management disabled
[   13.099830] brcmfmac: power management disabled
[   13.795610] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.310012] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.388850] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   28.455471] lirc_dev: IR Remote Control driver registered, major 243
[   28.459012] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   29.402009] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[   29.521773] lirc_rpi: auto-detected active low receiver on GPIO pin 17
[   29.521915] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[   29.521918] lirc_rpi: driver registered!
[   29.629329] input: lircd as /devices/virtual/input/input0<---
[   49.752589] bcm2835-dma 3f007000.dma: DMA transfer could not be terminated
[   52.719664] input: lircd as /devices/virtual/input/input1 <---

Second reboot:

[    9.275855] systemd[1]: Set hostname to <volumio>.
[    9.372047] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    9.455729] random: systemd: uninitialized urandom read (16 bytes read)
[    9.534604] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
[    9.534668] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
[    9.534727] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
[    9.534803] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
[    9.593764] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    9.597099] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.966837] fuse init (API version 7.26)
[   10.076914] i2c /dev entries driver
[   10.185569] systemd-udevd[195]: starting version 215
[   10.705220] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   10.706523] snd_bcm2835: unknown parameter 'index' ignored
[   10.713081] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[   10.757289] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   10.757311] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.032246] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   11.032265] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.035036] brcmfmac: F1 signature read @0x18000000=0x15264345
[   11.042054] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[   11.044568] usbcore: registered new interface driver brcmfmac
[   11.044922] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   11.044938] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.113967] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator
[   11.114036] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator
[   11.114084] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator
[   11.224067] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[   11.561281] random: crng init done
[   11.561297] random: 7 urandom warning(s) missed due to ratelimiting
[   11.675236] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[   11.675859] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[   11.703608] systemd-journald[167]: Received request to flush runtime journal from PID 1
[   12.518733] brcmfmac: power management disabled
[   13.099830] brcmfmac: power management disabled
[   13.795610] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.310012] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.388850] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   28.455471] lirc_dev: IR Remote Control driver registered, major 243
[   28.459012] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   29.402009] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[   29.521773] lirc_rpi: auto-detected active low receiver on GPIO pin 17
[   29.521915] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[   29.521918] lirc_rpi: driver registered!
[   29.629329] input: lircd as /devices/virtual/input/input0 <---
[   49.752589] bcm2835-dma 3f007000.dma: DMA transfer could not be terminated
[   52.719664] input: lircd as /devices/virtual/input/input1 <---
[ 1996.683644] lirc_rpi: AIEEEE: 1 1 5c880190 5c880177 7ad60 d5fc5
[ 2170.519825] lirc_rpi: AIEEEE: 0 0 5c88023e 5c880198 52764 e7ce4

while disconnecting +5V power off the RemotePi but leaving other pins connected:

[    9.252506] systemd[1]: Set hostname to <volumio>.
[    9.350894] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    9.441975] random: systemd: uninitialized urandom read (16 bytes read)
[    9.521784] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
[    9.521853] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
[    9.521911] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
[    9.521987] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
[    9.581972] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    9.585354] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.893256] fuse init (API version 7.26)
[   10.087812] i2c /dev entries driver
[   10.223449] systemd-udevd[198]: starting version 215
[   10.749988] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   10.751228] snd_bcm2835: unknown parameter 'index' ignored
[   10.753049] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[   10.775604] snd-allo-boss-dac soc:sound: ASoC: CPU DAI (null) not registered - will retry
[   10.775623] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   10.776334] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   10.776350] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.068158] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator
[   11.068227] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator
[   11.068292] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator
[   11.199498] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[   11.219809] brcmfmac: F1 signature read @0x18000000=0x15264345
[   11.227843] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[   11.230194] usbcore: registered new interface driver brcmfmac
[   11.651593] random: crng init done
[   11.651608] random: 7 urandom warning(s) missed due to ratelimiting
[   11.744031] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[   11.744574] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[   11.758057] systemd-journald[167]: Received request to flush runtime journal from PID 1
[   12.696492] brcmfmac: power management disabled
[   13.277525] brcmfmac: power management disabled
[   13.989231] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.530379] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.947049] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   28.604085] lirc_dev: IR Remote Control driver registered, major 243
[   28.607853] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   29.532426] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[   29.671791] lirc_rpi: auto-detected active high receiver on GPIO pin 17
[   29.671943] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[   29.671946] lirc_rpi: driver registered!
[   29.780138] input: lircd as /devices/virtual/input/input0 <---
[   50.392614] bcm2835-dma 3f007000.dma: DMA transfer could not be terminated
[   53.309246] input: lircd as /devices/virtual/input/input1 <--- 

first reboot:

[    9.160181] systemd[1]: Set hostname to <volumio>.
[    9.254000] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    9.352041] random: systemd: uninitialized urandom read (16 bytes read)
[    9.432469] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
[    9.432534] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
[    9.432595] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
[    9.432670] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
[    9.493230] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    9.496609] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.876699] fuse init (API version 7.26)
[    9.933597] i2c /dev entries driver
[    9.946225] systemd-udevd[178]: starting version 215
[   10.622597] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   10.623686] snd_bcm2835: unknown parameter 'index' ignored
[   10.626082] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[   10.753409] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   10.753428] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.050998] pcm512x 1-004d: 1-004d supply AVDD not found, using dummy regulator
[   11.051060] pcm512x 1-004d: 1-004d supply DVDD not found, using dummy regulator
[   11.051106] pcm512x 1-004d: 1-004d supply CPVDD not found, using dummy regulator
[   11.055048] snd-allo-boss-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   11.055068] snd-allo-boss-dac soc:sound: snd_soc_register_card() failed: -517
[   11.059698] brcmfmac: F1 signature read @0x18000000=0x15264345
[   11.072085] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[   11.074446] usbcore: registered new interface driver brcmfmac
[   11.166994] snd-allo-boss-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[   11.519541] random: crng init done
[   11.519556] random: 7 urandom warning(s) missed due to ratelimiting
[   11.639525] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[   11.640127] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[   11.665518] systemd-journald[168]: Received request to flush runtime journal from PID 1
[   12.506020] brcmfmac: power management disabled
[   13.099003] brcmfmac: power management disabled
[   13.815230] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.307545] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.957606] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   28.820856] lirc_dev: IR Remote Control driver registered, major 243
[   28.843203] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   29.921811] lirc_rpi: auto-detected active high receiver on GPIO pin 17
[   29.921986] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[   29.921989] lirc_rpi: driver registered!
[   30.028034] input: lircd as /devices/virtual/input/input <---
[   37.947952] input: lircd as /devices/virtual/input/input1 <---

Now I am a bit worried: I bougt the Allo Boss and the original PSU in order to have the best sound quality and stability possible.
I bought the RemotePi ti have the “Comfort” of remote control and (safe) powering on and off. But power now passes through more “wires and components” :confused:

It seems like I should renounce to one of these features…

maybe I missed something, but I give it a try…

I would need the use case of IR operation in the other direction with the raspi as a IR sender. I have a Volumio raspi, a smartphone using Linn Kazoo and an older, but very good integrated amplifier I want to use for Volumio, but for CD player as well.

My target would be to have the volumio raspi as one input to the integrated amplifier. The raspi is playing with fixed volume, and the volume is controlled with the Kazoo app: adapting the volume forces the Volumio to send an IR command to the integrated amplifier to volume up or down.

Is there a way to get there, even with smaller adaptions on ssh level on the volumio…?

Hi,

Does anybody know what is the improvement /change log of the version 1.21 which is available viathe plugin store since today ?

Thank you

Josef

Added Xiaomi IR for TV box

Hello
If someone is having trouble setting up the APPLE 1294 control here follows the correct code to work on Volumio Version 2.583

A1294_lircd.conf

nano A1294_lircd.conf

# 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          108050

      begin raw_codes

          name KEY_UP
             9126    4408     567     558     571    1707
              521    1705     513    1685     543     555
              574    1705     513    1684     544    1708
              520    1706     522    1703     515    1711
              517     554     566     557     571     552
              567     556     573    1705     513    1686
              542    1683     545     553     566    1711
              517     554     565     558     572     552
              567     556     573     550     569    1708
              520     551     568     555     574     549
              572     551     566     556     574    1719
              519

          name KEY_DOWN
             9126    4411     573     552     567    1710
              518    1708     520    1706     512     559
              570    1707     521    1705     513    1712
              516    1710     518    1707     521    1704
              514     557     572     552     567     555
              574     549     570    1682     546    1705
              513     558     571    1707     521    1703
              515     557     573     549     571     553
              565     558     571     552     569    1683
              544     566     553     557     572     550
              569     555     575     548     570    1699
              540

          name KEY_LEFT
             9129    4406     568     556     574    1704
              513    1712     516    1709     519     553
              567    1711     517    1709     519    1705
              512    1714     515    1710     518    1707
              521     550     569     554     565     558
              571     552     567    1686     542     555
              565     558     571     552     567    1685
              543     554     565     558     572     552
              567     556     573     550     569    1683
              546     551     568     556     573     550
              569     554     565     558     572    1696
              542

          name KEY_RIGHT
             9130    4407     567     558     571    1707
              521    1704     514    1712     516     555
              574    1704     514    1710     518    1707
              521    1705     515    1710     516    1709
              518     553     566     560     570     550
              569     554     569    1687     538    1708
              519    1706     522    1703     515     556
              573     550     569     553     566     557
              572     551     568     555     575    1677
              541     556     573     549     570     554
              565     558     571     551     568    1711
              538

          name KEY_PLAY
             9120    4412     572     553     566    1712
              516    1655     573    1653     565     559
              570    1707     521    1651     567    1711
              517    1656     572    1706     526    1646
              567     558     572     551     568     555
              574     550     569    1708     520     551
              568    1710     518    1707     521    1704
              513    1712     516     555     574    1703
              515     556     573     550     570    1707
              521     550     569     554     565     558
              571     552     567     556     573    1721
              517

          name KEY_MENU
             9130    4406     569     554     575    1651
              567    1659     569    1657     571     552
              567    1659     569    1656     572    1653
              575    1652     566    1660     568    1657
              571     553     566     557     572     551
              568     556     574    1703     515     557
              573    1653     574     550     569     554
              575     549     570     553     566     557
              573     550     569     555     574    1703
              515     557     572     551     568     555
              574     549     570     554     565    1728
              521

          name KEY_OK
             9128    4408     576     549     570    1708
              520    1706     522    1547     671     557
              572    1706     523    1703     514    1713
              515    1657     571    1708     520    1653
              575     549     570     553     566     557
              572     552     567    1711     517    1708
              520     552     567    1684     544    1708
              520    1653     575     548     571    1681
              547     549     570     553     566    1686
              542     554     565     559     571     552
              567     556     573     549     570    1697
              541

      end raw_codes

/etc/init.d/lirc stop

cp A1294_lircd.conf /etc/lirc/lircd.conf

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

/etc/init.d/lirc start

Hello! I have trouble getting a fresh Volumio 2.598 Image with the IR Remote Plugin 1.2.1 to work on a Pi 4 B. Apparently lirc won’t start. The plugin is installed and running.
Here is

[code]systemctl status lirc
● lirc.service - LSB: Starts LIRC daemon.
Loaded: loaded (/etc/init.d/lirc)
Active: active (exited) since Tue 2019-07-30 21:53:09 UTC; 20s ago
Process: 3890 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS)

Jul 30 21:53:29 mopi lirc[3890]: Loading LIRC modules:.
Jul 30 21:53:29 mopi lirc[3890]: Unable to load LIRC kernel modules. Verify your … failed!
Jul 30 21:53:29 mopi lirc[3890]: selected kernel modules in /etc/lirc/hardware.conf … failed!
Jul 30 21:53:29 mopi lirc[3890]: Starting execution daemon: irexec: failed!
Jul 30 21:53:29 mopi systemd[1]: Started LSB: Starts LIRC daemon…[/code]

Is this a incompatability with the Volumio 2.598? Thanks