View Full Version : [SOLVED] No sound when using Nvidia hdmi
nathan082000
30th December 2010, 09:00 PM
I am currently using an Nvidia GTX 460 gpu, but I just cant get the sound to output to my monitor through the hdmi. I can see that there is sound coming out when running pavucontrol. And I've looked at other guides and no luck.
Here is the link to all of my alsa info http://www.alsa-project.org/db/?f=5f90d95efb97c6cb51d70fe25ee8712ead576b9e.
If you need any more info just let me know, and thanks for the help.
SchneiderIS
10th January 2011, 04:49 PM
If yours is the same as mine, try looking in alsa mixer (amixer if looking in the packages) and turning on the IEC958 (there are three of them) output. They are likely muted. Press on the speakers at the top to enable them. Also remember to lock them on at the bottom otherwise I have seen them turned off again after a reboot.
Hope this helps.
leigh123linux
14th January 2011, 01:41 PM
This worked for me
An alternative is to use the "probe_mask" ALSA module parameter as described on this page:
http://wiki.xbmc.org/?title=HOW-TO_s...20%2C_or_GT240 (http://wiki.xbmc.org/?title=HOW-TO_set_up_HDMI_audio_on_nVidia_GeForce_G210%2C_GT2 20%2C_or_GT240)
However, please note that the actual values for probe_mask on that page don't make sense; the correct values you should try are 0x101, 0x102, 0x104, 0x108. You can determine which you need by plugging in your HDMI monitor, starting X, then viewing /proc/asound/card*/eld*. Whichever eld file has your monitor's information in it will tell you which probe_mask to use; eld#0.0 -> 0x101, eld#1.0 -> 0x102, eld#2.0 -> 0x104, eld#3.0 -> 0x108. If you use multiple HDMI monitors and want audio on both, logical/bitwise OR the probe_mask values together. Note that the required probe_mask will change if you move monitors to different connectors on your graphics board.
=====
http://www.nvnews.net/vbulletin/showpost.php?p=2312420&postcount=7
MNKyDeth
15th January 2011, 12:51 PM
Thanks for those links leigh123linux. I was able to get my audio working through hdmi on my Galaxy GT 430.
To try and help the above poster these are the steps I took.
In a terminal type "alsamixer -V all" without the quotes.
Go to your hdmi device by hitting F6 and then selecting the device. Every thing you see in there make sure you unmute them. M = mute and 00 = unmute.
Next you need to find witch channel the audio is running on.
typing cat /proc/asound/card0/eld#3.0 <-- change the card0 to the hdmi card. Then cat each eld# until you find the one that has you're monitor listed in it. Mine said LG TV on the third line from the top as an example.
Once you found the monitor listed you will then need to use one of these eld#0.0 -> 0x101, eld#1.0 -> 0x102, eld#2.0 -> 0x104, eld#3.0 -> 0x108
Open up /etc/modprobe.d/dist-alsa.conf
Add a line similar to this.
options snd-hda-intel enable_msi=0 probe_mask=0x108
Change the probe_mask=(this) to the appropriate number for you're setup.
Worse case scenario you could just try all four set of numbers one at a time until it works. Make sure to reboot after each change to make sure they take effect. For my piece of mind I did one extra reboot to make sure I didn't lose the audio.
nathan082000
16th January 2011, 04:43 PM
Thanks for all of the replies guys, but still no luck. After adding the probe_mask and enable_msi options I still wasn't able to get the sound to work. I was able to get some choppy sound using
aplay -D hw:0,3 /usr/share/sounds/alsa/Front_Left.wav
and after I did that I was able to hear sound when playing youtube videos but it was also choppy. Then after a reboot I wasn't able to get it working anymore, I would get a channels count not found error or something like that.
Then I used
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_left.wav
and it just hangs there forever. The plughw part I got from some alsa documentation here -> http://alsa.opensrc.org/index.php/DigitalOut
leigh123linux
16th January 2011, 08:08 PM
I'm using kernel 2.6.36 with my GTS 450
nathan082000
17th January 2011, 04:38 AM
Ok I just updated my kernel to 2.6.36 and still no luck. I'll mess around with that modprobe stuff again and see if I can find something that works.
Also anybody know how to set the sound card to unmute by default so I can stop having to run alsamixer everytime I reboot to unmute it?
SchneiderIS
17th January 2011, 04:47 AM
Funny you should note the issue with alsamixer unmute not sticking. I have the same problem and even though I have set the lock on it, it still turns itself off after a reboot. Rather frustrating.
nathan082000
23rd January 2011, 06:05 PM
UPDATE:
Ok, I updated my kernel to 2.6.37 and it seems after my first reboot into the kernel that after unmutting the NVidia card and running:
aplay -D plughw:1,7 /usr/share/sounds/alsa/Front_Left.wav
my sound seems to work. It only works on device 7 though and only when I use plughw. Hopefully this will still work after I reboot. Anybody know how I could make device 7 the default playback device in pulse? Because as of right now when I go to sound preferences and test my speakers the sound doesn't work.
leigh123linux
23rd January 2011, 08:26 PM
Try
http://www.linuxquestions.org/questions/linux-hardware-18/no-audio-with-nvidia-gts-450-a-852626/#post4209297
nathan082000
23rd January 2011, 09:46 PM
Thanks alot, that worked. Also, anybody know how to get alsa to default to having my sound unmutted. Everytime I reboot I always have to unmute through alsamixer.
leigh123linux
23rd January 2011, 10:02 PM
Thanks alot, that worked. Also, anybody know how to get alsa to default to having my sound unmutted. Everytime I reboot I always have to unmute through alsamixer.
Add the appropriate line to /etc/rc.local
channel 1
amixer -c 1 sset 'IEC958' unmutechannel 2
amixer -c 1 sset 'IEC958',1 unmutechannel 3
amixer -c 1 sset 'IEC958',2 unmute
channel 4
amixer -c 1 sset 'IEC958',3 unmute
nathan082000
23rd January 2011, 10:12 PM
Thank you once again. Everything works now!
leigh123linux
23rd January 2011, 11:09 PM
No problem.
Moved to Hardware, tags added and marked as solved.
sej7278
24th January 2011, 08:35 AM
i just had the same problem on my revo 3610, turns out alsamixer identifies hdmi audio as spdif for some odd reason.
tabbing across to the 3 spdif icons in the gui and pressing M fixes it, or in /etc/rc.local :
amixer -c0 -q set 'IEC958',1 unmute
amixer -c0 -q set Master 100%
gregor2005
23rd February 2011, 11:41 AM
hi,
i had the same problem on with the following configuraton:
- fedora 14 (2.6.35.11-83.fc14.x86_64)
- geforce gt 210: 01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
- nvidia driver: kmod-nvidia-2.6.35.11-83.fc14.x86_64-260.19.36-1.fc14.1.x86_64
- pluseaudio: pulseaudio-0.9.21-7.fc14.x86_64
and here is my solution:
1. check the hardwareid's: aplay -l
2. test the sound: aplay -D plughw:1,7 /usr/share/sounds/alsa/Rear_Center.wav
3. configure pulseaudio: vim /etc/pulse/default.pa -> load-module module-alsa-sink device=plughw:1,7
4. set soundsettings in alsamixer and unmute the nvidia channels
5. save the alsamixer settings, in my case i saved the onboard and the nvidia sound settings:
/sbin/alsactl store 0 alsamixer_config_0
/sbin/alsactl store 1 alsamixer_config_1
6. configure fedore to restore the settings on every startup: vim /etc/rc.local ->
/sbin/alsactl restore 0 alsamixer_config_0
/sbin/alsactl restore 1 alsamixer_config_1
i hope that helped also other people or myself when i lost the informations :-)
greetings
gregor
leigh123linux
23rd February 2011, 03:32 PM
Heres the hdmi docs
ftp://download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html
aikman1890
2nd August 2011, 12:06 AM
I have no hdmi sound when using my nvidia soundcard could you help me get it working below are my sound settings everything is umuted and it is still not working. I tried everything in this forum and it still does not work so not solved!!!!!!!!!!!
[root@localhost ~]$ lspci
00:00.0 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.5 PIC: VIA Technologies, Inc. K8M890CE I/O APIC Interrupt Controller
00:00.7 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890 South]
00:02.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:03.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:0f.0 IDE interface: VIA Technologies, Inc. VT8237A SATA 2-Port Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 07)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237A PCI to ISA Bridge
00:11.7 Host bridge: VIA Technologies, Inc. VT8251 Ultra VLINK Controller
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7c)
00:13.0 Host bridge: VIA Technologies, Inc. VT8237A Host Bridge
00:13.1 PCI bridge: VIA Technologies, Inc. VT8237A PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
02:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 220] (rev a2)
02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
04:05.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
localhost ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
localhost ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
[shaun@localhost ~]$ amixer -c 0
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
oldcpu
4th August 2011, 08:25 PM
localhost ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
It looks like your HDMI devices are hw:0,3 and hw:0,7 and hw:0,8 and hw:0,9
How about installing pulse audio volume control (pavucontrol) and then look under the configuration tab for pavucontrol for any of those devices and configure it.
g2nightmare
6th June 2012, 10:08 PM
thanks for those links leigh123linux. I was able to get my audio working through hdmi on my galaxy gt 430.
To try and help the above poster these are the steps i took.
In a terminal type "alsamixer -v all" without the quotes.
Go to your hdmi device by hitting f6 and then selecting the device. Every thing you see in there make sure you unmute them. M = mute and 00 = unmute.
Next you need to find witch channel the audio is running on.
Typing cat /proc/asound/card0/eld#3.0 <-- change the card0 to the hdmi card. Then cat each eld# until you find the one that has you're monitor listed in it. Mine said lg tv on the third line from the top as an example.
Once you found the monitor listed you will then need to use one of these eld#0.0 -> 0x101, eld#1.0 -> 0x102, eld#2.0 -> 0x104, eld#3.0 -> 0x108
open up /etc/modprobe.d/dist-alsa.conf
add a line similar to this.
Options snd-hda-intel enable_msi=0 probe_mask=0x108
change the probe_mask=(this) to the appropriate number for you're setup.
Worse case scenario you could just try all four set of numbers one at a time until it works. Make sure to reboot after each change to make sure they take effect. For my piece of mind i did one extra reboot to make sure i didn't lose the audio.
you are amazing. I love you. Thank you x 1000
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.