Emanuel Berg <embe8...@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... -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 42 Blogomatic articles -