From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uPBvN2vKI2dlmQAA62LTzQ:P1 (envelope-from ) for ; Thu, 31 Oct 2024 18:20:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uPBvN2vKI2dlmQAA62LTzQ (envelope-from ) for ; Thu, 31 Oct 2024 19:20:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=subvertising.org header.s=stigmate header.b=VEAS5vTE; 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"; dmarc=pass (policy=reject) header.from=subvertising.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730398827; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=30hvaE70ymwHVIC3jrszBNJSZul/kKcnOl59wof7Yww=; b=CDnphdvcL2GLhcaNiULdbA+1ASRpRrpNq1n7vQ86P1R+rThqbJ9ABTvXzcisaJqRNXERUi cUjfQCL4TVdBwCTG/xQB8RQ63VnNmHVI4TWgoKtzbAxltHsTGpKRAUQJUQTIAgR/dm8JJu 2lQbxjBvjvInJj4oPbqvfitGW2xZ839elOEO1VLExe6rA4xuXH5gcwkdDkPxDE1V1SyBvw S1Sw8zCJeLykSMpefNOe1RVn/1PMI76zaoohrwYXwIo/w0QwUxSIPzEYEEx2GKOhYAGOWn 6geAT27O9LH9aojHhSy0Hz1YIxlV/fG2fDsHtbdpFnwXgujE2OkbyJIeHz0+QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=subvertising.org header.s=stigmate header.b=VEAS5vTE; 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"; dmarc=pass (policy=reject) header.from=subvertising.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730398827; a=rsa-sha256; cv=none; b=jXODy/7E1Wby15/siPBbTRlRphvOCQl7TOyR8lP0Iog9G1hvRPw7mC1qj5GKVsojDAlOUC De9nlVw10gSVkxSoFjqP6eGbeiwL/3mdoPbMfWIWiEQQg4/QU4sifar303cnga0s1uX0Tz 7nNVSiLrH0uBBLCzGS6wf428RNbVC0IjGfW82133BPWMUQLtj14GQGYul/WbJmIdYQcbGO AUDPEJu7N4HV3v8e+PiMvN4lhAMnjr6SHKW62ryb8pyBYOMvO8pSjD58mCpOOWBh7pMhWM 8aacMWavF4zLVxLr/jgDiTvZVBGXBGrKstyvfyMb3jrmaIl/GQLGbQvSaYWH9A== 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 75F8D7B2B4 for ; Thu, 31 Oct 2024 19:20:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6Zly-00088w-NZ; Thu, 31 Oct 2024 14:19:54 -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 1t6Zlx-00088m-7e for guix-devel@gnu.org; Thu, 31 Oct 2024 14:19:53 -0400 Received: from confino.investici.org ([2a11:7980:1::2:0]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6Zlu-0001fg-96 for guix-devel@gnu.org; Thu, 31 Oct 2024 14:19:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=subvertising.org; s=stigmate; t=1730398778; bh=30hvaE70ymwHVIC3jrszBNJSZul/kKcnOl59wof7Yww=; h=Date:From:To:Subject:In-Reply-To:References:From; b=VEAS5vTEvlXBXWlN1P889ZMAWmL1kmPtkEJ+/Gg1bt9bY+Ymg5lwn5sv/MMhdAlrJ q/4WG8K/TaB/fT1dUTkBset0g9Wxs9SQe8HB90lXsy8mBjYfVppzNkxL3TH9NjJkUX BP5JHwbrZV4fJyw3XdBbl+CW9njj6LW3k+DzrWio= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4XfXMZ0bt8z114Y for ; Thu, 31 Oct 2024 18:19:38 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: divya@subvertising.org) by localhost (Postfix) with ESMTPSA id 4XfXMY40KGz114L for ; Thu, 31 Oct 2024 18:19:37 +0000 (UTC) Date: Thu, 31 Oct 2024 18:19:31 +0000 From: Divya To: guix-devel@gnu.org Subject: Re: Using Pipewire for PulseAudio and JACK in Guix User-Agent: K-9 Mail for Android In-Reply-To: <8734kgcq7j.fsf@subvertising.org> References: <8734kgcq7j.fsf@subvertising.org> Message-ID: <4534953F-E4EF-426C-AAA4-0A11051DC982@subvertising.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----VG3C5H8EEJVEIWJXQIYNJU86F1EHAP Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a11:7980:1::2:0; envelope-from=divya@subvertising.org; helo=confino.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.34 X-Spam-Score: -1.34 X-Migadu-Queue-Id: 75F8D7B2B4 X-TUID: f5P1qM4QJh5k ------VG3C5H8EEJVEIWJXQIYNJU86F1EHAP Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 28 October 2024 13:27:44 GMT, "Divya Ranjan via Development of GNU Guix = and the GNU System distribution=2E" wrote: >Hello, > >I=E2=80=99m having some issues getting a unified audio setup using PipeWi= re only, i=2Ee=2E, PipeWire alongwith ALSA to route all audio using PulseAu= dio and JACK emulation=2E I had such a setup previously on the Arch GNU/Lin= ux distribution, but I have been struggling since I switched to GNU Guix=2E > >I want first of all the applications to be handled through PipeWire=E2=80= =99s PulseAudio emulation, such as audio to browser, telegram-desktop etc= =2E I used to have a PipeWire configuration with sources and sinks for each= of the major applications, which was then routed using JACK emulation of P= ipeWire through the help of a patchbay/JACK client such as Carla or qpwgrap= h/patchage=2E > >I have gone with the barebones configuration of PipeWire that I can find = for Guix, to that end, my system configuration includes the following servi= ces: > >#+begin_src guile >(services > (append (list > > (service pam-limits-service-type > (list > (pam-limits-entry "@realtime" 'both 'rtprio 99) > (pam-limits-entry "@realtime" 'both 'memlock 'unlim= ited))))) > (modify-services %desktop-services > (alsa-service-type config =3D> > (alsa-configuration > (pulseaudio? #f))))) >#+end_src > >So I=E2=80=99ve got the realtime configuration declared here, and I also = have: > >#+begin_src guile >(groups (cons* > (user-group > (name "realtime") > (system? #t)) > %base-groups)) >#+end_src > >and then realtime is added to `supplementary-groups` in `user-account`=2E > >And, similarly I=E2=80=99ve added the following in my home configuration= =E2=80=99s services: > >#+begin_src guile >(services (append (list > (service home-pipewire-service-type > (home-pipewire-configuration > (wireplumber wireplumber) > (enable-pulseaudio? #t)))))) >#+end_src > >After this configuration, I can run JACK through jackd, even though I don= =E2=80=99t have jack installed in system or home configuration=2E Does it g= et installed through some other package=E2=80=99s dependency? > >Furthermore, when I try to use a JACK client through `pw-jack' it doesn= =E2=80=99t work=2E For example, running `pw-jack qjackctl' and starting JAC= K through it gives the following error in qjackctl=E2=80=99s messages: > >13:13:37=2E600 JACK is starting=2E=2E=2E >13:13:37=2E600 /run/current-system/profile/bin/jackd -dalsa -dhw:0 >13:13:37=2E606 JACK was started with PID=3D4007=2E >/run/current-system/profile/bin/jackd: symbol lookup error: /run/current-= system/profile/bin/jackd: undefined symbol: clock_source >13:13:37=2E608 JACK was stopped >13:13:39=2E662 Could not connect to JACK server as client=2E - Overall op= eration failed=2E - Unable to initialize client=2E Please check the message= s window for more info=2E > >When I try `pw-jack carla' as well, the same thing happens, it says libja= ck=2Eso=2E0 is loaded successfully but when I start Carla=E2=80=99s engine,= it says: =E2=80=9CFailed to create new JACK client=2E=E2=80=9D > >Now, I don=E2=80=99t know what=E2=80=99s going wrong where, but I want to= JACK with PipeWire, unless one can recommend me good reasons to use JACK e= xternally alongside PipeWire=2E Also, even PipeWire=E2=80=99s pulseaudio se= ems finicky, sometimes works sometimes doesn=E2=80=99t=2E Sometimes applica= tions like browser (librewolf, ungoogled-chromium) can=E2=80=99t access mic= rophone or speaker (while permissions are fine), at other times, messing ar= ound with pavucontrol makes it work=2E I am not sure what exactly is making= it work and what is failing, any suggestions for how to conduct some debug= ging would be of help=2E I need a consistently functioning system of pipewi= re emulating pulseaudio for applications and jack for routing, that doesn= =E2=80=99t fail=2E > >Also, how can I configure my ALSA device cards, and have it reproduce gai= n? Ipreviously used to have an ~/=2Econfig/asound=2Estate that is stored an= d restored using alsactl=2E Doing that doesn=E2=80=99t seem to preserve ant= hing=2E > >I=E2=80=99ve attached my system=2Escm and home configuration for referenc= e if needed=2E Also CC=E2=80=99ing Ricardo since he=E2=80=99s the =E2=80=9C= sound guy=E2=80=9D I know for GUIX :) > >Regards, >--=20 >Divya Ranjan, >Philosophy, Mathematics, Libre Software=2E > > Ping ------VG3C5H8EEJVEIWJXQIYNJU86F1EHAP Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 28= October 2024 13:27:44 GMT, "Divya Ranjan via Development of GNU Guix and t= he GNU System distribution=2E" <guix-devel@gnu=2Eorg> wrote:
Hello,

