记一次 Arch linux 声卡修复
装了 blackarch 之后声音一直有问题,之前问 gpt 和 google 一直解决不了,只能一直不管。积累了一些 linux 经验之后今天很快解决了
问题
blackarch 没有声音,连耳机也不行
解决
运行 sudo dmesg | grep -C 10 -i error
查看所有驱动错误,其中 -C 10 是显示上下 10 行,-i 是忽略大小写。
[ 5.522093] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 5.522264] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 5.524408] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[ 5.539205] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 1
[ 5.539207] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[ 5.539209] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[ 5.539226] sof-audio-pci-intel-tgl 0000:00:1f.3: SOF firmware and/or topology file not found.
[ 5.539227] sof-audio-pci-intel-tgl 0000:00:1f.3: Supported default profiles
[ 5.539227] sof-audio-pci-intel-tgl 0000:00:1f.3: - ipc type 0 (Requested):
[ 5.539228] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware file: intel/sof/sof-adl.ri
[ 5.539229] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology file: intel/sof-tplg/sof-hda-generic-2ch.tplg
[ 5.539229] sof-audio-pci-intel-tgl 0000:00:1f.3: Check if you have 'sof-firmware' package installed.
[ 5.539230] sof-audio-pci-intel-tgl 0000:00:1f.3: Optionally it can be manually downloaded from:
[ 5.539230] sof-audio-pci-intel-tgl 0000:00:1f.3: https://github.com/thesofproject/sof-bin/
[ 5.539447] sof-audio-pci-intel-tgl 0000:00:1f.3: error: sof_probe_work failed err: -2
喂给 gpt 可以运行指令 sudo pacman -S sof-firmware