LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-02-2012, 11:19 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 221

Rep: Reputation: 30
NVidia GT520 HDMI sound missing


I'll preface by saying that I have no idea if the HDMI video is working yet, either since I don't have a monitor that does HDMI here. The card does "work", however, as I'm running DVI out from it.

Went through quite a few searches and I think I found the root of the problem, but don't know how to fix it ... my eld files all show monitor_present 0 and eld_valid 0. Not good.

I'm running Ubuntu 11.10 x86_64.

The nvidia drivers are running nvidia_current (280.something).

The "Sound" app does show the HDMI output with 7.1 available (though I'm only running 5.1), but the speaker tests give no joy.

/proc/asound/card1/codec#0 is well populated

aplay -l shows
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT1705 Analog [VT1705 Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Interestingly (to me) modprobe.d doesn't contain anything for sound that I can see.

Doubly interesting (to me), I can run the audio off the main chip / mobo. It's only coming out of a microphone jack, so again, no 5.1 love or testing, but audio in general works.

dmesg | grep -i hdmi shows:
Code:
[    2.612683] HDMI status: Pin=4 Presence_Detect=0 ELD_Valid=0
[    2.644620] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
[    2.664637] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input5
[    2.664693] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input6
[    2.872726] Modules linked in: nvidia(P) snd_hda_codec_hdmi joydev snd_hda_codec_via usbhid hid ppdev snd_seq_midi snd_rawmidi snd_hda_intel snd_hda_codec snd_hwdep snd_seq_midi_event snd_seq snd_pcm parport_pc snd_seq_device snd_timer psmouse binfmt_misc serio_raw nfsd nfs lockd snd fscache auth_rpcgss nfs_acl sunrpc soundcore snd_page_alloc mei(C) w83627ehf hwmon_vid coretemp lp parport atl1c ahci libahci
... and nothing sticks out from that which looks horrible (to me).

Seems that I need to figure a way to get the card to report that it's there and active!

If I load up alsamixer, it defaults to the Intel PCH. If I switch it to NVidia, I just get a <S/PDIF> line in the middle of the screen that won't let me touch anything. No mixing.

So the card, while it's reporting that it's there, is not showing that it's valid somehow.

Anyone know where to go from here?
 
Old 02-04-2012, 09:32 AM   #2
larrym82
Member
 
Registered: Dec 2011
Posts: 71

Rep: Reputation: Disabled
Hello,

You've provided a lot of detail and may be into something far more complicated, but you do know that HDMI sound goes through HDMI, and not your sound card?
 
Old 02-04-2012, 10:46 AM   #3
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by larrym82 View Post
Hello,

You've provided a lot of detail and may be into something far more complicated, but you do know that HDMI sound goes through HDMI, and not your sound card?
Uh ... yes?

Maybe I'm missing something very basic to make you say that, but all of the logs and options I'm referencing here are about the NVidia card and the HDMI port specifically, I think. In fact, I don't even "have" a specific sound "card". Besides the NVidia, the only output option I have for sound is the headphone jack from the motherboard. That one works (outputs sound). Presumably, the Intel processor also would output high def sound as well, as it's listed correctly in the aplay listing, but I don't have an HDMI port on the motherboard to test that with.
 
Old 02-04-2012, 01:50 PM   #4
larrym82
Member
 
Registered: Dec 2011
Posts: 71

Rep: Reputation: Disabled
Quote:
Originally Posted by JohnLocke View Post
Uh ... yes?

Maybe I'm missing something very basic to make you say that, but all of the logs and options I'm referencing here are about the NVidia card and the HDMI port specifically, I think. In fact, I don't even "have" a specific sound "card". Besides the NVidia, the only output option I have for sound is the headphone jack from the motherboard. That one works (outputs sound). Presumably, the Intel processor also would output high def sound as well, as it's listed correctly in the aplay listing, but I don't have an HDMI port on the motherboard to test that with.
All I know for certain is that when I go to use my HDMI, I have to set the playback device to it instead of the sound card.

My system has a sound card on the MB as well as in a PCI slot.

Now your card is built into your motherboard (because it's a laptop), but you do have one (or you wouldn't have a headphone jack).

I really don't know much about all the logged information except that monitor 0 is usually the default (count starts at zero) in this line monitor_present 0 and eld_valid 0 - don't know what eld_valid is.

Last edited by larrym82; 02-04-2012 at 01:57 PM.
 
Old 02-04-2012, 02:01 PM   #5
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by larrym82 View Post
All I know for certain is that when I go to use my HDMI, I have to set the playback device to it instead of the sound card. Now your card is built into your motherboard (because it's a laptop), but you do have one. I really don't know much about all the logged information except that monitor 0 is usually the default (count starts at zero) in this line monitor_present 0 and eld_valid 0 - don't know what eld_valid is.
First off, yes, I know I have an integrated sound card (though this isn't a laptop and not sure what I said to give you that impression).

Secondly, the issue is exactly that while the playback device for the HDMI port exists in the various GUIs, it is not being recognized as a valid output device.

This isn't a problem of me just not pushing the right button ... the "eld" file that contains the "monitor_present" line isn't a one up counter. It's a true-false flag. It's telling me that for the HDMI card, there is no valid eld or monitor being recognized. It knows the card is there, but doesn't seem to know how to do anything with it.

What I'm trying to find out from someone is how to get the hdmi output to generate a valid eld file.

Perhaps you'd want to look at this:
ftp://download.nvidia.com/XFree86/gp...dmi-audio.html

or more specifically (to know what I mean about the eld file), this spot:
ftp://download.nvidia.com/XFree86/gp...r_eld_is_valid

It would seem that ALSA isn't recognizing the card, even though the rest of the OS does, so I get no playback through that card. I don't know how to fix that and hope someone on here does.
 
Old 02-04-2012, 04:49 PM   #6
larrym82
Member
 
Registered: Dec 2011
Posts: 71

Rep: Reputation: Disabled
I guess I've muddied the waters. I don't know what else to say. Good luck.
 
Old 02-07-2012, 07:51 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Hmm...I thought that you were going to get a ASRock H61M/U3S3 in what you said in your 'Linux HTPC build' thread?

http://www.linuxquestions.org/questi...bility-922499/

I take it you got a diferent board, that asrock has realtek ALC662 sound, not VIA VT1705.

BTW, I'm guessing that you are trying to use DVI to the monitor, and HDMI to some sort of sound system? I've never tried getting HDMI sound working without video. You might be able to bash it into shape, maybe this link will give you some ideas-

http://maketecheasier.com/setup-hdmi...nux/2011/01/05

Thje lack of digital audio in your aplay -l readout is a little worring. It might not actually do digital audio output under linux, or it might need drivers added. Here is what I get from the system I am currently using-

Code:
card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
I do have a system here using a VIA 1708S (which has been know to appear as VIA 1705 in ALSA), I'll have a look at it in the next day or 3 and see if its got digital audio listed in aplay -l.
 
Old 02-07-2012, 11:20 AM   #8
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by cascade9 View Post
Hmm...I thought that you were going to get a ASRock H61M/U3S3 in what you said in your 'Linux HTPC build' thread?

http://www.linuxquestions.org/questi...bility-922499/

I take it you got a diferent board, that asrock has realtek ALC662 sound, not VIA VT1705.
I'll have to check when I get home tonight ... but I'm pretty sure that /is/ the board I got. Not sure why it would be showing a different chipset. Doubly odd, then, that it's working over the analog.

Quote:
Originally Posted by cascade9 View Post
BTW, I'm guessing that you are trying to use DVI to the monitor, and HDMI to some sort of sound system? I've never tried getting HDMI sound working without video. You might be able to bash it into shape, maybe this link will give you some ideas-

http://maketecheasier.com/setup-hdmi...nux/2011/01/05
Well, to be fair, the DVI / HDMI think is a temporary workaround. I need to check my other monitors and see if one of them accepts HDMI, but I'm buying a new TV semi-soon (which /will/ have HDMI), so I'm not going to be using DVI for long.

Do you think it'll "just work" if I'm using the HDMI as the primary monitor? I'll have to give it a shot tonight if I get home early enough (and have a monitor that takes HDMI ... I think I do).

I'll also give the ideas in the link a go. I was using alsamixer to look at things (more familiar with it), but if he got it working through pulse, it's worth a shot. Sounds like he's right where I was ... no asound.conf for the HDMI plug. Looks promising (and wish I'd seen this guy's post earlier!).

Quote:
Originally Posted by cascade9 View Post
The lack of digital audio in your aplay -l readout is a little worring. It might not actually do digital audio output under linux, or it might need drivers added. Here is what I get from the system I am currently using-

Code:
card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
I do have a system here using a VIA 1708S (which has been know to appear as VIA 1705 in ALSA), I'll have a look at it in the next day or 3 and see if its got digital audio listed in aplay -l.
So the "Digital" output is the listing for your HDMI port and not for a separate s/pdif or optical? I assumed the "HDMI" output I see in my aplay was the correct one.

Last edited by JohnLocke; 02-07-2012 at 11:22 AM.
 
Old 02-07-2012, 11:57 AM   #9
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally Posted by JohnLocke View Post
Do you think it'll "just work" if I'm using the HDMI as the primary monitor? I'll have to give it a shot tonight if I get home early enough (and have a monitor that takes HDMI ... I think I do).
In my expereince, it normally takes playing with the alsa mixer settings, just to make sure that the audio is going through HDMI.

Quote:
Originally Posted by JohnLocke View Post
I'll also give the ideas in the link a go. I was using alsamixer to look at things (more familiar with it), but if he got it working through pulse, it's worth a shot. Sounds like he's right where I was ... no asound.conf for the HDMI plug. Looks promising (and wish I'd seen this guy's post earlier!).
I would be using alsa as well, same reason.

But I know that the *buntus use pulse, and when I found that link I though, "well, it cant hurt to give JohnLocke the link"

Quote:
Originally Posted by JohnLocke View Post
So the "Digital" output is the listing for your HDMI port and not for a separate s/pdif or optical? I assumed the "HDMI" output I see in my aplay was the correct one.
Nah, its not HDMI, I havent got a HDMI video (or sound) card in this system.

AFAIK HDMI only outputs digital audio, it wont do analog. I'd need to dig more to know that for sure..... All I can say is that everytime I've got HDMI sound + video running the sound card has had a digital setting, not just anaglog.

Quote:
Originally Posted by JohnLocke View Post
I'll have to check when I get home tonight ... but I'm pretty sure that /is/ the board I got. Not sure why it would be showing a different chipset. Doubly odd, then, that it's working over the analog.
Hmm.

If that is the board you got, and for some reason *buntu, or alsa, or pusle, or something else I havent thought of has made a mistake and miss IDed the sound chip, its possible that its running enough to get analog 2 channel output, but not 5.1, or digital output.

BTW, the system I do have here with a HDMI video card has a VIA 1708S sound chip in it. I also have a TV with HDMI inputs....but no HDMI cable. The damn TV only does 1024x768 on HDMI, not 1920x1080 (native res for the TV) or else I would have tracked down a HDMI cable for testing it before now. Hopefully someone I know has a HDMI cable they can lend me....for some reason the HDMI cables I've seen in stores are far too expensive (normally $40+ for cables I can get online for $10 or less)
 
Old 02-07-2012, 07:51 PM   #10
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
Well, now I'm just embarrassed. In a "it's working" kind of way, though.

Not sure which was the master-stroke, but I upgraded the nvidia drivers using the x-swat libraries to 290.10. Cool.

Then I plugged in an HDMI monitor as the "monitor out" for my receiver and told the HTPC it only had one monitor (not sure that was necessary, but /you/ try splitting screens between a 62" bigscreen that's running 720p and a 30" monitor running 1080p that are 3 feet from each other when XBMC refused to be in just one or the other ... it hurts the eyes, man!). Then reboot. Boom, we're up on one monitor. No surprises so far.

I tried once again to set the audio out in XBMC to HDMI (there's two HDMI settings, one of which is NVidia HDMI, so I picked that one) and this time didn't get a popup telling me it couldn't initialize. Interesting.

I pressed play on Serenity (the movie, not my computer) and was about blown away. Once I turned down the sound, I was able to verify full 5.1 coming out of my speakers (as in, the rears were playing different stuff than the fronts). It was glorious.

So I don't know if it was the simple act of plugging in an HDMI monitor or upgrading from 285 to 290. But one of those "Just worked."

Guess I have to go get that HDMI tv ASAP.
 
Old 02-07-2012, 07:56 PM   #11
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
Just tried an experiment.

Took the monitor off and plugged the DVI back in. No sound.

It seems the HDMI port is trying to be smart and won't run unless it's getting some kind of callback signal, /or/ nvidia is disabling the monitor it doesn't see. In the nvidia-settings, it shows my yamaha receiver, but of course, has no idea what to set the refresh rates or display to. Even if I force it to be active and tell it what to use, it still doesn't give me any sound.

Plug the monitor in, and all is golden again.
 
Old 02-10-2012, 06:03 AM   #12
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I'm a bit confused about how this actually fixed itself...but no matter, its working. Congrats!

As a bonus it took virtually no input from me. I like the easy jobs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia ION no sound over HDMI Xubuntu manox Linux - Desktop 9 01-24-2012 10:38 AM
Nvidia HDMI not working. WRXSTi Linux - Hardware 1 11-22-2010 03:30 PM
No sound through inboard HDMI on Fedora 12 with proprietary NVIDIA video driver rcx11 Linux - Hardware 9 08-21-2010 08:29 PM
Missing the perimeter of my desktop - Video Card / DVI-HDMI waffe Linux - Hardware 3 04-20-2009 01:23 PM
NVIDIA GeForce 8200 using HDMI connection to TV RLH1919 Linux - Hardware 2 04-13-2009 04:08 PM


All times are GMT -5. The time now is 11:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration