How To Fix Audio Skips And Stuttering on a Raspberry Pi

If you have been experiencing audio skips or stuttering on a Raspberry Pi, then I may have a solution for you.

For background, I use an older Raspberry Pi as an audio player, using mpd as an audio server, MPD Remote on my Android Phone, and Sonata on my Xubuntu Laptop.

It was working fine for a long time, but then it started skipping audio every 10 or 20 seconds, regularly.

I tried all the solutions I found on the internet, most of them dating from 2012 or 2013. But the solution that worked for me was to get the latest firmware using a simple command: rpi-update.

Here is the full output:

$ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13545  100 13545    0     0  39012      0 --:--:-- --:--:-- --:--:-- 39034
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 4.14.79-v7+
################################################
This update bumps to rpi-4.14.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=197689
################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    421      0 --:--:-- --:--:-- --:--:--   423
100 53.7M  100 53.7M    0     0   660k      0  0:01:23  0:01:23 --:--:--  281k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.14.93-v7+
 *** depmod 4.14.93+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to add510f7e85c18bf1a17cae9c5ec8dea20ccefc1
 *** A reboot is needed to activate the new firmware

Follow this by this command:

sudo shutdown -r now

And when you are back, there will be no audio skipping!

Contents: