LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-18-2021, 11:10 AM   #1
Unknown3rdParty
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Rep: Reputation: Disabled
Fedora 32 ... installed new Nvidia video card and lost sound from sound card


I recently installed an Nvidia-based Asus video card; I also have an Asus Xonar sound card. Until I installed the video card, sound had been working perfectly; my workstation is connected to a stereo receiver via a Toslink cable and it has been delivering glorious 5.1 sound.

To install the video card, I had to re-arrange cards: the Xonar is no longer in the same slot because that slot is now obscured by the video card. At this point, the PulseAudio volume meter actually shows sound being generated, and I've just disabled the sound on the monitor (thanks to a posting here). The receiver and speakers are still working correctly because I can switch to Tuner and pick up radio stations and broadcast sound. The receiver is not muted and I've disabled the Nvidia in PulseAudio ... but I still can't get sound over the sound card.

I know I caused this, and I think I know why I still don't have sound--probably a configuration file or entry which is still pointing at the wrong location--but finding and solving it has escaped me.

For starters, I have uploaded the output of my alsa-info to http://alsa-project.org/db/?f=439864...54f8cae047b5a7.
 
Old 03-18-2021, 12:08 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Unknown3rdParty View Post
I recently installed an Nvidia-based Asus video card; I also have an Asus Xonar sound card. Until I installed the video card, sound had been working perfectly; my workstation is connected to a stereo receiver via a Toslink cable and it has been delivering glorious 5.1 sound.
Your post clearly shows both Xonar and Nvidia sound cards, as well as onboard audio.
The nvidia is the HDMI output.

I see you are on Fedora 32 so I will assume gnome. Have you gone into the settings --> sound and checked which device is chosen there for sound output.? The addition of a new device (the video card) combined with relocation on the PCI bus has likely caused it to switch to a different output device. There are also volume settings there that are different than the pulseaudio settings.
 
Old 03-18-2021, 12:36 PM   #3
Unknown3rdParty
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
Your post clearly shows both Xonar and Nvidia sound cards, as well as onboard audio.
The nvidia is the HDMI output.

I see you are on Fedora 32 so I will assume gnome. Have you gone into the settings --> sound and checked which device is chosen there for sound output.? The addition of a new device (the video card) combined with relocation on the PCI bus has likely caused it to switch to a different output device. There are also volume settings there that are different than the pulseaudio settings.
Thank you for responding!

Well, not Gnome but Cinnamon, but same as (mostly). And correct: the onboard audio is from an MSI mainboard. What you're suggesting is exactly what I'm thinking: relocating the card to somewhere else on the PCI switched it to a different output device. Thus my thought that something in the conf files is pointing the output at the wrong position on the PCI bus.

Cinnamon Settings ... it shows that I'm using the Analog Output CMI8788 [Oxygen HD Audio] (Xonar DSX). If I select Analog Surround 5.1 Output, Test sound brings up the correct speaker representation, but no sound is generated from any of the speakers; I've also tried speaker-test as CLI, but with the same results. I have VLC open with an MP3 (Paul Simon's Graceland, FWIW), and that shows up under Applications, with audio output set to 95%.

Last edited by Unknown3rdParty; 03-18-2021 at 12:39 PM.
 
Old 03-18-2021, 02:04 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by Unknown3rdParty View Post
Cinnamon Settings ... it shows that I'm using the Analog Output CMI8788 [Oxygen HD Audio] (Xonar DSX).
That's because the Xonar sound device is set as Card0, if the Intel/Nvidia was set as Card0, perhaps it would work.
 
Old 03-18-2021, 02:13 PM   #5
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Is there an option in Firmware settings to select default sound device?
 
Old 03-19-2021, 08:33 AM   #6
Unknown3rdParty
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Is there an option in Firmware settings to select default sound device?
I'm not aware of any firmware options; I found a script posted on an ArchLinux forum that referenced a sound configuration script but I think that's unnecessary at this point. Also, as far as reversing cards ... I've made THREE changes that have simplified the situation:
1. I blacklisted the mainboard audio
2. I re-arranged my cards internally
3. I plugged my monitor into the SECOND DisplayPort on the Nvidia card.
I'm not sure what my exact goal was--a miracle, perhaps?--but the result was that I eliminated the Nvidia card. The rearrangement may have been unnecessary, the second ... I don't know, but HDMI and the mainboard audio no longer show up, I still don't have sound, but I still have a working sound meter showing sound output without actually having sound. The regenerated alsa-info was uploaded to http://alsa-project.org/db/?f=449ac2...cd0748ba5cbc15.

What I'm now considering at this point is amixer; regardless of what I run (except --help), it returns the following:
Code:
ALSA lib ctl_pulse.c:706:(_snd_ctl_pulse_open) Unknown field card
amixer: Mixer attach default error: Invalid argument
I'm going to restart and revisit. And I'm out of time this morning...
 
Old 03-19-2021, 08:47 AM   #7
Unknown3rdParty
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
I'm back up, no change, amixer still generates the same error.
 
Old 03-19-2021, 08:51 PM   #8
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
jo@willy ~ $ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xda120000 irq 138
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xdc080000 irq 17
I'm no expert in this arena, but it seems since the Optimus era for laptops, everything goes through the Intel Graphics, my laptop does have both Nvidia and onboard Intel, but not optimus, I switch via a hardware switch while running Windows, then click on the software "OK" to reboot to the other.

It seems this applies for audio also on my unit, the output above tells me the Intel is the default and Nvidia goes through Intel. Perhaps it is the same for newer Desktops.
 
Old 03-19-2021, 09:09 PM   #9
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Is the Xonar going through Intel also?
Perhaps there's a conflict as to who gets to piggyback Intel
 
Old 03-20-2021, 09:10 AM   #10
Unknown3rdParty
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Is the Xonar going through Intel also?
Perhaps there's a conflict as to who gets to piggyback Intel
Is the Xonar going through Intel? I don't know ... I don't think it did before. I un-blacklisted it to try again.

------ Next morning ------

Okay, I fixed the "cannot open mixer: Invalid argument" error in a...anything: aplay, amixer, alsamixer, etc.; I had thought to modifying the asound.conf file to point directly at the DSX, then commented it out my addition, but commented it out incorrectly. Anyway, I just removed my modifications and did systemctl restart alsa-state to restart alsa, and alsa applications now work.

By the way, https://wiki.archlinux.org/index.php..._defaults_node is a great guide for basic use of alsa tools. I know, Arch isn't my distro, but this page is focused solely on alsa.

So, I just now ran alsamixer; it shows a default (PulseAudio) and the Xonar DSX cards. S/PDIF (but not S/PDIF Loopback) was muted. I unmuted S/PDIF ... no change.

I know I don't know everything, but I thought the purpose of the add-in sound card was to provide the sound architecture for managing sound, but you asked if the Xonar is going through the Intel (assuming on-board), which suggests that the onboard architecture still maintains some kind of ... responsibility for processing sound. And remember, this isn't a laptop, it's a mid-tower...
 
Old 03-20-2021, 05:30 PM   #11
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
In my example running the $ cat /proc/asound/cards command as quoted below, both sound devices appear to go through the Intel chip. Card0 is [PCH ], Card1 is [NVidia ]. Run that command and see what it shows. Seems to me I've seen it like this for desktops also in other posts.
Quote:
HDA-Intel - HDA Intel PCH
HDA-Intel - HDA NVidia
 
Old 03-20-2021, 06:00 PM   #12
Unknown3rdParty
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
In my example running the $ cat /proc/asound/cards command as quoted below, both sound devices appear to go through the Intel chip. Card0 is [PCH ], Card1 is [NVidia ]. Run that command and see what it shows. Seems to me I've seen it like this for desktops also in other posts.
I'm on a fresh restart ... and I see the Nvidia card is back (gripe ... I'm about to dump it 'cause it's quickly becoming a boat anchor).

