Synth Forum

Notifications
Clear all

CP88 on Linux

9 Posts
4 Users
0 Likes
2,001 Views
Posts: 0
New Member
Topic starter
 

Hi all,

Has anyone had any experience getting usb audio from the CP88 to work in Linux. I thought the audio interface was usb audio class compliant, but I've had issues getting it to work consistently on Ubuntu 18.04. It works for a while and alsa recognizes it, but after using it for a few minutes the audio just drops out and a reboot is needed to get it to work again. Any advice, similar experiences, or fixes?

Thanks!

 
Posted : 04/06/2020 1:40 am
Jason
Posts: 7910
Illustrious Member
 

Maybe install something like this:

$ sudo apt-get install pavucontrol

It should show you the audio routing. Some users have reported audio switching to HDMI output or something else unexpected - and this program should allow for you to diagnose that sort of thing.

I'm guessing you should get the same kind of information from "alsamixer" - not sure why I've seen a suggestion of the above utility.

You could try reinstalling audio.

sudo apt-get remove --purge alsa-base
sudo apt-get remove --purge pulseaudio
sudo apt-get install alsa-base
sudo apt-get install pulseaudio
sudo alsa force-reload

... or just "sudo alsa force-reload" by itself to see if that restores function (although probably temporarily).

I don't use linux with my audio setup - so I haven't had first-hand experience of this issue.

 
Posted : 04/06/2020 2:42 am
Posts: 0
New Member
Topic starter
 

Thank you very much for the reply! I have tried the steps you indicated but, unfortunately, they did not work. To be more specific about the issue, sound output works from the computer to the keyboard via its usb interface for approx. 75 seconds. At that point, there is a small "pop" sound and sounds no longer play through the keyboard unless the usb is unplugged/re-plugged or the computer is restarted. I have used a completely different usb audio interface that works fine without issue.

I have tested this issue quite a bit over the last few days by using the aplay command to play a wav file and to direct output to a specific interface (aplay -Dsysdefault:CP88CP73 -vv file.wav). I have tried other players and audio files too with the same result. When the issue happens I notice that after the sound stops, the audio player app still shows that it is still playing the audio. Regardless of whether I use jack, pulseaudio, or even alsa directly without audio server on top, I still run into the same issue. I have experienced the issue in Ubuntu 18.04, Linux Mint 19, and Ubuntu 20.04. I started thinking that it may be a usb suspend setting (more recent kernels enable this by default). However, disabling this for the keyboard (using these instructions - https://hamwaves.com/usb.autosuspend/en/index.html) did not help. I am out of troubleshooting ideas at the moment but, if anyone can think of anything, please do let me know.

 
Posted : 10/06/2020 12:48 am
Jason
Posts: 7910
Illustrious Member
 

There's also this:

sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/&usbcore.autosuspend=-1 /' /etc/default/grub

update-grub

systemctl reboot

 
Posted : 10/06/2020 3:52 am
Posts: 0
New Member
 

Thank you very much for the reply! I have tried the steps you indicated but, unfortunately, they did not work. To be more specific about the issue, sound output works from the computer to the keyboard via its usb interface for approx. 75 seconds. At that point, there is a small "pop" sound and sounds no longer play through the keyboard unless the usb is unplugged/re-plugged or the computer is restarted. I have used a completely different usb audio interface that works fine without issue.

I've been plagued by this same behavior too. But I've found a "workaround". Usually I'm working with Ardour over Jack and suddenly I hear a "pop" and sound stops. So I close Ardour, open a web browser, go to YouTube and start any video. After that, sound is restored and I can open Ardour again and continue working. Terrible workaround, but it's better than to reboot. I'll try to report this somewhere (probably the kernel bug tracker). When I do that, I'll post here so we can track it better.

 
Posted : 09/12/2020 4:07 pm
Jason
Posts: 7910
Illustrious Member
 

Also, not sure if you'd fare any better starting with a distro that was built with audio in mind. Something like AVLinux or similar (there are several Audio/Video focused distributions out there). The thought would be that users of these distros are more concerned with having functional audio interfaces without pops and artifacts and that the maintainer(s) would be working to address these as a higher priority vs. the more generic flavors of Linux.

Not that you couldn't "roll your own" from the more generic starting point. However, it may be easier to start with a more dedicated build with most of this sorted out first.

 
Posted : 09/12/2020 4:19 pm
Posts: 0
New Member
 

Also, not sure if you'd fare any better starting with a distro that was built with audio in mind. Something like AVLinux or similar (there are several Audio/Video focused distributions out there).

Yes, I've tested it with Ubuntu Studio, 20.04 edition.

 
Posted : 13/12/2020 2:10 pm
Posts: 0
New Member
 

Any updates on howto resolve this by any chance? I recently ran into the exact same issue and tried similar fixes, none worked. Similarly to Joshua I tested multiple Ubuntu 18.04/20.04 based distros, tried to use jack or alsa, and disabled usb autosuspend:(.

 
Posted : 26/03/2021 5:25 am
Posts: 0
New Member
 

I've been using it successfully with Pipewire instead of Pulseaudio and Jack. For Ubuntu users, I don't know if there's an easy way to install an updated enough version of Pipewire, but I would recommend trying it.

 
Posted : 28/09/2021 10:19 pm
Share:

© 2024 Yamaha Corporation of America and Yamaha Corporation. All rights reserved.    Terms of Use | Privacy Policy | Contact Us