From nobody Wed Jul 22 00:53:41 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h4bNm4D61z6kWnM for ; Wed, 22 Jul 2026 00:54:00 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h4bNm27KJz3Vcj for ; Wed, 22 Jul 2026 00:54:00 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-51c0c68aa31so86978051cf.3 for ; Tue, 21 Jul 2026 17:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1784681634; cv=none; d=google.com; s=arc-20260327; b=iRkPZ+L9nPNSrL7DbBQCSsOvdvqtWIZl9fXHOIS+/dj35lz+6t4lqd5Z5L4QMZL2BH 9TShbldxEjGQ+lZUMNNQYIda9odCACDNVihsbB9deLFzatO5p8x6cBlq//zmz3ZMEpLc pvrz2CJhCKYmaNCaojOoA4HoJAsM0XFQvXlwo/DpNLOHot7jkxKIQgsk3VV0yEB3acKa pcZIv1PZdEXcOT1+O1j7OSUIAVcWBxGY4IH7wTApyFhVcAQOEAWUkdfajtz4PAr6qfLS qOgZtX78Ty/an4DDPuf8dO9W2KJzeSwfDPD6sDmcvth1DreaLwbDsVBNxy3OG0vG3ITy 0iIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GN2nds+ax+E/CHxrupjGWsEtDwVYts69LwS3Xf3zLrQ=; fh=mZYDc6+iSHF+i936qrziRvUNT9DofL8KTEVoctpOfZA=; b=FkUtX4wDTnk+ZkZCMo33/gUBe5rp4LzCS5lz9Znwv6AKj0X8cSIaCJ+YzeyDpevR+n z8Edxi8a2QnArl2fFnbFhgKC9MCrrVXQWvrsJIlVMgQHZrqjs8XLx0SyDhvksM9XGq6c POXRK+wiqzHkW2ZzwrAhz+xkACgmQPfZIMwCplTO8euXXPtCECZV1zm8k2ZjiLotdtEL ocBfk5ZLNHX5Saud/ozAXscSWhP27JiBB/zhy8UtQIE1xqyhyXD+oauyi189Y5MzhiCo bwNS1cyNco6CDk/rB2qe/w9hAC9MyTHn0IYR6il7FCvWfumYTdEfoCqt84OaZjM8oM34 dGTQ==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kev009.com; s=google; t=1784681634; x=1785286434; darn=freebsd.org; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to:content-type; bh=GN2nds+ax+E/CHxrupjGWsEtDwVYts69LwS3Xf3zLrQ=; b=oaMEwjMzfkH+R4LpqPkDdII9yKrJT8gktJeZexugi9l979mRRxEmUVWRQX6kPz9QXI MfdTiguvge4Nl+ACEm7TzalwTMhZXpJv4Nfhadr/ZfhvNxuvH7KqsDq7pLmNLRwQnpX9 5Me/G7Kk12gpXDzAd/ngIrEgerur0NzPyR6/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784681634; x=1785286434; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=GN2nds+ax+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RS+xqq32LCdM/JZ/7/HK492draiC X-Received: by 2002:a05:622a:2295:b0:51c:248d:900 with SMTP id d75a77b69052e-5213cad91a9mr195558811cf.52.1784681634345; Tue, 21 Jul 2026 17:53:54 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: <20260722085416.407316d393dce1884c29a3c7@dec.sakura.ne.jp> In-Reply-To: <20260722085416.407316d393dce1884c29a3c7@dec.sakura.ne.jp> From: Kevin Bowling Date: Tue, 21 Jul 2026 17:53:41 -0700 X-Gm-Features: AUfX_mzN9MMRq3m2j4jtJrPD1AkV03P5a3tK5n_Dgt_wQfhsOb0CYXtJrouMKdM Message-ID: Subject: Re: Tragic State of FreeBSD Audio/Sound To: Tomoaki AOKI Cc: Gleb Popov , "freebsd-current@freebsd.org" , "freebsd-hackers@FreeBSD.org" , "freebsd-stable@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4h4bNm27KJz3Vcj X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Spamd-Bar: ---- On Tue, Jul 21, 2026 at 4:54=E2=80=AFPM Tomoaki AOKI wrote: > > On Tue, 21 Jul 2026 11:02:27 -0700 > Kevin Bowling wrote: > > > On Tue, Jul 21, 2026 at 3:13=E2=80=AFAM Gleb Popov = wrote: > > > > > > On Tue, Jul 21, 2026 at 12:57=E2=80=AFPM Kevin Bowling wrote: > > > > > > > > Only major outstanding work is pipewire/pipewire-pulse don't know h= ow to > > > > elevate their priority on FreeBSD and they really should be RT. > > > > > > What's needed for that? > > > > There are multiple issues: > > > > 1) Either a fix for the priority in PipeWire (SCHED_FIFO, don't set a > > negative nice.level =3D -11 as a normal user) or something to make RTKi= t > > work > > 2) Use the process ID, _gettid(). > > 3) kldload mac_priority and user in realtime group > > > > > > Disable the stock PulseAudio autostart. > > > > > > Why, what's wrong with it? > > > > Try killing it with KDE running and see what happens. > > Putting others aside, if anyone want to use pipewire, > pulseaudio shouldn't be installed alongside. Not quite yet. You _need_ pulseaudio installed, because it defines the API and ABI presently. I'm not aware of any way to build pulse software with i.e. pipewire as the bdep? > IIUC, pipewire was (at least initially) developed as > the "successor" of pulseaudio and not intended to be installed > alongside (choose one basis), and provides pulseaudio > compatibility for apps not yet natively support pipewire. pipewire-pulse (included in our default install) is a stand in. "Eventually," software should write directly to the pipewire graph. But that will take a long time, if ever, because Pulse wasn't awful as a client API (which is an easy problem space). Overall, pipewire is pretty nice. It is analagous to something like Apple's coreaudio. It can do bitperfect with my sink, and you can build graphs that avoid any SRC (Sample Rate Conversions) for proaudio and such. I've basically reached a local maxima on the sink to where the kernel would need some work to support things like digital passthrough or more pro audio oriented stuff, but I think it's basiaclly feature complete for desktop audio. > And when I've tried pipewire a bit in early days it appeared > in ports tree, I've experienced the same on Mate DE. > The only workaround was to deinstall pulseaudio, but as > pulseaudio is depended upon by many ports, upgrading ports > forcibly pull pulseaudio in again unless nothing depending > upon pulseaudio is upgraded. Read my instructions again and let me know how it goes. All you need to do is prevent pulseaudio from starting. But it needs to remain installed. > So, I think > *Make pulseaudio and pipewire conflicting each other > *Add USES to pull in whichever pulseaudio or pipewire > *Add DEFAULT_VERSIONS for it to choose whichever as > dependency > would be needed. > > I imagine something like this. > https://forums.freebsd.org/threads/porting-x11libre-to-freebsd.98455/pa= ge-5#post-711350 > > > Not sure about current state (at the moment, OSS supports > was not yet provided and I've become too tired to play > around ALSA configurations, thus, abandoned further tests), > but if pulseaudio is still needed to build pulseaudio > compatibility supports, using distfiles for pulseaudio > but do NOT depend on pulseaudio port would be needed > to achieve the above. > > Regards. > > > > > > 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. > > > -- > Tomoaki AOKI