View previous topic :: View next topic |
Author |
Message |
HungGarTiger Apprentice
Joined: 04 Feb 2014 Posts: 180 Location: /nz/auckland
|
Posted: Mon Nov 05, 2018 12:24 am Post subject: [Solved] Sound issue after GPU upgrade |
|
|
[Solved] This issue was eventually solved by emerging pavucontrol and selecting the correct devices via the GUI.
I recently upgraded an old GTS450 to GTX950, running an HDMI cable through to my LG 4k TV. The sound worked perfectly on my old card but I'm getting nothing through after the upgrade and kernel fiddle.
lspci -k
dmesg | grep -i codec && full dmesg
zcat /proc/config.gz
If you need anything else, I'll happily provide as this has got me stumped.
edit* made some changes to kernel config, changed everything in Drivers > Sound to be built into the kernel rather than modules. /proc/config.gz is here.
Last edited by HungGarTiger on Tue Nov 20, 2018 3:21 am; edited 2 times in total |
|
Back to top |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 501
|
Posted: Mon Nov 05, 2018 1:19 am Post subject: |
|
|
Was your onboard soundcard card 0 before?
Also, I don't see any firmware loaded for the gpu? |
|
Back to top |
|
|
HungGarTiger Apprentice
Joined: 04 Feb 2014 Posts: 180 Location: /nz/auckland
|
Posted: Mon Nov 05, 2018 2:21 am Post subject: |
|
|
Ralphred wrote: | Was your onboard soundcard card 0 before?
Also, I don't see any firmware loaded for the gpu? |
From my knowledge I don't have an onboard sound card. The sound always ran through my tv.
The kernel module is loaded, I'm using Nouveau. Is that what you're referring to? |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Nov 05, 2018 2:25 am Post subject: |
|
|
You appear to have an onboard intel_hda sound chipset.
Did you change your /etc/asound.conf or ~/.asoundrc perhaps? Here is mine, but yours might be slightly different.
Code: | chris@kabylake ~ $ cat /etc/asound.conf
defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0
chris@kabylake ~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
|
edit: you might want to enable (not modules) the Realtek and HDMI codecs, and disable the other ones since you won't need them. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
HungGarTiger Apprentice
Joined: 04 Feb 2014 Posts: 180 Location: /nz/auckland
|
Posted: Mon Nov 05, 2018 2:40 am Post subject: |
|
|
bunder wrote: | You appear to have an onboard intel_hda sound chipset.
Did you change your /etc/asound.conf or ~/.asoundrc perhaps? Here is mine, but yours might be slightly different.
Code: | chris@kabylake ~ $ cat /etc/asound.conf
defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0
chris@kabylake ~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
|
edit: you might want to enable (not modules) the Realtek and HDMI codecs, and disable the other ones since you won't need them. |
I don't have either of those files you've listed, I've not changed anything to do with sound though. Just loaded alsa and pulseaudio plugin for Cinnamon. I was advised to make all the sound kernel settings modules, you think they should be built into the kernel? |
|
Back to top |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 501
|
Posted: Mon Nov 05, 2018 5:53 pm Post subject: |
|
|
From your dmesg Code: | [ 4.602380] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC1200: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[ 4.602383] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
~~~snip~~~
[ 4.615751] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14 |
That's your internal sound card, this Code: | [ 5.576985] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
[ 5.577076] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16 | is the hdmi output.
Chances are you old GFX card, for whatever reason, had it's drivers loaded first and was called card0, then your internal sound card drivers were loaded and that was called card1.
By default sound will play from card0 device0.
To get sound back where you want it you can either:
1:
As snd_hda_intel is a module you can edit /etc/modprobe.d/alsa.conf to include Code: | options snd_hda_intel id=HDMI index=0
options snd_hda_intel id=Realtek index=1 |
To switch them back. The word HDMI and Realtek there is a guess, best to run aplay -l and see what alsa calls them before you make the edit.
Then reboot (or force a reload of snd_hda_intel).
Or 2:
Alter /etc/asound.conf to change the default device Code: |
pcm.default {
type hw
card 1
}
ctl.default {
type hw
card 1
} |
Depending on your set-up this may not affect pulseaudio, so run pactl list sinks.
It will dump quite a lot of info, use that to find the name (the name will be long, like alsa_output.pci-0000-00-01.0.analog-stereo) of the sink* you want to be default, and put Code: | set-default-sink the_name_of_the_sink_here | at the end of /etc/pulse/default.pa
Again reboot (or force a reload of default.pa and asound.conf).
If you are still struggling paste the output of both aplay -l and aplay -L and pactl list sinks.
As far as the question about firmware goes, make sure you have linux-firmware installed, thats where the gm206 firmware comes from.
*a sink is an output in pulseaudio, somewhere to send sound to. |
|
Back to top |
|
|
HungGarTiger Apprentice
Joined: 04 Feb 2014 Posts: 180 Location: /nz/auckland
|
Posted: Mon Nov 05, 2018 10:00 pm Post subject: |
|
|
I've had a play around with it but still no luck
current kernel config
aplay -l
aplay -L
/etc/modprobe.d/alsa.conf
when I do a pactl list sinks all I get is an error.
Also, I can't try option 2 because I don't have /etc/asound.conf
When I run alsamixer and select my NVidia card is just goes two S/PIDF outputs, I don't know whether thats an important piece of info or not but I thought I would mention it anyway as in the sound menu in Cinnamon it lists the output device as "Digital Output (S/PDIF) Built in Audio" |
|
Back to top |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 501
|
Posted: Mon Nov 05, 2018 10:39 pm Post subject: |
|
|
3 questions 3 answers...
1:The lines in /etc.modprobe.d/alsa.conf are right, but wont work unless snd_hda_intel is a module, you have compiled it statically now, it was a module in the original .config you linked.
2:That's fine, just make one, with the info you have provided the following will make apps that use alsa as default play through your HDMI interface. Code: | pcm.default{
type hw
card 1
}
ctl.default{
type hw
card 1
} |
3:
You need to run pactl list sinks as a user, not root, pulseaudio is run by the user as default, not root, but its's redundant, I think...
Remember, there are two solutions here do either (solution 1) or (solution 2 and solution 3) |
|
Back to top |
|
|
HungGarTiger Apprentice
Joined: 04 Feb 2014 Posts: 180 Location: /nz/auckland
|
Posted: Thu Nov 08, 2018 6:11 am Post subject: |
|
|
Thank you for your help so far, I really appreciate it.
I think I've made some progress but, unfortunately still no sound.
aplay is now showing NVidia as card0.
Here is the output of pactl list sinks, I find it's slightly confusing, I'm not sure if it's showing the sound device as card1?
For completeness here is dmesg and /proc/config.gz
When I open alsamixer, it default displays "pulseaudio" as the card and chip with 1 master volume bar. I can select HDA NVidia as an option, this displays S/PDIF and S/PDIF 1 both values are 00 and no way to change them. If I select my HDA Intel as another option is displays the full range of volume bars. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|