Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No nvidia HDMI Audio Card, T460p, GeForce 940MX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
soloslinger
n00b
n00b


Joined: 13 Oct 2006
Posts: 36

PostPosted: Tue Oct 03, 2017 5:06 pm    Post subject: No nvidia HDMI Audio Card, T460p, GeForce 940MX Reply with quote

Hey all,
I for the life of me can't seem to get my nvidia card to show up as a sound card. The nvidia card works perfectly running my desktop, and I'm able to get audio out of the analog jack. But the system doesn't see the card, and I (presumbably as a consequence) can't play any audio over HDMI. I've tried various combinations of the kernel sound options with no luck.

I don't suppose someone can save me from myself? What do I have misconfigured? Shouldn't I have another card in listed in /proc/asound/cards?

Any help would be greatly appreciated.
Thanks in advance,
soloslinger


Code:

$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf2240000 irq 126


Code:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Code:

$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, Generic Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, Generic Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Digital
    HDMI Audio Output


Kernel modules
Code:

$ lsmod
Module                  Size  Used by
snd_intel8x0m          20480  0
snd_hda_codec_analog    16384  0
snd_intel8x0           36864  0
snd_ac97_codec        110592  2 snd_intel8x0m,snd_intel8x0
ac97_bus               16384  1 snd_ac97_codec
iwlmvm                270336  0
nvidia_drm             40960  0
nvidia_modeset        815104  1 nvidia_drm
x86_pkg_temp_thermal    16384  0
nvidia              12546048  4 nvidia_modeset
kvm_intel             184320  0
iwlwifi               204800  1 iwlmvm
snd_hda_codec_hdmi     45056  0
snd_hda_codec_realtek    69632  0
efivarfs               16384  1


Relevant kernel options
Code:

$ grep SND_HDA /usr/src/linux/.config | grep -v "#"
CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_CODEC_REALTEK=m
CONFIG_SND_HDA_CODEC_ANALOG=m
CONFIG_SND_HDA_CODEC_HDMI=m
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_PREALLOC_SIZE=64


Full kernel config:
https://paste.pound-python.org/show/MBR7qIkrMwXd19TXFZ7y/

Relevant lspci output
Code:

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) (prog-if 00 [VGA controller])
        Subsystem: Lenovo HD Graphics 530
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 122
        Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=16M]
        Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at e000 [size=64]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express (v2) Root Complex Integrated Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0
                        ExtTag- RBE+
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis-, LTR-, OBFF Not Supported
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: feeff00c  Data: 4191
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Process Address Space ID (PASID)
                PASIDCap: Exec+ Priv-, Max PASID Width: 14
                PASIDCtl: Enable- Exec- Priv-
        Capabilities: [200 v1] Address Translation Service (ATS)
                ATSCap: Invalidate Queue Depth: 00
                ATSCtl: Enable-, Smallest Translation Unit: 00
        Capabilities: [300 v1] Page Request Interface (PRI)
                PRICtl: Enable- Reset-
                PRISta: RF- UPRGI- Stopped-
                Page Request Capacity: 00008000, Page Request Allocation: 00000000
        Kernel driver in use: i915

00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
        Subsystem: Lenovo Sunrise Point-H HD Audio
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64
        Interrupt: pin A routed to IRQ 126
        Region 0: Memory at f2240000 (64-bit, non-prefetchable) [size=16K]
        Region 4: Memory at f2230000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000feeff00c  Data: 41d1
        Kernel driver in use: snd_hda_intel

02:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
        Subsystem: Lenovo GM108M [GeForce 940MX]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 18
        Region 0: Memory at f1000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Region 3: Memory at d0000000 (64-bit, prefetchable) [size=32M]
        Region 5: I/O ports at d000 [size=128]
        Capabilities: [60] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [78] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 75.000W
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #2, Speed 8GT/s, Width x4, ASPM L0s L1, Exit Latency L0s <512ns, L1 unlimited
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x4, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range AB, TimeoutDis+, LTR+, OBFF Via message
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR+, OBFF Disabled
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+, EqualizationPhase1+
                         EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest-
        Capabilities: [100 v1] Virtual Channel
                Caps:   LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb:    Fixed- WRR32- WRR64- WRR128-
                Ctrl:   ArbSelect=Fixed
                Status: InProgress-
                VC0:    Caps:   PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:   Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
                        Status: NegoPending- InProgress-
        Capabilities: [250 v1] Latency Tolerance Reporting
                Max snoop latency: 34326183936ns
                Max no snoop latency: 34326183936ns
        Capabilities: [258 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=255us PortTPowerOnTime=10us
        Capabilities: [128 v1] Power Budgeting <?>
        Capabilities: [600 v1] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900 v1] #19
        Kernel driver in use: nvidia
        Kernel modules: nvidia_drm, nvidia


