Re: Tragic State of FreeBSD Audio/Sound

Gleb Popov <[email protected]> Tue, 21 Jul 2026 13:44:59 +0300
Newsgroups gmane.os.freebsd.devel.hackers,gmane.os.freebsd.current,gmane.os.freebsd.stable
Message-ID <CALH631km3SXG4Sb1dLALa60NfVtzFWdPhyEQ8rOZVmxdg_N=3A@mail.gmail.com>
On Tue, Jul 21, 2026 at 1:30=E2=80=AFPM Kurt Jaeger <[email protected]> wrote:
>
> Hi!
>
> > > Disable the stock PulseAudio autostart.
> >
> > Why, what's wrong with it?
>
> In my case I have no idea what service is starting it.
>
> Any hints ?

IIRC, it gets started whenever something calls libpulse.so APIs.

> > >    if [ -z "$XDG_RUNTIME_DIR" ]; then
> > >        export XDG_RUNTIME_DIR=3D"/var/run/user/$(id -u)"
> > >        mkdir -p "$XDG_RUNTIME_DIR"
> > >        chmod 700 "$XDG_RUNTIME_DIR"
> > >    fi
> >
> > This is done by pam_xdg, you shouldn't do that yourself.
>
> I use startx to start my beloved, old-timer, vtwm session 8-}
>
> Where does XDG come into play ?

When you log in as your user:

# grep -r pam_xdg /etc/pam.d/
/etc/pam.d/system:session         required        pam_xdg.so