前段时间,我在 Google PixelBook 上安装了 Ubuntu 20.04(删除了 ChromeOS 之后)。就在本周,声音(之前工作正常)停止工作了:扬声器、耳机、内置麦克风都不起作用。具体来说,我正在运行:
> uname -ar
Linux chromepy 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
非常感谢您提出建议!我知道这个问题之前有人问过(例如这里和其他地方),但这些步骤对我来说似乎都不起作用。
下面是完整的诊断信息,但简而言之:唯一明显失败的诊断(对我而言)似乎是:
- 声音/麦克风不工作
- “虚拟输出”是(设置>声音)GUI 中唯一的输出选项。
- 输入
pacmd list-cards
收益率0 card(s) available.
- 尝试
sudo alsa force-reload
只会导致计算机冻结;我必须重新启动。
另一方面,其他诊断方法(在我看来)似乎可以产生良好的结果,包括:
- 存在 asound/cards 文件:
> cat /proc/asound/cards
0 [kblr55145663max]: kbl-r5514-5663- - kbl-r5514-5663-max
Google-Eve-1.0
lsmod
显示大量结果:
> lsmod | grep snd
42:snd_soc_kbl_rt5663_rt5514_max98927 28672 0
43:snd_soc_hdac_hdmi 36864 1 snd_soc_kbl_rt5663_rt5514_max98927
44:snd_soc_skl_ssp_clk 16384 3
45:snd_soc_dmic 16384 0
74:snd_soc_skl 172032 1 snd_soc_skl_ssp_clk
77:snd_soc_hdac_hda 24576 1 snd_soc_skl
79:snd_hda_ext_core 32768 3 snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl
81:snd_soc_sst_ipc 20480 1 snd_soc_skl
82:snd_soc_sst_dsp 32768 1 snd_soc_skl
87:snd_soc_acpi_intel_match 61440 1 snd_soc_skl
88:snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_soc_skl
94:snd_hda_intel 53248 0
97:snd_intel_dspcfg 28672 2 snd_hda_intel,snd_soc_skl
98:snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg
100:snd_hda_codec 155648 2 snd_hda_intel,snd_soc_hdac_hda
103:snd_hda_core 106496 6 snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl
104:snd_soc_rt5514 49152 1
105:snd_hwdep 16384 1 snd_hda_codec
106:snd_soc_rt5663 81920 2 snd_soc_kbl_rt5663_rt5514_max98927
108:snd_soc_max98927 28672 2
109:snd_soc_rt5514_spi 16384 2 snd_soc_rt5514
111:snd_soc_rl6231 20480 2 snd_soc_rt5514,snd_soc_rt5663
114:snd_soc_core 327680 9 snd_soc_max98927,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_rt5514,snd_soc_skl,snd_soc_rt5514_spi,snd_soc_kbl_rt5663_rt5514_max98927,snd_soc_dmic,snd_soc_rt5663
117:snd_compress 24576 1 snd_soc_core
119:ac97_bus 16384 1 snd_soc_core
120:snd_pcm_dmaengine 16384 1 snd_soc_core
122:snd_pcm 135168 12 snd_hda_intel,snd_soc_max98927,snd_hda_codec,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_soc_skl,snd_soc_rt5514_spi,snd_soc_kbl_rt5663_rt5514_max98927,snd_soc_rt5663,snd_hda_core,snd_pcm_dmaengine
123:snd_seq_midi 20480 0
124:snd_seq_midi_event 16384 1 snd_seq_midi
127:snd_rawmidi 45056 1 snd_seq_midi
139:snd_seq 73728 2 snd_seq_midi,snd_seq_midi_event
144:snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
145:snd_timer 40960 2 snd_seq,snd_pcm
146:snd 102400 12 snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm,snd_soc_kbl_rt5663_rt5514_max98927,snd_rawmidi
148:soundcore 16384 1 snd
- 大量
snd
模块:
> dpkg -L linux-modules-$(uname -r) | grep snd
/lib/modules/5.15.0-41-generic/kernel/sound/core/seq/snd-seq-dummy.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/seq/snd-seq-midi-emul.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/seq/snd-seq-midi.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/seq/snd-seq-virmidi.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/seq/snd-seq.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-compress.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-ctl-led.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-hrtimer.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-hwdep.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-pcm-dmaengine.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-pcm.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-rawmidi.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-seq-device.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd-timer.ko
/lib/modules/5.15.0-41-generic/kernel/sound/core/snd.ko
/lib/modules/5.15.0-41-generic/kernel/sound/drivers/pcsp/snd-pcsp.ko
/lib/modules/5.15.0-41-generic/kernel/sound/pci/snd-ens1370.ko
inxi
检测到音频驱动程序:
> inxi -SA
System:
Host: chromepy Kernel: 5.15.0-41-generic x86_64 bits: 64
Desktop: Gnome 3.36.4 Distro: Ubuntu 20.04 LTS (Focal Fossa)
Audio:
Device-1: Intel Sunrise Point-LP HD Audio driver: snd_soc_skl
Sound Server: ALSA v: k5.15.0-41-generic
lspci
显示音频控制器:
> lspci -nnk | grep -A 1 Audio
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21)
DeviceName: Multimedia audio controller
Subsystem: Google, Inc. Sunrise Point-LP HD Audio [1ae0:006b]
Kernel driver in use: snd_soc_skl
aplay
检测播放设备:
> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: kblr55145663max [kbl-r5514-5663-max], device 0: Audio (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: kblr55145663max [kbl-r5514-5663-max], device 2: Headset Audio (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: kblr55145663max [kbl-r5514-5663-max], device 6: Hdmi1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: kblr55145663max [kbl-r5514-5663-max], device 7: Hdmi2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
lshw
检测到音频控制器:
> lshw -C multimedia
WARNING: you should run this program as super-user.
*-multimedia
description: Multimedia audio controller
product: Sunrise Point-LP HD Audio
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 21
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_soc_skl latency=64
resources: irq:16 memory:d122c000-d122ffff memory:d1210000-d121ffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
- alsa 模块似乎已安装:
> dpkg -l | grep alsa
ii alsa-base 1.0.25+dfsg-0ubuntu5 all ALSA driver configuration files
ii alsa-topology-conf 1.2.2-1 all ALSA topology configuration files
ii alsa-ucm-conf 1.2.2-1ubuntu0.6 all ALSA Use Case Manager configuration files
ii alsa-utils 1.2.2-1ubuntu2.1 amd64 Utilities for configuring and using ALSA
ii gstreamer1.0-alsa:amd64 1.16.2-4ubuntu0.1 amd64 GStreamer plugin for ALSA
- alsa_base.conf内容:
> grep intel /etc/modprobe.d/alsa-base.conf
options snd-intel8x0m index=-2
arecord
显示硬件捕获设备:
> arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: kblr55145663max [kbl-r5514-5663-max], device 1: Audio Record (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: kblr55145663max [kbl-r5514-5663-max], device 3: Echoreference Capture snd-soc-dummy-dai-3 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: kblr55145663max [kbl-r5514-5663-max], device 4: dmiccap (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: kblr55145663max [kbl-r5514-5663-max], device 5: Wake on Voice snd-soc-dummy-dai-5 []
Subdevices: 1/1
Subdevice #0: subdevice #0
如果我插入耳机(或者插入并重新启动),也不会有声音。
我没有胆怯的守护进程需要删除。
有什么建议吗?请帮忙!