Hello dear NixOs community.
If I’m opening this, its because I have been trying for many hours now how to fix my sound on my work laptop. It’s a real problem for me since I need to work remotely with others. After some recent nixos-rebuild switch
I realised I had no sound any more. No input or output.
I have read dozens of pages from NixOs Discourse, GitHub issues and other related topics like Sound not working, pulseaudio - Fixing No Sound (Dummy Output) Issue in Ubuntu 24.04 - Ask Ubuntu, PipeWire - NixOS Wiki, Audio system not working after an system upgrade on my thinkpad x1yoga gen5 · Issue #330685 · NixOS/nixpkgs · GitHub
The strange thing is that I do not have sound either from a USB-booted NixOs, or from my dual-booted Ubuntu.
I tried many rebuilds with for instance the boot.extraModprobeConfig ='' options snd-hda-intel dmic_detect=0 '';
trick. Nothing worked. I tried regenerating the hardware-configuration.nix
with nixos-generate-config
, I tried kernels 6_1, 6_11 and current kernel 6.6.51… without success.
So I guess it’s time to summon the community for any ideas. Here are some logs that you might find useful. My config can be found here: GitHub - 0nyr/nixos-config: My NixOS configuration.
Many logs:
❮onyr ★ nixos❯ ❮~❯❯ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0x622d188000 irq 185
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0x84080000 irq 17
❮onyr ★ nixos❯ ❮~❯❯ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/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 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
❮onyr ★ nixos❯ ❮~❯❯ arecord -l
**** List of CAPTURE Hardware Devices ****
❮onyr ★ nixos❯ ❮~❯❯ lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] (rev 0c)
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [Geforce RTX 3070 Ti Laptop GPU] (rev a1)
❮onyr ★ nixos❯ ❮~❯❯ sudo lshw -c multimedia
[sudo] password for onyr:
*-multimedia
description: NVidia
physical id: 0.1
bus info: pci@0000:01:00.1
logical name: card1
logical name: /dev/snd/controlC1
logical name: /dev/snd/hwC1D0
logical name: /dev/snd/pcmC1D3p
logical name: /dev/snd/pcmC1D7p
logical name: /dev/snd/pcmC1D8p
logical name: /dev/snd/pcmC1D9p
version: a1
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:17 memory:84080000-84083fff
*-usb:2
description: Video
product: FHD Webcam
vendor: SunplusIT Inc
physical id: 6
bus info: usb@1:6
version: 0.10
serial: 01.00.00
capabilities: usb-2.01
configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
*-multimedia
description: PCH
physical id: 1f.3
bus info: pci@0000:00:1f.3
logical name: card0
logical name: /dev/snd/controlC0
logical name: /dev/snd/hwC0D2
logical name: /dev/snd/pcmC0D3p
logical name: /dev/snd/pcmC0D7p
logical name: /dev/snd/pcmC0D8p
logical name: /dev/snd/pcmC0D9p
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=snd_hda_intel latency=32
resources: iomemory:620-61f iomemory:620-61f irq:185 memory:622d188000-622d18bfff memory:622d000000-622d0fffff
❮onyr ★ nixos❯ ❮~❯❯ uname -r
6.6.51
❮onyr ★ nixos❯ ❮~❯❯ cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt1)//kernels/gsrnz8jasryy68bdbc4zkp5y4r1yp80x-linux-6.6.51-bzImage init=/nix/store/cddqa8xqh8an8pjq64p3a5wmbarpg471-nixos-system-nixos-24.11.20240916.99dc878/init loglevel=4
Maybe my laptop just has broken sound, on both speakers and output jack… It seems unlikely. How could I check that ?
Any help appreciated. Have a great day.