From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 52E075EC9 for ; Fri, 18 Jul 2025 11:27:57 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 051555E59; Fri, 18 Jul 2025 11:27:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) by atuin.qyliss.net (Postfix) with ESMTPS id D47E45EB5 for ; Fri, 18 Jul 2025 11:27:53 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 5A10EEC0174; Fri, 18 Jul 2025 07:27:52 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Fri, 18 Jul 2025 07:27:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1752838072; x=1752924472; bh=zwk1lgFvhg uma7aIcbfIeJwIOjzdJRpz9YoW8XGGdgA=; b=DeMquNKDm++nqC+qAb/Rxr8icY qwo+FNpYKlCA4Sx3kwQqZLbdCU5+u+yje8dxtI4JflRxKinhpysvevbTjbrSsUyX K7pQY9w5PQNcUFQHj1hU21/zc4EnCTu1d0FaQL5z+/5YKCFWrKE2m2PsVpuMrX5x /J72K5GCBMVzJ5EncbwafyOusq4w3wsOSjjHRmix4oN5CCrhxynhAR/91n39oful IdqvZCJwq9QAQpRO2lBL4dYON02VykPUuUyWsYXXOvXkdtvkfAyyIae+3sqlUed0 EM7kz47TvSQHHYtd3vTJ630WSDD6nM3NSF2Vtbp3HeqWXuOLd1EkrFAvxc6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1752838072; x=1752924472; bh=zwk1lgFvhguma7aIcbfIeJwIOjzdJRpz9Yo W8XGGdgA=; b=jXwF20D1zS5gjsYVEYBr6N4uDxieuGwan0qCYEsQ1RspNlXKikV b4ABeNLW9ZYQbKL+qE4CUUUkMZHzN3odf7scw0gM9MiTpRCZSsrUzFlGcKXBhXb1 G9VtVQ5XHzVKPU9jZRoNjJ93dG2f64VtxK9LNSA3h4zwbBXELB0hGJi/lp9EivXP YejZKfEnS3nsy+6zW0hZ9Oaut29T7MyHu5UnT3/ou2GAVLQDV6g/spxGS1JbgfbI v3svBkcp0WQNuaKpr4PlQRhRRqNgmPgP5IApUWiSuEFl4z/PQD+PSN4zfouVlthY dH2WV0t+WmBWJpNWX6IR+BFzemh4KBA8iKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeifeefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvffujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcutfho shhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpedvuedviedvhe fhieektddvvdehgfehffelveeuiefggfdtffffueejudejjeekjeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrdhish dpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepuggv mhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlsehsph gvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Jul 2025 07:27:51 -0400 (EDT) Received: by sf.qyliss.net (Postfix, from userid 1000) id CA1A72B85C819; Fri, 18 Jul 2025 13:27:50 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: [PATCH v4 3/3] Run PipeWire and WirePlumber in the VMs In-Reply-To: <25197dbe-d642-4283-80b7-be66dcc4f4eb@gmail.com> References: <6ab772e0-62b0-430f-8d3c-0bba79a3282c@gmail.com> <25197dbe-d642-4283-80b7-be66dcc4f4eb@gmail.com> Date: Fri, 18 Jul 2025 13:27:49 +0200 Message-ID: <87jz45spqi.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: IKSE44JIXBRDBP5I2NQC7N5BXNEHZ5JK X-Message-ID-Hash: IKSE44JIXBRDBP5I2NQC7N5BXNEHZ5JK X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain Demi Marie Obenour writes: > WirePlumber is completely overkill as a session manager here, and > ideally a trivial session manager would be used instead. I did build a > Spectrum OS image and found that PipeWire and WirePlumber both > successfully started. PipeWire is configured to listen on the > PulseAudio socket, so PulseAudio compatibility works. This does inject > a large number of completely unnecessary files into the VM, notably for > libcamera and Bluetooth support. > > Signed-off-by: Demi Marie Obenour > --- > > Notes: > I tested this with QEMU virtio-sound, but I am not sure if the paramters > are correct. In particular, the sample rate might well be wrong. > > img/app/Makefile | 28 +- > img/app/default.nix | 18 + > img/app/etc/pipewire/pipewire.conf | 291 ++++++++ > .../etc/s6-rc/app/dependencies.d/directories | 0 > .../app/dependencies.d/directories.license | 2 + > .../etc/s6-rc/app/dependencies.d/wireplumber | 0 > .../app/dependencies.d/wireplumber.license | 2 + > .../etc/s6-rc/dbus/dependencies.d/directories | 0 > .../dbus/dependencies.d/directories.license | 2 + > img/app/etc/s6-rc/directories/type | 1 + > img/app/etc/s6-rc/directories/type.license | 2 + > img/app/etc/s6-rc/directories/up | 11 + > .../s6-rc/pipewire/dependencies.d/directories | 0 > .../dependencies.d/directories.license | 2 + > img/app/etc/s6-rc/pipewire/notification-fd | 1 + > .../s6-rc/pipewire/notification-fd.license | 2 + > img/app/etc/s6-rc/pipewire/run | 20 + > img/app/etc/s6-rc/pipewire/type | 1 + > img/app/etc/s6-rc/pipewire/type.license | 2 + > .../dependencies.d/directories | 0 > .../dependencies.d/directories.license | 2 + > img/app/etc/s6-rc/wayland-proxy-virtwl/run | 11 - > .../etc/s6-rc/wireplumber/dependencies.d/dbus | 0 > .../wireplumber/dependencies.d/dbus.license | 2 + > .../s6-rc/wireplumber/dependencies.d/pipewire | 0 > .../dependencies.d/pipewire.license | 2 + > img/app/etc/s6-rc/wireplumber/run | 4 + > img/app/etc/s6-rc/wireplumber/type | 1 + > img/app/etc/s6-rc/wireplumber/type.license | 2 + > img/app/etc/wireplumber/wireplumber.conf | 676 ++++++++++++++++++ The PipeWire and WirePlumber config files are still very big. Is it really not possible to make them smaller and rely on defaults where possible? With a whole big config like this, it's difficult to see what Spectrum-specific stuff is going on. > diff --git a/img/app/default.nix b/img/app/default.nix > index 740643ac41f6473cdb6f6b0fd1f5f47f4493240d..8c469ee5b9a672bf6504600b09ff1f57fb87f2d9 100644 > --- a/img/app/default.nix > +++ b/img/app/default.nix > @@ -26,6 +26,20 @@ let > CONFIG_FEATURE_IP_ROUTE y > CONFIG_INIT n > CONFIG_IP y > + CONFIG_FACTOR n > + CONFIG_FOLD n > + CONFIG_LSSCSI n > + CONFIG_NANDWRITE n > + CONFIG_NANDDUMP n > + CONFIG_RAIDAUTORUN n > + CONFIG_RFKILL n > + CONFIG_UBIATTACH n > + CONFIG_UBIDETACH n > + CONFIG_UBIMKVOL n > + CONFIG_UBIRMVOL n > + CONFIG_UBIRSVOL n > + CONFIG_UBIUPDATEVOL n > + CONFIG_UBIRENAME n Do these all conflict with PipeWire/WirePlumber/PulseAudio?? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaHovtQAKCRBbRZGEIw/w ostZAQCJAsoxiDRMjGvrK0tU920MIl7hgjmQeWuMhIcxk/qrggD/doxyNjZbtxjS /Qv6N4fH9DEyXr+mX1kSJPWUGyYEiwA= =/yS8 -----END PGP SIGNATURE----- --=-=-=--