我在 Ubuntu 20.04 上有一台 Xioami notebook pro 笔记本电脑(18.04 上的问题相同)。
笔记本电脑进入睡眠/休眠模式后,扬声器没有声音。系统设置(设置>声音)正在检测正在播放音乐并且耳机在睡眠后工作正常。该问题仅与笔记本电脑中集成的扬声器有关。作为快速修复,我需要重新启动才能让扬声器再次工作。
我尝试了以下选项但没有成功:
- 打开 alsamixer 并没有看到任何“静音扬声器”
- 在终端输入:
sudo alsa force-reload
- 按照 Ubuntu 帮助页面上的说明设置在睡眠后重新加载 alsa 的脚本
pavucontrol
也安装在我的笔记本电脑上- 试图杀死并重新启动pulseaudio
如果您有任何解决此问题的想法,请告诉我。
我相信它与驱动程序有关,但我不确定如何解决这个问题。
请在下面找到有关硬件的信息。
aplay -l
:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC256 Analog [ALC256 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/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 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
cat /proc/asound/cards
:
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xb4214000 irq 147
lspci -nnk | grep -A2 Audio
:
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:02c8]
Subsystem: Xiaomi Device [1d72:1905]
Kernel driver in use: snd_hda_intel
pacmd list-cards
:
1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_1f.3>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xb4214000 irq 147"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "02c8"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
谢谢。