flightisfun2001
Posts: 27
Joined: Tue Dec 29, 2015 1:10 am

Sound on Raspberry Pi

Thu Jan 07, 2016 5:43 pm

Hello,

I am having problems with getting my Raspberry Pi B+ to get sound. I use a DVI-HDMI cable for my Dell DVI monitor. I hear it is impossible to get audio through DVI, but the audio output (headphone jack) doesn't work either. Does anyone know how to fix this problem?

Thanks.

fruitoftheloom
Posts: 21966
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Sound on Raspberry Pi

Thu Jan 07, 2016 6:14 pm

flightisfun2001 wrote:Hello,

I am having problems with getting my Raspberry Pi B+ to get sound. I use a DVI-HDMI cable for my Dell DVI monitor. I hear it is impossible to get audio through DVI, but the audio output (headphone jack) doesn't work either. Does anyone know how to fix this problem?

Thanks.
https://www.raspberrypi.org/documentati ... -config.md
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

User avatar
Douglas6
Posts: 4826
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Sound on Raspberry Pi

Thu Jan 07, 2016 8:13 pm

You'll probably need to

Code: Select all

amixer cset numid=3 1
It used to default 0 (auto) but lately it defaults to 2 (HDMI).
If that works, you can make it permanent with raspi-config, advanced options.

User avatar
NormanDunbar
Posts: 111
Joined: Wed Nov 23, 2011 12:13 pm
Location: Leeds, West Yorkshire, England.
Contact: Website

Re: Sound on Raspberry Pi

Fri Jan 08, 2016 12:39 pm

Please excuse the self-plug, but ....

if you can't be bothered remembering all those amixer commands etc, then may I respectfully recommend PiSound at https://github.com/NormanDunbar/PiSound which lets you do stuff like:

Code: Select all

sound headphones
or

Code: Select all

sound hdmi
and other useful things like setting the volume:

Code: Select all

sound 60%
And reading the current volume:

Code: Select all

sound volume
60%
And so on. It's a simple python script, one of my first ever, and it works fine - so far!

HTH

Cheers,
Norm.
Why do they put lightning conductors on churches?
Why did Tarzan never have a beard?

312capri
Posts: 4
Joined: Sat Nov 28, 2015 8:00 pm

Re: Sound on Raspberry Pi

Sat Jan 09, 2016 11:30 pm

After using the nano editor to eliminate the comment # on #hdmi_drive=2 in my config.txt file saving and then rebooting the sound finally plays thought the HDMI monitor speakers. I had to manually change directories to the Boot directory before I could modify the config.txt file. Using the Sonic Pi example files as the test. Attempting to modify the "RASPI-CONFIG and Advanced Options, Audio did not work.

Thanks for everyone's assistance.

flightisfun2001
Posts: 27
Joined: Tue Dec 29, 2015 1:10 am

Re: Sound on Raspberry Pi

Thu Jan 14, 2016 6:20 pm

The sudo amixer cset numid=3 1 did work. Thanks!

Return to “General discussion”