Skip to content

Instantly share code, notes, and snippets.

@craig-m
Created July 7, 2020 10:35
Show Gist options
  • Select an option

  • Save craig-m/b5bd0e0f08c57d1f09443c6405f89118 to your computer and use it in GitHub Desktop.

Select an option

Save craig-m/b5bd0e0f08c57d1f09443c6405f89118 to your computer and use it in GitHub Desktop.
Raspbian mocp fix

Using 'Music on Console' on Raspbian, with sound over HDMI.

pi@raspberrypi:~ $ sudo apt-get install mocp

Before:

pi@raspberrypi:~ $ mocp 
Running the server...
Trying JACK...
Trying ALSA...
Trying OSS...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!

To fix:

cp /usr/share/doc/moc/examples/config.example ~/.moc/config

Then edit the ALSA output settings section:

ALSADevice = default
ALSAMixer1 = HDMI

Should work now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment