Francesco Vannini
Published © LGPL

How To Configure JustBoom IR Remote With LIRC

Set Up LIRC For Your JustBoom IR Remote This guide will show you how to configure LIRC on a Raspbian based OS.

IntermediateFull instructions provided1 hour1,219
How To Configure JustBoom IR Remote With LIRC

Things used in this project

Hardware components

JustBoom Amp Zero
JustBoom Amp Zero
×1

Software apps and online services

Raspbian
Raspberry Pi Raspbian

Story

Read more

Code

Code snippet #4

Plain text
# Enable the lirc-rpi module
dtoverlay=lirc-rpi

# Override the defaults for the lirc-rpi module
dtparam=gpio_in_pin=25

Code snippet #6

Plain text
# 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="lirc_rpi"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

Code snippet #13

Plain text
# 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 Dec 15 14:58:27 2016
#
# contributed by: Francesco Vannini
#
# brand: JustBoom
# model no. of remote control: IR Remote
# devices being controlled by this remote:
#

begin remote

  name  lircd.conf
  bits            5
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           921   855
  zero          921   855
  plead         936
  pre_data_bits   8
  pre_data       0xA0
  gap          114211
  toggle_bit_mask 0x800

      begin codes
          Home                     0x10
          Mute                     0x12
          Power                    0x11
          Up                       0x1A
          Down                     0x1B
          Left                     0x13
          Right                    0x14
          OK                       0x15
          Menu                     0x16
          Back                     0x17
          Volume-Up                0x19
          Volume-Down              0x18
      end codes

end remote

Code snippet #19

Plain text
begin
prog = irexec
button = OK
config = mpc toggle
end
begin
prog = irexec
button = Volume-Up
config = mpc volume +2
end
begin
prog = irexec
button = Volume-Down
config = mpc volume -2
end
begin
prog = irexec
button = Right
config = mpc next
end
begin
prog = irexec
button = Left
config = mpc prev
end
begin
prog = irexec
button = Up
config = mpc seek +00:00:10
end
begin
prog = irexec
button = Down
config = mpc seek -00:00:10
end
begin
prog = irexec
button = Back
config = mpc repeat on
end
begin
prog = irexec
button = Menu
config = mpc repeat off
end

Code snippet #20

Plain text
begin
prog = irexec
button = <your new button>
config = mpc <command>
end

Code snippet #22

Plain text
000000000000141a 00 Up lircd.conf
000000000000141a 01 Up lircd.conf
0000000000001414 00 Right lircd.conf
0000000000001414 01 Right lircd.conf

Code snippet #26

Plain text
/usr/bin/udisks-glue/dev/null
/var/www/command/worker.php/dev/null

sudo -u pi irexec -d

exit 0

Code snippet #27

Plain text
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=justboom-digi
# Enable the lirc-rpi module

# Override the defaults for the lirc-rpi module

Github

Credits

Francesco Vannini
9 projects • 19 followers

Comments