From unknown Thu Jun 12 08:37:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#31769 <31769@debbugs.gnu.org> To: bug#31769 <31769@debbugs.gnu.org> Subject: Status: mpd / pulse control issue Reply-To: bug#31769 <31769@debbugs.gnu.org> Date: Thu, 12 Jun 2025 15:37:29 +0000 retitle 31769 mpd / pulse control issue reassign 31769 guix submitter 31769 Bradley Haggerty severity 31769 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 09 09:03:08 2018 Received: (at submit) by debbugs.gnu.org; 9 Jun 2018 13:03:08 +0000 Received: from localhost ([127.0.0.1]:40444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRdWO-00044r-8w for submit@debbugs.gnu.org; Sat, 09 Jun 2018 09:03:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRcVa-0002VB-BY for submit@debbugs.gnu.org; Sat, 09 Jun 2018 07:58:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRcVU-0008N8-6B for submit@debbugs.gnu.org; Sat, 09 Jun 2018 07:58:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fRcVU-0008Mz-2t for submit@debbugs.gnu.org; Sat, 09 Jun 2018 07:58:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRcVS-0001Yf-RY for bug-guix@gnu.org; Sat, 09 Jun 2018 07:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRcVS-0008ML-5J for bug-guix@gnu.org; Sat, 09 Jun 2018 07:58:06 -0400 Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:46078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRcVR-0008MB-Vp for bug-guix@gnu.org; Sat, 09 Jun 2018 07:58:06 -0400 Received: by mail-oi0-x231.google.com with SMTP id 188-v6so729814oid.12 for ; Sat, 09 Jun 2018 04:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=djGSDy1irFf2coUQ7wZzYCPIcX/pdj3xUdFhDGi69PY=; b=WfRuRd0LA39YoB16DTXYAVAHVJ12rTVAbGYRBoC+K9L5q5Qh2F2dO7V7x8jZmQEPcB jAMb8qHzs0+BX2ZtBOFAP3rvsGGe8/LQGlqa9kvGDRDlwgVRL5+whC4aPNzucdj2VXrC jKM3LiphdBhR3DapyOaT4QIPa0f+NTU/q6nNyHVmsGsJ8ZvsA1jMz9QyzbumO1Q+8X17 bVKWeGr3jjlsp3V4cKug50O0zugQaPP/KOiz/RczMDe7DdDst65MeYOQQ6wqOwazSojh 3eGaXJbdBVsXV48efAWG0AmzLq9bb3d8RSjF/3JgIDZiInCXOIrKvffEeVmRaBUDszIc 1GQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=djGSDy1irFf2coUQ7wZzYCPIcX/pdj3xUdFhDGi69PY=; b=KDZT1KnJJYnEt4tOq9t1b7KTvVwJiEL0L2pzs33eX0fTLOMV+LGuhEdKvXRur5Mtp+ IGbQIK8VHj7jhBLjZojQo6iTi3etuN1c816Pu012Glnw6+gFOHJ1WQG5L8Qvo0HmJEIc sA2d5LOGe/1DLxtqCVQQLCFmJdNi9fx5U/kN7hkzqjXfiankODxKVRF12YddAaUw+5xA epSBxIAykIP5TL9/HKBJ32uEgp/0GzP1gaDgpPCGeWgzjK7OdtAP4ZPQ43S/Mg111mWp Uyu9g0fwVzizYEBk4qCJRqDQdbV/frR3BWqxpHuFZjjJkJ64LQIHC/tmMvRSdN3Mo/id gJ7Q== X-Gm-Message-State: APt69E2AOF1belzhHs7rGifhNmMows56DBgay5nNF5FFLVIGE3bpO3uw yxre50+v2NJUJXLsbahoS2GUocIPrWbGGIUqj44= X-Google-Smtp-Source: ADUXVKLeROhLKWSfxidDye5fYkWg5IYZ7689vOVUAqQyi3Ufa3BbRupYGzJL6iOVT32mP9liTBRX9o9+PxUfNZpQ5dc= X-Received: by 2002:aca:ba46:: with SMTP id k67-v6mr4583261oif.106.1528545484562; Sat, 09 Jun 2018 04:58:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:74d8:0:0:0:0:0 with HTTP; Sat, 9 Jun 2018 04:58:03 -0700 (PDT) From: Bradley Haggerty Date: Sat, 9 Jun 2018 06:58:03 -0500 Message-ID: Subject: mpd / pulse control issue To: bug-guix@gnu.org Content-Type: multipart/alternative; boundary="000000000000a16743056e343a73" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 09 Jun 2018 09:03:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --000000000000a16743056e343a73 Content-Type: text/plain; charset="UTF-8" I have mpd enabled as a herd service. When I start my computer, mpd can play my music fine, but pavucontrol can't connect to pulse and show my volume controls. If I kill pulse and open pavucontrol, all my volume controls are visible, but then mpd can't play music. If I kill pulse again and this time play a song in mpd, mpd works again, but pavucontrol can't connect. Basically, if mpd starts pulse, mpd works, but other things can't connect, and if pavucontrol starts pulse, mpd can't connect to pulse. Since I have mpd enabled as a service, it's the one to start pulse on a fresh boot. I also tried starting pulse as my user by killing it and opening pavucontrol, then restarting the mpd service in case it could find my pulse service this way. No success there. While mpd has control of pulse, other applications also lack sounds, such as mpv (video players) and icecat. mpd version: 0.20.20 OS: GuixSD c300cae68233ec7cbf50c40bdea7c191eed21e54 x86_64 --000000000000a16743056e343a73 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have mpd enabled as a herd service. When I sta= rt my computer, mpd can play my music fine, but pavucontrol can't conne= ct to pulse and show my volume controls. If I kill pulse and open pavucontr= ol, all my volume controls are visible, but then mpd can't play music. = If I kill pulse again and this time play a song in mpd, mpd works again, bu= t pavucontrol can't connect. Basically, if mpd starts pulse, mpd works,= but other things can't connect, and if pavucontrol starts pulse, mpd c= an't connect to pulse. Since I have mpd enabled as a service, it's = the one to start pulse on a fresh boot. I also tried starting pulse as my u= ser by killing it and opening pavucontrol, then restarting the mpd service = in case it could find my pulse service this way. No success there. While mp= d has control of pulse, other applications also lack sounds, such as mpv (v= ideo players) and icecat.

