Hi everybody,
I'm trying to run my rather complex Pd patch on an Up Board (x5-Z8350 CPU,32GB eMMC, 4GB RAM). The board has the RPi formfactor but is much more powerful.
The up board comes with ubilinux (64bit debian version especially for the Up Board). After spending a lot of time with ubilinux and the normal debian9.1 (64bit) I couldn't stop it from constantly crashing when I opened my patch - for some unknown reason. As long as I was using ubilinux sound (alsa) was working at least. Not so with debian, though.
After giving up with the 64bit OS I installed debian 9.1 (32bit) and it's running perfectly stable as before with my old amd hardware. No more crashes! All externals (except for "iemlib/mp3play~" and "toxy/tot" [not to be found anymore]) are working as expected. However, with the normal debian alsa is NOT giving me any sound!
Then I compiled the kernel with oss but oss is not producing any sound either.
I installed alsa-utils, alsa-base and alsa-tools-gui. I removed pulseaudio and I made sure alsa-utils would get started on startup (which it doesn't by default).
Here is what I get from pd when turn on alsa:
ALSA input error (snd_pcm_open): No such file or directory ALSA output error (snd_pcm_open): No such file or directory
The (external USB-)sound card does show up in the drop down menu of Pd's audio settings for selection, though. So it is regognized both by pd and the operating system. I tried several different USB sound cards with the same result.
Here is what I get when I try to open alsamixer from the LXTerminal:
error when opening mixer: No such file or directory (original in German: Fehler beim Öffnen des Mixer-Gerätes: Datei oder Verzeichnis nicht gefunden)
When I use portaudio I'm actually getting sound but it is very quiet as the sound output is turned down by the system during start up. I can't find any way to turn the volume of the sound card up, though since I cannot open any mixer.
Does anybody have an idea how I can get alsa to work? Debian tells me that "alsa-utils" and "alsa-base" is already installed with the newest version (1.1.3-1 and 1.0.27+1).
Thanks, Ingo
On 10/06/2017 11:39 PM, Ingo wrote:
Hi everybody,
I'm trying to run my rather complex Pd patch on an Up Board (x5-Z8350 CPU,32GB eMMC, 4GB RAM). The board has the RPi formfactor but is much more powerful.
The up board comes with ubilinux (64bit debian version especially for the Up Board). After spending a lot of time with ubilinux and the normal debian9.1 (64bit) I couldn't stop it from constantly crashing when I opened my patch - for some unknown reason.
it would be interesting to know why that is happening. e.g. by producing a stacktrace via gdb. (from a dev perspective i find this a much more interesting problem to solve than "why is my ALSA not working")
After giving up with the 64bit OS I installed debian 9.1 (32bit) and it's running perfectly stable as before with my old amd hardware. No more crashes!
amd hardware? what happened to the up-board?
All externals (except for "iemlib/mp3play~"
what's wrong with mp3play~?
and "toxy/tot" [not to be found anymore]) are working as expected. However, with the normal debian alsa is NOT giving me any sound!
Then I compiled the kernel with oss but oss is not producing any sound either.
did you try jack?
Here is what I get from pd when turn on alsa:
ALSA input error (snd_pcm_open): No such file or directory ALSA output error (snd_pcm_open): No such file or directory
The (external USB-)sound card does show up in the drop down menu of Pd's audio settings for selection, though. So it is regognized both by pd and the operating system. I tried several different USB sound cards with the same result.
Here is what I get when I try to open alsamixer from the LXTerminal:
error when opening mixer: No such file or directory (original in German: Fehler beim �ffnen des Mixer-Ger�tes: Datei oder Verzeichnis nicht gefunden)
When I use portaudio I'm actually getting sound but it is very quiet as the sound output is turned down by the system during start up. I can't find any way to turn the volume of the sound card up, though since I cannot open any mixer.
Does anybody have an idea how I can get alsa to work? Debian tells me that "alsa-utils" and "alsa-base" is already installed with the newest version (1.1.3-1 and 1.0.27+1).
*alsa-base*? Debian>=9 doesn't ship an alsa-base package any more. how did you install it? do you by chance mix some (incompatible) repositories?
what's the output of aplay -l
As I already mentioned I got ALSA and OSS back to work. It was /etc/modprobe.d/alsa-base.conf that was missing.
I'm trying to run my rather complex Pd patch on an Up Board (x5-Z8350 CPU,32GB eMMC, 4GB RAM). The board has the RPi formfactor but is much more powerful.
The up board comes with ubilinux (64bit debian version especially for the Up Board). After spending a lot of time with ubilinux and the normal debian9.1 (64bit) I couldn't stop it from constantly crashing when I opened my patch - for some unknown reason.
it would be interesting to know why that is happening. e.g. by producing a stacktrace via gdb. (from a dev perspective i find this a much more interesting problem to solve than "why is my ALSA not working")
That is definitely true! Each object in all 20 external libraries was working fine by itself. I opened all abstractions and all objects (except for the ones that I mentioned) were there and did what the should do.
Just when I opened the entire patch it would crash.
I'm not sure whether there is any compatibility issues with 64bit on a library or if there is a programming error that doesn't do any harm on a 32bit system but on a 64bit system. Now I need to keep going with the 32bit system since I have been trying to get a small unit together for a long time (2 1/2 years). The patch has thosends of abstractions and sub patches.
I'll probably go back to the 64bit system later to find out what exactly was causing it with a debugger. For the moment I need to keep working on the functioning 32bit system. 64bit is not too important as long as Pd itself is running on 32bit anyway.
After giving up with the 64bit OS I installed debian 9.1 (32bit) and it's running perfectly stable as before with my old amd hardware. No more crashes!
amd hardware? what happened to the up-board?
The AMD board is my current (old) board that I had been using for the last couple of years and will continue to use for systems that need more cpu power. The Up board (with an Intel Atom) will be used for a smaller synth with less voices.
All externals (except for "iemlib/mp3play~"
what's wrong with mp3play~?
It just doesn't build - neither on 64bit nor on 32bit. I'm getting only dotted lines ... (Since this was my smallest problem I didn't investigate any further. It was the version on Deken with Pd 0.47.1) I might replace it with [readanysf~] ...
Then I compiled the kernel with oss but oss is not producing any sound either.
did you try jack?
No. I didn't think it would be worth it if ALSA or OSS wasn't working to begin with. My preferred audio system is OSS anyway. I'm getting less dropouts with a higher CPU load than with ALSA since it's lower level. The last thing that I want on a realtime synth for wind controllers that send up to 600 MIDI CCs per second is a lot of crackling. OSS is definitely doing a better job here than ALSA.
*alsa-base*? Debian>=9 doesn't ship an alsa-base package any more. how did you install it? do you by chance mix some (incompatible) repositories?
Yes! Since kernel-package is not on Debian9 anymore and I needed to recompile the kernel with low latency, timer frequency 1000 and OSS I temporarily added the Jessie repository. That way I succeeded in compiling the kernel to my needs.
Unfortunately I did not find instructions for compiling a kernel without "kernel-package". Compiling worked perfectly like this. At least everything that I need is there now. If anything went wrong it doesn't affect anything that I need.
If the guys at Debian remove packages like "kernel-package" they should at least provide instructions for an alternative way to compile the kernel. Maybe there is something but I couldn't find it in two full days.
Ingo
On 10/07/2017 11:50 AM, Ingo wrote:
It just doesn't build - neither on 64bit nor on 32bit. I'm getting only dotted lines ...
hmm, i don't know what you are doing but the Debian package "pd-iemlib" does provide a file iem_mp3.pd_linux, and once you've loaded the the library with [declare -lib iem_mp3] you can use [mp3play~] just fine.
(Since this was my smallest problem I didn't investigate any further. It was the version on Deken with Pd 0.47.1)
in general i would recommend to use the Debian packages whenever possible, rather than the one provided by deken. at least there you usually have a responsive maintainer that might be interested in fixing any bugs.
gfasmdr IOhannes
Where would I find the official Debian download of pd-iemlib? It might make sense compiling it from source to make sure it's working.
Ingo
-----Original Message----- From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of IOhannes m zmölnig Sent: Saturday, October 07, 2017 7:07 PM To: pd-list@lists.iem.at Subject: Re: [PD] No ALSA or OSS sound with Debian 9.1 (32 and 64bit) on an "Up Board"
On 10/07/2017 11:50 AM, Ingo wrote:
It just doesn't build - neither on 64bit nor on 32bit. I'm getting only dotted lines ...
hmm, i don't know what you are doing but the Debian package "pd-iemlib" does provide a file iem_mp3.pd_linux, and once you've loaded the the library with [declare -lib iem_mp3] you can use [mp3play~] just fine.
(Since this was my smallest problem I didn't investigate any further. It was the version on Deken with Pd 0.47.1)
in general i would recommend to use the Debian packages whenever possible, rather than the one provided by deken. at least there you usually have a responsive maintainer that might be interested in fixing any bugs.
gfasmdr IOhannes
On 10/07/2017 07:56 PM, Ingo wrote:
Where would I find the official Debian download of pd-iemlib?
what's wrong with the following? # apt-get install pd-iemlib
gmdsr IOhannes
PS: for a more pdx-like experience, use # apt-get install multimedia-puredata
On 10/07/2017 08:49 PM, IOhannes m zmölnig wrote:
On 10/07/2017 07:56 PM, Ingo wrote:
Where would I find the official Debian download of pd-iemlib?
what's wrong with the following? # apt-get install pd-iemlib
It might make sense compiling it from source to make sure it's working.
and if the Debian package doesn't work, then it makes more sense to report it, so the maintainer can make sure for all users of the Debian package that it works.
gfanstd IOhannes
OK! Thanks, IOhannes!
-----Original Message----- From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of IOhannes m zmölnig Sent: Saturday, October 07, 2017 8:51 PM To: pd-list@lists.iem.at Subject: Re: [PD] No ALSA or OSS sound with Debian 9.1 (32 and 64bit) on an "Up Board"
On 10/07/2017 08:49 PM, IOhannes m zm lnig wrote:
On 10/07/2017 07:56 PM, Ingo wrote:
Where would I find the official Debian download of pd-iemlib?
what's wrong with the following? # apt-get install pd-iemlib
It might make sense compiling it from source to make sure it's working.
and if the Debian package doesn't work, then it makes more sense to report it, so the maintainer can make sure for all users of the Debian package that it works.
gfanstd IOhannes
On Sam, 2017-10-07 at 19:06 +0200, IOhannes m zmölnig wrote:
On 10/07/2017 11:50 AM, Ingo wrote:
(Since this was my smallest problem I didn't investigate any further. It was the version on Deken with Pd 0.47.1)
in general i would recommend to use the Debian packages whenever possible,
Agreed.
rather than the one provided by deken.
What's wrong with Deken?
at least there you usually have a responsive maintainer that might be interested in fixing any bugs.
I understand you can trust Debian to have a responsible maintainer for each of their packages and I understand it benefits the Debian-based distribution users the most if any efforts in bug reporting and fixing goes to those packages. Nevertheless, in Deken you immediately see who has uploaded a certain package and you can contact the uploader in a similar manner. I don't see why you are implying that a Deken package is likely to be less well maintained. After all, in Deken a bugfix can be made available immediately and user don't have to wait up to two years. Also, an improvement might be made available for many platforms at the same time, not only for a subset of one.
Roman
Never mind!
I found the problem. /etc/modprobe.d/alsa-base.conf was missing. Working perfectly now with both ALSA and OSS.
Ingo
Hi everybody,
I'm trying to run my rather complex Pd patch on an Up Board (x5-Z8350 CPU,32GB eMMC, 4GB RAM). The board has the RPi formfactor but is much more powerful.
The up board comes with ubilinux (64bit debian version especially for the Up Board). After spending a lot of time with ubilinux and the normal debian9.1 (64bit) I couldn't stop it from constantly crashing when I opened my patch - for some unknown reason. As long as I was using ubilinux sound (alsa) was working at least. Not so with debian, though.
After giving up with the 64bit OS I installed debian 9.1 (32bit) and it's running perfectly stable as before with my old amd hardware. No more crashes! All externals (except for "iemlib/mp3play~" and "toxy/tot" [not to be found anymore]) are working as expected. However, with the normal debian alsa is NOT giving me any sound!
Then I compiled the kernel with oss but oss is not producing any sound either.
I installed alsa-utils, alsa-base and alsa-tools-gui. I removed pulseaudio and I made sure alsa-utils would get started on startup (which it doesn't by default).
Here is what I get from pd when turn on alsa:
ALSA input error (snd_pcm_open): No such file or directory ALSA output error (snd_pcm_open): No such file or directory
The (external USB-)sound card does show up in the drop down menu of Pd's audio settings for selection, though. So it is regognized both by pd and the operating system. I tried several different USB sound cards with the same result.
Here is what I get when I try to open alsamixer from the LXTerminal:
error when opening mixer: No such file or directory (original in German: Fehler beim ?ffnen des Mixer-Ger?tes: Datei oder Verzeichnis nicht gefunden)
When I use portaudio I'm actually getting sound but it is very quiet as the sound output is turned down by the system during start up. I can't find any way to turn the volume of the sound card up, though since I cannot open any mixer.
Does anybody have an idea how I can get alsa to work? Debian tells me that "alsa-utils" and "alsa-base" is already installed with the newest version (1.1.3-1 and 1.0.27+1).
Thanks, Ingo