Line in on boot

Moderator: flatmax

Post Reply
stebod
Posts: 11
Joined: Sat Jul 22, 2017 5:31 am

Line in on boot

Post by stebod » Sat Jul 29, 2017 10:52 pm

Hi line in and mic need to be enabled manually in preferences audio device settings even after making default. I need line in to work from boot without having to go in and manually enable this setting, i have entered alsactl --file /usr/share/doc/audioInjector/asound.state.RCA.thru.test restore but nothing changed, every time i switch on or restart i have to tick the line in box to enable it

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Line in on boot

Post by flatmax » Sat Jul 29, 2017 11:43 pm

It is likely that this has something to do with the Pi's operating system "lxpanel" software. In the past we have noticed lxpanel obliterating .asoundrc files :
https://github.com/raspberrypi-ui/lxpanel/issues/13

That thread suggests that there are plugins which are operating which override the standard ALSA mode of operation. I am cross linking this thread to that thread to see if we can get more advice from them.

I am wondering if lxpanel also messes with mixer settings obliterating standard alsactl methodologies ?

I have logged an issue with lxpanel asking for help.
https://github.com/raspberrypi-ui/lxpanel/issues/14

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

stebod
Posts: 11
Joined: Sat Jul 22, 2017 5:31 am

Re: Line in on boot

Post by stebod » Sun Jul 30, 2017 1:36 am

cheers matt i hope we get this sorted

IrwinAllen13
Posts: 13
Joined: Sun Jul 30, 2017 5:05 am

Re: Line in on boot

Post by IrwinAllen13 » Sun Jul 30, 2017 9:49 am

Good Day All,

I had the same problem at first.

I discovered if I set Line through the alsamixer, followed by:

Code: Select all

sudo alsactl store
everything stayed set to line in.

Hope that helps.

stebod
Posts: 11
Joined: Sat Jul 22, 2017 5:31 am

Re: Line in on boot

Post by stebod » Sun Jul 30, 2017 6:55 pm

Hey Matt after reading the replies do you think there can be fix for this or possible work around ?

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Line in on boot

Post by flatmax » Sun Jul 30, 2017 11:55 pm

Can you give IrwinAllen13's approach a test again ?
I think it will be messed up when you change something in the lxpanel volume plugin (top right volume icon) although I could be mistaken.

Otherwise we have to learn how to remove the volume plugin from lxpanel ... and possibly other things - what do you think ?

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

stebod
Posts: 11
Joined: Sat Jul 22, 2017 5:31 am

Re: Line in on boot

Post by stebod » Mon Jul 31, 2017 2:34 am

I will try that and post the results

stebod
Posts: 11
Joined: Sat Jul 22, 2017 5:31 am

Re: Line in on boot

Post by stebod » Mon Jul 31, 2017 9:32 pm

Since installing pulseAudio because of the little endian script problem i cant get into alsamixer

pi@raspberrypi:~ $ alsamixer
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied

cannot open mixer: Connection refused

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Line in on boot

Post by flatmax » Tue Aug 01, 2017 9:27 am

ok - that is a strange problem !

I have been disabling the lxpanel's volume control like so :

Code: Select all

sed -i 's/\=volumealsa/\=REMOVEvolumealsa/' ~pi/.config/lxpanel/LXDE-pi/panels/panel
I also uninstall pulseaudio:

Code: Select all

sudo apt remove pulseaudio
can you check your device is present ? Does aplay -l report it ?

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests