From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oELzH3vWQGIwZgAAgWs5BA (envelope-from ) for ; Sun, 27 Mar 2022 23:26:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GHeUGHvWQGKHgQEAG6o9tA (envelope-from ) for ; Sun, 27 Mar 2022 23:26:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 34F5238305 for ; Sun, 27 Mar 2022 23:26:18 +0200 (CEST) Received: from localhost ([::1]:33978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYaOv-0004UO-BI for larch@yhetil.org; Sun, 27 Mar 2022 17:26:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYaOa-0004U2-F1 for guix-devel@gnu.org; Sun, 27 Mar 2022 17:25:56 -0400 Received: from mx1.riseup.net ([198.252.153.129]:57658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYaOX-0003Wy-AB for guix-devel@gnu.org; Sun, 27 Mar 2022 17:25:56 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4KRTQQ3hPRzDqbm; Sun, 27 Mar 2022 14:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1648416350; bh=9qgXspQwwTAfWLTfaIwQcyA7+cnRBZ6jZeL5E3Nyi/g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VkEP4DlF+XlOyJG6BhZlQ9nH+rpW9M828urC4gypO/5nF6waOJZfHe4cMtIz/qe0O Sm+wugctffy9bKg2RefM219HegOaGwd9+IQol1sTuVP8OghMU+NtzbLN74MsIGBnn4 QO66WejVSX6MBwRaJ6yN1u7qo++iJNts7t5kdOHY= X-Riseup-User-ID: 0A0D339FBC67F16BCA11659A8EAD8015902B331DB0331D9BFBEF7066A41BEC02 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4KRTQP50Q4z5w5s; Sun, 27 Mar 2022 14:25:49 -0700 (PDT) Date: Sun, 27 Mar 2022 23:25:23 +0200 From: raingloom To: guix-devel@gnu.org Subject: Re: PipeWire as a PulseAudio replacement (was Re: The Shepherd on Fibers) Message-ID: <20220327232523.780b46c0@riseup.net> In-Reply-To: <4c65293b-dbc1-afa9-6548-0308abb70a97@brendan.scot> References: <780223431.610773.1648104505746@office.mailbox.org> <87a6dchh39.fsf@jpoiret.xyz> <4c65293b-dbc1-afa9-6548-0308abb70a97@brendan.scot> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mail@brendan.scot Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648416379; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=S0wtkDa9SB2SNjdWsxrBcBlyjkqj6Z0Nu138UZw3im0=; b=LZCeAkdsVUvQlm+i1TrKAgy74Rpp3thTQrX+kbauelVJoqpmxY6shFBmKSBKqOZaLeLj4M YJ4VjEjvnCAeaMjlQQfeDgEEItWmWHugNuP71QK9j4lerlDM5Zb9s38FdVyU8SdHP/7QCc A+Jl3JmG9FtnroRuhB8wBSf4HBIByfVh1soudDiiwRGBNixH4zCN3kyw68ng55S+82ZY06 OUXQdh0G3iBCgb9MlgyGQRaUv5d+g25TAs3XgeGepqXN1jvuIO76IfIgIK6qZ+6F6JdHgX Snq+sgresa4ILH89C9GylddzHWaym2tL9GS2+HntWm73+LXkbS5/2lzcJYinzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648416379; a=rsa-sha256; cv=none; b=EXi3fgM87/btEDhjofdCYmHiA6KPEtzZMNuYr0qNliI1kN46QKhtkcS9TIPGBwqdAa4P9A Ua1gxBu5bNJE96EhLPDNStp/Bh7Og4Yv7xrwaFHJa9XzKUvUaCO9BovzF97dp6oazaEkSY e0j2fp8wlhObQKagOB3VxqVax5hhmj8XDqhw/rhteyJ/g6zng6FvIkKmVn3OXrLTVVTM+v Q9ie/2lGZ0Dy8BL5tzMRbJyTk/2OAjhsQfewYfouLt45iP8cL3iabyITyKfQvSZLw9bHuQ pXgQOrm83nyLmrmfVd64Og11BZTR9UC8IJd9hsuN/a9QHF34LzJSTgD4YEkVsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VkEP4DlF; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VkEP4DlF; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 34F5238305 X-Spam-Score: -5.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: mGK1wxCmY+U+ On Sun, 27 Mar 2022 22:55:36 +1100 Brendan Tildesley wrote: > On 27/3/22 01:24, Josselin Poiret wrote: > > > Hello Brendan, > > > > Brendan Tildesley writes: > >> I would like to replace pulseaudio with pipewire as the default in > >> %desktop-services, the only hurdle is how to launch the user > >> daemons in all the different desktop configurations one might use. > >> Other distros use systemd's socket activation to magically launch > >> pipewire. > >> > >> Otherwise XDG autostarts or some kind of guix home service could > >> launch it? > > The main issue for PipeWire is that it really doesn't support > > running a single system-wide daemon as we're doing with PulseAudio, > > so you would need to launch it through XDG autostart, guix home or > > something similar like you said! > > I think this is not right. Pulseaudio and Pipewire are both "user > services". The Guix (pulseaudio-service-type) merely sets up some > global configuration files and evironment variables. Actually these > could be a part of the user profile if one really wanted. The only > parts that actually need to be done by root is the udev service and > the alsa service setting two configuration files. > > Pulseaudio is automatically started by applications that make use of > it via DBUS. I don't understand how that works, but for whatever > reason Pipewire's official way to launch is via systemd sockets. > Systems without systemd use XDG autolaunch with a trivial script like > this one: > https://gitweb.gentoo.org/repo/gentoo.git/tree/media-video/pipewire/files/gentoo-pipewire-launcher.in > > So it is not difficult at all to run Pipewire, just a method must be > chosen. > > > > > One thing that I think is blocking right now is that PipeWire (or > > actually WirePlumber, I don't remember) would need to see some > > environment variables set by other user services eg. session D-Bus > > or even the compositor, which isn't possible yet with Shepherd. > > Which environment variables are you talking about? I'm running > pipewire on Guix System > > and it seems to work fine. > > > Best, This might be of interest. https://freeradical.zone/@craftyguy/107981283066383952 https://sr.ht/~craftyguy/superd