[hunor@HunorT480 ~]$ systemctl --user restart pulseaudio
Job for pulseaudio.service failed because the control process exited with error code.
See "systemctl --user status pulseaudio.service" and "journalctl --user -xeu pulseaudio.service" for details.
[hunor@HunorT480 ~]$ sudo systemctl --user restart pulseaudio
[sudo] password for hunor:
Failed to connect to bus: No medium found
[hunor@HunorT480 ~]$
[hunor@HunorT480 ~]$ systemctl --user status pulseaudio.service
× pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor>
Active: failed (Result: exit-code) since Wed 2022-02-09 18:40:59 CET; 2min>
TriggeredBy: × pulseaudio.socket
Process: 94245 ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=jo>
Main PID: 94245 (code=exited, status=1/FAILURE)
CPU: 45ms
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Scheduled restart j>
Feb 09 18:40:59 HunorT480 systemd[926]: Stopped Sound Service.
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Start request repea>
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Failed with result >
Feb 09 18:40:59 HunorT480 systemd[926]: Failed to start Sound Service.
[hunor@HunorT480 ~]$ sudo systemctl --user status pulseaudio.service
Failed to connect to bus: No medium found
[hunor@HunorT480 ~]$ journalctl --user -xeu pulseaudio.service
Feb 09 18:40:59 HunorT480 systemd[926]: Stopped Sound Service.
░░ Subject: A stop job for unit UNIT has finished
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ A stop job for unit UNIT has finished.
░░
░░ The job identifier is 433 and the job result is done.
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Start request repea>
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Failed with result >
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ The unit UNIT has entered the ‘failed’ state with result ‘exit-code’.
Feb 09 18:40:59 HunorT480 systemd[926]: Failed to start Sound Service.
░░ Subject: A start job for unit UNIT has failed
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ A start job for unit UNIT has finished with a failure.
░░
░░ The job identifier is 433 and the job result is failed.
lines 476-498/498 (END)
no.
I changed “autospawn = no” to “yes” and back to “no”.
[hunor@HunorT480 ~]$ sudo rm ~/.config/pulse/*.tdb ~/.config/pulse/cookie
[sudo] password for hunor:
rm: cannot remove '/home/hunor/.config/pulse/*.tdb': No such file or directory
[hunor@HunorT480 ~]$ systemctl -l --no-pager --user status pulseaudio.{socket,service}
× pulseaudio.socket - Sound System
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.socket; enabled; vendor preset: enabled)
Active: failed (Result: service-start-limit-hit) since Wed 2022-02-09 18:40:59 CET; 7min ago
Triggers: ● pulseaudio.service
Listen: /run/user/1000/pulse/native (Stream)
Feb 09 18:40:58 HunorT480 systemd[926]: Listening on Sound System.
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.socket: Failed with result 'service-start-limit-hit'.
× pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-02-09 18:40:59 CET; 7min ago
TriggeredBy: × pulseaudio.socket
Process: 94245 ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal (code=exited, status=1/FAILURE)
Main PID: 94245 (code=exited, status=1/FAILURE)
CPU: 45ms
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Feb 09 18:40:59 HunorT480 systemd[926]: Stopped Sound Service.
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Start request repeated too quickly.
Feb 09 18:40:59 HunorT480 systemd[926]: pulseaudio.service: Failed with result 'exit-code'.
Feb 09 18:40:59 HunorT480 systemd[926]: Failed to start Sound Service.
pulseaudio.socket is enabled correctly but cannot start pulseaudio.service and gave up after 5 attempts
pulseaudio.service is showing Stopped Sound Service
did you use a command pulseaudio -k or pulseaudio --kill to attempt to stop PulseAudio daemon directly ?
sudo is not needed for deleting user files in home directory
check the contents of the folder:
ls ~/.config/pulse/
It should contain 3 .tdb database files to store user preferences for audio devices with the Pulseaudio cookie number in the name :
[i3hunor@HunorT480 ~]$ ls ~/.config/pulse/
cookie f4fc093c1c8e4f35a5ec418049c93a38-default-sink f4fc093c1c8e4f35a5ec418049c93a38-device-volumes.tdb
f4fc093c1c8e4f35a5ec418049c93a38-card-database.tdb f4fc093c1c8e4f35a5ec418049c93a38-default-source f4fc093c1c8e4f35a5ec418049c93a38-stream-volumes.tdb
It seams like it contains something like that.
[i3hunor@HunorT480 ~]$ cat /etc/pulse/daemon.conf ~/.config/pulse/daemon.conf
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out. Use either ; or # for
## commenting.
; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; enable-memfd = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no
; high-priority = yes
; nice-level = -11
; realtime-scheduling = yes
; realtime-priority = 5
; exit-idle-time = 20
; scache-idle-time = 20
; dl-search-path = (depends on architecture)
; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa
; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0
; resample-method = speex-float-1
; avoid-resampling = false
; enable-remixing = yes
; remixing-use-all-sink-channels = yes
; remixing-produce-lfe = no
; remixing-consume-lfe = no
; lfe-crossover-freq = 0
; flat-volumes = no
; rescue-streams = yes
; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000
; default-sample-format = s16le
; default-sample-rate = 44100
; alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right
; default-fragments = 4
; default-fragment-size-msec = 25
; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0
cat: /home/i3hunor/.config/pulse/daemon.conf: No such file or directory
Contents of ~/.config/pulse/ appear to be as expected with database.tdb files present, so PulseAudio has probably restarted successfully to recreate the absent files
If status of pulseaudio.socket and pulseaudio.service both report as active (running) you should be able to party on no problem now