


And to test HDMI./hello_audio.bin 1Īlso note that you may have to add your user to the audio group to get permission to access the sound card. If you are running Debian, try cd /opt/vc/src/hello_pi

Where n is one of: 0 = auto, 1 = headphones, 2 = hdmi. You can force it with: sudo amixer -c 0 cset numid=3 Sudo aplay /usr/share/sounds/alsa/Front_Center.wavīy default output will be automatic ( hdmi if hdmi supports audio, otherwise analogue). To try out sound, from the command prompt before "startx", type sudo apt-get install alsa-utils Sound is disabled by default because the ALSA sound driver is still "alpha" (not fully tested) on the R-Pi. Sound does not work at all, or in some applications This fix may be necessary even if other HDMI devices work perfectly on the same monitor (or TV)!Įdit the /boot/config.txt file ( see Raspberry-Pi Configuration File) and add the following line to the configuration file: hdmi_drive=2 This is caused by some computer monitors which select DVI mode even if an HDMI cable is connected.
