Look for your sound card device in the list (mine is showing as "Roland Corp."), and note the two hex numbers after ID. Hubīus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub You should see something like this: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubīus 001 Device 003: ID 0582:01d6 Roland Corp.īus 001 Device 002: ID 2109:3431 VIA Labs, Inc. We want this to happen automatically, though, so it is time to use udev - the system for managing Linux device events.įirst, you need to know some information about your USB audio device. I'm running the service as root - if you want to use a different user, change the "User=" line. Now (or at least after you reboot, or do ' sudo systemctl daemon-reload', you can start and stop jackd with ' sudo systemctl start rvice' and ' sudo systemctl stop rvice'. Create a file called ' /etc/systemd/system/rvice' with the following: This solution is composed of two parts: 1) set up jackd as a systemd service, and 2) use a udev rule to start the service when the sound card is connected.įirst the service. It took me long enough to sort out the details that I figured I'd write up a little how-to. There are a lot of ways to try to do this - after a few false starts, I ended up with this method. I have a Raspberry Pi that I'm using headless for audio, and I wanted to automatically start jackd when I connected my USB audio device. Not sure what needs to be done to get the interface working reliably. Sometimes it worked fine, sometimes only playback worked, and sometimes only capture worked. It initially worked perfectly, but I found after more testing that it is sporadic. Update: As a last ditch effort, I gave the interface a try with the aforementioned kernel patch on my Raspberry Pi 4, which was running about a year old kernel version. If anyone has more luck with this interface down the road, please let me know. I also had no success getting it to work with Android - even with some of the apps that have their own custom USB audio implementation. It at least resulted in a kernel patch to enable audio capture. The discussion on the alsa-devel mailing list can be found here: I have admitted defeat and will be returning the device. Everything seems to be operating correctly, but the device produces no audio output over USB. After some back and forth with the maintainer of the Linux kernel sound subsystem, we managed to get audio capture working, but never managed to get playback working. Unfortunately, it did not work out of the box. I picked up a NUX MG-300 guitar effects unit with high hopes that it would work under Linux, since it is supposed to be a class-compliant USB audio device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |