From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yEkmO0Lzh2TQQwEASxT56A (envelope-from ) for ; Tue, 13 Jun 2023 06:40:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CMoBO0Lzh2SvaQEA9RJhRA (envelope-from ) for ; Tue, 13 Jun 2023 06:40:34 +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 B72CC390A8 for ; Tue, 13 Jun 2023 06:40:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8vpM-0007bI-Ok; Tue, 13 Jun 2023 00:40:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8vpE-0007ZL-3s for guix-patches@gnu.org; Tue, 13 Jun 2023 00:40:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8vp4-0007nR-G5 for guix-patches@gnu.org; Tue, 13 Jun 2023 00:40:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8vp4-0004iq-1O for guix-patches@gnu.org; Tue, 13 Jun 2023 00:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63863] [PATCH] gnu: home: Add support for home-pipewire-service Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Jun 2023 04:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63863 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Brian Cully Cc: 63863@debbugs.gnu.org Received: via spool by 63863-submit@debbugs.gnu.org id=B63863.168663117018103 (code B ref 63863); Tue, 13 Jun 2023 04:40:01 +0000 Received: (at 63863) by debbugs.gnu.org; 13 Jun 2023 04:39:30 +0000 Received: from localhost ([127.0.0.1]:41135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8voY-0004hu-4U for submit@debbugs.gnu.org; Tue, 13 Jun 2023 00:39:30 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:61623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8voV-0004hd-F6 for 63863@debbugs.gnu.org; Tue, 13 Jun 2023 00:39:28 -0400 X-GND-Sasl: andrew@trop.in DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1686631160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PBSg55EhLczNMEI0U6vzYpPS8AZlmmJamE1jgTKTEIA=; b=ZTa3cDE0LkAl3355cjoCAWWC0xcQ0+KYR03Tx+G/kRQmLUu1Ejs80Ms1oGBKWhv5V/G+Tb gs7+tEeBaunXLRVLTp5iFvU3txLCLMQ08SMxTVG7+jwt3G0RinkVx5tUXw0X0sU8aPX66M m8mV+8a+ws5eQYjf2PIWsOsrMWuQy6Dm9mXYqFcqfKBy+DWQktROsnshqLHEEVRcrwIgF6 fZSsMyGysstvQYOD5kbZIm36kMGE06JKiHhGwEEEGZpJxWRYc5RUsTkyE4c9quVPEOIhFp IQ0O+Q6PCHGoNLG7oZmXvffjlyF3gy2BMFA8c3nGIoUg42TyoQEDT6e8YknWVg== X-GND-Sasl: andrew@trop.in Received: by mail.gandi.net (Postfix) with ESMTPSA id 265F540003; Tue, 13 Jun 2023 04:39:19 +0000 (UTC) From: Andrew Tropin In-Reply-To: <875y7spsgv.fsf@psyduck.jhoto.kublai.com> References: <13252a733171e18f4d39d0185ddf3e8e3c06bc15.1685747062.git.bjc@spork.org> <87mt15mdp4.fsf@trop.in> <875y7spsgv.fsf@psyduck.jhoto.kublai.com> Date: Tue, 13 Jun 2023 08:39:16 +0400 Message-ID: <87pm602cy3.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686631234; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=PBSg55EhLczNMEI0U6vzYpPS8AZlmmJamE1jgTKTEIA=; b=CRVczhPLyJE+R4FWEv8TN7jliniYR8xuXpnGgm68b21bVeN5ReM5u9N17MUrLFGC+E5W/S XcN4V9K1E1knWZ9uW/K2t7M8y/QsfpMNy7dcZVWYemii4M7vjslKfUCSU/7odLk/DHRXjt no97jyLKVvhHHFa+DpSiyP5yHc52M6oDFJXWjBIEQzMQHf431+EyzxPr/bdChMRiXvQNZ4 1FIu3cSRlBQDXLzUp8qRiaoaod6dyIAOYeH/cy1pzxDR6QSuLpjCjHCcOMQy1f+/kzUnz6 mdKdy+TWWT6vQ7fmJvjBnbvKAPrL6F8YSDABU+Kpj3WZ8LcaPrCg4mD0OMKFBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=ZTa3cDE0; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686631234; a=rsa-sha256; cv=none; b=TPkgyhD5FUTFWErxgLuUZc/kpTdzrQPppevqesXl/SA+u8EBZe+/RIkKPF/GKHSr5vjZMT +a5ja3+Sxaokr3lrwpbLbfY2OpwXetN3hm823b2HtjTd494F8O1SfOdxdFR+zDSmGBaDs4 tHwh5Hn95yKXETXybbEk8PECWY3Ql07DtdKefWVluE9vu7jFseT38Wj1PFZ6cPnA5f5dP7 +4UUzOAS48oPfPz28tWfGBnaND4rWK/KN71dcwNLa0kdROCKQXwDhe/kLaqzd2IlCKc0le 4gNhlyeM4LjzR0YYOCm7vrMUiHr8GU7J3UliDcTYw1C32wrjuotNklvkedFR0A== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=ZTa3cDE0; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B72CC390A8 X-Spam-Score: -2.92 X-TUID: /rZ5iSZhjCvn --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2023-06-12 11:56, Brian Cully wrote: > Andrew Tropin writes: >>> +(define (home-pipewire-shepherd-service config) >>> + (shepherd-service >>> + (documentation "PipeWire screen and audio sharing.") >> >> The description seems a little bit missleading, while PipeWire=20 >> can do >> screensharing, it's not only or even primary role. > > I'm not sure I understand the objection. Would you rather I=20 > mention its audio capabilities before screen sharing? Nope. > Or would something like "PipeWire media processing" seem to suit it > better for you? Yep. > Truth be told, I find succinctly describing PipeWire for this=20 > context to be pretty difficult. It does a lot, and it's all pretty=20 > abstract. PipeWire is just plumbing for services people actually=20 > care about, and I don't think "PipeWire make media worky" is going=20 > to fly =F0=9F=98=89. > "PipeWire make media worky" would work great! :D jk Real-time multimedia capturing, processing and playback or low-latency, graph-based audio and video processing engine or something like that. >> Thank you for the patch! You may also want to add pipewire=20 >> backend for >> alsa: >> https://git.sr.ht/~abcdw/rde/tree/525f8c7f25783c6b8fa55f21c8e62237bc0d4a= 04/src/rde/features/linux.scm#L100 > > Thanks for the pointer. I'll try to dig through the documentation=20 > to see what I can do. I find the Linux sound ecosystem to be=20 > pretty confusing. For instance: I thought ALSA was the backend=20 > that PipeWire used on Linux already, so I don't understand how=20 > ALSA can also use PipeWire as a backend. > > My use for this patch was Wayland-motivated, and everything=20 > outside of basic functionality (screen sharing and playing audio=20 > from Firefox and MPD) wasn't something I spent much time on =E2=80=94=20 > since I really don't know much about it =E2=80=94 in the hopes that we=20 > could provide a minimum level of service for people and add better=20 > support as people needed it as time went on. Yep, we have similiar use cases in rde and configuration mentioned earlier serves them quite well. According to Alsa: I don't have deep knowledge in this area too, but according to my knowledge pipewire can be loaded as a shared library and injected into alsa user-facing API to process requests, so maybe a backend for ALSA-based applications or middleend for ALSA will be more apropriate name for the pipewire role here :) Anyway, without the config above alsamixer doesn't work on my system, probably with some configuration it's possible to make it work, but bypassing pipewire, however I think it would be nice to go full pipewire. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmSH8vQACgkQIgjSCVjB 3rDEhg/+MqNlQalpc8o1sMAhq39h3dx5c/WJv4QwHXMNdCtpJM/yNa+WF9zAtDUL 79w45+zLV4M2ouwA8+1/0mzj0TIeo/PMF4+q20UagGx7AqgwxFzSfuNgh2ZMMWWy RpMI+SaVoqW8xIZBxtVEVQ6liVr3Gseq/m+bdDCAJfbaVGD7mQe131cWpvuYoupf cctLBZYGdAMcg4Z2FFQteukoXSOZIwpHOuAAmPIPxUDtGYf02qBsg3EGbQ/SrZ98 i+ofEE58zKfT5I1r/1oQ8dG1s4KmVnWpkcZdrAieYCx2ybUS+mfNXjjVJf269hrj 4i1NnQ9e7p+UawgmLN2+6JWKu9IUwZDSVOQEGRmw2MxxrU/VqMdCLEU32WyTMgnj 9kwm73ojdA96Xu8mC1ttKB3CUKbe0ni5gY2rFdNlEZTYW85xpbUO85EOBXGY23vq lhamRphabC29+pVNd/E6KrPnvs6kTQjUJP+zHj7wCldqR0y435PSy3Z5qBTfZSbW clDr0iuGT/dDoLuKgY5gbjdpbEAb7Tbp3iTnA563Pp8lqxE0w15pb8pOsm3OyzQG IS7xw64FTcnl/ltkxEA9nxD4z9eQZjgSq5DXjFX0jMJ6MHh2+ZT0IRGCkz15sgzE B1zQ3JDjK5P9Gp+7xXzqwyq99MqbDAa0BVTJCnWMhjzt1m1GuIg= =gLar -----END PGP SIGNATURE----- --=-=-=--