LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 05-24-2013, 08:53 AM   #1
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
nVidia HDMI sound


System is a Vaio VPCF1 laptop w/nVidia GEForce 330m built in, running openSUSE 12.3, and pulseaudio.

As noted in my other thread about this system, the HDMI output port 'just works' when plugged in, using the latest nVidia proprietary drivers. However....sound was a problem, and took some digging to figure out a solution.

First, you have to figure out which HDMI device supports sound output. You can run this command:
Code:
grep eld_valid /proc/asound/NVidia/eld*
...and it will output something like:
Code:
/proc/asound/NVidia/eld#0.0:eld_valid           0
/proc/asound/NVidia/eld#1.0:eld_valid           1
/proc/asound/NVidia/eld#2.0:eld_valid           0
/proc/asound/NVidia/eld#3.0:eld_valid           0
The device with the '1' is what you're after. A note here: if you just plug a device in, the command may not return anything valid. You can fix it either by plugging in the HDMI device before powering-up, or by removing/re-inserting the module-udev-detect module.

Running "aplay -l" will give you:
Code:
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
The device numbers are what you're after. You can then test the output to make sure you're getting HDMI sound by:
Code:
aplay -D plughw:NVidia,3 /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:NVidia,7 /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:NVidia,8 /usr/share/sounds/alsa/Front_Center.wav
aplay -D plughw:NVidia,9 /usr/share/sounds/alsa/Front_Center.wav
...for example. If you get a 1 from the grep command, one of these will work.

The big HOWEVER, though, is that KDE won't let you choose the output channel of things easily, if at all. I found it easier to use VLC player (which DOES), and play media through it. You can go into audio settings, and choose a device, and it works fine.

If anyone has good ideas on how to easily change KDE's default output, I'd love to hear it.
 
Old 05-24-2013, 09:00 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Does the Pulse Audio Volume Control not work under KDE? That's what I use to chose where my sound is sent. It does route all sound through the chosen device though.
 
Old 05-24-2013, 09:43 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Original Poster
Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by 273 View Post
Does the Pulse Audio Volume Control not work under KDE? That's what I use to chose where my sound is sent. It does route all sound through the chosen device though.
It works fine...however, due to a device-enumeration problem, unless the HDMI device that accepts output is FIRST in the chain, you're out of luck. In VLC, it'll show all 4 HDMI devices, and I can pick the second. In the pulseaudio control, it shows the FIRST...which is inactive, and won't go past there.

From what I've read, they're working on this, and I'd be just fine with being able to run that and shovel everything out the HDMI port...or (better), have it AUTOMATICALLY go to HDMI when I plug it in...but the device doesn't show up to be selected.
 
Old 08-06-2013, 06:58 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

Quote:
/proc/asound/NVidia/eld#1.0:eld_valid 1
tells you ....you can get correct output, but I can not see how that translates into actual device numbers.


2) by any chance did your test of
Quote:
aplay -D plughw:NVidia,7 /usr/share/sounds/alsa/Front_Center.wav
prove fruitful

otherwise, why not just look for the devices in aplay -L.(capital l)...that match playback ability and try each in turn.
I am betting if you run aplay -L you will also see devices for NVidia as DEVs 3,7,8,9
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(RHEL 5.6) No sound after installing NVIDIA Video Card with hdmi neoserdes Linux - Hardware 8 08-19-2015 09:52 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
Ubuntu 12.04 w/ Nvidia HDMI - no sound devices JohnLocke Linux - Newbie 4 07-16-2012 06:55 PM
NVidia GT520 HDMI sound missing JohnLocke Linux - Hardware 11 02-10-2012 06:03 AM
nvidia ION no sound over HDMI Xubuntu manox Linux - Desktop 9 01-24-2012 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration