I have an audio related problem that I have not been able to resolve. I have searched and read post here on the qlcplus blog but I have not been able to solve the problem. I hope someone can help me and I hope they do not bother to open a topic related to audio when there are already topics related to this, but as I said before, I already read them and I have not been able to solve the problem.
I am using an raspberrypi4 of 8gb ram, and built the qlcplus from github and the binaries. I have installed an hdmi screen to the raspberry, and I have programmed routines of lighting effects in QlcPlus to the rhythm of music.
The program that I made in qlcplus with integrated music is executed at the start of the raspberry in kiosk mode through a script sh and crontab -e, also create a shortcut on the raspbian desktop in case the user wants to execute by clicking.
The problem I have, the audio is not heard at the boot of the raspberry.
It works correctly when I close the qlcplus application in kiosk mode and reopen, either from the launcher (direct access) or by executing the script from the terminal, in both cases the audio works correctly, but from the start it does not works.
What I have done is this:
Starting qlcplus in kiosk mode at raspberry4 boot with crontab -e:
Code: Select all
# m h dom mon dow command
@reboot sh /home/pi/run.sh
Code: Select all
#! / bin / bash
cd / home / pi
sleep 10
export DISPLAY =: 0.0
qlcplus -k -w -f -o /home/pi/hello.qxw -p -c 1220,690,32,32
cd / home / pi
But I also had to add this:
"THIS IS THE SOLUTION FOR THOSE WHO HAVE NOT BEEN ABLE TO RUN QLCPLUS SINCE THE RASPBIAN BOOT IN KIOSK MODE WITH HDMI"
sudo nano /home/pi/.bashrc
Code: Select all
# I added these lines to the end of the file.
export XAUTHORITY = / home / pi / .Xauthority
export DISPLAY =: 0.0
xhost +
I hope someone can advise me something. I thank you very much, greetings and good day friends ..