MPD problem

I'm trying to setup MPD by following the tutorial on the Arch Linux wiki. But I'm running into permission problems, I want to use MPD with my user non-root user but to create the MPD database I need to be root. Using the root user or sudo doesn't work because MPD uses the username specified in the configuration file which in my case is my user (the non-root user). How can I accomplish this? I can't change the user in the configuration file because then it wont put my non-root users music into the database. The submission in the wiki is not very clear may I say.

a) use absolute paths in config (pointing to a directory where your user has access to)
here is how i have done it:
music_directory "/mnt/media/_music"
playlist_directory "/mnt/media/_music/.mpd/playlists"
db_file "/mnt/media/_music/.mpd/mpd.db"
log_file "/mnt/media/_music/.mpd/mpd.log"
error_file "/mnt/media/_music/.mpd/mpd.error"
pid_file "/mnt/media/_music/.mpd/mpd.pid"
state_file "/mnt/media/_music/.mpd/mpdstate"
b) set the user in mpd.conf to your user (or whoever has access to that folder)

Similar Messages

  • Mpd and python-mpd problem utf8

    Hi,
    i've just update the new mpd and python mpd package, so there is a problem with utf8 directory. Now it can not display my covers.
    The error :
    Exception in thread Thread-28:
    Traceback (most recent call last):
    File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
    File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
    File "/usr/lib/python2.5/site-packages/sonata/main.py", line 3971, in _artwork_update
    imgfound = self.artwork_check_for_local()
    File "/usr/lib/python2.5/site-packages/sonata/main.py", line 3993, in artwork_check_for_local
    type, filename = self.artwork_get_local_image()
    File "/usr/lib/python2.5/site-packages/sonata/main.py", line 4038, in artwork_get_local_image
    testfile = img.single_image_in_dir(self.musicdir[self.profile_num] + songpath)
    File "/usr/lib/python2.5/site-packages/sonata/img.py", line 62, in single_image_in_dir
    dir = gobject.filename_from_utf8(dir)
    GError: Séquence d'octets non valide en entrée du convertisseur

    I'm having the same output whenever I try to view an artists's albums in the collection and the album title contains non strictly ascii characters (which happens pretty often, as I am not a native english speaker). The problem is that the albums do not appear in the collection ! I can still access them by the filesystem view, but then the songs are sorted alphabetically, not by track number.
    This problem appeared with Sonata 1.5.

  • [SOLVED] mpd problems

    I have installed mpd according to the wiki.
    The installation seems fine, playlists are updated, etc. However, when I try to play an mp3, the time-progress display starts, but no sound. No error in the logs, either. The time, however, seems to skip ahead, like every couple of seconds it jumps forward so in maybe 20 seconds the progress advances one minute. Any ideas what could be wrong? This is for any mp3 I try to play. I am a little lost about what else I could do, I tried alsa, then pulse, but no luck.
    Playing the mp3s in vlc for example, works fine, so I am strongly suspecting mpd config to be the problem...
    Last edited by awayand (2011-05-31 05:53:43)

    well I ended up completely removing everything sound-related except alsa and reinstalled alsa and now it works (after a reboot). I will never know what happened or caused this.

  • Strange MPD problems (conky/dzen?)

    I'm having a strange problem with MPD ever since I started messing around with xmonad/dzen2/conky-cli. I seem to lose control of mpd, but my music continue's to play... Sometimes it will randomly come back, but most of the time I'm left unable to control it, the only way of stopping it being a kill. here are the errors I'm getting (from a conky-cli config):
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:39 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:40 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:41 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:42 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:43 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:44 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    ^fg(white) | ^fg(white)Wednesday 26 Aug 2009 07:51:45 PM
    Conky: MPD error: problems getting a response from "localhost" on port 6600 : Operation now in progress
    I never had this problem until I started messing with all this new stuff.... I'll check mpd in a different environment and see what happens... in the mean time, here is my relevant mpd.conf, although nothing has changed since when it was working:
    music_directory "/mnt/storage/Music"
    playlist_directory "/home/heleos/.mpd/playlists/"
    db_file "/home/heleos/.mpd/mpd.db"
    log_file "/home/heleos/.mpd/mpd.log"
    error_file "/home/heleos/.mpd/mpd.error"
    pid_file "/home/heleos/.mpd/mpd.pid"
    state_file "/home/heleos/.mpd/mpdstate"
    user "heleos"
    port "6600"
    audio_output {
    type "oss"
    name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional

    CoolWhip, better open a thread on your own and refer back to this one. You will be more in control besides being more actual.
    (You can even mark your thread as [SOLVED] if you get this far. )
    Closing this one.

  • Mpd and ncmpcpp

    well I installed ncmpcpp, but when ever I try to run it I get this:
    Cannot connect to mpd: problems connecting to "localhost" on port 6600: Connection refused
    I have no clue what mpd was/is, so I installed it.. and ran "mpd"
    unable to bind port 6600: Address already in use
    maybe MPD is still running?
    I am not familiar with mpd so I dont know what to do... I tried searching around but didnt find anything that solved my problem. Thankshave
    Last edited by k0rfain (2008-09-29 10:09:09)

    i re-edited my conf file,
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    ######################## REQUIRED PATHS ########################
    #music_directory "/home/k0rfain/Music"
    #playlist_directory "~/playlists"
    #db_file "~/mpd.db"
    #log_file "~/mpd.log"
    #error_file "~/mpd.error"
    music_directory "/home/k0rfain/Music"
    playlist_directory "~/playlists"
    db_file "~/mpd.db"
    log_file "~/mpd.log"
    error_file "~/mpd.error"
    # Note: ~ is the home directory of user set in the "user" option
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    pid_file "~/.mpd/mpd.pid"
    pid_file "/var/run/mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    state_file "~/.mpd/mpdstate"
    state_file "/var/lib/mpd/mpdstate"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "k0rfain"
    # The address and port to listen on.
    bind_to_address "127.0.0.1"
    bind_to_address "any"
    port "6600"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    ########################## PERMISSIONS #########################
    # MPD can require that users specify a password before using it.
    # You may specify one ore more here, along with what users who
    # log in with that password are allowed to do.
    #password "password@read,add,control,admin"
    # Specifies what permissions a user who has not logged in with a
    # password has. By default, all users have full access to MPD
    # if no password is specified above, or no access if one or
    # more passwords are specified.
    #default_permissions "read,add,control,admin"
    ########################## AUDIO OUTPUT ########################
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
    # for examples of other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    # device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    # user "source" # optional
    # description "My Stream Description" # optional
    # genre "jazz" # optional
    # public "no" # optional
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #audio_output_format "44100:16:2"
    ############################# MIXER ############################
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don't specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    # An example for controlling an ALSA mixer:
    #mixer_type "alsa"
    #mixer_device "default"
    #mixer_control "PCM"
    # An example for controlling an OSS mixer:
    #mixer_type "oss"
    #mixer_device "/dev/mixer"
    #mixer_control "PCM"
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    #mixer_type "software"
    ######################### NORMALIZATION ########################
    # Specifies the type of ReplayGain to use. Can be "album" or
    # "track". ReplayGain will not be used if not specified. See
    # <http://www.replaygain.org> for more details.
    #replaygain "album"
    # Sets the pre-amp used for files that have ReplayGain tags.
    #replaygain_preamp "0"
    # Enable on the fly volume normalization. This will cause the
    # volume of all songs played to be adjusted so that they sound
    # as though they are of equal loudness.
    #volume_normalization "no"
    ########################### BUFFERING ##########################
    # The size of the buffer containing decoded audio. You probably
    # shouldn't change this.
    #audio_buffer_size "2048"
    # How much of the buffer to fill before beginning to play.
    #buffer_before_play "0%"
    # Similar options for the HTTP stream buffer. If you hear
    # skipping while playing HTTP streams, you may wish to increase
    # these.
    #http_buffer_size "128"
    #http_prebuffer_size "25%"
    ########################### HTTP PROXY #########################
    # Specifies the HTTP proxy to use for playing HTTP streams.
    #http_proxy_host "proxy.isp.com"
    #http_proxy_port "8080"
    #http_proxy_user "user"
    #http_proxy_password "password"
    ############################# LIMITS ###########################
    # These are various limits to prevent MPD from using too many
    # resources. You should only change them if they start
    # restricting your usage of MPD.
    #connection_timeout "60"
    #max_connections "5"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    ###################### CHARACTER ENCODINGS #####################
    # If file or directory names do not display correctly, then you
    # may need to change this. In most cases it should be either
    # "ISO-8859-1" or "UTF-8". You must recreate your database
    # after changing this (use mpd --create-db).
    #filesystem_charset "ISO-8859-1"
    # The encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    ######################### OTHER OPTIONS ########################
    # The metadata types MPD will recognize.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #save_absolute_paths_in_playlists "no"
    i also did what kclive18 said, and when i enter /etc/rc.d/mpd start, i get
    :: Starting Music Player Daemon [FAIL]

  • Which sound-mixing program (for multiple sounds)?[SOLVED]

    I'm looking at wiki here but there's tons of different software mixers and I don't know which one to go for. I think I use alsa-drivers for everything regarding sound and I want to play like; mplaye, xine-ui and xmms at the same time. Any suggestions?
    /Richard

    I just changed xmms to use ALSA and it's now mixing fine.
    jaboua wrote:Configure XMMS to use ALSA in that case. However, I thought OSS would work just as fine since the OSS emulation layer is over ALSA with dmix...
    I don't know what OSS emulation layer means but I'll check it up. Sounds useful!
    profoX wrote:Ps: my favourite audio players are
    1. mpd + mpygmy or ncmpc for Speed and Console
    2. amaroK for Looks and Features
    I'll check out mpd/mpygmy. I think I've tried amaroK back in Debian but it (if I rembember it correct) was pretty much overkill. I want like; playlists, shuffle function and a queue fumction. That's why I use xmms (and I'm an old Winamp/Windows user).
    Thanks for the help!
    Regards
    Richard
    [edit]
    082419/home/riwa# ncmpc
    error [15]: problems getting a response from "localhost" on port 6600 : Connection refused
    I also got:
    082149/home/riwa# mpd
    problem opening file "//.mpd/mpd.log" for writing
    [/edit]

  • [SOLVED] Problem with MPD and ALSA

    Hello, I'm having problems with mpd using alsa output.
    My alsa system works, I can play mp3 using mplayer -ao alsa, and flash plugin plays sound, my user (and also mpd user)is in the audio group.
    But then mpd can't open the alsa device.
    If I tell mpd to autodetect audio, it can't find anything:
    (Running as root to see output, if using /etc/rc.d/mpd start, it just fails)
    output: No "audio_output" defined in config file
    output: Attempt to detect audio output device
    output: Attempting to detect a alsa audio device
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    alsa: Error opening default ALSA device: No such file or directory
    output: Attempting to detect a oss audio device
    oss: Error opening OSS device "/dev/dsp": No such file or directory
    oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
    output: Attempting to detect a pulse audio device
    mpd: src/output/pulse_output_plugin.c:400: pulse_output_wait_connection: Assertion `po->mainloop != ((void *)0)' failed.
    and if I set up a basic alsa config...
    audio_output {
    type "alsa"
    name "HDA-Intel"
    It starts, but then playing anything:
    % mpc play
    Caspian - La Cerva
    [paused] #2/10 0:00/4:59 (0%)
    volume: n/a repeat: off random: off single: off consume: off
    ERROR: problems opening audio device
    mpc.log output:
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    Sep 22 10:08 : output: Failed to open "HDA-Intel" [alsa]: Failed to open ALSA device "default": No such file or directory
    I tried with different device and mixer settings and the error is always the same. It can't open alsa device.
    Any Ideas?
    Thank you.
    Last edited by xzakox (2011-09-22 20:04:33)

    Check that mpd is really being run as the mpd user, and that id lists audio for the mpd user. Also post your whole mpd.conf and the output from amixer when running as the user you run mpd as.
    Last edited by Mr.Elendig (2011-09-22 11:43:35)

  • MPD: ERROR: problems opening audio device

    Since a day, maybe a little more, mpd is troubling me. When I use mpc, I get the error
    ERROR: problems opening audio device
    This is my mpd.conf
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/home/adriaan/Music"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "adriaan"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    group "users"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My ALSA Device"
    device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # mixer_type "hardware" # optional
    # mixer_device "default" # optional
    # mixer_control "PCM" # optional
    # mixer_index "0" # optional
    #audio_output {
    # type "alsa"
    # name "Sound Card"
    # options "dev=dmixer"
    # device "plug:dmix"
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"

    milso wrote:
    type "alsa"
    name "equal"
    device "default"
    format "44100:16:2" # optional
    mixer_device "default" # optional
    mixer_control "PCM" # optional
    mixer_index "0" # optional
    I have mine set to plug:plugequal as I use an equalizer with alsa, but when I set it to default it works fine, try that.
    That didn't work out.
    Mr.Elendig wrote:Tell mpd to be more verbose. And check that mplayer -ao alsa whatever works.
    Here's the output of mpd -v
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    path: path_set_fs_charset: fs charset is: UTF-8
    database: reading DB
    disabling the last.fm playlist plugin because account is not configured
    daemon: opening pid file
    daemon: daemonized!
    daemon: writing pid file
    Doesn't contain anything unusual.
    EDIT: oh, and mplayer -ao alsa works fine.
    Last edited by arthd (2011-02-09 15:14:09)

  • Mpd and pulse problem - Connection refused [SOLVED]

    I'm having problems getting mpd to play nice with pulse-audio.  Pulse is installed and works with vlc, mplayer, flash, etc. just fine.  When I try to play through mpd the song in the gui simply shows a status of "paused" and the following gets written to the mpd.log. 
    Advice is appreciated.
    # tail -f /var/log/mpd/mpd.log
    Oct 08 11:12 : output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
    Oct 08 11:12 : output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
    Oct 08 11:12 : output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
    Oct 08 11:12 : player_thread: problems opening audio device while playing "Not_So_Hard_Stuff/Disturbed-The Sickness-2000/01_Voices.flac"
    Here is my mpd.conf
    $ sed '/#/d' /etc/mpd.conf
    music_directory "/media/data/all_genres"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/mpd.db"
    log_file "/var/log/mpd/mpd.log"
    pid_file "/var/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    gapless_mp3_playback "yes"
    zeroconf_enabled "yes"
    zeroconf_name "Music Player"
    input {
    plugin "curl"
    audio_output {
    type "pulse"
    name "pulse audio"
    mixer_type "software"
    audio_buffer_size "35000"
    buffer_before_play "5%"
    The pulseaudio wiki suggests that a 'pulse' group and 'pulse-access' and even 'pulse-rt' groups may be required?  I have used mpd for a year now with no such groups on my system.
    EDIT: solved in post #13
    Last edited by graysky (2011-10-16 13:42:46)

    graysky wrote:
    I too modified my /etc/mpd.conf to use alsa even though I don't have alsa-utils installed at all.
    $ sed '/#/d' /etc/mpd.conf
    music_directory "/media/data/all_genres"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/mpd.db"
    log_file "/var/log/mpd/mpd.log"
    pid_file "/var/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    gapless_mp3_playback "yes"
    zeroconf_enabled "yes"
    zeroconf_name "Music Player"
    input {
    plugin "curl"
    audio_output {
    type "alsa"
    name "My ALSA Device"
    mixer_type "software"
    audio_buffer_size "35000"
    buffer_before_play "5%"
    Doesn't work for me I get this error when I try to play something with your configuration:
    ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused
    Oct 16 18:23 : output: Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device "default": Connection refused

  • Mpd and sonata setup problems

    To get sonata working I have followed the instructions in the archlinux wiki [1] and went with the mentioned alternative setup.  I have mpd running in the background, but when I open sonata I get nothing.
    When I launch Sonata from the terminal I get the following output:
      Error grabbing key 173, 0x?????? (some address)
    Thanks for any help.
    1. https://wiki.archlinux.org/index.php/Mpd

    Looks like a port problem, but can be wrong.  First check that nothing goes wrong when you start mpd.
    Also check if Sonata connects to localhost over the correct port and that you have something like: bind_to_address "any" in your mpd configuration.
    If you start mpd as local user then ~/.mpdconf is used, else /etc/mpd.conf is used.

  • Problem in MPD file

    hi,
    I could able to synthesis using rxil -device=xc5vlx110 -all using 10.1i
    then
    1.I copied the sparc.ngc in the netlist file and removed .edf
    2.I didn't modify the .xmp.
    3.I tried to create the project of xps type then
    the error came as follows
    ERROR:MDT - IPNAME:ccx2mb HW_VER:2.00.a - Can not find valid MPD
    INFO:MDT - Check the following for possible causes of not finding MPD:
    - If HW_VER is specified in MHS, it must follow literal form X.YY.Z
    - There is no Ip with given name
    - Ip exists but not that version
    - Ip (directory) exists but 2.1.0 MPD file is not available
    - Ip exist in myip directory (only pcores is supported)
    ERROR:MDT - IPNAME:iop_fpga HW_VER:2.00.a - Can not find valid MPD
    INFO:MDT - Check the following for possible causes of not finding MPD:
    - If HW_VER is specified in MHS, it must follow literal form X.YY.Z
    - There is no Ip with given name
    - Ip exists but not that version
    - Ip (directory) exists but 2.1.0 MPD file is not available
    - Ip exist in myip directory (only pcores is supported)
    ERROR:MDT - IPNAME:ccx2mb INSTANCE: ccx2mb-0 -
    /home/netuser/m070269ec/open_sparc/design/system.mhs line 279 - could not
    find the MPD!
    ERROR:MDT - IPNAME:iop_fpga INSTANCE: iop_fpga_0 -
    /home/netuser/m070269ec/open_sparc/design/system.mhs line 306 - could not
    find the MPD!
    in .mhs it was 1.00.a I changed and used 2.00.a still the problem exist.
    I changed the iop_fpga_v2_1_0.bbd also to point to my sparc.ngc
    please ,help me to solve this...

    hi,
    I could do it once I did the upgradtion to 10.1 from 9.2 (I am using 10.1)
    no other modification is required ....

  • MPD + Pulseaudio problem

    Hey guys, I'm having trouble with mpd coupled with pulseaudio when trying to play surround sound (5.1) songs.
    The issue seems to be that mpd completely ignores my front-right speaker - nothing comes out of it.
    deadbeef and amarok can play the songs perfectly fine, and aplay -c 6 tests show that it's fine, as does the KDE settings multimedia speaker test
    Anyone got any ideas? My mpd config output is as follows:
    audio_output {
            type            "pulse"
            name            "My Pulse Output"
            sink            "alsa_output.pci-0000_00_1b.0.analog-surround-51"       # optional
    I've tried with and without the sink option, it makes no difference.

    Thx nTia89.
    I tried, but it makes no difference. It still needs about 12 seconds to get from SLiM to the Desktop.
    /etc/rc.conf
    DAEMONS=(syslog-ng dbus network netfs crond alsa cups clamav mpd)
    and the error message is still there too:
    /var/log/messages.log
    Mar 12 17:17:39 localhost pulseaudio[4228]: main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
    [ ----- EDIT ------- ]
    What I found out. I think pulseaudio starts before even X11 is ready... perhaps that is the problem. According the wiki, pulseaudio should be startet through start-pulseaudio-X11 and not before Gnome/KDE is started up. How can I stop Pulseaudio from starting on his own before X11?
    Last edited by gnomeye (2011-03-12 17:29:16)

  • Mpd-svn build problems

    I maintain the mpd-svn package on the AUR. Somewhat recently (a month or two?) I was unable to build this package anymore.
    1) It is not a problem with newer mpd code. Older revisions that I have built in the past give the same error that I'm getting in the newer versions. I attempted to trace what packages in Arch Linux were changed which could have lead to this problem, but was unsuccessful.
    2) It is not a problem with the PKGBUILD. If I checkout the code manually and do everything by hand the same problem arises. I am not familiar with the build processes involved here, like autoconf/automake/etc. Perhaps someone with more knowledge will have a better idea. It seems reasonable to assume mpd's code is incompatible with a newer version of something in Arch Linux.
    After ./configure, this is the output:
    You are now ready to compile MPD
    Type "make" to compile MPD
    make  all-recursive
    make[1]: Entering directory `/var/abs/local/mpd-svn/src/mpd'
    Making all in src
    make[2]: Entering directory `/var/abs/local/mpd-svn/src/mpd/src'
    Making all in mp4ff
    make[3]: Entering directory `/var/abs/local/mpd-svn/src/mpd/src/mp4ff'
    if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..    -DUSE_TAGGING=1 -march=i686 -O2 -pipe -MT mp4ff.lo -MD -MP -MF ".deps/mp4ff.Tpo" -c -o mp4ff.lo mp4ff.c;
        then mv -f ".deps/mp4ff.Tpo" ".deps/mp4ff.Plo"; else rm -f ".deps/mp4ff.Tpo"; exit 1; fi
    mv: cannot stat `.deps/mp4ff.Tpo': No such file or directory
    make[3]: *** [mp4ff.lo] Error 1
    make[3]: Leaving directory `/var/abs/local/mpd-svn/src/mpd/src/mp4ff'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/var/abs/local/mpd-svn/src/mpd/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/var/abs/local/mpd-svn/src/mpd'
    make: *** [all] Error 2
    The text in bold being the actual error. It appears that this file that is missing should have been created by ./autogen.sh or ./configure.
    The current PKGBUILD is here: http://aur.archlinux.org/packages.php?d … =1&ID=1911

    prim wrote:This probably won't help you but I was able to build mpd-svn rev. 4952 (using your PKGBUILD) as well as mpc-svn, ncmpc-svn and gmpc-svn just yesterday.
    My system is up to date.
    That's weird. Everything is up to date on my machine too but I keep having the same problem 

  • [Solved] Some problems.. (cron, sudo, mount, mpd)

    Hello all, glad to be back with archlinux again :)
    A few errors I encountered though that I would like some help with:
    I have this script here:
    $ ls /etc/cron.hourly/
    totalt 4,0K
    -rw-r--r-- 1 root root 34 2 dec 03.44 pacman.hourly.sh
    $ cat /etc/cron.hourly/pacman.hourly.sh
    #!/bin/bash
    pacman -Sy
    return 0;
    Cron can't run it, errors from the log:
    30-Dec-2007 00:02 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.daily
    30-Dec-2007 00:02 FILE /var/spool/cron/root USER root pid 23281 cmd /usr/sbin/run-cron /etc/cron.daily
    30-Dec-2007 00:22 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.weekly
    30-Dec-2007 00:22 FILE /var/spool/cron/root USER root pid 10195 cmd /usr/sbin/run-cron /etc/cron.weekly
    30-Dec-2007 01:01 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 01:01 FILE /var/spool/cron/root USER root pid 15952 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 02:01 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 02:01 FILE /var/spool/cron/root USER root pid 9428 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 02:54 /usr/sbin/crond V3.2 dillon, started
    30-Dec-2007 03:01 FILE /var/spool/cron/root USER root pid 11302 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 04:01 FILE /var/spool/cron/root USER root pid 7751 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 05:01 FILE /var/spool/cron/root USER root pid 16539 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 06:01 FILE /var/spool/cron/root USER root pid 7280 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 07:01 FILE /var/spool/cron/root USER root pid 26785 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 08:01 FILE /var/spool/cron/root USER root pid 18862 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 09:01 FILE /var/spool/cron/root USER root pid 6531 cmd /usr/sbin/run-cron /etc/cron.hourly
    hm, apparently it's working now? Strange.
    ok, problem number 2.
    I like to mount my smb shares from fstab.
    //Goamania.se/Muzax /mnt/Muzax smbfs credentials=/home/willie/.smbpassword,uid=1000,gid=1000,noauto 0 0
    /home/willie/.smbpassword
    $ ls /home/willie/.smbpassword
    -rw------- 1 root root 30 26 dec 04.06 /home/willie/.smbpassword
    $ sudo cat /home/willie/.smbpassword
    user=someuser
    password=somepass
    If I sudo mount as a user I get the following error:
    $ sudo mount /mnt/Muzax
    1601: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
    SMB connection failed
    But no problem mounting as root, or unmounting as user with sudo.
    /etc/sudoers:
    $ sudo cat /etc/sudoers
    # sudoers file.
    # This file MUST be edited with the 'visudo' command as root.
    # Failure to use 'visudo' may result in syntax or file permission errors
    # that prevent sudo from running.
    # See the sudoers man page for the details on how to write a sudoers file.
    # Host alias specification
    # User alias specification
    # Cmnd alias specification
    # Defaults specification
    # Runas alias specification
    # User privilege specification
    root ALL=(ALL) SETENV: ALL
    willie ALL=(ALL) SETENV: ALL
    # Uncomment to allow people in group wheel to run all commands
    # and set environment variables.
    # %wheel ALL=(ALL) SETENV: ALL
    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    Oh, and a last question:
    Is there someone who knows if there is a way to get mpd to play alac (apple lossless) files? Faad2 doesn't seem to support alac. :/
    Last edited by WiLLiE (2008-01-03 23:21:04)

    byte wrote:/usr/sbin/run-cron expects executable (+x) files in /etc/cron.*
    Yeah, I missed that when posting the question. Seems to work now.
    Still have the sudo + mounting problem though. (I'm forced to su to root to mount)
    Edit:
    Solved. Me being stupid, had user= in my credentials file (but it is the same credentials file i've used like a year on other dists)
    Last edited by WiLLiE (2008-01-03 23:19:51)

  • Mpd and JACK - problem with ncmpcpp

    I have archlinux with kde installed on my desktop computer, however I was curious and wanted to record sound from movies and games with recordmydesktop. I went with the jack solution, but halfway through the process I ended up with this:
    [wyrm88@nbabic ~]$ jackd -d alsa
    jackd 0.118.0
    Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
    jackd comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    JACK compiled with System V SHM support.
    loading driver ..
    creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
    control device hw:0
    configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
    ALSA: final selected sample format for capture: 32bit integer little-endian
    ALSA: use 2 periods for capture
    ALSA: final selected sample format for playback: 32bit integer little-endian
    ALSA: use 2 periods for playback
    Now, I'm not sure if it has to stop there or is there anything else supposed to follow after this... Anywho, if I don't do this, i can't start mpd normally. If I do this, mpd starts normally , ncmpcpp also, but I have a conky with covers displaying according to the song, which worked before this all jack-messing, now notify-osd doesn't work at all. This is my conky (first post). Also I have qjackctl and alsa-plugins installed, I unchecked realtime in the setup of qjackctll but jack still isn't working.
    Any help appreciated.

    Hmm, managed to get mpd start without inputing "jackd -d alsa", had to delete /etc/asound.conf, also got cover showing to work. If anybody has any advice about setting jack I'll be very happy.

Maybe you are looking for

  • Error in the payment programme

    Hi, There was an error in the payment program since the number ranges for payment documents was not available.  Please Help ? Unable to determine the error due to which auto check generation program failed. Please Help ? Tanx

  • Strange behaviour of Log Miner

    Hi Friends, This was the test I did. I created a function to add log redo log file to dbms_logmnr, I added it from command line and also from a cursor reading from a table. But the latter does not seem to work. Am I missing something ? Please help. S

  • Now that I've added extra RAM...

    ...that is now 3GB of RAM on 2.16ghz 667Mhz processor...I haven't yet noticed anything new other than RAM preview in MOTION 3 is faster. I'd like some opinions from others who have done this and wether the $90 expense is worth it and what advantages

  • Audio not importing from PP to AE (5.5)

    I am baffled and hope that some one can help. I am working with a third party AE Template (No pluggins) and I have tried several ways but still no audio imports to AE. Original footage is from an HD Camera CF card and was pulled into my Mac as option

  • How to check if the WL is 32 bit or 64 bit?

    I have installed WL 9.2 MP3 but I am not sure if it is 32 bit or 64 bit version. Is there a way to confirm the same? I am using it on Solaris 10. Also, how can I confirm if the JRE that came with it is 32 bit or 64 bit? Is there any command that I ca