hi there
i cant get sound from my pi though hdmi. how do i enable it??
hi there
i cant get sound from my pi though hdmi. how do i enable it??
In /boot you have to create a file named config.txt with the following line
hdmi_drive=2
Before startx you have to run
sudo modprobe snd_bcm2835
Then it should run.
Found the last tip in http://www.themagpi.com/ ,which is a good read and might become even better ;o)
thanks, i`ll try that tomorrow.
funny u say that, i was about to read the mag pi, just downloaded
If you add a line with "snd_bcm2835" to the /etc/modules file (which by default contains only "vchiq"), the sound module will get autoloaded on startup.
Darren,
The full path is /etc/modules
That is, it's the file modules in directory /etc
note that there is a slash before etc, and that it's etc
not ect. It stands for the latin etcetera.
And you need to use sudo to edit it.
When I go to save modules it says permission denied. How do I get it to save with permission? Seem to be having a lot of trouble with this as I am trying to setup a wi fi dongle and it won't let me drop a file in to a directory.
Do I need to be an administrator ??
Darren,
you get administrator privileges by typing sudo
before any command that would otherwise fail for
lack of privileges. sudo stands for either switch user
and do, or super user and do, depending on who you ask.
Read my posts on: http://www.element14.com/community/thread/18205?tstart=0 This fixed my problem and might fix yours.
All fixed (audio + resolution)
Instuctions for others who may be experiencing the same issue with a TV and the Raspberry Pi:
1. Install a fresh image (optional)
2. start-up the Raspberry Pi and let it set itself up (normal set-up) - only on first boot
3. After you have gone through normal set-up:
a. Log-in as a normal user (debian image: pi)
b. Type the command: "sudo nano /boot/config.txt "
c. Press enter
d. Type in: "hdmi_drive=2 " [exactly as it is here]
e. Then press crtl + o
f. Press Enter
g. then press crtl + x
4. Restart using the command: " sudo shutdown -r now "
That gets the Raspberry Pi to register the TV as a HDMI device. You now have sound! For different resolution:
5. After you have gone through normal set-up:
a. Log-in as a normal user (debian image: pi)
b. Type the command: "sudo nano /boot/config.txt "
c. Press enter
d. Type in: "hdmi_group=1 " [exactly as it is here]
Press Enter
Type : "hdmi_mode=x " where x = corresponding number of resolution mode. See: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=5851
e. Then press crtl + o
f. Press Enter
g. then press crtl + x
6. Restart using the command: " sudo shutdown -r now "
Now you have desired resolution and Sound!!!
Happy Raspberry Pi...ing