* Re: Using Pipewire for PulseAudio and JACK in Guix
@ 2024-11-01 13:11 Noé Lopez via Development of GNU Guix and the GNU System distribution.
0 siblings, 0 replies; 5+ messages in thread
From: Noé Lopez via Development of GNU Guix and the GNU System distribution. @ 2024-11-01 13:11 UTC (permalink / raw)
To: guix-devel; +Cc: Divya
Hi,
I don’t really understand the problematics of your issue, but in my
config I just delete pulseaudio from %desktop-services and add pipewire
in my home-services.
pw-jack and pulseaudio apps work fine for me this way.
config.scm:
(modify-services %desktop-services
(delete pulseaudio-service-type)
(delete alsa-service-type))
home-configuration.scm:
(service home-pipewire-service-type)
Specifically, I don’t understand why you try to start jackd through
pw-jack, you just need to start your app directly like the example in
the manual:
pw-jack mpv -ao=jack sound-file.wav
In hope that helps,
Noé
^ permalink raw reply [flat|nested] 5+ messages in thread
* Using Pipewire for PulseAudio and JACK in Guix
@ 2024-10-28 13:27 Divya Ranjan via Development of GNU Guix and the GNU System distribution.
2024-10-28 13:46 ` Divya Ranjan via Development of GNU Guix and the GNU System distribution.
2024-10-31 18:19 ` Divya
0 siblings, 2 replies; 5+ messages in thread
From: Divya Ranjan via Development of GNU Guix and the GNU System distribution. @ 2024-10-28 13:27 UTC (permalink / raw)
To: guix-devel; +Cc: Ricardo Wurmus
Hello,
I’m having some issues getting a unified audio setup using PipeWire only, i.e., PipeWire alongwith ALSA to route all audio using PulseAudio and JACK emulation. I had such a setup previously on the Arch GNU/Linux distribution, but I have been struggling since I switched to GNU Guix.
I want first of all the applications to be handled through PipeWire’s PulseAudio emulation, such as audio to browser, telegram-desktop etc. 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 PipeWire through the help of a patchbay/JACK client such as Carla or qpwgraph/patchage.
I have gone with the barebones configuration of PipeWire that I can find for Guix, to that end, my system configuration includes the following services:
#+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 =>
(alsa-configuration
(pulseaudio? #f)))))
#+end_src
So I’ve 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`.
And, similarly I’ve added the following in my home configuration’s 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’t have jack installed in system or home configuration. Does it get installed through some other package’s dependency?
Furthermore, when I try to use a JACK client through `pw-jack' it doesn’t work. For example, running `pw-jack qjackctl' and starting JACK through it gives the following error in qjackctl’s messages:
13:13:37.600 JACK is starting...
13:13:37.600 /run/current-system/profile/bin/jackd -dalsa -dhw:0
13:13:37.606 JACK was started with PID=4007.
/run/current-system/profile/bin/jackd: symbol lookup error: /run/current-system/profile/bin/jackd: undefined symbol: clock_source
13:13:37.608 JACK was stopped
13:13:39.662 Could not connect to JACK server as client. - Overall operation failed. - Unable to initialize client. Please check the messages window for more info.
When I try `pw-jack carla' as well, the same thing happens, it says libjack.so.0 is loaded successfully but when I start Carla’s engine, it says: “Failed to create new JACK client.”
Now, I don’t know what’s going wrong where, but I want to JACK with PipeWire, unless one can recommend me good reasons to use JACK externally alongside PipeWire. Also, even PipeWire’s pulseaudio seems finicky, sometimes works sometimes doesn’t. Sometimes applications like browser (librewolf, ungoogled-chromium) can’t access microphone or speaker (while permissions are fine), at other times, messing around with pavucontrol makes it work. I am not sure what exactly is making it work and what is failing, any suggestions for how to conduct some debugging would be of help. I need a consistently functioning system of pipewire emulating pulseaudio for applications and jack for routing, that doesn’t fail.
Also, how can I configure my ALSA device cards, and have it reproduce gain? Ipreviously used to have an ~/.config/asound.state that is stored and restored using alsactl. Doing that doesn’t seem to preserve anthing.
I’ve attached my system.scm and home configuration for reference if needed. Also CC’ing Ricardo since he’s the “sound guy” I know for GUIX :)
Regards,
--
Divya Ranjan,
Philosophy, Mathematics, Libre Software.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Pipewire for PulseAudio and JACK in Guix
2024-10-28 13:27 Divya Ranjan via Development of GNU Guix and the GNU System distribution.
@ 2024-10-28 13:46 ` Divya Ranjan via Development of GNU Guix and the GNU System distribution.
2024-11-01 7:31 ` Ricardo Wurmus
2024-10-31 18:19 ` Divya
1 sibling, 1 reply; 5+ messages in thread
From: Divya Ranjan via Development of GNU Guix and the GNU System distribution. @ 2024-10-28 13:46 UTC (permalink / raw)
To: guix-devel
Also, I saw that jack_mixer[0] is missing from the main guix package repository, I’d like to have that added. Since its the most minimal and straightforward JACK mixer I’ve been using over the last 4-5 years. Since its a Python + C application mostly, so one shouldn’t have any major issues packaging it? Any advice would be great.
[0]: https://github.com/jack-mixer/jack_mixer
Regards,
--
Divya Ranjan,
Philosophy, Mathematics, Libre Software.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Pipewire for PulseAudio and JACK in Guix
2024-10-28 13:27 Divya Ranjan via Development of GNU Guix and the GNU System distribution.
2024-10-28 13:46 ` Divya Ranjan via Development of GNU Guix and the GNU System distribution.
@ 2024-10-31 18:19 ` Divya
1 sibling, 0 replies; 5+ messages in thread
From: Divya @ 2024-10-31 18:19 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 4406 bytes --]
On 28 October 2024 13:27:44 GMT, "Divya Ranjan via Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org> wrote:
>Hello,
>
>I’m having some issues getting a unified audio setup using PipeWire only, i.e., PipeWire alongwith ALSA to route all audio using PulseAudio and JACK emulation. I had such a setup previously on the Arch GNU/Linux distribution, but I have been struggling since I switched to GNU Guix.
>
>I want first of all the applications to be handled through PipeWire’s PulseAudio emulation, such as audio to browser, telegram-desktop etc. 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 PipeWire through the help of a patchbay/JACK client such as Carla or qpwgraph/patchage.
>
>I have gone with the barebones configuration of PipeWire that I can find for Guix, to that end, my system configuration includes the following services:
>
>#+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 =>
> (alsa-configuration
> (pulseaudio? #f)))))
>#+end_src
>
>So I’ve 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`.
>
>And, similarly I’ve added the following in my home configuration’s 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’t have jack installed in system or home configuration. Does it get installed through some other package’s dependency?
>
>Furthermore, when I try to use a JACK client through `pw-jack' it doesn’t work. For example, running `pw-jack qjackctl' and starting JACK through it gives the following error in qjackctl’s messages:
>
>13:13:37.600 JACK is starting...
>13:13:37.600 /run/current-system/profile/bin/jackd -dalsa -dhw:0
>13:13:37.606 JACK was started with PID=4007.
>/run/current-system/profile/bin/jackd: symbol lookup error: /run/current-system/profile/bin/jackd: undefined symbol: clock_source
>13:13:37.608 JACK was stopped
>13:13:39.662 Could not connect to JACK server as client. - Overall operation failed. - Unable to initialize client. Please check the messages window for more info.
>
>When I try `pw-jack carla' as well, the same thing happens, it says libjack.so.0 is loaded successfully but when I start Carla’s engine, it says: “Failed to create new JACK client.”
>
>Now, I don’t know what’s going wrong where, but I want to JACK with PipeWire, unless one can recommend me good reasons to use JACK externally alongside PipeWire. Also, even PipeWire’s pulseaudio seems finicky, sometimes works sometimes doesn’t. Sometimes applications like browser (librewolf, ungoogled-chromium) can’t access microphone or speaker (while permissions are fine), at other times, messing around with pavucontrol makes it work. I am not sure what exactly is making it work and what is failing, any suggestions for how to conduct some debugging would be of help. I need a consistently functioning system of pipewire emulating pulseaudio for applications and jack for routing, that doesn’t fail.
>
>Also, how can I configure my ALSA device cards, and have it reproduce gain? Ipreviously used to have an ~/.config/asound.state that is stored and restored using alsactl. Doing that doesn’t seem to preserve anthing.
>
>I’ve attached my system.scm and home configuration for reference if needed. Also CC’ing Ricardo since he’s the “sound guy” I know for GUIX :)
>
>Regards,
>--
>Divya Ranjan,
>Philosophy, Mathematics, Libre Software.
>
>
Ping
[-- Attachment #2: Type: text/html, Size: 4726 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-11-01 13:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 13:11 Using Pipewire for PulseAudio and JACK in Guix Noé Lopez via Development of GNU Guix and the GNU System distribution.
-- strict thread matches above, loose matches on Subject: below --
2024-10-28 13:27 Divya Ranjan via Development of GNU Guix and the GNU System distribution.
2024-10-28 13:46 ` Divya Ranjan via Development of GNU Guix and the GNU System distribution.
2024-11-01 7:31 ` Ricardo Wurmus
2024-10-31 18:19 ` Divya
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.