From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#31769: mpd / pulse control issue Date: Sun, 10 Jun 2018 23:33:53 -0400 Message-ID: <20180611033353.GA24092@jasmine.lan> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSDap-0004Ud-GJ for bug-guix@gnu.org; Sun, 10 Jun 2018 23:34:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSDak-0003UY-CI for bug-guix@gnu.org; Sun, 10 Jun 2018 23:34:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSDak-0003UJ-17 for bug-guix@gnu.org; Sun, 10 Jun 2018 23:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fSDaj-0000Ez-KW for bug-guix@gnu.org; Sun, 10 Jun 2018 23:34:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: 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" To: Bradley Haggerty Cc: 31769@debbugs.gnu.org --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--