No sound from Sonic Pi

Has anyone here used Sonic Pi? I installed it, and everything seems fine, except there's no sound. My speakers are on - I'm listening to music from the compie while typing this - so does anyone have advice for me on how to get sound from the program?
[Edit] I used the Flatpack from the Zorin Software Store [Edit]
System specs:

Which sonic pi app are you referring to? In the software store of Zorin 18 are two ones. A learn programming and computter science program (Zorin apt package) and a code-based music creation (flatpak).

I tried the learn programming version (apt version) and had problems to launch it and there were shown server boot errors. Perhaps I made something wrong, there was an window which a field to click to configure jack.

The 3.2.2 Version of sonic-pi which is
the version of the Zorin apt package seems not to work

If you have installed the flatpak, you can check the permissions with the app flatseal and take a look if the permissions for the sound server are set.

Using Brave search engine via Mojeek, using Ubuntu 24.04 in search criteria as Zorin is a fork of it:

" The lack of sound in Sonic Pi on Ubuntu 24.04 is typically caused by a conflict between the PulseAudio or PipeWire sound servers and Sonic Pi 's requirement for the JACK audio server, or by the system using the incorrect Intel audio driver (SOF vs. HDA).

To resolve this, you can try one of the following methods:

1. Switch Audio Server to JACK Since Sonic Pi requires JACK , you must suspend PulseAudio or PipeWire while running the software.

  • Method A (Command Line): Open a terminal and run pulseaudio -k (or pkill pipewire if using PipeWire), then start JACK manually using jackd -R -d alsa -d hw:0 (adjust hw:0 to your specific device using aplay -l ). Launch Sonic Pi from that terminal.
  • Method B (GUI): Install QjackCtl (sudo apt install qjackctl ), start the JACK server via the GUI, and then launch Sonic Pi .
  • Method C (Suspend): Use pasuspender -- sonic-pi to temporarily suspend the system sound server only for the duration of the Sonic Pi session.

2. Fix Intel Audio Driver Issues If Ubuntu 24.04 is producing "Dummy Output," the SOF driver may be incompatible with your Acer hardware.

  • Create a config file at /etc/modprobe.d/disable-sof.conf (or edit alsa-base.conf ).
  • Add the line: options snd-intel-dspcfg dsp_driver=1 .
  • Run sudo update-initramfs -u and reboot.
  • Alternatively, blacklist the problematic driver by adding blacklist snd_soc_avs to /etc/modprobe.d/blacklist.conf and running sudo alsa force-reload .

3. Update System and Software Ensure your Ubuntu 24.04 system is up to date (sudo apt update && sudo apt upgrade ) and that you are running a recent version of Sonic Pi (v4.x), as older builds may not handle modern audio stacks correctly. If conflicts persist, reinstall Sonic Pi using sudo apt purge sonic-pi && sudo apt autoremove followed by a fresh installation.

AI-generated answer. Please verify critical facts."

Aha. I've removed PulseEffects (just to make sure) and installed JACK.

The included, edited screenshot highlights a position I cannot find and a line I therefore cannot change. Where do I find /etc/security?

Thank you for the help so far.

Don't you find it when you enter that path (/etc/security/limits.conf) in the topbar of the file manager? You need root rights to edit that file, but you can open it to take a look on it without root rights.

Instead of entering the path you can go to other places on the left pane of the file manager and then select the drive.

:man_facepalming: Thank you. I forgot one of my regular navigation methods when I was still on Windows. I used both methods, now I need to find a way to turn the file open to writing.

LibreOffice opened it and had me save it as a .txt that I renamed to .conf. But I cannot c&p it to /etc/security, and the permissions are all grayed out.

Enter

admin://

in the topbar of nauilus and then go to etc > security > limits.conf

Thanks. I have to reboot, then I'll confirm if it worked.

I tested the installation of the flatpak of sonic pi today in a Zorin 18.1 core live session, and had sound when entering the test code of the tutorial

live_loop :flibble do
  sample :bd_haus, rate: 1
  sleep 0.5
end

I didn´t change anything, just installed the flatpak, and the sound worked for me.

Edit: I just see that you are running on Zorin 17. I´ll test that later.

So, now I've started a Zorin 17 session.
Hm....no sound on Zorin 17 :slightly_frowning_face: Zorin 17 has pulseaudio, Zorin 18 pipewire.

You could try setting Pipewire as the audio server and stop/mask PulseAudio to see if that helps. Unfortunately, I can't test this for you during a live session, since it requires a reboot afterward.

But think carefully about whether it's worth it. It's not easy. It's best to keep PulseAudio and mask it and not remove it completely.

1 Like

You are best using 'nano':

sudo nano /etc/security/limits.conf

Edit the line, if there isn't one, add the line you posted, then to write the changes, press Ctrl+ O, you will be asked to confirm changes so accept, then Ctrl+ X to exit, then reboot.