Moderator: flatmax
-
Lyonel
- Posts: 3
- Joined: Fri Dec 09, 2016 7:03 pm
Post
by Lyonel » Fri Dec 09, 2016 7:13 pm
Hello,
I currently use the audio Injector card on my Raspberry with Liquidsoap to stream an audio stream to an Icecast server.
Liquidsoap starts at the start but I have no sound. I have to re-run the script:
Code: Select all
$ alsactl --file /usr/share/doc/audioInjector/asound.state.RCA.thru.test restore
to get sound on my stream.
How to make everything run every time you reboot?
-
flatmax
- Posts: 609
- Joined: Sat Jul 23, 2016 11:39 pm
Post
by flatmax » Wed Dec 14, 2016 5:32 pm
What happens if you run :
alsactl store
Does it reboot using the stored settings ?
Not sure ('cause I am not in front of my desk now) but it may have to be run as super user :
sudo alsactl store
Matt
-
Lyonel
- Posts: 3
- Joined: Fri Dec 09, 2016 7:03 pm
Post
by Lyonel » Thu Dec 15, 2016 6:22 pm
sudo alsactl store -> Sudo reboot = No sound
-
flatmax
- Posts: 609
- Joined: Sat Jul 23, 2016 11:39 pm
Post
by flatmax » Thu Dec 15, 2016 9:41 pm
Not sure why your system is behaving differently to the norm.
One suggestions is to edit .config/lxsession/LXDE-pi/autostart
Add : @alsactl --file /usr/share/doc/audioInjector/asound.state.RCA.thru.test restore
to the file and test it works, should apply that command for you each time you restart.
Matt
-
Lyonel
- Posts: 3
- Joined: Fri Dec 09, 2016 7:03 pm
Post
by Lyonel » Fri Dec 16, 2016 12:12 am
it does not work
-
flatmax
- Posts: 609
- Joined: Sat Jul 23, 2016 11:39 pm
Post
by flatmax » Tue Dec 20, 2016 10:56 am
OK - hmmm ...
It is possible something is resetting your mixer after startup ... the autostart script is meant to run the alsactl restore command at boot time. One would assume that it has been run and has setup the mixer into the correct state. Is it possible that another process is starting after the autostart script and messing with the mixer ?
Have you installed any audio apps which may be doing this ?
Matt
Who is online
Users browsing this forum: No registered users and 5 guests