From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#31769: mpd / pulse control issue Date: Sun, 10 Jun 2018 10:15:35 +0200 Message-ID: <1AF31671-633B-45D0-B405-82610F3ADF79@lepiller.eu> References: <874libidtk.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----D0WJWT7S5CBVZVU5DLN7KKEMO1RM5V" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRvW9-00024v-Bz for bug-guix@gnu.org; Sun, 10 Jun 2018 04:16:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRvW6-0006cp-3y for bug-guix@gnu.org; Sun, 10 Jun 2018 04:16:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRvW5-0006ch-Vg for bug-guix@gnu.org; Sun, 10 Jun 2018 04:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fRvW5-0001FT-Mm for bug-guix@gnu.org; Sun, 10 Jun 2018 04:16:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874libidtk.fsf@member.fsf.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" Cc: 31769@debbugs.gnu.org ------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--