升级到 24.04.01 LTS 后,没有可用的音频设备(既没有扬声器也没有麦克风)。
我尝试使用以下方法进行调试:
sudo dmesg | grep -i alsa
sudo dmesg | grep -i snd
lspci | grep -i audio
aplay -l
和:
$ systemctl --user status pulseaudio
Unit pulseaudio.service could not be found
(没关系,24.04 使用 pipewire)
systemctl --user status pipewire-pulse
systemctl --user status wireplumber
一切都很好。
这里有一个问题:
$ systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-10-05 11:34:35 CEST; 37min ago
TriggeredBy: ● pipewire.socket
Main PID: 2784 (pipewire)
Tasks: 2 (limit: 18964)
Memory: 836.0K (peak: 1.9M)
CPU: 27ms
CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire.service
└─2784 /usr/bin/pipewire
Started pipewire.service - PipeWire Multimedia Service.
pipewire[2784]: pw.context: 0x59a5decefaf0: **no modules loaded from context.modules**
我发现实际的 pipewire 配置文件位于 /usr/share/pipewire/ 中,但是 /etc/pipewire 中有一个来自以前安装的旧 pipewire.conf,它首先被加载:我重命名了此文件,重新启动后问题就解决了。