full lspci output:
https://paste.pound-python.org/show/thnQGYWYOxdsfYD5Yk4W/

Relevant dmesg output
Code:

$ grep -i snd lappy_dmesg.txt
[    2.152292] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops 0xffffffff81cb69c0)
[    2.171146] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    2.171149] snd_hda_codec_generic hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.171151] snd_hda_codec_generic hdaudioC0D0:    hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[    2.171152] snd_hda_codec_generic hdaudioC0D0:    mono: mono_out=0x0
[    2.171154] snd_hda_codec_generic hdaudioC0D0:    inputs:
[    2.171156] snd_hda_codec_generic hdaudioC0D0:      Mic=0x1a
[    2.171158] snd_hda_codec_generic hdaudioC0D0:      Internal Mic=0x12
[    2.175561] snd_hda_codec_generic hdaudioC0D2: autoconfig for Generic: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line
[    2.175562] snd_hda_codec_generic hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.175563] snd_hda_codec_generic hdaudioC0D2:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.175564] snd_hda_codec_generic hdaudioC0D2:    mono: mono_out=0x0
[    2.175564] snd_hda_codec_generic hdaudioC0D2:    dig-out=0x3/0x0
[    2.175565] snd_hda_codec_generic hdaudioC0D2:    inputs:
$ grep -i nvidia lappy_dmesg.txt
[    3.705576] nvidia: loading out-of-tree module taints kernel.
[    3.705579] nvidia: module license 'NVIDIA' taints kernel.
[    3.710606] nvidia-nvlink: Nvlink Core is being initialized, major device number 247
[    3.710764] nvidia 0000:02:00.0: enabling device (0004 -> 0007)
[    3.710916] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  384.59  Wed Jul 19 23:53:34 PDT 2017 (using threaded interrupts)
[    3.735557] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  384.59  Wed Jul 19 23:46:42 PDT 2017
[    3.738112] [drm] [nvidia-drm] [GPU ID 0x00000200] Loading driver
[    3.738114] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:02:00.0 on minor 1
[    3.990517] nvidia-smi (2113) used greatest stack depth: 12656 bytes left


Full dmesg output:
https://paste.pound-python.org/show/iABbYtGPDKZ5bScS9obw/
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 341

PostPosted: Tue Oct 03, 2017 6:06 pm    Post subject: Reply with quote

Check if u have [*] Dynamic device file minor numbers enabled, if no then add it.
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
soloslinger
n00b
n00b


Joined: 13 Oct 2006
Posts: 36

PostPosted: Tue Oct 03, 2017 6:17 pm    Post subject: Reply with quote

mir3x wrote:
Check if u have [*] Dynamic device file minor numbers enabled, if no then add it.


Unfortunately, it is already enabled. If you have any other ideas, I'd definitely be open to hear them!

soloslinger
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 341

PostPosted: Tue Oct 03, 2017 6:27 pm    Post subject: Reply with quote

Hmm, that's that Optimus thing :D, no idea about that.
Maybe look here:
https://forums.gentoo.org/viewtopic-t-1002278-start-0.html

https://wiki.gentoo.org/wiki/NVIDIA_Optimus_and_HDMI_Output_Configuration
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
soloslinger
n00b
n00b


Joined: 13 Oct 2006
Posts: 36

PostPosted: Tue Oct 03, 2017 7:56 pm    Post subject: Reply with quote

Hrm. That seems to apply to my hardware. Grr. Learning something new. If I understand correctly, that means the HDMI out is running on the integrated graphics card, not my nvidia card, and I'll never get sound through HDMI. Is this an nvidia thing or is this a Linux thing? Both?

https://wiki.gentoo.org/wiki/NVIDIA_Optimus_and_HDMI_Output_Configuration


More grrs!
soloslinger
Back to top
View user's profile Send private message
hhfeuer
n00b
n00b


Joined: 28 Jul 2005
Posts: 59

PostPosted: Sat Oct 07, 2017 1:29 pm    Post subject: Reply with quote

The important log would be the Xorg.0.log to see if the HDMI is really connected to the Nvidia GPU. If that is the case, the Nvidia audio function can be activated, see:
https://devtalk.nvidia.com/default/topic/1024022/linux/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/post/5211273/#5211273
A bit tricky, report back.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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