为什么pulseaudio报告为未运行?

为什么pulseaudio报告为未运行?

我已经Ubuntu 21.10得到了以下与 相关的结果pulseaudio
我应该怎么做才能“连接”到正确报告的内容pulseaudiopacmd list-sinks

$sudo netstat -tlupn | egrep -i "mopidy|pulse"
tcp        0      0 0.0.0.0:4713            0.0.0.0:*               LISTEN      1730/pulseaudio
tcp6       0      0 :::4713                 :::*                    LISTEN      1730/pulseaudio

$pacmd list-sinks
No PulseAudio daemon running, or not running as session daemon.

$ps -ef | egrep "/[p]ulseaudio"
lightdm     1730    1668  0 Oct30 ?        00:04:35 /usr/bin/pulseaudio --daemonize=no --log-target=journal

更新

$systemctl --user --no-pager status pulseaudio
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2021-10-31 19:15:19 EET; 3min 27s ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 1992370 (pulseaudio)
      Tasks: 2 (limit: 37152)
     Memory: 1.7M
        CPU: 23ms
     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pulseaudio.service
             └─1992370 /usr/bin/pulseaudio --daemonize=no --log-target=journal

Oct 31 19:15:18 adrhc.go.ro systemd[1510]: Starting Sound Service...
Oct 31 19:15:19 adrhc.go.ro systemd[1510]: Started Sound Service.

$systemctl --user --no-pager status pipewire
● pipewire.service - Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-10-30 23:39:22 EEST; 20h ago
TriggeredBy: ● pipewire.socket
   Main PID: 1767 (pipewire)
      Tasks: 2 (limit: 37152)
     Memory: 1.4M
        CPU: 139ms
     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire.service
             └─1767 /usr/bin/pipewire

Oct 30 23:39:22 adrhc.go.ro systemd[1510]: Started Multimedia Service.
Oct 30 23:39:22 adrhc.go.ro pipewire[1767]: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 30 23:39:22 adrhc.go.ro pipewire[1767]: could not set nice-level to -11: Permission denied
Oct 30 23:39:23 adrhc.go.ro pipewire[1767]: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 30 23:39:23 adrhc.go.ro pipewire[1767]: could not make thread realtime: Permission denied

更新
我在从远程位置通过 ssh 连接时运行命令。

答案1

为什么pulseaudio报告为未运行?

因为脉搏没有运行!

据我记得,Ubuntu 在 21.10 中切换到了 pipeline

相关内容