PulseAudio 不会自动启动

PulseAudio 不会自动启动

分销商 ID:Ubuntu(Kubuntu) 描述:Ubuntu 22.04.4 LTS(5.15.0-105-generic) 发行版:22.04

无论我怎么尝试,Pulseaudio 都不会在启动时启动。我可以使用 systemctl --user start pulseaudio.service 让它工作

journalctl -u pulseaudio.service返回:

apr 28 11:36:41 systemd[1]: Started PulseAudio Sound System. apr 28 11:36:43 pulseaudio[1038]: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following err> apr 28 11:36:43 pulseaudio[1038]: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following err> apr 28 12:17:27 dbus-daemon[91327]: [session uid=1000 pid=91325] AppArmor D-Bus mediation is enabled

etc/systemd/system/pulseaudio.service配置如下:

[Unit]
After=display-manager.service
Description=PulseAudio Sound System
[Service]
Type=simple
ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal
User=x
Environment="DISPLAY=:0"
[Install]
WantedBy=default.target

sudo systemctl status dbus返回:

● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static)
Active: active (running) since Sun 2024-04-28 11:36:40 CEST; 21h ago
TriggeredBy: ● dbus.socket
Docs: man:dbus-daemon(1)
Main PID: 849 (dbus-daemon)
Tasks: 1 (limit: 38195)
Memory: 6.3M
CPU: 7.483s
CGroup: /system.slice/dbus.service
└─849 u/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
apr 28 11:41:46 dbus-daemon[849]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':>
apr 28 11:41:46 dbus-daemon[849]: [system] Successfully activated service 'org.freedesktop.timedate1'
apr 28 12:19:28 dbus-daemon[849]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':>
apr 28 12:19:28 dbus-daemon[849]: [system] Successfully activated service 'org.freedesktop.timedate1'
apr 29 08:37:44 dbus-daemon[849]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' request>
apr 29 08:37:44 dbus-daemon[849]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
apr 29 08:37:50 dbus-daemon[849]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':>
apr 29 08:37:50 dbus-daemon[849]: [system] Successfully activated service 'org.freedesktop.timedate1'
apr 29 08:38:00 dbus-daemon[849]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.5368' (uid=1000 pid=102633 com>
apr 29 08:38:26 dbus-daemon[849]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)

我尝试了很多重新配置、重新安装、更新/升级,但都无济于事。有人熟悉这个问题吗?有解决办法吗?

提前致谢

相关内容