Forum Replies Created
-
Posted in: Allo USB Bundle
-
28. Juli 2017 at 2:33 #30223
Hi,
is there any update or more information now, how to change the VU-Meter in max2play with the console?
regards,
Carsten26. Juli 2017 at 14:44 #30168Hi Heiner,
UPDATE!!
it works now.
What I change:
copy the file lircrc from /home/pi to /etc/lircchange my script from echo’DISPLAY=:0 irxevent -d /home/pi/lircrc’ to echo’DISPLAY=:0 irxevent -d /etc/lirc/lircrc’
after that everything works as I like.
thx for support.
regards
Carsten26. Juli 2017 at 14:28 #30167Hi Heiner,
yes the LIRC implementation is checked, but I modify the config.txt in /boot.
I change it to GPIO=17 and remove the GPIO OUT. I use a Hifiberry Digi+.
I told that everything works fine if I use this command in a shell:
DISPLAY=:0 irxevent -d /home/pi/lircrc, so my problem know is, that after a reboot of the raspbian OS,
i have todo it every time. I need help for a implementation of this command that it works after any reboot without my doing in the shell.- This reply was modified 7 years, 4 months ago by relgi.
25. Juli 2017 at 20:42 #30153Hi Heiner,
everything with my remote control works fine, if I wrote in the shell of the remote session this:
DISPLAY=:0 irxevent -d /home/pi/lircrc
but after a reboot of the Raspberry PI3, I have to do it every time again.
My Problem is, to do that string anywhere in the boot sequence.
I try it as a script whit crontab like follow:
#!/bin/bash
### BEGIN INIT INFO
# Provides: fb.sh
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts & Stops fb.sh
# Description: Starts & Stops fb.sh
### END INIT INFO# Nur asuführen wenn jivelite im Autostart
autostart=$(grap -a „jivelite=1“ /opt/max2play/autostartconf | wc -l)
if [ $autostart -eq 0 ];
then
echo „Jivelite nicht im Autostart – irxevent wird nicht gestartet!“
exit 0
fi# Warten bis jivelite gestartet ist
while [ -z „$(pidof jivelite)“ ];
do
sleep 1
done# Warten bis Lircd gestartet ist
while [ -z „$(pidof lircd)“ ];
do
sleep 1
doneif [ -z „$(pidof irxevent)“ ];
then
echo „Starte irxevent!“
echo ‚DISPLAY=:0 irxevent -d /home/pi/lircrc‘
else
echo „Starte irxevent neu!“
echo ’sudo kill „$(pidofirxevent)“‚
sleep 1
echo’DISPLAY=:0 irxevent -d /home/pi/lircrc‘
fiexit 0
The script name is fb.sh and that is the crontab config:
@reboot /home/pi/fb.sh
I don’t know what is wrong in my script.
regards
Carsten- This reply was modified 7 years, 4 months ago by relgi.
25. Juli 2017 at 4:50 #30117I try your script with crontab and also with LXDE Autostarts but the irxevent doesn’t work for me.
If I use the command „DISPLAY=:0 irxevent -d /home/pi/lircrc“ in a shell that works.
can you help me?
regards
Carsten -