"Sound does not work with an HDMI monitor
This is caused by some computer monitors which select DVI mode even if an HDMI cable is connected. This fix may be necessary even if other HDMI devices work perfectly on the same monitor (or TV)!
Edit the configuration file - see the instructions at R-Pi_ConfigurationFile.
Add the following line to the configuration file:
sudo nano /boot/config.txt (this will create the file config.txt as it didn't exist in my pi /boot folder)
then I added the following line:
This will force it to select HDMI mode
Sound does not work at all, or in some applications
In Debin Squeeze, sound is disabled by default because the ALSA sound driver is still "alpha" (not fully tested) on the R-Pi. To try out sound, from the command prompt before "startx", type
sudo apt-get install alsa-utils
sudo modprobe snd_bcm2835
(when I issued the command to install alsa utils it installed them so they were not installed by the PI).
On Debian Wheezy, snd_bm2835 is enabled, by default, do that step is not necessary. Next try:
sudo aplay /usr/share/sounds/alsa/Front_Center.wav
(and voila!, I got sound!!)
By default output will be automatic (hdmi if hdmi supports audio, otherwise analogue). You can force it with:
sudo amixer cset numid=3 <n>
where n is 0=auto, 1=headphones, 2=hdmi.
If you are running Debian, try
to test analogue output. And
to test HDMI."
HiJustintime wrote:Issue 3 of MagPi tells you what to do to to make sound work each time you boot. With Squeeze at least.... don't know about Wheezy.
Code: Select all
sudo nano /etc/modules
Code: Select all
sudo aplay /usr/share/sounds/alsa/Front_Right.wav