Open probonopd opened 2 years ago
Checking "RBPi Headphones: " in Hardware -> Audio does not make a difference.
https://wiki.zynthian.org/index.php/Configuration_Users_Guide#Audio says
Audio is probably the setting that most affects the behaviour. Get it wrong and the GUI probably won’t start (You'll see an error display). Luckily the webconf allows you to set the device up in spite of a non start of the GUI and the generic USB will generally work. If it doesn’t you will need to play around with the USB alsa settings. Understanding of the jackd start up settings is probably what’s required. It’s normally the hw: setting.
Argh.
Selecting "Dummy Device" in Hardware -> Audio and rebooting does no longer crash the user interface.
But how can I get the C-Media USB audio device to work?
There is still the default -P 70 -t 2000 -s -d alsa -d hw:0 -r 44100 -p 256 -n 2 -X raw
. This is all Chinese to me. (I chose Zythian so that I wouldn't have to spend hours fighting stuff like this...)
root@zynthian:~# cat /proc/asound/cards
(...)
4 [Set ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-0000:01:00.0-1.1, full speed
With another, almost identically looking, device I get:
3 [Device ]: USB-Audio - USB PnP Sound Device
USB PnP Sound Device at usb-0000:01:00.0-1.1, full speed
After a lot of trial and error, going to http://zynthian.local/hw-audio, selecting "Generic Usb Device" and changing the "Jackd Options:" line there to -P 70 -t 2000 -s -d alsa -d hw:Set -r 44100 -p 256 -n 2 -X raw
worked for me.
I can only guess that one has to run cat /proc/asound/cards
, and use the string in [...]
as the -d hw:...
parameter.
It is totally unclear what the -d
parameter needs to be, and why the web interface doesn't just show Jabra SPEAK 510 USB
nor C-Media USB Headphone Set
as options from some drop-down menu and rather requires one to guess cryptic command line options out of thin air.
After making some changes on http://zynthian.local/hw-audio the system becomes unresponsive and/or reboots and/or an existing ssh connection is just closed. This is not user-friendly and make it seem like the system is crashing all the time, especially when making sound hardware related changes.
Also, it would be nice if the last/only plugged in USB sound card would be detected and configured automatically. Plug and play!
Also, it is beyond me why merely changing to another USB sound device would require a reboot of the whole system which it apparently does. On other systems (e.g., the Mac) this works on-the-fly, instantly.
Having to wait minutes(!) after every chnage is making trial-and-error and working with multiple USB sound devices very cumbersome.
https://discourse.zynthian.org/t/audio-setup/2647/41
Only selecting Generic USB Device seems to get me nowhere and I can’t find any hints or documentation how to get this soundcard as an Generic USB Device connected.
Looking at https://forums.raspberrypi.com/viewtopic.php?t=37873, the line
options snd-usb-audio index=-2
should be commented out so that USB sound devices can appear as device 0, giving the default -d hw:0
even the slightest chance to work. Also, I wonder whether -d plughw:0
would be more universally compatible with various USB sound devices.
TL;dr: "Generic Usb Device" should automatically detect the attached USB sound devices and select the one that was plugged in last, and offer the detected USB sound devices in a drop-down menu rather than relying on cryptic command line parameters.
Describe the bug
Crashes out of the box on RPi 4. I have no hardware other than
I want to play on the M-Audio Keystation Mini 32 and hear the sound on the C-Media USB sound card.
I chose Zythian in the hope that everything would just work right out of the box because setting up Jack manually is such a pain.
To Reproduce Steps to reproduce the behavior:
http://zynthian.local/
systemctl stop zynthian && /zynthian/zynthian-sys/sbin/zynthian.sh
Getting a big red "ERROR" screen on HDMI, showing the IP address of the device.
Expected behavior
Zynthian is launched and I can see its GUI
Screenshots If applicable, add screenshots to help explain your problem.
Setup:
zynthianos-last-stable.zip
as of todayAdditional context
Why do I get
jack server is not running or cannot be started
?