11-27-2018, 03:07 PM
(11-27-2018, 02:48 PM)rikardo1979 Wrote:I have checked and the 4 files in lirc zip have been copied to /etc/lirc.(11-27-2018, 01:41 PM)kit1cat Wrote: Started with a fresh moode 4.3 image. Screen and Dac working but still no luck with the remote. Below is a list of the mod's I made to the various files. Perhap's I missed something? Not sure were to go from hear? Like I said before remote is working under Volumio.
/etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
spi-dev
lirc_dev
lirc_rpi gpio_in_pin=4
-------------------------------------------
/boot/config.txt
disable_splash=1
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=i-sabre-k2m
dtparam=spi=on
#dtoverlay=rpi-dac
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt
dtoverlay=lirc-rpi,gpio_in_pin=4
-----------------------------------------------
/etc/rc.local
#!/bin/sh -e
#
# moOde audio player © 2014 Tim Curtis
# http://moodeaudio.org
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# 2018-01-26 TC moOde 4.0
#
/usr/bin/irexec -d /etc/lirc/lircrc
SQLDB=/var/local/www/db/moode-sqlite3.db
# set cpu govenor
RESULT=$(sqlite3 $SQLDB "select value from cfg_system where param='cpugov'")
echo "$RESULT" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
/usr/bin/udisks-glue > /dev/null 2>&1
/var/www/command/worker.php > /dev/null 2>&1
exit 0
-----------------------------------------------
/home/pi/spdif.sh
#!/bin/bash
# Audiophonics
if [[ `amixer sget -c 0 'I2S/SPDIF Select' | grep Item0: | awk '{print $2}' ` == *I2S* ]]
then amixer sset -c 0 'I2S/SPDIF Select' SPDIF
else amixer sset -c 0 'I2S/SPDIF Select' I2S
fi
make sure you copy all files into /etc/lirc and replace the original ones! This is crucial
lircd.conf, lircmd.conf, lirc_options.conf and lircrc.