I=E2=80=99m having s= ome issues getting a unified audio setup using PipeWire only, i=2Ee=2E, Pip= eWire alongwith ALSA to route all audio using PulseAudio and JACK emulation= =2E I had such a setup previously on the Arch GNU/Linux distribution, but I= have been struggling since I switched to GNU Guix=2E

I want first o= f all the applications to be handled through PipeWire=E2=80=99s PulseAudio = emulation, such as audio to browser, telegram-desktop etc=2E I used to have= a PipeWire configuration with sources and sinks for each of the major appl= ications, which was then routed using JACK emulation of PipeWire through th= e help of a patchbay/JACK client such as Carla or qpwgraph/patchage=2E
<= br>I have gone with the barebones configuration of PipeWire that I can find= for Guix, to that end, my system configuration includes the following serv= ices:

#+begin_src guile
(services
(append (list

= (service pam-limits-service-type
(list
= (pam-limits-entry "@realtime" 'both 'rtprio 99)
= (pam-limits-entry "@realtime" 'both 'memlock 'unlimited))))) (modify-services %desktop-services
= (alsa-service-type config =3D>
= (alsa-configuration
= (pulseaudio? #f)))))
#+end_src

So I=E2=80=99ve got the = realtime configuration declared here, and I also have:

#+begin_src g= uile
(groups (cons*
(user-group
(name "realtime")
= (system? #t))
%base-groups))
#+end_src

and then realtime is= added to `supplementary-groups` in `user-account`=2E

And, similarly= I=E2=80=99ve added the following in my home configuration=E2=80=99s servic= es:

#+begin_src guile
(services (append (list
= (service home-pipewire-service-type
(home-pipewire-configurati= on
(wireplumber wireplumber)
(enable-pulseaudio? #t= ))))))
#+end_src

After this configuration, I can run JACK through= jackd, even though I don=E2=80=99t have jack installed in system or home c= onfiguration=2E Does it get installed through some other package=E2=80=99s = dependency?

Furthermore, when I try to use a JACK client through `pw= -jack' it doesn=E2=80=99t work=2E For example, running `pw-jack qjackctl' a= nd starting JACK through it gives the following error in qjackctl=E2=80=99s= messages:

13:13:37=2E600 JACK is starting=2E=2E=2E
13:13:37=2E60= 0 /run/current-system/profile/bin/jackd -dalsa -dhw:0
13:13:37=2E606 JAC= K was started with PID=3D4007=2E
/run/current-system/profile/bin/jackd: = symbol lookup error: /run/current-system/profile/bin/jackd: undefined symbo= l: clock_source
13:13:37=2E608 JACK was stopped
13:13:39=2E662 Could = not connect to JACK server as client=2E - Overall operation failed=2E - Una= ble to initialize client=2E Please check the messages window for more info= =2E

When I try `pw-jack carla' as well, the same thing happens, it s= ays libjack=2Eso=2E0 is loaded successfully but when I start Carla=E2=80=99= s engine, it says: =E2=80=9CFailed to create new JACK client=2E=E2=80=9D
Now, I don=E2=80=99t know what=E2=80=99s going wrong where, but I want= to JACK with PipeWire, unless one can recommend me good reasons to use JAC= K externally alongside PipeWire=2E Also, even PipeWire=E2=80=99s pulseaudio= seems finicky, sometimes works sometimes doesn=E2=80=99t=2E Sometimes appl= ications like browser (librewolf, ungoogled-chromium) can=E2=80=99t access = microphone or speaker (while permissions are fine), at other times, messing= around with pavucontrol makes it work=2E I am not sure what exactly is mak= ing it work and what is failing, any suggestions for how to conduct some de= bugging would be of help=2E I need a consistently functioning system of pip= ewire emulating pulseaudio for applications and jack for routing, that does= n=E2=80=99t fail=2E

Also, how can I configure my ALSA device cards, = and have it reproduce gain? Ipreviously used to have an ~/=2Econfig/asound= =2Estate that is stored and restored using alsactl=2E Doing that doesn=E2= =80=99t seem to preserve anthing=2E

I=E2=80=99ve attached my system= =2Escm and home configuration for reference if needed=2E Also CC=E2=80=99in= g Ricardo since he=E2=80=99s the =E2=80=9Csound guy=E2=80=9D I know for GUI= X :)

Regards,

Ping ------VG3C5H8EEJVEIWJXQIYNJU86F1EHAP--