RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - kit1cat - 11-27-2018
(11-27-2018, 02:48 PM)rikardo1979 Wrote: (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 I have checked and the 4 files in lirc zip have been copied to /etc/lirc.
lircd.conf, lircmd.conf, lirc_options.conf and lircrc.
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - rikardo1979 - 11-27-2018
(11-27-2018, 03:07 PM)kit1cat Wrote: (11-27-2018, 02:48 PM)rikardo1979 Wrote: (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 I have checked and the 4 files in lirc zip have been copied to /etc/lirc.
lircd.conf, lircmd.conf, lirc_options.conf and lircrc.
can you please read the files and compare that these have been overwritten?
you can use cmd cat or nano if you like
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - kit1cat - 11-27-2018
Can confirm that the four files in /etc/lirc read the same as the four files in lirc.zip.
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - rikardo1979 - 11-27-2018
do you see an output to keypresses in irw?
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - kit1cat - 11-27-2018
(11-27-2018, 04:09 PM)rikardo1979 Wrote: do you see an output to keypresses in irw?
Sorry, you have lost me. What is irw?
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - rikardo1979 - 11-27-2018
(11-27-2018, 04:19 PM)kit1cat Wrote: (11-27-2018, 04:09 PM)rikardo1979 Wrote: do you see an output to keypresses in irw?
Sorry, you have lost me. What is irw?
type irw command in terminal and after each press of the button should be displayed if detected
Code: pi@moode:/etc/lirc $ irw
0000000077e1b055 00 KEY_DOWN RaspdacMini
0000000077e1d055 00 KEY_UP RaspdacMini
0000000077e1d055 01 KEY_UP RaspdacMini
0000000077e11055 00 KEY_LEFT RaspdacMini
0000000077e11055 01 KEY_LEFT RaspdacMini
0000000077e1e055 00 KEY_RIGHT RaspdacMini
0000000077e1ba55 00 KEY_ENTER RaspdacMini
0000000077e14055 00 KEY_MENU RaspdacMini
0000000077e17a55 00 KEY_PLAY RaspdacMini
[2]+ Stopped irw
If you would see nothing you have something wrong somewhere in the install process
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - kit1cat - 11-27-2018
(11-27-2018, 04:22 PM)rikardo1979 Wrote: (11-27-2018, 04:19 PM)kit1cat Wrote: (11-27-2018, 04:09 PM)rikardo1979 Wrote: do you see an output to keypresses in irw?
Sorry, you have lost me. What is irw?
type irw command in terminal and after each press of the button should be displayed if detected
Code: pi@moode:/etc/lirc $ irw
0000000077e1b055 00 KEY_DOWN RaspdacMini
0000000077e1d055 00 KEY_UP RaspdacMini
0000000077e1d055 01 KEY_UP RaspdacMini
0000000077e11055 00 KEY_LEFT RaspdacMini
0000000077e11055 01 KEY_LEFT RaspdacMini
0000000077e1e055 00 KEY_RIGHT RaspdacMini
0000000077e1ba55 00 KEY_ENTER RaspdacMini
0000000077e14055 00 KEY_MENU RaspdacMini
0000000077e17a55 00 KEY_PLAY RaspdacMini
[2]+ Stopped irw
If you would see nothing you have something wrong somewhere in the install process
Yes, all key strokes are showing in irw.
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - kit1cat - 11-28-2018
Managed to download a fully working image from here.
http://forum.audiophonics.fr/viewtopic.php?f=12&t=1777
Will check through my files and see if I spot the problem with the remote and spdif.
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - kit1cat - 11-29-2018
The four files contained in Lirc.zip are different to the corresponding files in the moode 4.3 image I downloaded, I think this is the problem? I copied the four files from the moode 4.3 image to the manual build I have been working on. When I then booted the pi some of the keys on the remote worked. Looks like Lirc.zip needs to be updated?
Can confirm that the 4.3 image I downloaded is working well.
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - rikardo1979 - 11-29-2018
@kit1cat
Strange what is happening in yours. I have double check all the files from the lirc.zip I have uploaded and these are modified files which should goes into your system and replace the original one
Here is how the content of the files looks like
lircd.conf
Code: begin remote
name RaspdacMini
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9047 4480
one 603 1664
zero 603 531
ptrail 603
repeat 9047 2226
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0x55
gap 108227
toggle_bit_mask 0x0
begin codes
KEY_LEFT 0x10
KEY_RIGHT 0xE0
KEY_UP 0xD0
KEY_DOWN 0xB0
KEY_ENTER 0xBA 0x20
KEY_MENU 0x40
KEY_PLAY 0x7A 0x20
end codes
end remote
lircmd.conf
Code: Populated config files can be http://sf.net/p/lirc-remotes. The
# irdb-get(1) and lirc-setup(1) tools can be used to search and download
# config files.
lircd.conf
lirc_options.conf
Code: # These are the default options to lircd, if installed as
# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)
# manpages for info on the different options.
#
# Some tools including mode2 and irw uses values such as
# driver, device, plugindir and loglevel as fallback values
# in not defined elsewhere.
[lircd]
nodaemon = False
driver = default
device = /dev/lirc0
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
#effective-user =
#listen = [address:]port
#connect = host[:port]
#loglevel = 6
#uinput = ...
#release = ...
#logfile = ...
[lircmd]
uinput = True
nodaemon = False
# [modinit]
# code = /usr/sbin/modprobe lirc_serial
# code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput
# code2 = ...
# [lircd-uinput]
# release-timeout = 200
lircrc
Code: begin
prog = irexec
button = KEY_ENTER
config = /usr/bin/mpc stop
end
begin
prog = irexec
button = KEY_UP
config = /usr/bin/mpc volume + 1
delay = 2
repeat = 3
end
begin
prog = irexec
button = KEY_DOWN
config = /usr/bin/mpc volume - 1
delay = 2
repeat = 3
end
begin
prog = irexec
button = KEY_RIGHT
config = /usr/bin/mpc next
end
begin
prog = irexec
button = KEY_LEFT
config = /usr/bin/mpc previous
end
begin
prog = irexec
button = KEY_MENU
config = sudo /home/pi/spdif.sh
end
begin
prog = irexec
button = KEY_PLAY
config = /usr/bin/mpc toggle
delay = 2
repeat = 3
end
Any chance you have mixed up those files?
|