GNU bug report logs -
#31769
mpd / pulse control issue
Previous Next
To reply to this bug, email your comments to 31769 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#31769
; Package
guix
.
(Sat, 09 Jun 2018 13:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Bradley Haggerty <bradigger <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 09 Jun 2018 13:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#31769
; Package
guix
.
(Sun, 10 Jun 2018 02:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 31769 <at> debbugs.gnu.org (full text, mbox):
Bradley Haggerty <bradigger <at> gmail.com> 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:
<https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#Local_.28with_separate_mpd_user.29>
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:
<https://wiki.archlinux.org/index.php/Music_Player_Daemon#Per-user_configuration>.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#31769
; Package
guix
.
(Sun, 10 Jun 2018 08:16:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 31769 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <at> member.fsf.org a écrit :
>Bradley Haggerty <bradigger <at> gmail.com> 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:
>
><https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#Local_.28with_separate_mpd_user.29>
>
>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:
><https://wiki.archlinux.org/index.php/Music_Player_Daemon#Per-user_configuration>.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#31769
; Package
guix
.
(Mon, 11 Jun 2018 03:34:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 31769 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 宋文武 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 <service>
#:provides '(mpd)
#:requires '()
#: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))
------
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#31769
; Package
guix
.
(Wed, 26 Apr 2023 00:09:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 31769 <at> debbugs.gnu.org (full text, mbox):
Hi,
iyzsong <at> member.fsf.org (宋文武) writes:
> Bradley Haggerty <bradigger <at> gmail.com> 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:
>
> <https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#Local_.28with_separate_mpd_user.29>
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 configuration.
--
Thanks,
Maxim
This bug report was last modified 2 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.