I have been using Sonic Pi recently and have been annoyed by a persistent stream of white noise. This has happened on both Raspbian and Ubuntu MATE 16.04 for Raspberry Pi, using SENNHEISER MX356s. Is there any way to stop this?

  • 2
    There have been a lot of observations made here that the Pi's audio, particularly through the 3.5mm jack, is not great, and subject to various kinds of interference and noise.
    – goldilocks
    Commented Apr 5, 2017 at 18:34
  • I'm using a PiCamera and a Button on GPIO 21 Commented Apr 5, 2017 at 18:44
  • 2
    I think it applies regardless of what you have connected. It's just a crappy audio system that's not properly isolated. If someone asked me, "Is this a good thing to buy if I want to use it primary to play music?", I'd say no.
    – goldilocks
    Commented Apr 5, 2017 at 18:47

4 Answers 4


Per the comments below the question, the Pi's 3.5mm audio output is not a good output. I try to avoid it where possible. I have yet to see a convincing writeup of any approaches which would eliminate the noise from the analogue jack sufficiently for it to be used for enjoying music.

Your options for usable audio are:

I've tested a few variations on each of these approaches, and they all seem to work fine.


The question is a bit old, but nevertheless: Add


to /boot/config.txt

(Source: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445, worked with my pi)

  • 1
    Works like a charm!
    – Morgoth
    Commented Jan 24, 2018 at 14:31
  • tried it, didnt work.
    – john-jones
    Commented Mar 2, 2020 at 14:49
  • No difference at all on a Pi 3 B+ Presumably this is caused by poor grounding. eg there is no grounding on the pi.
    – John Hunt
    Commented Apr 20, 2020 at 10:14
  • 1
    Didn't make any difference for me either. Is there any way to ground the pi?
    – Joe Strout
    Commented Jul 12, 2021 at 2:14

I moved the USB connector from adapter to RPI USB port. The 50Hz sound disappeared. This works for 5V powered audio. Some countries use 60Hz power supply.

  • What USB connector?
    – Joe Strout
    Commented Jul 12, 2021 at 2:14

Moving the speaker's USB power cable from the Pi's USB port to an external power brick worked for me

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.