#StackBounty: #audio #pulseaudio #alsa #nixos How can I get my laptop's internal speakers to work correctly on NixOS?

Bounty: 100

As far as I can tell, the subwoofers on my Lenovo Yoga C930 aren’t being engaged at all on NixOS, which results in a really flat sound. The speakers sound great when I reboot into Windows 10. How can I configure NixOS so that I can get these speakers to work fully?

This is what I think is the relevant output from lspci -v:

00:1f.3 Multimedia audio controller: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
    Subsystem: Lenovo Device 3831
    Flags: bus master, fast devsel, latency 32, IRQ 146
    Memory at 2ffb018000 (64-bit, non-prefetchable) [size=16K]
    Memory at 2ffb000000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_soc_skl

Edit: here’s the output of aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC298 Analog [ALC298 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Edit: and here’s the output of alsa-info.sh.

Edit: Here’s what I’m seeing in hdajackretask: hda-jack-retask screenshot

Edit: And here are some errors I’ve been getting: errors

Hdajackretask creates a script in /tmp that I can run with sudo just fine, but then I don’t think changes take effect.

So the problem is not really that I don’t have tee installed (I do; hdajackretask just can’t see it), it’s that I don’t know the right settings (pins, functions, etc) to set it to, and I don’t know how to get the actual changes to take effect on NixOS.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.