mpd version: 0.20.20
OS: Gu= ixSD c300cae68233ec7cbf50c40bdea7c191eed21e54 x86_64

--000000000000a16743056e343a73-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 09 22:20:09 2018 Received: (at 31769) by debbugs.gnu.org; 10 Jun 2018 02:20:09 +0000 Received: from localhost ([127.0.0.1]:41622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRpxf-0000xo-UN for submit@debbugs.gnu.org; Sat, 09 Jun 2018 22:20:09 -0400 Received: from rezeros.cc ([45.76.207.221]:33944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRpxe-0000xf-Cq for 31769@debbugs.gnu.org; Sat, 09 Jun 2018 22:20:07 -0400 Received: from localhost (223.87.207.28 [223.87.207.28]) by rezeros.cc (OpenSMTPD) with ESMTPSA id 12b18c7f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 10 Jun 2018 02:20:02 +0000 (UTC) Received: from gift (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 2a4aa9a4; Sun, 10 Jun 2018 02:18:47 +0000 (UTC) From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) To: Bradley Haggerty Subject: Re: bug#31769: mpd / pulse control issue References: Date: Sun, 10 Jun 2018 10:18:47 +0800 In-Reply-To: (Bradley Haggerty's message of "Sat, 9 Jun 2018 06:58:03 -0500") Message-ID: <874libidtk.fsf@member.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Bradley Haggerty writes: > I have mpd enabled as a herd service. When I start my computer, mpd can play my music fine, but pavucontrol can't connect to pulse and show my volume controls. If I > kill pulse and open pavucontrol, all my volume controls are visible, but then mpd can't play music. If I kill pulse again and this time play a song in mpd, mpd works again, > but pavucontrol can't connect. Basically, if mpd starts pulse, mpd works, but other things can't connect, and if pavucontrol starts pulse, mpd can't connect to pulse. Since > I have mpd enabled as a service, it's the one to start pulse on a fresh boot. I also tried starting pulse as my user by killing it and opening pavucontrol, then restarting the > mpd service in case it could find my pulse service this way. No success there. While mpd has control of pulse, other applications also lack sounds, such as mpv (video > players) and icecat. [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily X-Debbugs-Envelope-To: 31769 Cc: 31769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) Bradley Haggerty writes: > I have mpd enabled as a herd service. When I start my computer, mpd can play my music fine, but pavucontrol can't connect to pulse and show my volume controls. If I > kill pulse and open pavucontrol, all my volume controls are visible, but then mpd can't play music. If I kill pulse again and this time play a song in mpd, mpd works again, > but pavucontrol can't connect. Basically, if mpd starts pulse, mpd works, but other things can't connect, and if pavucontrol starts pulse, mpd can't connect to pulse. Since > I have mpd enabled as a service, it's the one to start pulse on a fresh boot. I also tried starting pulse as my user by killing it and opening pavucontrol, then restarting the > mpd service in case it could find my pulse service this way. No success there. While mpd has control of pulse, other applications also lack sounds, such as mpv (video > players) and icecat. According to the wiki of ArchLinux, users of PulseAudio with a system-wide MPD configuration have to implement a workaground: It suggests letting mpd use pulseaudio's tcp module to send sound to localhost, where user's pulseaudio server listening. This seems too tricky for me, I'll suggest you forget the system herd service, and launch mpd as a normal user: . From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 10 04:15:47 2018 Received: (at 31769) by debbugs.gnu.org; 10 Jun 2018 08:15:47 +0000 Received: from localhost ([127.0.0.1]:41742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRvVq-0001F0-P6 for submit@debbugs.gnu.org; Sun, 10 Jun 2018 04:15:47 -0400 Received: from lepiller.eu ([89.234.186.109]:40430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRvVp-0001Es-5o for 31769@debbugs.gnu.org; Sun, 10 Jun 2018 04:15:45 -0400 Received: from [100.123.114.90] (chomsky.torservers.net [77.247.181.162]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 7d53c35b (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <31769@debbugs.gnu.org>; Sun, 10 Jun 2018 08:18:10 +0000 (UTC) Date: Sun, 10 Jun 2018 10:15:35 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <874libidtk.fsf@member.fsf.org> References: <874libidtk.fsf@member.fsf.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----D0WJWT7S5CBVZVU5DLN7KKEMO1RM5V" Content-Transfer-Encoding: 7bit Subject: Re: bug#31769: mpd / pulse control issue From: Julien Lepiller Message-ID: <1AF31671-633B-45D0-B405-82610F3ADF79@lepiller.eu> X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I think the best solution is to implement this in our herd service. It doesn't look too difficult to do the part in the mpd configuration, but pulseaudio might be trickier to configure... Le 10 juin 2018 04:18:47 GMT+02:00, iyzsong@member.fsf.org a écrit : >Bradley Haggerty writes: > >> I have mpd enabled as a herd service. When I start my computer, mpd >can play my music fine, but pavucontrol can't connect to pulse and show >my volume controls. If I >> kill pulse and open pavucontrol, all my volume controls are visible, >but then mpd can't play music. If I kill pulse again and this time play >a song in mpd, mpd works again, >> but pavucontrol can't connect. Basically, if mpd starts pulse, mpd >works, but other things can't connect, and if pavucontrol starts pulse, >mpd can't connect to pulse. Since >> I have mpd enabled as a service, it's the one to start pulse on a >fresh boot. I also tried starting pulse as my user by killing it and >opening pavucontrol, then restarting the >> mpd service in case it could find my pulse service this way. No >success there. While mpd has control of pulse, other applications also >lack sounds, such as mpv (video >> players) and icecat. > >According to the wiki of ArchLinux, users of PulseAudio with a >system-wide MPD configuration have to implement a workaground: > > > >It suggests letting mpd use pulseaudio's tcp module to send sound to >localhost, where user's pulseaudio server listening. > >This seems too tricky for me, I'll suggest you forget the system herd >service, and launch mpd as a normal user: >. [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 MISSING_HEADERS Missing To: header 0.0 HTML_MESSAGE BODY: HTML included in message X-Debbugs-Envelope-To: 31769 Cc: 31769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) ------D0WJWT7S5CBVZVU5DLN7KKEMO1RM5V Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I think the best solution is to implement this in our herd service=2E It do= esn't look too difficult to do the part in the mpd configuration, but pulse= audio might be trickier to configure=2E=2E=2E Le 10 juin 2018 04:18:47 GMT+02:00, iyzsong@member=2Efsf=2Eorg a =C3=A9cri= t : >Bradley Haggerty writes: > >> I have mpd enabled as a herd service=2E When I start my computer, mpd >can play my music fine, but pavucontrol can't connect to pulse and show >my volume controls=2E If I >> kill pulse and open pavucontrol, all my volume controls are visible, >but then mpd can't play music=2E If I kill pulse again and this time play >a song in mpd, mpd works again, >> but pavucontrol can't connect=2E Basically, if mpd starts pulse, mpd >works, but other things can't connect, and if pavucontrol starts pulse, >mpd can't connect to pulse=2E Since >> I have mpd enabled as a service, it's the one to start pulse on a >fresh boot=2E I also tried starting pulse as my user by killing it and >opening pavucontrol, then restarting the >> mpd service in case it could find my pulse service this way=2E No >success there=2E While mpd has control of pulse, other applications also >lack sounds, such as mpv (video >> players) and icecat=2E > >According to the wiki of ArchLinux, users of PulseAudio with a >system-wide MPD configuration have to implement a workaground: > > > >It suggests letting mpd use pulseaudio's tcp module to send sound to >localhost, where user's pulseaudio server listening=2E > >This seems too tricky for me, I'll suggest you forget the system herd >service, and launch mpd as a normal user: >=2E ------D0WJWT7S5CBVZVU5DLN7KKEMO1RM5V Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I think the best solution is to implement this in = our herd service=2E It doesn't look too difficult to do the part in the= mpd configuration, but pulseaudio might be trickier to configure=2E=2E=2E<= br>
Le 10 juin 2018 04:18:47 GMT+02:00, iyzso= ng@member=2Efsf=2Eorg a =C3=A9crit :
Bradley Haggerty <bradigger@gmail=2Ecom> write=
s:

I have mpd ena= bled as a herd service=2E When I start my computer, mpd can play my music f= ine, but pavucontrol can't connect to pulse and show my volume controls=2E = If I
kill pulse and open pavucontrol, all my volume controls are visibl= e, but then mpd can't play music=2E If I kill pulse again and this time pla= y a song in mpd, mpd works again,
but pavucontrol can't connect=2E Basi= cally, if mpd starts pulse, mpd works, but other things can't connect, and = if pavucontrol starts pulse, mpd can't connect to pulse=2E Since
I have= mpd enabled as a service, it's the one to start pulse on a fresh boot=2E I= also tried starting pulse as my user by killing it and opening pavucontrol= , then restarting the
mpd service in case it could find my pulse servic= e this way=2E No success there=2E While mpd has control of pulse, other app= lications also lack sounds, such as mpv (video
players) and icecat=2E

According to the wiki of ArchLinux, users of PulseAudio = with a
system-wide MPD configuration have to implement a workaground:
<https://wiki=2Earchlinux=2Eorg/index=2Ephp/Music_Player_Daemon/Tip= s_and_tricks#Local_=2E28with_separate_mpd_user=2E29>

It suggests = letting mpd use pulseaudio's tcp module to send sound to
localhost, wher= e user's pulseaudio server listening=2E

This seems too tricky for me= , I'll suggest you forget the system herd
service, and launch mpd as a n= ormal user:
<https://wiki=2Earchlinux=2Eorg/index=2Ephp/Music_Player_= Daemon#Per-user_configuration>=2E
------D0WJWT7S5CBVZVU5DLN7KKEMO1RM5V-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 10 23:33:57 2018 Received: (at 31769) by debbugs.gnu.org; 11 Jun 2018 03:33:57 +0000 Received: from localhost ([127.0.0.1]:42705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSDae-0000Eh-Rb for submit@debbugs.gnu.org; Sun, 10 Jun 2018 23:33:57 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSDac-0000EZ-R6 for 31769@debbugs.gnu.org; Sun, 10 Jun 2018 23:33:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7A38521B68; Sun, 10 Jun 2018 23:33:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 10 Jun 2018 23:33:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=EF/G2SrvUu3/ozXD/Q9v5izBauwprfqBQiVkoMzDJiE=; b=itQq+ nsIh+ovh9UQYhv+wRt297ugzm4lr1NuOWGLuwIc/3CcJFSdbSqJkSDXdXwv+sCwt NHTo8UHYNRO6wLa8/4qS1PCJwOYw5cA90dWL5/D1A6M/8bktN/mm2o/Onr/wKsPX VGZzChAtEFDJ0PXwMJRZ2LmibX60+SuHuR/QkQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=EF/G2SrvUu3/ozXD/Q9v5izBauwpr fqBQiVkoMzDJiE=; b=SsJpoWh+342jAtYkTQ/D4TSQCnqeN2i1batpiqM6RMp4N 19bK0GBeFgh07pQcjlkybiNeZlHc0jAj1wt1uglSz/GNxZe9DXMjuWKRA4c9dZlC PS6+bq7Z1/SmtR56++P+KyA8f8zWQJiBG74v6g2XQcx9sthKzMR+SWQQop7M/F7k ++QiYwiMADtMeCNsvnkA4SZxisfhWNr2gmQgH9dsFSb+Xb4klv6Kkj1ACgXQTTeR R+QKU34lYajbeFbbTGlVoFH4Io9QXqJY9mnc/LzfRHKMJrzl1zVK6b5XhapOumqa QIxz+yiuFEtZjmkHFORaJXMtjQlJSb2ag41sX7HrA== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from localhost (unknown [172.58.225.176]) by mail.messagingengine.com (Postfix) with ESMTPA id 24FCAE465D; Sun, 10 Jun 2018 23:33:54 -0400 (EDT) Date: Sun, 10 Jun 2018 23:33:53 -0400 From: Leo Famulari To: Bradley Haggerty Subject: Re: bug#31769: mpd / pulse control issue Message-ID: <20180611033353.GA24092@jasmine.lan> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31769 Cc: 31769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 09, 2018 at 06:58:03AM -0500, Bradley Haggerty wrote: > When I start my computer, mpd can play my music fine, but pavucontrol can= 't > connect to pulse and show my volume controls. If I kill pulse and open > pavucontrol, all my volume controls are visible, but then mpd can't play > music. As =E5=AE=8B=E6=96=87=E6=AD=A6 and Julien said, this should be fixed in our= service but it might be tricky to do without being able to listen to music ;) In the meantime, If it suits your needs, you can run MPD with your unprivileged user instead of at the system level. Below is a file I use to start MPD as my own user on GuixSD, and it seems to do the right thing regarding PulseAudio, although I use pulsemixer instead of pavucontrol. I originally copied the file from Dave Thompson... any mistakes are my own :) By the way, the file should be named '~/.config/shepherd/init.scm'. ------ ;; To use this automatically, add something like the following line to ;; whatever gets sourced for a login shell: ;; ;; [[ -z $(pgrep -U $(id --user) shepherd) ]] && shepherd & > /dev/null ;; ;; Or, just invoke `shepherd`. (use-modules (ice-9 match) (srfi srfi-1) (system repl server)) (define (touch-file file) (close-port (open-file file "a0b"))) (register-services (make #:provides '(mpd) #:requires '()=20 #:start (lambda args (define (mpd-dir file) (string-append (getenv "HOME") "/.mpd/" file)) (unless (file-exists? (mpd-dir "playlists")) (mkdir (mpd-dir "playlists"))) (touch-file (mpd-dir "database")) (fork+exec-command (list "mpd" "--no-daemon"))) #:stop (make-kill-destructor))) (action 'shepherd 'daemonize) (for-each start '(mpd)) ------ --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlsd7Z0ACgkQJkb6MLrK fwgiww//UbM7j8nUBpvM5Qi/HHuypvoWQRe1krpca9bDYReoH1lRn3BIMkFY6m6K g9n9c8cuGK3zx5hDj5enpbxw89DgOXrcPSeTy29c+Nrb7FGaEwH6UgXBhcTwf55W pjg4as4sGbckL8oom1dEBAjh0WRWXvSDcWFztaKFFTz9N5gshKFCuwAUUHGvfKx6 LINIdByFGwpVzDeudukiBtdfGx3BzuglHYL65lVKGPppDPjFSJ18C1fPTkMsuzFu uvvqFglsD8f1xCyprYlf76olwXp33odnLito9qDTAULQm9A5gSKfA3hrTMSCXrbj iHbYtEe2MR/DGf1jppDMufVD1qoAYD2yYuoikj/GYInslIDZbPhQbLFaDCIsiXII 6ilkwtleXJyX/x6l3PbuGJA/TedDMdbonjP5Z4tqr+3ley1+xfLlE3upjQSebajD xFxWN+uVHfWSS1GlLYUDMu8j5rIlBUpOcYwSQNUZpcWfpjpcLFIUbNR7lnXsv7BL /4TBhh3RvJQIKv6rj3tAH2RRiaY5wkGJATKQkLv+Z3B4GaFQ1Tqe4XXsBgqabkjo L3ioowWaTG955wuKTtD16fLaYd02i5OByVscwSPMYf9+Z6W2lDTY7U69ZQFiH2MV LiU6Ra2yBKY3PnI3I59Ww1m5iI5N6/IvzTDLTNkpRvGaC+Fe3Ac= =NvI2 -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 25 20:08:17 2023 Received: (at 31769) by debbugs.gnu.org; 26 Apr 2023 00:08:17 +0000 Received: from localhost ([127.0.0.1]:53793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prShk-0008QB-Mr for submit@debbugs.gnu.org; Tue, 25 Apr 2023 20:08:17 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]:56427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prShf-0008Pm-QK for 31769@debbugs.gnu.org; Tue, 25 Apr 2023 20:08:15 -0400 Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-74de8faa412so341965685a.0 for <31769@debbugs.gnu.org>; Tue, 25 Apr 2023 17:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682467685; x=1685059685; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=5Pe7jA47m0RCT25eNmj/DWiVWKf9v+gPXU95Flaxxso=; b=MZO4hDFsWCTT03AWYvAORTx66ZgbYgL9DC8IFWLf/nO4z5sE89Eypgx7hAHYfkrh/t 6SgLj9zCHa+2f5ZJ1f/ALlziUCFMdz3XBIlMuHkLHrFfJfeNjwIapainWwXhaimSLgDL dM/EvAuiVDhpU9xXV7akSTePe6SJ5wXFHLGK0OTjFOVP+op637AZg88bMVEbWvs0lS/j l1DjSi1+nhxQGKd9pcEu6GtqZhs4eWhp+WscP5SaaaxY8JANiY7yXg64Da9SEfRVQuoH em2R8L32x01tLTnZ8D8nSj2HmmX4xHR6n11te8dGoDglWP2O6w0SdeobAVClnSZqSOVU /ewg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682467685; x=1685059685; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5Pe7jA47m0RCT25eNmj/DWiVWKf9v+gPXU95Flaxxso=; b=hnhyzU2jIL4OC0xSx30E6F9LEWm2+uS2zL/EyDcw+r3wLjX43OYcGgeYntDW7KXpRU kjAPulHe2hvC6iQoyhZk2p6y53/8hvvtwpvZLeUzIp6G3LwLLaNmRXOnqVHlBm8K/808 ivbhMt0GyywrslsMhoUH7AUCrcq1myuxwVvCb22NNg5IUrCsVTh7gemR1ieGMbRnBbAi 1V4gexD169tAsuPw3gBAzC/XnQdr/ys1s5rF3DQYKFW3uWr7N9pio9dLs+3K+Qmicfi2 RGNeCxmBvg5UP/jzSXdoby9JTGImmWQUfHgGvPZLW6gjO7zXBscJ92izl/dAMS5UOQho CNXQ== X-Gm-Message-State: AAQBX9d0/gs2XiFudrbeubCzydtYdPkSl2WjKGgtQGroVJNYi+Bop8u8 dwVJPz/HZRppsFfRoNgcebFWUmWME8u1dg== X-Google-Smtp-Source: AKy350a1EEno3x8HK89lUnycQesnEWPsDc/LI6pqjSKimWSFgVlKO/ZvLoLvT41dw8AqCLYFAbsNHg== X-Received: by 2002:ac8:59c9:0:b0:3ef:64e1:ceb8 with SMTP id f9-20020ac859c9000000b003ef64e1ceb8mr21975405qtf.49.1682467685560; Tue, 25 Apr 2023 17:08:05 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1003]) by smtp.gmail.com with ESMTPSA id cc18-20020a05622a411200b003b9b8ec742csm2770244qtb.14.2023.04.25.17.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Apr 2023 17:08:04 -0700 (PDT) From: Maxim Cournoyer To: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: bug#31769: mpd / pulse control issue References: <874libidtk.fsf@member.fsf.org> Date: Tue, 25 Apr 2023 20:08:03 -0400 In-Reply-To: <874libidtk.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Sun, 10 Jun 2018 10:18:47 +0800") Message-ID: <87sfcno68s.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31769 Cc: 31769@debbugs.gnu.org, Bradley Haggerty X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) writes: > Bradley Haggerty writes: > >> I have mpd enabled as a herd service. When I start my computer, mpd >> can play my music fine, but pavucontrol can't connect to pulse and >> show my volume controls. If I >> kill pulse and open pavucontrol, all my volume controls are visible, >> but then mpd can't play music. If I kill pulse again and this time >> play a song in mpd, mpd works again, >> but pavucontrol can't connect. Basically, if mpd starts pulse, mpd >> works, but other things can't connect, and if pavucontrol starts >> pulse, mpd can't connect to pulse. Since >> I have mpd enabled as a service, it's the one to start pulse on a >> fresh boot. I also tried starting pulse as my user by killing it and >> opening pavucontrol, then restarting the >> mpd service in case it could find my pulse service this way. No >> success there. While mpd has control of pulse, other applications >> also lack sounds, such as mpv (video >> players) and icecat. > > According to the wiki of ArchLinux, users of PulseAudio with a > system-wide MPD configuration have to implement a workaground: > > Could this happen to have been fixed by bc30a9ee889fb1b81c43a7f94ea4c2b95a15db75 ("services: mpd: Set PulseAudio-related variables.") ? I'm not sure I understand what the issue is exactly, but that commit did do some pulseaudio-related configurat= ion. --=20 Thanks, Maxim