-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio system not working after an system upgrade on my thinkpad x1yoga gen5 #330685
Comments
Just upgraded NixOS 24.05 and seeing the same thing on Lenovo IdeaPad 5 Pro. Dummy output only in
|
Same on X1 Carbon Gen 10 (21CBCTO1WW) kernel messages
https://www.linuxquestions.org/questions/showthread.php?p=6516952#post6516952 suggests it's about wrong firmware version. Edit: Moving to 6.10 ( |
I also have issues on an Intel NUC M15. |
I'm also affected... Maybe these observations help in finding a solution: hwinfo about sound hardware
possibly relevant lines from journal
Bisection within nixpkgs repo identified 2ba2673 as the offending commit. Bisection within stable kernel repo identified https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ab5a6208b4d6872b1c6ecea1867940fc668cc76d as the root cause. The commit message states that this one is a cherry-pick of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=97ab304ecd95c0b1703ff8c8c3956dc6e2afe8e1 . That one seems to be a security fixup: https://www.cve.org/CVERecord/?id=CVE-2024-41069 . To check a possible link to the fireware version, I reverted ee10d90 on top of current |
Based on the findings by @Yarny0 I found two patches which are in 6.10.y kernel-branch but not in the 6.6.43 release. By applying them to 6.6.43 in the current nixos-24.05 it seems work again. boot.kernelPatches boot.kernelPatches = [
{ name = "fix-1";
patch = builtins.fetchurl {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/sound/soc/soc-topology.c?id=e0e7bc2cbee93778c4ad7d9a792d425ffb5af6f7";
sha256 = "sha256:1y5nv1vgk73aa9hkjjd94wyd4akf07jv2znhw8jw29rj25dbab0q";
};
}
{ name = "fix-2";
patch = builtins.fetchurl {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/sound/soc/soc-topology.c?id=0298f51652be47b79780833e0b63194e1231fa34";
sha256 = "sha256:14xb6nmsyxap899mg9ck65zlbkvhyi8xkq7h8bfrv4052vi414yb";
};
}
]; |
This fixed the issue for me, thanks! |
HP ZBook Firefly G8 - same problem. |
Same problem here sudo nix run nixpkgs#dmidecode | fgrep -A3 'System Information'
System Information
Manufacturer: Dell Inc.
Product Name: XPS 9320
Version: Not Specified [ 57.479157] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 57.484159] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 57.484201] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 57.484521] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 58.754487] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 58.813726] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[ 58.841257] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[ 58.845633] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 58.845639] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 58.845648] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[ 58.959642] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 58.959650] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 58.986355] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[ 58.986541] sof-audio-pci-intel-tgl 0000:00:1f.3: error: sink BUF3.0\xff\xffP}\x06\x88\xff\xff\xff\xfft}\x06\x88\xff\xff\xff\xff\x80}\x06\x88\xff\xff\xff\xff\x9c}\x06\x88\xff\xff\xff\xff\xa8}\x06\x88\xff\xff\xff\xff\xb4}\x06\x88\xff\xff\xff\xffg\xed\x19\xb6\x145\xc8\xd8\xcc}\x06\x88\xff\xff\xff\xff not found
[ 58.986650] sof_sdw sof_sdw: ASoC: topology: add_route failed: -22
[ 58.986694] sof_sdw sof_sdw: ASoC: topology: could not load header: -22
[ 58.986930] sof-audio-pci-intel-tgl 0000:00:1f.3: error: tplg component load failed -22
[ 58.987006] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to load DSP topology -22
[ 58.987063] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_component_probe on 0000:00:1f.3: -22
[ 58.987220] sof_sdw sof_sdw: ASoC: failed to instantiate card -22
[ 58.987425] sof_sdw sof_sdw: snd_soc_register_card failed -22
[ 58.987473] sof_sdw: probe of sof_sdw failed with error -22 The @yves-tutti proposed patches fix the issue as well (#330685 (comment)) |
has someone tested with #332002? |
I am not sure at all what is the proper way for testing #332002, i did try |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/microphone-not-working/49807/3 |
I can also confirm that the patches in #330685 (comment) fix the issue! I took a closer look at the kernel versions that are packaged in NixOS 24.05 and tested them with my hardware. Here's what I observed:
I guess the next step would be to propose the fixing patches for inclusion in affected LTS kernels. According to https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html , patches that fix "serious issues as reported by a user of a distribution" should only be submitted by a distribution kernel maintainer. Dear NixOS kernel maintainer team @TredwellGit , @Ma27 , @NeQuissimus , @alyssais , how do you assess this situation? Can you help in upstreaming those patches into LTS kernels? Thanks in advance for your support! |
Looks like upstream is already working on it. Ping me again if this is still an issue in 6.6.45 once it comes out. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/microphone-not-working/49807/4 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
I had the same problem and fixed it as explained here by adding: {
boot.extraModprobeConfig =''
options snd-hda-intel dmic_detect=0
'';
} Maybe nixos-generate-config should detect this and add the patches or modprobe config to fix it? |
I retested with new kernels by applying #333945 . Sadly, nothing has changed -- at least on my hardware:
Luckily, the workaround by @yajo seems to work quite well (tested with unpatched Dear @alyssais , the lkml posting you found looks promising. However, I can't find any information whether that effort is ongoing and finally ending up in a stable release. Is there anything else we can do in the meantime? |
I'm having the same issue on a Lenovo Thinkpad X1 12th Gen, with the kernel I was able to get the speakers working by just using pulseaudio instead:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/asus-zenbook-duo-2024-ux8406ma-nixos/39792/92 |
The solution mentioned by @rukmal works for me on a MSI Summit E14 Evo (12th Gen) and the same kernel |
I was told they'd get to it this week. They just did a release, so let's see if it ends up in the first post-release stable-queue update, and then evaluate what to do after that. |
Just noticed the ongoing conversation beginning here. |
So, now that upstream is confirmed to be backporting the patches, I'd be happy to merge a Nixpkgs PR that applied them early, if somebody doesn't want to wait a week. |
Does this workaround need to be reverted or "doesn't it matter" once the fix is it? |
This work for me. |
Thanks agains @alyssais for your support in this matter! For me, I can now wait for the next release.
I couldn't find anything but this about the term "dmic", which suggests that it's a "digital microphone". So I guess this parameter dropps support for "digital microphones". If you don't miss any functionality after adding this parameter, there shouldn't be a need to remove it later. |
It is surely related to detection in snd hda intel module: https://fossd.anu.edu.au/linux/latest/source/sound/pci/hda/hda_intel.c#L2097. |
Should have been fixed with #335731. Let me know if the problem persists and we can re-open. |
Same or similar issue on a Dell XPS 9700, but unfortunately none of the patches suggested above seem to work here, see #130882 (comment) |
I still needed this after upgrading. Is |
If i read this correctly https://nixpk.gs/pr-tracker.html?pr=335741 the PR does not seem to be available yet in |
I don't, I never run |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
It seems still not solved ? Now not any audio device is detected, even dummy sinks! - system: `"x86_64-linux"`
- host os: `Linux 6.6.52, NixOS, 24.05 (Uakari), 24.05.5366.fbca5e745367`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.8`
- channels(root): `"nixos-24.05"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos` |
It's solved for me?
I have this issue when I first start up sometimes, unplugging and replugging the audio jack for my headphones fixes this for me. Maybe this is best diagnosed on NixOS discourse? |
Doesn't help me.
|
The issue persist for
Edit: |
Describe the bug
The sound system no longer works after an upgrade from
Linux 6.6.37, NixOS, 24.05 (Uakari), 24.05.2580.194846768975
toLinux 6.6.42, NixOS, 24.05 (Uakari), 24.05.3311.a1cc729dcbc3
The
dmesg |grep -i audio
output of the old and new system are shown here:If
ls /dev/snd
the old normal system outputs:
$> ls /dev/snd by-path controlC0 hwC0D0 hwC0D2 pcmC0D0c pcmC0D0p pcmC0D31p pcmC0D3p pcmC0D4p pcmC0D5p pcmC0D6c pcmC0D7c seq timer
the new abnormal system outputs:
$> ls /dev/snd seq timer
the configuration about
pipewire
isSteps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The audio system should work just like it works before the upgrading.
Screenshots
If applicable, add screenshots to help explain your problem.
In the gnome settings, only a dummy output is shown:
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The hardware information:
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: