当我按下键盘上的音量按钮时,它会改变一个名为“Dummy Output”的设备的音量。 lspci命令列出了音频设备:
$ lspci | grep -A8 Audio
00:1f.3 Audio device: Intel Corporation Device 9dc8 (rev 11)
00:1f.4 SMBus: Intel Corporation Device 9da3 (rev 11)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device 9da4 (rev 11)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (6) I219-LM (rev 11)
03:00.0 Non-Volatile memory controller: Micron/Crucial Technology Device 2263 (rev 03)
05:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
06:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
06:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
06:02.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
但是表演找不到它
sudo aplay -l
[sudo] password for generic:
aplay: device_list:270: no soundcards found...
$ pacmd list-sinks
1 sink(s) available.
* index: 0
name: <auto_null>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1000
volume: front-left: 46332 / 71% / -9.04 dB, front-right: 46332 / 71% / -9.04 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 344 KiB
max rewind: 344 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
module: 14
properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
我正在使用Ubuntu 18.04,并在根目录上运行ZFS。这意味着如果解决方案不起作用,我可以尝试并回滚。也就是说,我尝试了几个解决方案。
以下是一些相关链接,但没有帮助: 我尝试过的内容:
sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils && reboot
sudo apt-get install build-essential linux-headers-
uname -ralsa-base alsa-firmware-loaders alsa-oss alsa-source alsa-tools alsa-tools-gui alsa-utils alsamixergui
将用户
generic
添加到组audio
中上述三个步骤的结合
以上步骤的变体
在linuxuprising帖子中的两个修复方法
modprobe snd_hda_intel && modprobe sof_pci_dev
将
snd_hda_intel.dmic_detect=0
添加到GRUB引导参数中根据此处的建议,从
ppa:nilarimogard/webupd8
安装一系列软件包使用dkms重新安装与alsa相关的软件包。请参阅此处
根据此处的问答,重新安装
pavucontrol
和pulseaudio
$ uname -r
5.3.0-51-generic
也许无关,也许有关: 我的屏幕亮度控制也消失了。之前它们曾经坏过一次,我通过在“/etc/default/grub”中向“GRUB_CMDLINE_LINUX_DEFAULT”添加“acpi_backlight=video”,然后更新grub和重新启动来修复它。但是,修复仍然有效,但问题又出现了。
如何使声音再次正常工作?
当我从Ubuntu 18.04的U盘启动时,声音确实恢复正常。
# live system version:
$ uname -a
Linux ubuntu 5.3.0-28-generic #30-18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
# aplay output on live system:
ubuntu@ubuntu:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC285 Analog [ALC285 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
(在非实时系统上)当使用
sudo vim <filepath>
查看时,/var/log/apt/term.log
、/var/log/apt/history.log
和/var/log/dpkg.log
都是空的。但是有一个文件history.log.1.gz
包含了所有的历史记录。我正在审查它,但不知道要注意什么。我已经从笔记本电脑上最旧的zfs快照启动了(并不是非常旧,因为我以前在zfs上遇到了一些问题),声音在那里也不工作。当我使用与Live USB驱动器上相同的旧内核版本
5.3.0-28
启动时,声音也不工作。
git diff --no-index apt_live.txt apt_tank.txt
,其中文件包含了apt list --installed
的相应输出,给出了太多的输出。许多版本号已经发生了变化。
我已经回顾性地添加了标签19.04和20.04,因为根据来源,修复程序也适用于这些版本。
lspci
在我的问题中已经粘贴了。 - lucidbrot