Skip to content

Commit

Permalink
LIRC configuration for Odroid C2
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Apr 28, 2016
1 parent 303ace0 commit 8a68ed2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards.sh
Expand Up @@ -55,6 +55,14 @@ install_board_specific (){

fi

if [[ $BOARD == "odroidc2" ]] ; then
sed -i 's/MODULES=.*/MODULES="meson-ir"/' $CACHEDIR/sdcard/etc/lirc/hardware.conf
sed -i 's/LOAD_MODULES=.*/LOAD_MODULES="true"/' $CACHEDIR/sdcard/etc/lirc/hardware.conf
sed -i 's/DEVICE=.*/DEVICE="\/dev\/lirc0"/' $CACHEDIR/sdcard/etc/lirc/hardware.conf
sed -i 's/LIRCD_ARGS=.*/LIRCD_ARGS="--uinput"/' $CACHEDIR/sdcard/etc/lirc/hardware.conf
cp $SRC/lib/config/lirc.conf.odroidc2 $CACHEDIR/sdcard/etc/lirc/lircd.conf
fi

# Armada
if [[ $BOARD == "armada" ]] ; then
chroot $CACHEDIR/sdcard /bin/bash -c "apt-get -y -qq remove --auto-remove lirc linux-sound-base alsa-base alsa-utils bluez>/dev/null 2>&1"
Expand Down
13 changes: 13 additions & 0 deletions config/lirc.conf.odroidc2
@@ -0,0 +1,13 @@
#
# Default remote controller for Armbian
#
# HardKenrel IR Remote
#

begin remote

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

0 comments on commit 8a68ed2

Please sign in to comment.