ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

Ubuntu 26.04.1 LTS 声音播放问题

Ubuntu 26.04.1 LTS 声音播放问题 1. 检查 ubuntu 音频服务是否正常运行anan:~$ systemctl --user status pulseaudio Unit pulseaudio.service could not be found. anan:~$ systemctl --user restart pulseaudio Failed to restart pulseaudio.service: Unit pulseaudio.service not found. anan:~$Ubuntu 26.04.1 LTS 的默认音频服务器已经换成 PipeWire所以找不到 pulseaudio。2. 检查当前音频服务是否正常运行anan:~$ systemctl --user status pipewire wireplumber pipewire-pulse ● pipewire.service - PipeWire Multimedia Service Loaded: loaded (/usr/lib/systemd/user/pipewire.serv Active: active (running) since Thu 2026-10-01 13:29 Invocation: 91da438782d6478a8b9c3c10b7317614 TriggeredBy: ● pipewire.socket Main PID: 2611 (pipewire) Tasks: 3 (limit: 6091) Memory: 5.2M (peak: 5.8M) CPU: 2.711s CGroup: /user.slice/user-1000.slice/user1000.servi └─2611 /usr/bin/pipewire Oct 01 13:29:42 an systemd[2580]: Started pipewire.servi ● wireplumber.service - Multimedia Service Session Manag Loaded: loaded (/usr/lib/systemd/user/wireplumber.s Active: active (running) since Thu 2026-10-01 13:29 Invocation: 15fb89ce08ba4e4198dec222f1885124 Main PID: 2617 (wireplumber) Tasks: 9 (limit: 6091) Memory: 7.2M (peak: 7.5M) CPU: 156ms CGroup: /user.slice/user-1000.slice/user1000.servi └─2617 /usr/bin/wireplumber Oct 01 13:29:42 an systemd[2580]: Started wireplumber.se Oct 01 13:29:43 an wireplumber[2617]: [0:00:21.362552678 Oct 01 13:29:43 an wireplumber[2617]: spa.bluez5: BlueZ ● pipewire-pulse.service - PipeWire PulseAudio Loaded: loaded (/usr/lib/systemd/user/pipewire-puls Active: active (running) since Thu 2026-10-01 13:29 Invocation: 68152e7167cd410f9a62ee7aef251ba3 TriggeredBy: ● pipewire-pulse.socket Main PID: 2619 (pipewire-pulse) Tasks: 3 (limit: 6091) Memory: 8.8M (peak: 9.6M) CPU: 1.260s CGroup: /user.slice/user-1000.slice/user1000.servi └─2619 /usr/bin/pipewire-pulse Oct 01 13:29:42 an systemd[2580]: Started pipewire-pulse lines 29-42/42 (END) ● pipewire-pulse.service - PipeWire PulseAudio Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled) Active: active (running) since Thu 2026-10-01 13:29:42 CST; 4min 36s ago Invocation: 68152e7167cd410f9a62ee7aef251ba3 TriggeredBy: ● pipewire-pulse.socket Main PID: 2619 (pipewire-pulse) Tasks: 3 (limit: 6091) Memory: 8.8M (peak: 9.6M) CPU: 1.260s CGroup: /user.slice/user-1000.slice/user1000.service/session.slice/pipewire-pulse.service └─2619 /usr/bin/pipewire-pulse Oct 01 13:29:42 an systemd[2580]: Started pipewire-pulse.service - PipeWire PulseAudio.如上所示pipewire / wireplumber / pipewire-pulse 全部是正常运行的状态。3. 检查系统识别到了哪些音频输出设备anan:~$ wpctl status PipeWire pipewire-0 [1.6.2, anan, cookie:4243959687] └─ Clients: 33. pipewire [1.6.2, anan, pid:2619] 35. WirePlumber [1.6.2, anan, pid:2617] 40. WirePlumber [export] [1.6.2, anan, pid:2617] 60. GNOME Volume Control Media Keys [1.6.2, anan, pid:3065] 61. gnome-shell [1.6.2, anan, pid:2886] 62. GNOME Shell Volume Control [1.6.2, anan, pid:2886] 63. xdg-desktop-portal [1.6.2, anan, pid:3336] 64. speech-dispatcher-dummy [1.6.2, anan, pid:5011] 70. Firefox [1.6.2, anan, pid:3864] 76. Mutter [1.6.2, anan, pid:2886] 77. wpctl [1.6.2, anan, pid:6487] Audio ├─ Devices: │ 48. ES1371/ES1373 / Creative Labs CT2518 (Audio PCI 64V/128/5200 / Creative CT4810/CT5803/CT5806 [Sound Blaster PCI]) [alsa] │ ├─ Sinks: │ * 54. ES1371/ES1373 / Creative Labs CT2518 (Audio PCI 64V/128/5200 / Creative CT4810/CT5803/CT5806 [Sound Blaster PCI]) Analog Stereo [vol: 0.40] │ ├─ Sources: │ * 55. ES1371/ES1373 / Creative Labs CT2518 (Audio PCI 64V/128/5200 / Creative CT4810/CT5803/CT5806 [Sound Blaster PCI]) Analog Stereo [vol: 1.00] │ ├─ Filters: │ └─ Streams: 65. speech-dispatcher-dummy 66. output_FL ES1371 DAC2/ADC:playback_FL [init] 67. output_FR ES1371 DAC2/ADC:playback_FR [init] 71. Firefox 72. output_FL ES1371 DAC2/ADC:playback_FL [active] 73. output_FR ES1371 DAC2/ADC:playback_FR [active] Video ├─ Devices: │ ├─ Sinks: │ ├─ Sources: │ ├─ Filters: │ └─ Streams: Settings └─ Default Configured Devices: anan:~$发现了问题虚拟机声卡是 ES1372老式 Creative 声卡ES1371 在新版 LinuxPipeWire 新内核兼容性很差很多时候能识别设备但播放不出声音。需要改成 hdaudio 高清声卡。4. 更改虚拟机声卡1关闭 VMware 虚拟机2打开虚拟机文件夹找到后缀.vmx的配置文件右键用记事本打开。3更改配置文件# 如果配置文件中有直接更改即可如果没有直接添加。 sound.virtualDev hdaudio sound.present TRUE
返回列表