[Solved] Can't get MPD to work with PulseAudio

After a long time using straight Alsa I've been setting up Pulse because I want to send my laptop's audio to a networked device. So far I have audio output working (through my laptop) with everything except MPD.  MPD won't output audio with Pulse enabled; songs stay in "paused" mode.  I run MPD as my local user and have been trying to get this suggested systemd service to work, but it fails when I start it:
systemd[1]: Starting Music Player Daemon (running as 0112358)...
systemd[1]: Started Music Player Daemon (running as 0112358).
systemd[4098]: pam_unix(system-local-login:session): session opened for user 0112358 by (uid=0)
sudo[4095]: pam_unix(sudo:session): session closed for user root
mpd[4098]: Failed to bind to '[::]:6600': Failed to create socket: Address family not supported by protocol
systemd[4100]: pam_unix(system-local-login:session): session closed for user 0112358
systemd[1]: mpd-myuser.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Unit mpd-myuser.service entered failed state.
dbus-daemon[943]: dbus[943]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.55" (uid=1000 pid=4100 comm="(sd-p ") interface="org.freedesktop.login1.Manager" member="ReleaseS
dbus[943]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.55" (uid=1000 pid=4100 comm="(sd-p ") interface="org.freedesktop.login1.Manager" member="ReleaseSession" error name
systemd[4100]: pam_systemd(system-local-login:session): Failed to release session: Access denied
sudo[4114]: 0112358 : TTY=pts/3 ; PWD=/home/0112358 ; USER=root ; COMMAND=/usr/bin/journalctl
sudo[4114]: pam_unix(sudo:session): session opened for user root by (uid=0)
This is my /etc/mpd.conf:
music_directory "/home/0112358/Music"
playlist_directory "/home/0112358/Music/Playlists"
db_file "/home/0112358/.mpd/mpd.db"
log_file "/home/0112358/.mpd/mpd.log"
pid_file "/home/0112358/.mpd/mpd.pid"
state_file "/home/0112358/.mpd/mpd.state"
user "0112358"
gapless_mp3_playback "yes"
input{
plugin "curl"
audio_output{
type "pulse"
name "My Pulse Output"
/etc/asound.conf:
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
ctl.!default {
type pulse
fallback "sysdefault"
/etc/pulse/default.pa:
.nofail
.fail
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif
### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif
### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif
### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore
### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams
### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink
### Honour intended role device property
load-module module-intended-roles
### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle
### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
.nofail
load-module module-console-kit
.fail
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif
### Enable positioned event sounds
load-module module-position-event-sounds
### Cork music/video streams when a phone stream is active
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
### Load DBus protocol
.ifexists module-dbus-protocol.so
load-module module-dbus-protocol
.endif
### Make some devices default
#set-default-sink output
#set-default-source input
Could anyone give me a hand please?
Last edited by 0112358 (2013-06-30 15:30:33)

0112358 wrote:
ngoonee wrote:Or you could workaround it by outputting to tcp/ip to pulse (I wrote that section of the pulseaudio article on wiki.archlinux.org)
You're suggesting running mpd as its own user?  If I did that, and configured mpd to output to 127.0.0.1, etc, would Pulse then be able to redirect the audio to another networked machine (since that's my end goal here)?  I don't want to end up having to put the other machine's IP directly in mpd.conf, since I won't always be running that way (since it's a laptop - sometimes I'll take it on the road and use headphones).
Pulse can do that, yes, its very flexible that way. Doesn't matter where the audio comes from, really. Though as a disclaimer, I haven't tried it myself yet.
Why not just set two outputs for mpd and toggle between them since it has native support? Doesn't sound like you really need pulseaudio.

Similar Messages

  • [SOLVED] Can't get DHCP to work with wifi

    On my recent install my wireless connection won't work with DHCP. If I use static IP I can associate with my AP and all is well but with DHCP wicd-gtk goes through the connection process and then just says "Not Connected". Any ideas?
    Last edited by ill (2013-01-22 01:18:28)

    ill wrote:I don't believe that's the issue. wicd successfully autodetected the interfaces... plus if it had the wrong interface I don't think using static IPs would fix the problem.
    Have you tried connecting manually with wpa-supplicant?
    The wiki says this
    If wicd repeatedly fails to get an IP address using the default dhcpcd client, try installing and using dhclient instead:
    # pacman -S dhclient
    I'd try manually with wpa-supplicant and if that works try the new dhcp client

  • [SOLVED] Can't get DE to work with catalyst

    Hey everyone,
    I got problems getting KDE/Fluxbox running. I've installed the latest catalyst drivers (11.6) from AUR. "aticonfig --initial" created the xorg.conf for me, which seems to be ok but it gives me this error:
    Found fglrx primary device section
    Fail to link to fglrx-libglx.so, please check wether driver is installed correctly
    I got two Radeon HD5850s. Is it necessary to connect those two cards with the crossfire cables? I did, but I think it doesn't make any difference if I don't, it's probably unrelated to my problem. When I try to "startx" this is what I got:
    (WW) fglrx: No matching Device section for instance (BusID PCI:0@2:0:0) found
    (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
    (WW) fglrx: No matching Device section for instance (BusID PCI:0@2:0:1) found
    Segmentation fault at address 0x838
    Fatal server error:
    Caught signal 11 (Segmentation fault). Server aborting
    I've also uploaded my /var/log/Xorg.0.log, maybe this is helpful.
    My xorg.conf looks like this:
    #Section "InputDevice"
    # Identifier "Generic Keyboard"
    # Option "CoreKeyboard"
    # Option "XkbLayout" "de"
    # Option "XkbVariant" "nodeadkeys"
    # Option "XkbOptions" "ctrl:nocaps"
    #EndSection
    Section "ServerLayout"
    Identifier "aticonfig Layout"
    Screen 0 "aticonfig-Screen[0]-0" 0 0
    Screen "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
    EndSection
    Section "Files"
    EndSection
    Section "Module"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-1"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    BusID "PCI:1:0:0"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-1"
    Driver "fglrx"
    BusID "PCI:1:0:0"
    Screen 1
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device "aticonfig-Device[0]-0"
    Monitor "aticonfig-Monitor[0]-0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-1"
    Device "aticonfig-Device[0]-1"
    Monitor "aticonfig-Monitor[0]-1"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Section "DRI"
    Mode 0666
    EndSection
    I'm using kernel 2.6.39 (x86_64) and I've only one display connected to the first card, I don't have another one, so no xinerama or something like that.
    Can anyone help?
    best regards
    Webmaniac
    Last edited by Webmaniac2 (2011-06-24 19:41:57)

    1- remove your catalyst an catalyst-utils driver build from AUR.
    2- remove fglrx from your modules, in my experience you don`t need it there unless you`re using catalyst-daemon.
    3- I recommend you use the Catalyst repository:
    [catalyst]
    Server = http://catalyst.apocalypsus.net/repo/catalyst/$arch
    4- Be sure to remove /etc/ati/
    5- update repositories and install catalyst and catalyst-utils from there
    6- finally follow this part of the wiki:
    After installing package you probably need to configure xorg. Using provided aticonfig tool is recommended:
    # aticonfig --initial
    (or for Dual Head: # aticonfig --initial=dual-head)
    And add nomodeset to your kernel line in /boot/grub/menu.lst , ie.:
    kernel /boot/vmlinuz26 root=/dev/sda1 ro nomodeset
    You may now reboot your system.
    I hope that works, also if you want you can ask in the The AMD/ATI Bar & Grill thread.

  • Can't get flash to work with PulseAudio [Solved]

    I have Pulseaudio configured according to the Wiki and everything works except flash. If I bring up a flash site, it takes over the sound card and plays fine, but won't let the card go until I shut down Firefox. During that time nothing shows up in the PA volume control. I've installed alsa-utils and libflashsupport and flashplugin-10. I also have my .asoundrc set up according to all of the sites that should force everything to pulse.
    Any ideas?
    Thanks
    -mS
    Last edited by aglarond (2008-11-24 21:20:58)

    Nevermind. Apparently you don't need libflashsupport with Flash 10. I removed it and it started working.

  • [Solved] Can't get Xorg to work with 1366x768

    Hi there,
    I've been trying to drive my laptop with its native resolution but in vain,
    only xf86-video-vesa (1024x768) is working for me right now. (native is 1366x768)
    The hardware is Intel GMA + nVidia optimus, so
    I have xf86-video-intel and xf86-video-nouveau installed, but startx only complains that "[EE] No device found."
    However, while I was desperate trying to set it up, the Ubuntu 10.10 LiveCD work this problem out of the box.
    Had both Xorg AND console(framebuffer) set to the right resolution.
    It has exactly the same kernel module setup (i915 and nouveau)
    so I wonder what went wrong ? anyone had succeeded in this enterprise ? any tips ?
    Last edited by b4283 (2011-03-04 16:21:40)

    Do you have KMS enabled? Try to use only the intel kernel module and drivers, blacklist nouveau if necessary.
    What notebook is it?
    https://wiki.archlinux.org/index.php/As … th_Optimus
    https://wiki.archlinux.org/index.php?ti … th_Optimus
    Last edited by karol (2011-03-03 09:46:58)

  • [SOLVED] Can't get autofs to work with NFS4

    NFS share mounts successfully either from fstab or manual mount, but autofs doesn't seem to be able to handle it.
    My /etc/autofs/auto.master:
    /nfs /etc/autofs/auto.nfs
    /etc/autofs/auto.nfs:
    mountpoint -fstype=nfs4 serv1:/mnt/stor
    And then:
    # systemctl reload autofs
    $ cd /nfs/mountpoint/
    bash: cd: /nfs/mountpoint/: No such file or directory
    Am I doing something wrong with autofs?
    Last edited by nesk (2014-09-15 06:23:44)

    Here they are:
    # automount -d -f -v
    Starting automounter version 5.1.0, master map auto.master
    using kernel protocol version 5.02
    lookup_nss_read_master: reading master files auto.master
    parse_init: parse(sun): init gathered global options: (null)
    lookup_read_master: lookup(file): read entry /nfs
    master_do_mount: mounting /nfs
    automount_path_to_fifo: fifo name /run/autofs.fifo-nfs
    lookup_nss_read_map: reading map file /etc/autofs/auto.nfs
    parse_init: parse(sun): init gathered global options: (null)
    mounted indirect on /nfs with timeout 300, freq 75 seconds
    st_ready: st_ready(): state = 0 path /nfs
    handle_packet: type = 3
    handle_packet_missing_indirect: token 565, name mountpoint, request pid 2124
    attempting to mount entry /nfs/mountpoint
    lookup_mount: lookup(program): looking up mountpoint
    lookup(program): lookup for mountpoint failed
    dev_ioctl_send_fail: token = 565
    failed to mount /nfs/mountpoint
    handle_packet: type = 3
    handle_packet_missing_indirect: token 566, name mountpoint, request pid 2124
    dev_ioctl_send_fail: token = 566
    handle_packet: type = 3
    handle_packet_missing_indirect: token 567, name mountpoint, request pid 2124
    dev_ioctl_send_fail: token = 567
    Those last 3 lines appear every time I try to cd into /nfs/mountpoint/

  • I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161.  Any ideas?

    I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161.  Any ideas?

    The latest Apple driver support begins with the MP 171.
    Here is Ricoh's official driver download page specifically for the Afico MP 161. Note that new drivers for this device were released on Aug 2, and include Lion and Mountain Lion.
    Hopefully, this will solve your device issues.

  • My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • I just replaced my mac pro with an iMac and i can't get it to work with my epson stylus 3800 printer?

    i just replaced my mac pro with an iMac and i can't get it to work with my epson stylus 3800 printer? i have downloaded the 3800 software three times and the imac keeps telling me there is no software to run the printer? Any help here?

    Care to share which OS you are using?

  • How can i get acrobat to work with windows vista

    How can I get adobeexportpdf to work with windows vista?

    But if, on the other hand you do mean Acrobat, please let us know what problem you are having.

  • Bought print central app have an impact Lexmark s300 series wireless printer can't get it to work with my I pad , help

    I bought the print central app have a Lexmark s300 wireless printer can't get it to work with my I pad any suggestions

    To print from an iPAD using the Lexmark S300 series,you need to download the LexPrint app from this link: LexPrint
    Hope this helps.

  • Email messages from my icloud account update on all my devices showing if they have been read and if a reply has been sent.  This does not happen with my tinyworld (TalkTalk) email account.  Can I (how can I) get this to work with TinyWorld?

    Email messages from my icloud account update on all my devices showing if they have been read and if a reply has been sent.  This does not happen with my tinyworld (TalkTalk) email account.  Can I (how can I) get this to work with TinyWorld?

    You have to look at the email protocol being used.  the Apple email system uses IMAP, does Tinyworld use IMAP or POP?
    Does the email system permit delivery receipts to be requested?
    Just some of the things one needs to determine from the information provided by the email service provider.

  • How can I get Lion to work with label printer- Brother  QL 570 or Dymo 450 Turbo?

    I can't get Lion to work with label printers, either Brother QL 570 or Dymo Turbo 450. I want to uninstall Lion and use Snow Leopard unless there is a way to make Lion work with these devices. Any ideas?

    Dymo has released new drivers since Lion came out. Have you downloaded and
    installed them from the Dymo website?
    Some people have said that their Dymo label printers were set to off line by Lion, but
    worked fine after going to Print & Scan, selecting the Dymo printer, and making sure
    it was active/on-line. I had to do that with my Dymo 450 Label Writer.
    I cannot offer any tips about Brother, but you may wish to check their website
    for latest drivers.

  • My printer is a fairly new all-in-one Brother MFC-7860 DW. It is not listed in the iPad AirPrint printers. Can I get it to work with my new iPad2?

    My printer is a fairly new all-in-one Brother MFC-7860 DW. It is not listed in the iPad AirPrint printers. Can I get it to work with my new iPad2?

    If it's not an Airprint enabled printer, you can not natively through your iPad.  BUT, there are apps you can purchase in the App Store, like Print Central ($9), which is what I use myself and works well for my needs.

  • HT1151 i have a new apple external dvd drive, and i can't get it to work with my iMac?

    I have a new apple dvd drive, I was told it will work with my imac,  but when i plug it in ...nothing... iv been for update... still nothing. How can i get it to work???

    If it is this drive, note that it is for MBA's and Mini's only:
    http://store.apple.com/us/product/MC684ZM/A
    Ciao.

Maybe you are looking for