Multiple USB devices on boot: Now it works!

We have finally solved the problem of booting zynthian with several USB devices (keyboards, etc.) connected.

The solution was proposed by @riban, but i missed to read the thread and the fix didn’t get implemented:

Report Multiple USB connected error on startup. · Issue #81 · zynthian/zynthian-sys · GitHub

Recently the same solution has been re-proposed by @Fitz in:

Hifiberry digi settings by josephfh · Pull Request #85 · zynthian/zynthian-webconf · GitHub

And now, yes!! My eyes are more open after holidays …

I’ve commited the fix that solve the problem for HifiBerry soundcards. People using other soundcards and having this problem should report the device name in this thread, so we can extend the solutions for all supported soundcards. Simply send the output of this command:

aplay -L

Ahh! Important! After updating your zynthian, you should re-configure your soundcard from webconf and reboot your zynthian. For doing that, first select “dummy” soundcard and then your soundcard. If you are using the “kit” configuration, then select your kit, save and reboot.

Thanks @riban & @Fitz!!

Enjoy!!

2 Likes

OK! As i have a zynthian with audioinjector, here comes the report:

root@woodhian:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=audioinjectorpi
audioinjector-pi-soundcard,
Default Audio Device
sysdefault:CARD=audioinjectorpi
audioinjector-pi-soundcard,
Default Audio Device
dmix:CARD=audioinjectorpi,DEV=0
audioinjector-pi-soundcard,
Direct sample mixing device
dsnoop:CARD=audioinjectorpi,DEV=0
audioinjector-pi-soundcard,
Direct sample snooping device
hw:CARD=audioinjectorpi,DEV=0
audioinjector-pi-soundcard,
Direct hardware device without any conversions
plughw:CARD=audioinjectorpi,DEV=0
audioinjector-pi-soundcard,
Hardware device with all software conversions

And it’s already fixed for audioinjector (dtoverlay=audioinjector-wm8731-audio). @mheidt / @wyleu, please confirm if the name is the same for ultra :wink:

Regards,

That’s got to be worth a sound sample at the very least … :face_with_monocle:

Ok definite progress.

for the hifiberry amp2 machine…

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 2: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0
Subdevices: 0/1
Subdevice #0: subdevice #0

for the audio injector machine (zynthian-alm)
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0
Subdevices: 0/1
Subdevice #0: subdevice #0

On zynthian-amp2(7" screen hifi berry Amp2 card)
A power off restart with two MIDI keyboards connected via USB,
still brings up a crashed GUI & no sound but crucially webconf does appear.

You can reboot from the webconf, which kicks a reboot which comes up with the zynthian Error screen showing ip:0 … :slight_smile: briefly. This then clears to normal white boot screen and then into GUI with sound !! on both keyboards . . .!!

no power cycling required!

2 Likes

And now it comes up from a Power Off cleanly; well done folks !!!
Have a big wet smoochy kiss :heart_eyes:

2 Likes

Just as confirmation …

3 Likes