LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu 12.04 w/ Nvidia HDMI - no sound devices (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-12-04-w-nvidia-hdmi-no-sound-devices-4175413946/)

JohnLocke 06-28-2012 11:56 PM

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.

JohnLocke 06-29-2012 09:27 PM

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.

dan1982 07-16-2012 01:07 AM

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?

JohnLocke 07-16-2012 11:16 AM

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.

dan1982 07-16-2012 06:55 PM

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.


All times are GMT -5. The time now is 02:15 AM.