Hi,
The sound is not working on fresh Nixos on the HP EliteBook. When pushing sound control buttons or looking at the sound settings in Gnome, it only shows Dummy output.
My configuration.nix is here. I’ve added snd-hda-intel and enableAllFirmware, and sof-firmware which I saw in some threads, but it didn’t fix the problem.
sound.enable = true;
hardware.enableAllFirmware = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
boot.extraModprobeConfig = ''
options snd slots=snd-hda-intel
'';
environment.systemPackages = with pkgs; [
sof-firmware
}
And here are the outputs of aplay --list-devices
aplay: device_list:277: no soundcards found...
lsmod | grep snd
snd_seq_dummy 12288 0
snd_hrtimer 12288 1
snd_seq 110592 7 snd_seq_dummy
snd_seq_device 16384 1 snd_seq
snd_soc_skl_hda_dsp 24576 0
snd_soc_intel_hda_dsp_common 16384 1 snd_soc_skl_hda_dsp
snd_sof_probes 24576 0
snd_soc_hdac_hdmi 45056 1 snd_soc_skl_hda_dsp
snd_hda_codec_hdmi 94208 0
snd_hda_codec_realtek 200704 0
snd_hda_codec_generic 110592 1 snd_hda_codec_realtek
ledtrig_audio 12288 1 snd_hda_codec_generic
snd_soc_dmic 12288 0
snd_sof_pci_intel_tgl 12288 0
snd_sof_intel_hda_common 241664 1 snd_sof_pci_intel_tgl
snd_soc_hdac_hda 28672 1 snd_sof_intel_hda_common
soundwire_intel 81920 1 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink 36864 2 soundwire_intel,snd_sof_intel_hda_common
snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common
snd_sof_pci 24576 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp 16384 1 snd_sof_intel_hda_common
snd_sof 421888 4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
snd_sof_utils 16384 1 snd_sof
snd_hda_ext_core 36864 5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_soc_acpi_intel_match 94208 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_soc_core 446464 8 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
snd_compress 28672 2 snd_soc_core,snd_sof_probes
ac97_bus 12288 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_intel 65536 0
snd_intel_dspcfg 36864 3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_intel_sdw_acpi 16384 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec 212992 8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda,snd_soc_skl_hda_dsp
snd_hda_core 139264 11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 184320 12 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
snd_timer 49152 3 snd_seq,snd_hrtimer,snd_pcm
snd 151552 16 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm
soundcore 16384 1 snd
led_class 20480 4 snd_hda_codec_generic,videodev,input_leds,iwlmvm
firmware_class 57344 12 btrtl,snd_hda_intel,xhci_pci_renesas,btmtk,snd_sof,drm_display_helper,btintel,btbcm,iwlwifi,btusb,i915,cfg80211
However the sound works on Pop!_OS live USB. If it helps, here are the outputs from Pop!_OS for aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
and from Pop!_OS lsmod | grep snd
snd_seq_dummy 12288 0
snd_hrtimer 12288 1
snd_ctl_led 24576 0
ledtrig_audio 12288 1 snd_ctl_led
snd_soc_skl_hda_dsp 24576 4
snd_soc_hdac_hdmi 45056 1 snd_soc_skl_hda_dsp
snd_soc_intel_hda_dsp_common 16384 1 snd_soc_skl_hda_dsp
snd_sof_probes 20480 0
snd_hda_codec_hdmi 98304 1
snd_hda_codec_realtek 200704 1
snd_hda_codec_generic 122880 1 snd_hda_codec_realtek
snd_hda_scodec_component 20480 1 snd_hda_codec_realtek
snd_soc_dmic 12288 1
snd_sof_pci_intel_tgl 12288 0
snd_sof_intel_hda_common 221184 1 snd_sof_pci_intel_tgl
soundwire_intel 73728 1 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink 45056 2 soundwire_intel,snd_sof_intel_hda_common
snd_sof_intel_hda 24576 1 snd_sof_intel_hda_common
snd_sof_pci 24576 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp 12288 1 snd_sof_intel_hda_common
snd_sof 385024 4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
snd_sof_utils 16384 1 snd_sof
snd_soc_hdac_hda 24576 1 snd_sof_intel_hda_common
snd_soc_acpi_intel_match 102400 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_soc_avs 196608 0
snd_soc_hda_codec 24576 1 snd_soc_avs
snd_hda_ext_core 32768 7 snd_soc_avs,snd_soc_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_soc_core 442368 10 snd_soc_avs,snd_soc_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
snd_compress 28672 3 snd_soc_avs,snd_soc_core,snd_sof_probes
ac97_bus 12288 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_intel 61440 0
snd_intel_dspcfg 36864 4 snd_soc_avs,snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_intel_sdw_acpi 16384 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec 204800 10 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda,snd_soc_skl_hda_dsp
snd_hda_core 139264 13 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 196608 13 snd_soc_avs,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
snd_seq_midi 24576 0
snd_seq_midi_event 16384 1 snd_seq_midi
snd_rawmidi 57344 1 snd_seq_midi
snd_seq 114688 9 snd_seq_midi,snd_seq_midi_event,snd_seq_dummy
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer 49152 3 snd_seq,snd_hrtimer,snd_pcm
snd 143360 26 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
soundcore 16384 2 snd_ctl_led,snd
I don’t know how to run lscpi -v on NixOS, but it’s output from the pop os is
00:00.0 Host bridge: Intel Corporation Device 4601 (rev 04)
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IOMMU group 1
Capabilities: <access denied>
Kernel driver in use: igen6_edac
Kernel modules: igen6_edac
00:02.0 VGA compatible controller: Intel Corporation Device 4628 (rev 0c) (prog-if 00 [VGA controller])
DeviceName: Onboard IGD
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IRQ 172, IOMMU group 0
Memory at 601c000000 (64-bit, non-prefetchable) [size=16M]
Memory at 4000000000 (64-bit, prefetchable) [size=256M]
I/O ports at 3000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915, xe
00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 04)
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 2
Memory at 601d140000 (64-bit, non-prefetchable) [size=128K]
Capabilities: <access denied>
Kernel driver in use: proc_thermal_pci
Kernel modules: processor_thermal_device_pci
00:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 04) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 122, IOMMU group 3
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: [disabled]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport
00:06.2 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #2 (rev 04) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 123, IOMMU group 4
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: 82200000-822fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport
00:07.0 PCI bridge: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 04) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 124, IOMMU group 5
Bus: primary=00, secondary=03, subordinate=2c, sec-latency=0
I/O behind bridge: 00004000-00004fff [size=4K]
Memory behind bridge: 76000000-821fffff [size=194M]
Prefetchable memory behind bridge: 0000006000000000-000000601bffffff [size=448M]
Capabilities: <access denied>
Kernel driver in use: pcieport
00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 04)
Subsystem: Hewlett-Packard Company Device 897b
Flags: fast devsel, IRQ 255, IOMMU group 6
Memory at 601d193000 (64-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: <access denied>
00:0d.0 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller (rev 04) (prog-if 30 [XHCI])
Subsystem: Hewlett-Packard Company Alder Lake-P Thunderbolt 4 USB Controller
Flags: bus master, medium devsel, latency 0, IRQ 125, IOMMU group 7
Memory at 601d170000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:0d.2 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 (rev 04) (prog-if 40 [USB4 Host Interface])
Subsystem: Hewlett-Packard Company Alder Lake-P Thunderbolt 4 NHI
Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 7
Memory at 601d100000 (64-bit, non-prefetchable) [size=256K]
Memory at 601d192000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01) (prog-if 30 [XHCI])
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, medium devsel, latency 0, IRQ 150, IOMMU group 8
Memory at 601d160000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: fast devsel, IOMMU group 8
Memory at 601d188000 (64-bit, non-prefetchable) [disabled] [size=16K]
Memory at 601d191000 (64-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: <access denied>
00:14.3 Network controller: Intel Corporation Alder Lake-P PCH CNVi WiFi (rev 01)
Subsystem: Intel Corporation Device 0094
Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 9
Memory at 601d184000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 10
Memory at 4017000000 (64-bit, non-prefetchable) [virtual] [size=4K]
Capabilities: <access denied>
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IRQ 173, IOMMU group 11
Memory at 601d18f000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: mei_me
Kernel modules: mei_me
00:1e.0 Communication controller: Intel Corporation Alder Lake PCH UART #0 (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 12
Memory at 4017001000 (64-bit, non-prefetchable) [virtual] [size=4K]
Capabilities: <access denied>
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:1e.2 Serial bus controller: Intel Corporation Device 51aa (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IRQ 36, IOMMU group 12
Memory at 4017002000 (64-bit, non-prefetchable) [virtual] [size=4K]
Capabilities: <access denied>
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:1f.0 ISA bridge: Intel Corporation Alder Lake PCH eSPI Controller (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 0, IOMMU group 13
00:1f.3 Multimedia audio controller: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
DeviceName: Onboard Audio
Subsystem: Hewlett-Packard Company Device 897b
Flags: bus master, fast devsel, latency 64, IRQ 188, IOMMU group 13
Memory at 601d180000 (64-bit, non-prefetchable) [size=16K]
Memory at 601d000000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: sof-audio-pci-intel-tgl
Kernel modules: snd_hda_intel, snd_soc_avs, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: medium devsel, IRQ 16, IOMMU group 13
Memory at 601d18c000 (64-bit, non-prefetchable) [size=256]
I/O ports at efa0 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
Subsystem: Hewlett-Packard Company Device 897b
Flags: fast devsel, IOMMU group 13
Memory at 74800000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: intel-spi
Kernel modules: spi_intel_pci
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (16) I219-LM (rev 01)
Subsystem: Hewlett-Packard Company Ethernet Connection (16) I219-LM
Flags: bus master, fast devsel, latency 0, IRQ 133, IOMMU group 13
Memory at 82300000 (32-bit, non-prefetchable) [size=128K]
Capabilities: <access denied>
Kernel driver in use: e1000e
Kernel modules: e1000e
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller 980 (prog-if 02 [NVM Express])
Subsystem: Samsung Electronics Co Ltd Device a801
Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 14
Memory at 82200000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: nvme
Kernel modules: nvme