-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pCP won't start when DAC is powered off #173
Comments
Hello @ralph-irving ! I wonder if you ever had the chance to check my writeup. Do you need any additional clarification? is there any additional input that I could provide? thanks! |
@marcgarciamarti, that does seem to be a squeezelite but a piCorePlayer configuration issue. I have observed similar issues when squeezelite was started before the system detected the sound card. |
In actual fact pCP starts, but not Squeezelite. This means that Squeezelite will close its output 1 second after you stop listening to your music. When you then switch off the DAC, Squeezelite will not notice and keeps running until your next listening session… assuming you leave pCP always on, like I do. Using it like this for ages and works fantastic. Good luck. |
Just a note, Klipsch "The One Plus" (and presumably the "The Three Plus") has a USB DAC which disconnects when the speaker's input is switched away from USB (to bluetooth or aux, etc.) This means squeezelite won't start properly unless the speaker is on and switched to USB input. This confused me until I did some digging and found issues like this. It'd be nice if Squeezelite could start up without the device present, but for now I'll try the script to autostart squeezelite as described here. |
Squeezelite will start with the dac off if you use the name of the device with the -o option not the index number and you specify the supported sample rates using -r on the command line. For example with device unplugged. $ squeezelite -o hw:CARD=DAC -d all=info
$ squeezelite -o hw:CARD=DAC -r 192000 -d all=info
|
Oh wow. Using the -r is even better in my case than using the -C option. Edit: The -C option remains necessary in case the DAC is switched off before the RPi, in which case Squeezelite keeps running but loses the connection with the DAC. The next time the DAC is switched on again Squeezelite needs to be restarted. |
Hello!
I have an external DAC but this behaviour has been observed with both my external DAC (Topping E50) and with the DAC which is built into my Cambridge CXA61.
If the RPI3B+ where pCP is deployed is off (aka, power cable disconnected from the wall), and I power it on, pCP boots up but it won't find the audio device that I have set up in my preferences (because the DAC is not detected). I guess it has to do with how Linux and ALSA are designed, but I don't know.
The only solution I've found is:
What would I expect?
I would expect for pCP to be able to come up nicely, and continuously ping for the DAC. Once the DAC comes back on, I would expect for pCP to detect the change and do the needed to prepare itself for music playback.
What have I tried?
I applied the recommendations found here: https://forums.slimdevices.com/showthread.php?109934-LMS-could-not-reestablish-any-USB-connection-after-USB-Dac-is-disconnected&p=930865&viewfull=1#post930865
I also followed this article: https://docs.picoreplayer.org/projects/autostart-squeezelite-from-usb-dac/
but none of these two suggestions have managed to address my problem
I hope you guys can give me a hand. Thank you!!
The text was updated successfully, but these errors were encountered: