Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

suddenly no sound on Raspbian (Raspberry Pi 2)

10 views
Skip to first unread message

Emanuel Berg

unread,
May 27, 2016, 7:20:04 PM5/27/16
to
On my Raspberry Pi 2, I suddenly have no HDMI
sound and no headphone sound either save for
the hello_audio.bin test, which works for the
headphones but not the HDMI.

I have tried this:

test-sound () {
sudo modprobe snd_bcm2835
for output in 0..2; do
sudo amixer -c 0 cset numid=3 $output
sudo aplay /usr/share/sounds/alsa/Front_Center.wav
done
}

No sound, no error message.

I uncommented the

hdmi_drive=2

line in

/boot/config.txt

and rebooted - same.

OS:

No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 42 Blogomatic articles -

Emanuel Berg

unread,
May 28, 2016, 10:00:04 AM5/28/16
to
Emanuel Berg <embe...@student.uu.se> writes:

> On my Raspberry Pi 2, I suddenly have no HDMI
> sound and no headphone sound either save for
> the hello_audio.bin test, which works for the
> headphones but not the HDMI.

I have this wrapper for the omxplayer - note the
line with adev - I put local there and the
3.5 mm audio port sends sound.

However putting 'hdmi' or 'both' there, as the
man page describes, doesn't get the HDMI
(audio) going.

plo () {
local file=$1

if [[ ! -f $file ]]; then
no-file-msg $file
return
fi

local keys=~/public_html/conf/.omx-keys

local vol_mod=0
sudo omxplayer --align center \
--blank \
--key-config $keys \
--loop \
--font-size 35 \
--vol $vol_mod \
--adev local \
$file > /dev/null
}

Also, I wrote this function to test the sound:

test-sound () {
sudo modprobe snd_bcm2835
for output in 0..2; do
sudo amixer -c 0 cset numid=3 $output
sudo aplay /usr/share/sounds/alsa/Front_Center.wav
done
/opt/vc/src/hello_pi/hello_audio/hello_audio.bin # 3.5 mm
/opt/vc/src/hello_pi/hello_audio/hello_audio.bin 1 # HDMI
}

Well, at this point, it confirms the state...

Emanuel Berg

unread,
May 29, 2016, 2:20:04 AM5/29/16
to
What I did was dist-upgrade, and now it works,
with pulseaudio installed. I don't know if
pulseaudio is what did it, but it seems
reasonable...
0 new messages