How to use the Raspberry Pi with a VGA Monitor with Sound


1 post
by Wheel_nut » Tue Oct 09, 2012 12:27 pm
Ther have been other threads with mixed information about how to convert the RPi HDMI Output to drive a standard VGA Computer Monitor. I am posting this as a successful and SAFE way to achieve this without fear of damaging the RPi HDMI Power Diode:

WHAT YOU NEED:
1) http://www.amazon.co.uk/HDMI-Audio-Vide ... d_sim_ce_2 This comes with a 5V, 2Amp PSU which is capable of powering this device and the RPi
2) A Standard HDMI Cable.

CONNECTING THE MONITOR TO THE RPi

1) Connect the RPi to the Converter using the HDMI Cable
2) Connect the VGA Monitor to the Converter VGA Socket
3)Connect the 3.5mm headphone cable from the VGA Monitor to the 3.5mm Audio output of the Converter
4) Connect the Converter Power Supply and switch on

WHAT YOU NEED TO CONFIGURE:
1) Open a Terminal session and type:
sudo nano /boot/config.txt
Scroll down the file and un-comment (delete the leading #) and modify if necessary to read:
hdmi_drive=2
hdmi_group=2
hdmi_mode=16

Press Ctrl X to Save; answer Y (Uppercase Y); Press Enter to confirm the Filename

3) Install the Sound Driver Module
Open a Terminal session and at the command prompt enter:
sudo aptget update
sudo aptget install alsautils

(Answer 'Y' if asked about disk space used)
sudo modprobe snd_bcm2835
If you want sound through the HDMI cable type:
sudo amixer cset numid=3 2
Or if you want sound through the analogue (headphone) socket type:
sudo amixer cset numid=3 1

Note: You can switch the Sound between ports at any time using the command sudo amixer cset numid=3 n
Posts: 132
Joined: Tue Sep 18, 2012 7:51 pm