Code:
cat /proc/asound/cards
 0 [DSX            ]: AV200 - Xonar DSX
                      Asus Virtuoso 66 at 0x3000, irq 17
 1 [HDMI           ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xa3080000 irq 18
If I understand this correctly, the Nvidia card goes through the Intel chip, but the DSX card does not.

Currently, various iterations of speaker-test throw
Code:
speaker-test 1.2.3
.
.
.
Playback open error: -16,Device or resource busy
suggesting that something else is hogging the channel (per https://unix.stackexchange.com/quest...-using-arecord).

Before I installed the Nvidia card, sound worked perfectly and I could have sound coming from multiple sources...
 
Old 03-21-2021, 08:06 AM   #13
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
One thing I would do, which I don't recall you mentioning. Pull the Xonar and see if Nvidia HDMI works, sound should come through Intel, Intel needs to be enabled. If you get it working that way, then plug in the Xonar.
 
Old 03-26-2021, 07:36 PM   #14
Unknown3rdParty
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
One thing I would do, which I don't recall you mentioning. Pull the Xonar and see if Nvidia HDMI works, sound should come through Intel, Intel needs to be enabled. If you get it working that way, then plug in the Xonar.
Sorry, I've been busy all week and haven't had more than a few minutes to look at this mornings before work; now, it's Friday afternoon, and I have a few minutes.

I thought I noted that, with the Nvidia installed, my monitor speaker worked--tinny/squeaky and horribly unlistenable--and that the monitor was connected to a DisplayLink port on the card; without having done anything to the configuration, I have to assume that you're correct, that it was piggybacked on Intel, and the cat /proc/asound/cards I posted appears to confirm that ... I would not have known that. By contrast, the Xonar is connected to my AV receiver using a Toslink cable, and the same /proc/asound/cards output notes the AV200 link, not the Intel.

At this point, I decided to removed the video card; I've double checked and found that I had not disabled audio in the BIOS ... it is now definitely disabled, so that should also eliminate the Intel link. Because of "mitigating circumstances", I also replaced the Toslink cable to make sure it wasn't the previous cable; it wasn't. I'm trying to simplify this problem: because I moved the sound card to make room for the video card, that's why I removed the video card (I'm not a gamer); we'll see if, after sound is restored, I try re-installing it (not as important as I thought it was). Finally, Alsa and PulseAudio utilities are all working, the asound.conf is back to what it was (thanks to record keeping), /etc/pulse/default.pa was corrected to reflect the correct location of the Xonar DSX, and PA tools all show audio playback ... but there's still no sound. That suggests that there's something in the config pointing at the wrong location, and I haven't been able to locate it.
 
Old 03-30-2021, 09:43 AM   #15
Flosoney
LQ Newbie
 
Registered: Mar 2021
Posts: 1

Rep: Reputation: Disabled
Good post, thanks!
 
  


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
Fedora installed on USB drive boots from laptop w/nvidia card but not pc w/amd card allophyl Fedora 7 03-22-2020 02:58 AM
Installed with an SD Card in reader months ago; lost card, won't boot (VolGroup err) sandaili Fedora 2 07-02-2008 05:19 PM
Replacing Nvidia TNT2 video card for ATI Radeon 9250 after Mandriva 2007 is installed Maxei Mandriva 4 12-01-2006 06:45 PM
Lost interrupts after new HD, modem and sound card installed scm86 Linux - Newbie 4 09-16-2004 05:01 PM
Installed XFree 4.4 RC3 on Mdk 9.2 and lost video mode julian_s Mandriva 1 02-22-2004 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:02 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