Pulseaudio / Pipewire problem

Sometimes , pulse or pipewire does not start correctly when i start a desktop.
I pavucontrol i see all my hardware devices.
But "firefox www.youtube.com" creactes no "output" as seen by pavontrol. Advise on how to force restart or change pulse configs. Respawn or not. Timeout or not .
 
I have this problem using Sway, the problem solved using a startup script, fixed run stage for pipewire and pipewire-pulse (I'm not using pulseaudio daemon) and personal config ($HOME/.config) for wireplumber and pulseaudio (autospawn = no).

The most important configs are ($HOME/.config/pulse/client.conf):

Code:
# 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 PulseAudio clients. See pulse-client.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

default-sink = oss_output.dsp3
default-source = oss_input.dsp3
; default-server =
; default-dbus-server =

autospawn = no
; daemon-binary = /usr/local/bin/pulseaudio
; extra-arguments = --log-target=syslog

; cookie-file =

; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB

; auto-connect-localhost = no
; auto-connect-display = no

And startup service for sway

Code:
#!/usr/bin/env bash

# Usamos pgrep -u para buscar solo procesos del usuario actual
run_once() {
    pgrep -u "$USER" -x "$1" > /dev/null || ("$@" &)
}

# Servicios de Audio
run_once pipewire
run_once pipewire-pulse
run_once musicpd "$HOME/.config/mpd/mpd.conf"
 
Hi
In my
session-common.sh
file, I have:

# PulseAudio
Code:
pgrep -x pulseaudio >/dev/null 2>&1 || \
 pulseaudio --start --log-target=syslog &
This file is used by
Openbox
Fluxbox
Fvwm
I have sound without any bugs, and I can control it without any problems using the XF86 keys.
 
Back
Top