From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6MMzB0BGOmJ3BwEAgWs5BA (envelope-from ) for ; Tue, 22 Mar 2022 22:57:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +DhmOz9GOmKiBgEAG6o9tA (envelope-from ) for ; Tue, 22 Mar 2022 22:57:19 +0100 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 9F32924DA3 for ; Tue, 22 Mar 2022 22:57:19 +0100 (CET) Received: from localhost ([::1]:51776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWmVC-0006Yq-BT for larch@yhetil.org; Tue, 22 Mar 2022 17:57:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWmUy-0006Ye-EZ for help-guix@gnu.org; Tue, 22 Mar 2022 17:57:05 -0400 Received: from chimborazo.ee.ethz.ch ([129.132.2.15]:42105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWmUv-0001wr-7B for help-guix@gnu.org; Tue, 22 Mar 2022 17:57:04 -0400 Received: from silvi (212-51-128-75.fiber7.init7.net [212.51.128.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by chimborazo.ee.ethz.ch (Postfix) with ESMTPSA id 7C3C84021B for ; Tue, 22 Mar 2022 22:56:21 +0100 (CET) Date: Tue, 22 Mar 2022 22:56:14 +0100 From: Gabriel Wicki To: help-guix@gnu.org Subject: Professional audio setup (JACK, PipeWire) Message-ID: <20220322215614.enmr2dmq767lyzfa@silvi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: none client-ip=129.132.2.15; envelope-from=gabriel@erlikon.ch; helo=chimborazo.ee.ethz.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1647986239; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=kc3UnoPWsUT+gqjalGtLpLR/97bGXXn8iLFxJPjVosA=; b=uV9gXv6Unchcy7m5av3L+JB/4Lf+gHPsdjCyEz2NcxDgafOTaIllJ7f7HgLBm4U2fjfL2x tqXy8jBlcF9GhaqBNAIpb0slHqsrzyZ7Uou76JXBSOqvIbpL+OQ2Ig+xvN9BVO7bNazEoZ hSFkRfINgAZkogriz8vqEOMhBtUIutqw8IOMuB6OQufZuw5VUpI/K9WVEMEveVtN5w9hop zPdvbiEHVPKNwmLc0ldcSodYkkHV8K6SKuO1TOGzzZVpZCYbjZvD0kCfTuweD3jOgV6H5x 3pptIKh76zrY7W0/euJNV9s8FTx+rUnpIRvCr2GqjfhG13/uxBvmrVyQohvK3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647986239; a=rsa-sha256; cv=none; b=VVKpentgTg/bwDUzk1zPG0MYD5hBzJhkHf2xa262ADe+jQexN+SJkt2NxlpORED8zuzV/9 iNAbLKZybYKBjcjZnJsakyciNKxhjemmwlRkdsaAbV49/pXOFq28DmIgkUKxsSw27Kx+A5 2+1OsYGq2RNBbZnFHYSZpZev1iZ5tVE+bLeYKnwGi2sieEWz8vuPLy2ERBUyPK+1Oun3VF 96K2ZeTWdDagYUOumZ69n70v3OrUWHCaopYniT8whN0STB1eCppdIAi19HuXORHyyPEKqb o0pTJXHMK6M6GGDPhzLG5HrTp5sEQzmhC/BIJa1oKONlqX3N9mY/G+NiMy8DZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.71 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9F32924DA3 X-Spam-Score: -2.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: J4UfBSJRHw5W Hello dear fellow Guix My wish is simple: i'd love to get back at live-coding audio using SuperCollider. Thankfully all the necessities for that intent are readily available in GNU Guix. Unfortunately i'm unable to get it to sound... SuperCollider needs some layer in between itself and ALSA and it refuses to work with PulseAudio. Traditionally that'd been JACK, but as of recently there have been reports of it working perfectly with PipeWire. I would love to give that a try, but would also not mind the JACK route. The problem is none of my attempts have worked so far. What works: ALSA works fine (i can hear files playing with `aplay -D mysetup test.wav`), as does PulseAudio. When i start pipewire i get the following output: [W][86737.352484] mod.rtkit | [ module-rtkit.c: 205 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown [W][86737.352557] mod.rtkit | [ module-rtkit.c: 465 set_nice()] could not set nice-level to -11: No such file or directory [W][86737.352950] mod.rtkit | [ module-rtkit.c: 205 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown [W][86737.355742] mod.rtkit | [ module-rtkit.c: 205 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown [W][86737.356146] mod.rtkit | [ module-rtkit.c: 205 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown [W][86737.356162] mod.rtkit | [ module-rtkit.c: 625 impl_acquire_rt()] could not make thread realtime: No such file or directory These are "just" warnings; attempting to play audio results in this peculiar error message: connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory) My internet searches left me clueless; thus my first question: is anyone using PipeWire successfully? I've found a home-service[1] which apparently makes use of it but i wasn't successful to use it, yet I am able to run JACK (by invoking `jackd -dalsa -dhw:1,0 -r44100`, the same output settings that work for the aplay test directly on ALSA), i'm even able to start the SuperCollider server, play some audio (everything seems perfect: it connects itself to inputs as well as outputs), but there's no sound. Does anybody have a working JACK setup and would mind giving me pointers on what i'm missing, or maybe share their configuration? I really don't mind which route to take, i only want to mess with some sound on my favorite OS. I have installed every- and anything i thought could maybe remotely help to improve my situation (which it of course didn't): alsa-lib, alsa-plugins, alsa-utils, jack, jack2, pamixer, patchage, pipewire, pulseaudio, qjackctl, pavucontrol, wireplumber. My user account is part of the "audio" group which comes with the following entries in my pam-limits-service: (pam-limits-entry "@audio" 'both 'rtprio 99) (pam-limits-entry "@audio" 'both 'memlock 'unlimited) (pam-limits-entry "@audio" 'hard 'nice -12) I hope you and your setups are doing finer that me and mine :) gabriel [1] https://git.sr.ht/~krevedkokun/dotfiles/home/services/pipewire.scm