LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2012, 11:56 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Rep: Reputation: 31
Ubuntu 12.04 w/ Nvidia HDMI - no sound devices


Went ahead and upgraded to 12.04 from 11.10 finally, and lost my sound. Not sure what's going on. If I look at the sound settings in Ubuntu, no devices are listed, however, aplay -l gives me:

Code:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT1705 Analog [VT1705 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: VT1705 HP [VT1705 HP]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
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 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Even stranger (to me), if I do an: aplay -D hw:1,3 /usr/share/sounds/alsa/Front_Center.wav, I get this:

Code:
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1087: Channels count non available
I check alsamixer, and I see that the Intel PCH card shows up. Switch to the Nvidia Card, and I just get two devices set to [00] and no ability to change them. So something's screwy.

I also suspected that Ubuntu is using pulse instead of alsa, so I checked pulseaudo -vv from the command line, and the interesting lines appear to be:

Code:
D: [pulseaudio] module-device-restore.c: Database contains invalid data for key: sink:alsa_output.hw_1_3:null
I: [pulseaudio] module.c: Loaded "module-alsa-sink" (index: #4; argument: "device=hw:1,3").
D: [pulseaudio] alsa-util.c: Trying hw:1,3 with SND_PCM_NO_AUTO_FORMAT ...
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC1D3c' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device hw:1,3: No such file or directory
E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=hw:1,3"): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.
Now, the only thing I can add is that during the upgrade, Ubuntu asked if I wanted to keep an alsa file (I believe ... I skipped through it too fast, but it could have been a pulse file it asked), and I said to keep, rather than replace it. That may have been a mistake. So it could easily be something in either my alsa configuration or my pulse configuration, but I've no idea what or where (and they both seemed too large to just post here randomly unless someone thinks they may be the culprit).

Any help figuring out where to look would be greatly appreciated. I figure I could probably roll back to 11.10 in the worst case, but who knows.
 
Old 06-29-2012, 09:27 PM   #2
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
I appear to have fixed this in lightdm. Haven't tested in XBMC yet, but if it works in one, I should be able to get the other working.

The magic was the following:

First, I deleted (moved) asound.conf and rewrote it with just the following:
Code:
pcm.!default hdmi:NVidia
pcm:iec958 hdmi:NVidia
Secondly, I looked at /etc/pulse/default.pa and noted that module-alsa-sink and module-alsa-source were being forcibly loaded (and failing). Since there's a default option to try and load them dynamically, I just commented out those two lines.

Lastly, I made sure my user (and the pulse user, though I'm not sure that mattered) was added to the audio group.

I did purge and reinstall alsa before all of this, but I don't think that had any bearing on the outcome.
 
Old 07-16-2012, 01:07 AM   #3
dan1982
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
i came across you thread and created a user profile just so i could reply to you. I am having trouble with audio out over hdmi. using ubuntu 12.04 and video out works perfectly. If i can work this last kink out windows will be wiped off the laptop. if it matters it a toshiba with amd quadcore and graphics. do you have any idea how i can go about getting audio out over hdmi to work?
 
Old 07-16-2012, 11:16 AM   #4
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
Not with no details provided, no. You're going to need to look at the logs (or post the relevant sections of them) to get a better clue than "trouble with audio". You can try what I did in this thread if it looks like exactly the same problem (not /too/ likely since I had an Nvidia card and an intel chip, but it might point you in the right direction).

Otherwise, you should start a new thread, not respond to one.

I'm the wrong person to ask anyway. I was asking for help, not providing it ... other people on here know a lot more about it and wouldn't have got in the pickle I did in the first place. Mine was caused (most likely) by upgrading and keeping the old asound.conf file I had. A fresh install probably wouldn't have had this problem. So yours is probably a different issue.
 
Old 07-16-2012, 06:55 PM   #5
dan1982
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
alrighty well thanks for getting back to me. gonna look into getting a log of whats going on like you suggested and start a thread.
 
  


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 Off
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
nVidia HDMI Audio sherb114 Linux - Hardware 8 04-06-2012 06:42 AM
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
No sound through inboard HDMI on Fedora 12 with proprietary NVIDIA video driver rcx11 Linux - Hardware 9 08-21-2010 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 AM.

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