# Newly installed Patchbox - No Sound out from ALSA!

**URL:** <https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935>\
**Category:** Patchbox OS\
**Created:** [July 15, 2020, 11:39am UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935 "2020-07-15T11:39:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaffasplaffa](https://community.blokas.io/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@Jaffasplaffa](https://community.blokas.io/u/Jaffasplaffa)\
**Post date:** [July 15, 2020, 11:39am UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/1 "2020-07-15T11:39:51Z")

</div>

Hey 🙂

I had an old RPI3 lying that I tried to make a Pure data box out of years ago and never really got it fully working.

And today I stumbled upon Patchbox and was very happy to see that.

I installed it and had it up and running with in half an hour. Which is awesome, thinking about how much time I spend on it years ago.

So a huge thanks for Patchbox 🙂

**Anyway to the point:**  
I am not getting any sounds!

ATM I am trying to use ALSA driver, cause I don’t have an audio interfaces that works with RPI3 yet, but I am planning to get a Pisound. But for now I just want to play around and get the feeling of this little box and can do with just ALSA drivers.

I followed the installation wizard. But my Jack settings didn’t work, so I opened

sudo patchbox-config

And made my Jack settings and started Jack. I had to make buffer setting for 1024 for jack to be able to start.

Then I opened Pure Data and set it to use Jack for audio. In PD I get an error for the Jack midi drivers, but I guess that should matter on the audio, right?

The error:  
JACK: cannot connect input ports system:midi\_capture\_1 -\> pure\_data:input0  
JACK: cannot connect input ports system:midi\_capture\_2 -\> pure\_data:input1

I did a quick test patch in pure data and I am sure the audio processing is turned on, so Jack ins running, the audio rate objects are working.

**But…**

I still can not HEAR any audio from PD. I connected headphones for the audio out of the RPI 3, but no sounds comes out.

I also check audio from the web browser, opening a youtube video and there is also no sound from the browser.

So it might be some overall audio interface setting I am missing here. I know ALSA is working not very well, but I just want to play around a bit until I get the Pisound.

I also updated Patchbox OS, but that didn’t change anything.

Any suggestions to what it might be the problem?

Thanks!

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [July 15, 2020, 12:06pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/2 "2020-07-15T12:06:34Z")

</div>

Hey, see [https://blokas.io/patchbox-os/docs/GettingStarted/#initial-setup-wizard](https://blokas.io/patchbox-os/docs/GettingStarted/#initial-setup-wizard) for suggested audio configuration to use the built-in analog audio output.

Make sure that Jack is running successfully:

```auto
sudo systemctl status jack

```

Feel free to share the output of above command.

Check the volume level in `alsamixer` too, to see if it’s not muted or silent.

---

<div class="post-metadata">

**Author:** ![Jaffasplaffa](https://community.blokas.io/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@Jaffasplaffa](https://community.blokas.io/u/Jaffasplaffa)\
**Post date:** [July 15, 2020, 12:13pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/3 "2020-07-15T12:13:15Z")

</div>

Hey Giederius!

Thank you for the quick answer. I did the command you told and this is the log.

patch@patchbox:~ $ sudo systemctl status jack  
● jack.service - JACK Server  
Loaded: loaded (/lib/systemd/system/jack.service; enabled; vendor preset: ena  
Active: active (running) since Wed 2020-07-15 14:08:20 CEST; 20s ago  
Main PID: 1190 (jackd)  
Tasks: 5 (limit: 2199)  
Memory: 86.1M  
CGroup: /system.slice/jack.service  
└─1190 /usr/bin/jackd -t 2000 -R -P 95 -d alsa -d hw:ALSA -r 44100 -p

Jul 15 14:08:21 patchbox jackdrc[1190]: ALSA: Cannot open PCM device alsa\_pcm fo  
Jul 15 14:08:21 patchbox jackdrc[1190]: configuring for 44100Hz, period = 1024 f  
Jul 15 14:08:21 patchbox jackdrc[1190]: ALSA: final selected sample format for p  
Jul 15 14:08:21 patchbox jackdrc[1190]: ALSA: use 2 periods for playback  
Jul 15 14:08:21 patchbox jackdrc[1190]: port created: Midi-Through:midi/playback  
Jul 15 14:08:21 patchbox jackdrc[1190]: port created: Midi-Through:midi/capture\_  
Jul 15 14:08:21 patchbox jackdrc[1190]: port created: RtMidiIn-Client:midi/captu  
Jul 15 14:08:21 patchbox jackdrc[1190]: port created: RtMidiOut-Client:midi/play  
Jul 15 14:08:21 patchbox jackdrc[1190]: port created: Pure-Data:midi/capture\_1  
Jul 15 14:08:21 patchbox jackdrc[1190]: port created: Pure-Data:midi/playback\_2

patch@patchbox:~ $

I am guessing that “ALSA: Cannot open PCM device alsa\_pcm fo” is probably the issue.

But not sure what to do about it, to be honest.

And not sure where to find the alsamixer. It doesnt show in any of the menues in top left corner of the desktop. Maybe thats part of the issue, that ALSA is not installed correctly. Or is the alsa mixer the fader in top right corner? If so it’s not muted and it is turned up.

---

<div class="post-metadata">

**Author:** ![Jaffasplaffa](https://community.blokas.io/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@Jaffasplaffa](https://community.blokas.io/u/Jaffasplaffa)\
**Post date:** [July 15, 2020, 12:33pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/4 "2020-07-15T12:33:30Z")

</div>

I tried restarting the PI and launch JACK again. This time I get this log, which doesnt seem to have any errors.

jack.service - JACK Server  
Loaded: loaded (/lib/systemd/system/jack.service; enabled; vendor preset: enabled)  
Active: active (running) since Wed 2020-07-15 14:30:54 CEST; 10s ago  
Main PID: 2319 (jackd)  
Tasks: 5 (limit: 2199)  
Memory: 86.1M  
CGroup: /system.slice/jack.service  
└─2319 /usr/bin/jackd -t 2000 -R -P 95 -d alsa -d hw:ALSA -r 44100 -p 1024 -n 2 -X seq -s

Jul 15 14:30:55 patchbox jackdrc[2319]: port created: Midi-Through:midi/playback\_1  
Jul 15 14:30:55 patchbox jackdrc[2319]: port created: Midi-Through:midi/capture\_1  
Jul 15 14:30:55 patchbox jackdrc[2319]: port created: RtMidiIn-Client:midi/capture\_1  
Jul 15 14:30:55 patchbox jackdrc[2319]: port created: RtMidiOut-Client:midi/playback\_1  
Jul 15 14:30:55 patchbox jackdrc[2319]: port created: Pure-Data:midi/capture\_1  
Jul 15 14:30:55 patchbox jackdrc[2319]: port created: Pure-Data:midi/playback\_2  
Jul 15 14:30:55 patchbox jackdrc[2319]: port created: Pure-Data:midi/capture\_1  
Jul 15 14:30:55 patchbox jackdrc[2319]: port created: Pure-Data:midi/playback\_2  
Jul 15 14:31:00 patchbox jackdrc[2319]: port deleted: Pure-Data:midi/capture\_1  
Jul 15 14:31:00 patchbox jackdrc[2319]: port deleted: Pure-Data:midi/playback\_2

But I still get no sound neither from PD or the web browser.

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [July 15, 2020, 12:36pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/5 "2020-07-15T12:36:46Z")

</div>

`alsamixer` is just a terminal command.

Try running the Patchage program, see whether the Pure Data appears there and whether it’s routed to system playback correctly. You may attach a screenshot of what you see there.

---

<div class="post-metadata">

**Author:** ![Jaffasplaffa](https://community.blokas.io/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@Jaffasplaffa](https://community.blokas.io/u/Jaffasplaffa)\
**Post date:** [July 15, 2020, 12:47pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/6 "2020-07-15T12:47:52Z")

</div>

I checked the Patchage program.

Pure Data output 0 and output 1 are routed to playback\_1 and playback\_2. Those are the green audio boxes.

When i select the system drop down menu in Patchage, it says:  
Disconnect from JACK  
Disconnect from ALSA

So they seem like they are both running.

I also opened alsamixer in terminal. I did F6 and set the sound card to the ALSA soundcard.

But still no sound.

I will try another restart, after chaing the sound card in alsamixer and see if that helps.

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [July 15, 2020, 12:54pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/7 "2020-07-15T12:54:44Z")

</div>

That sounds like it should be fine. Is PD itself producing audio? Are you sure the patch you use is fine and that DSP is enabled? 🙂

You may try opening this patch on your system: /usr/local/puredata-patches/GarageBeat/0\_START.pd, it should definitely be producing audio automatically as long as DSP is ticked.

You may check the jack log for any errors:

```auto
sudo journalctl -u jack

```

hit ‘end’ key to go to the very latest lines.

---

<div class="post-metadata">

**Author:** ![Jaffasplaffa](https://community.blokas.io/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@Jaffasplaffa](https://community.blokas.io/u/Jaffasplaffa)\
**Post date:** [July 15, 2020, 1:06pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/8 "2020-07-15T13:06:59Z")

</div>

Yes I am pretty sure the audio is running in Pure data. I use Pd a lot so I am fairly sure that I got that part right.

I made an osc~ and a bang~ and connected them to a snapshot~ and then a number box to see if anything is happening and the number box moves, so I am sure it is running. and when I turn off dsp, it stops moving and start moving when turning on again.

And then I connected the osc~ to a dac~ 1 2 to get the sound out of pd.

Here is the log from frm the journalctl command

– Logs begin at Wed 2020-07-15 14:17:01 CEST, end at Wed 2020-07-15 15:00:41 CEST. –  
Jul 15 14:42:29 patchbox systemd[1]: Started JACK Server.  
Jul 15 14:42:29 patchbox jackdrc[438]: Failed to create secure directory (/home/jack/.config/pulse): No such file or directory  
Jul 15 14:42:29 patchbox jackdrc[438]: jackdmp 1.9.12  
Jul 15 14:42:29 patchbox jackdrc[438]: Copyright 2001-2005 Paul Davis and others.  
Jul 15 14:42:29 patchbox jackdrc[438]: Copyright 2004-2016 Grame.  
Jul 15 14:42:29 patchbox jackdrc[438]: Copyright 2016-2017 Filipe Coelho.  
Jul 15 14:42:29 patchbox jackdrc[438]: jackdmp comes with ABSOLUTELY NO WARRANTY  
Jul 15 14:42:29 patchbox jackdrc[438]: This is free software, and you are welcome to redistribute it  
Jul 15 14:42:29 patchbox jackdrc[438]: under certain conditions; see the file COPYING for details  
Jul 15 14:42:29 patchbox jackdrc[438]: JACK server starting in realtime mode with priority 95  
Jul 15 14:42:29 patchbox jackdrc[438]: self-connect-mode is “Don’t restrict self connect requests”  
Jul 15 14:42:30 patchbox jackdrc[438]: creating alsa driver … hw:ALSA|hw:ALSA|1024|2|44100|0|0|nomon|swmeter|soft-mode|16bit  
Jul 15 14:42:30 patchbox jackdrc[438]: ALSA: Cannot open PCM device alsa\_pcm for capture. Falling back to playback-only mode  
Jul 15 14:42:30 patchbox jackdrc[438]: configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods  
Jul 15 14:42:30 patchbox jackdrc[438]: ALSA: final selected sample format for playback: 16bit little-endian  
Jul 15 14:42:30 patchbox jackdrc[438]: ALSA: use 2 periods for playback  
Jul 15 14:42:30 patchbox jackdrc[438]: port created: Midi-Through:midi/playback\_1  
Jul 15 14:42:30 patchbox jackdrc[438]: port created: Midi-Through:midi/capture\_1  
Jul 15 14:42:46 patchbox jackdrc[438]: port created: RtMidiIn-Client:midi/capture\_1  
Jul 15 14:42:46 patchbox jackdrc[438]: port created: RtMidiOut-Client:midi/playback\_1  
Jul 15 14:42:50 patchbox jackdrc[438]: port created: Pure-Data:midi/capture\_1  
Jul 15 14:42:50 patchbox jackdrc[438]: port created: Pure-Data:midi/playback\_2  
lines 1-23

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [July 15, 2020, 1:28pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/9 "2020-07-15T13:28:48Z")

</div>

I just remembered, that the audio seems to prefer going out through the HDMI port, see this topic: [Getting no sound output from Raspberry's built in analog output](https://community.blokas.io/t/getting-no-sound-output-from-raspberrys-built-in-analog-output/1686/11)

Maybe it’s the same issue in your case as well 🙂 The solution seems to be to start the system with HDMI unplugged, then connect it.

---

<div class="post-metadata">

**Author:** ![Jaffasplaffa](https://community.blokas.io/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@Jaffasplaffa](https://community.blokas.io/u/Jaffasplaffa)\
**Post date:** [July 15, 2020, 1:30pm UTC](https://community.blokas.io/t/newly-installed-patchbox-no-sound-out-from-alsa/1935/10 "2020-07-15T13:30:46Z")

</div>

Yes was just looking into that and got it working now.

It had to do these two terminal commands to force the RPI to use headphones output. I think it was using the output in the HDMI display.

where n is 0=auto, 1=headphones, 2=hdmi:  
For alsa  
amixer cset numid=3 \<1\>  
For Pulse audio, which was the one that made it work:  
amixer -c 0 cset numid=3 \<1\>

And then use PulseAudio in alsa mixer.

All good now 🙂

And thank you so much @ [Giedrius](https://community.blokas.io/u/Giedrius)

Wauw. I am so amazed how “easy” it was to get working compared to the hell I went through years ago. Patchbox is AWESOME 🙂

This is going to be great partner for my Organelle 🙂
