[guide] Runeaudio with IR

Raspberry Pi related support

[guide] Runeaudio with IR

Postby rav666 » 29 Nov 2016, 22:14

Raspberry Pi2 with a TSOP4838 IR Receiver to Raspberry Pi, connected to 3.3v, ground and Data to pin 18

PART 1 :

First install volumio 2.0.31 to get a lircd.conf and lircrc file using winscp
this is works perfectly for me >
u:volumio
p:volumio

sudo apt-get update
sudo apt-get install lirc
sudo nano /etc/lirc/hardware.conf
>>
LIRCD_ARGS="--uinput"
..........
DRIVER="default"
...........
DEVICE="/dev/lirc0"
...........
MODULES="lirc_rpi"
>>

sudo nano /boot/config.txt
>> dtoverlay=lirc-rpi,gpio_in_pin=18

ls /dev
You should see a list of /dev entries. Search for '/lirc0' entry. If you see it, you've got it. Now let's if it is working properly…

sudo modprobe lirc_rpi
mode2 -d /dev/lirc0
test some buttons ?


sudo /etc/init.d/lirc stop
irrecord -n -d /dev/lirc0 ~/lircd.conf
sudo mv ~/lircd.conf /etc/lirc/lircd.conf
sudo /etc/init.d/lirc start
irw
test some more buttons

sudo nano /etc/lirc/lircrc
>>
begin
prog = irexec
button = KEY_PLAY
config = mpc toggle
end
begin
prog = irexec
button = KEY_NEXT
config = mpc next
end
begin
prog = irexec
button = KEY_PREVIOUS
config = mpc prev
end
begin
prog = irexec
button = KEY_VOLUMEUP
config = mpc volume +5
repeat = 4
end
begin
prog = irexec
button = KEY_VOLUMEDOWN
config = mpc volume -5
repeat = 4
end
begin
prog = irexec
button = KEY_STOP
config = mpc toggle
end
begin
prog = irexec
button = KEY_FWD
config = mpc seek +00:00:15
repeat = 0
end
begin
prog = irexec
button = KEY_RWD
config = mpc seek -00:00:15
repeat = 0
end
begin
prog = irexec
button = KEY_SHUFFLE
config = mpc random
repeat = 0
end
>>

Make sure to get the lircd.conf and lircrc files using winscp !!



PART 2 :

user: root
password: rune


nano /boot/config.txt
find this uncomment the 2 lines
>>
dtoverlay=lirc-rpi
#dtparam=gpio_out_pin=17
dtparam=gpio_in_pin=18
#dtparam=gpio_in_pull=down
>>

nano /etc/conf.d/lircd.conf
>>
LIRCD_ARGS="--uinput"
DRIVER="default"
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
>>
systemctl reboot

copy volumio conf > here, overwrite if needed

/etc/lirc/lircd.conf.d/lirc.conf (updated 12/02/2017)

systemctl start lircd
irw
(you should see output like this if your lucky)

[root@runeaudio ~]# irw
000000037ff00be9 00 KEY_PLAY /home/volumio/lircd.conf
000000037ff00be5 00 KEY_NEXT /home/volumio/lircd.conf
000000037ff00be4 00 KEY_PREVIOUS /home/volumio/lircd.conf
000000037ff00bea 00 KEY_RWD /home/volumio/lircd.conf
000000037ff00beb 02 KEY_FWD /home/volumio/lircd.conf
000000037ff00bef 02 KEY_VOLUMEUP /home/volumio/lircd.conf
000000037ff00bee 00 KEY_VOLUMEDOWN /home/volumio/lircd.conf
000000037ff00bdb 04 KEY_SHUFFLE /home/volumio/lircd.conf


systemctl enable lircd

copy lircrc from volumio> here, again overwrite to /etc/conf.d/lircrc

nano /usr/lib/systemd/system/irexec.service
>>
[Unit]
Description=Start irexec daemon
Wants=lircd.service
After=network.target

[Service]
Type=simple
ExecStartPre=/usr/bin/sh -c "sleep 3"
ExecStart=/usr/bin/irexec /etc/conf.d/lircrc

[Install]
WantedBy=multi-user.target
>>
systemctl enable irexec.service
Last edited by rav666 on 12 Feb 2017, 21:51, edited 2 times in total.
rav666
 
Posts: 4
Joined: 29 Nov 2016, 21:58

Re: [guide] Runeaudio with IR

Postby hondagx35 » 30 Nov 2016, 09:18

Hi rav666,

sudo apt-get update
sudo apt-get install lirc
sudo nano /etc/lirc/hardware.conf

This will not work with Rune Audio, because we use Arch Linux.
On Arch Linux you can install packages with "pacman -S xxxxxx"

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: [guide] Runeaudio with IR

Postby rav666 » 30 Nov 2016, 16:43

the first part is for volumio, the second part is for runeaudio

This was just so that I could get the lirc files I needed for rune

Runeaudio was the only player that could deal with my music shares without bombing out !!
rav666
 
Posts: 4
Joined: 29 Nov 2016, 21:58

Re: [guide] Runeaudio with IR

Postby mecaz » 10 Dec 2016, 20:33

hello

i followed your guide and created lirc.conf file with my remote and receiver. but when i executed irw notthing appears at screen.
i wonder can you make a clear guide only for runeaudio that shows step by step what to do?

Regards
mecaz
 
Posts: 10
Joined: 11 Jan 2016, 19:38

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: Bing [Bot] and 10 guests