I installed NixOS on my relatively recent HP Spectre 14t from late 2020 (the one with the Tigerlake Processor and 3:2 screen).
Everything runs fine except for the sound and that is a strange problem because it does work on Linux in general. I tested with Ubuntu 20.10 and 21.04 that the sound will work just fine (at least as of Kernel 5.11.13, which is currently the latest kernel version in nixpkgs).
The Archlinux wiki has a page dedicated to this device family: HP Spectre x360 (2020) - ArchWiki and they also report that it should, in theory, work relatively straight forward.
In my configuration.nix
if have the following - hopefully relevant - entries:
boot.kernelPackages = pkgs.linuxPackages_latest;
sound.enable = true;
hardware.firmware = [ pkgs.unstable.sof-firmware ]; # unstable target the nixos-unstable channel (it doesn't work either way)
users.user.myuser = {
# ...
extraGroups = [ "wheel" "input" "video" "lp" "scanner" "audio" ];
}
And the Kernel modules / hardware-configuration.nix
:
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "usbhid" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
Any suggestion is welcome since I’m slowly out of ideas
N. b.: pactl list cards
, aplay -l
and inxi -A
all report that no device is found.
# output of dmesg | grep audio
[ 2.226103] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 2.226109] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[ 2.226120] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
[ 2.226314] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 3.916196] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 3.972589] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[ 3.992376] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
[ 3.992378] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[ 3.992382] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 2
[ 3.992473] sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof/sof-tgl.ri failed with error -2
[ 3.992475] sof-audio-pci 0000:00:1f.3: error: request firmware intel/sof/sof-tgl.ri failed err: -2
[ 3.992505] sof-audio-pci 0000:00:1f.3: error: failed to load DSP firmware -2
[ 3.992763] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -2