為什麼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

相關內容