Ankündigung

Einklappen
Keine Ankündigung bisher.

Pulseaudio am Wiregate

Einklappen
Dieses Thema ist geschlossen.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #46
    hallo nils oder an alle, die es zum laufen gebracht haben, also irgendwie will das bei mir nicht richtig in kombination mit dem ladspa funktionieren. kannst du nils oder jemand anderes vielleicht einmal die
    kompletten config-dateien hier zur verfügung stellen ? krieg halt mit der config von nils immer folgenden fehler:

    Apr 29 16:10 : Cannot connect to server in PulseAudio output "ElternEQ" (attempt 2): No such entity
    Apr 29 16:10 : problems opening audio device while playing "Michel Tel- Ai Se Eu Te Pego CDM - Ai Se Eu Te Pego.mp3"


    Bei mir siehts folgendermassen aus:

    cat /etc/asound.conf
    Code:
    CommunityGate:/etc/pulse#
    ##interne soundkarte 
    pcm_slave.onboard {
        pcm "hw:0,0"            # or "hw:0,0" for the first card
            channels 6
            rate 44100
    #        format  "S16_LE"
    }
    pcm.dmixer {
            type plug
        slave.pcm {
        type dshare
            ipc_key 1024
        ipc_key_add_uid false
        ipc_gid audio
            ipc_perm 0660
            slave onboard
            bindings [ 0 ]
    #    rate 44100
    #   channels 2
            }
    }
    
    pcm.dmixerbad {
            type plug
        slave.pcm {
        type dshare
            ipc_key 1024
        ipc_key_add_uid false
        ipc_gid audio
            ipc_perm 0660
            slave onboard
            bindings [ 1 ]
    #    rate 44100
    #    channels 2
            }
    }
    
    #####neue usb soundkarte
    
    pcm_slave.logilink1 {
            pcm "hw:1,0"            # or "hw:1,0" for the second card
            channels 8
            rate 44100
            format  "S16_LE"
    }
    
    pcm.front_green {
            type plug;
            slave.pcm {
                    type dshare;
                    ipc_key 8788221;
      ipc_key_add_uid false;
      ipc_gid audio;
                    ipc_perm 0660;
                    slave logilink1;
                    bindings [ 0 1 ];
            }
    }
    pcm.surround_black {
            type plug
            slave.pcm {
                    type dshare
                    ipc_key 8788221
      ipc_key_add_uid false
      ipc_gid audio
                    ipc_perm 0660
                    slave logilink1
                    bindings [ 2 3 ]
            }
    }
    pcm.center_lfe_orange {
            type plug
            slave.pcm {
                    type dshare
                    ipc_key 8788221
      ipc_key_add_uid false
      ipc_gid audio
                    ipc_perm 0660
                    slave logilink1
                    bindings [ 4 5 ]
            }
    }
    pcm.side_white {
            type plug
            slave.pcm {
                    type dshare
                    ipc_key 8788221
      ipc_key_add_uid false
      ipc_gid audio
                    ipc_perm 0660
                    slave logilink1
                    bindings [ 6 7 ]
            }
    }
    
    ## Mix von Center und LFE
    pcm.orange {
        type softvol
        slave.pcm center_lfe_orange
        control {
     name "Orange"
     card 0
        }
    }
    
    ###ende neues usb soundkarte
    
    
    
    pcm.pulse {
        type pulse
    }
    ctl.pulse {
        type pulse
    }
    pcm.!default {
        type pulse
    }
    ctl.!default {
        type pulse
    }
    cat /etc/pulse default.pa

    Code:
    CommunityGate:
    #!/usr/bin/pulseaudio -nF
    #
    # This file is part of PulseAudio.
    #
    # PulseAudio is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.
    #
    # PulseAudio is distributed in the hope that it will be useful, but
    # WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public License
    # along with PulseAudio; if not, write to the Free Software Foundation,
    # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
    
    # This startup script is used only if PulseAudio is started in system
    # mode.
    
    .nofail
    
    #.fail
    ### Esound bei Bedarf laden
    .ifexists module-esound-protocol-unix.so
    load-module module-esound-protocol-unix
    .endif
    
    ## Network Audio
    ## Die IP's anpassen fü Rechner die keine Pulse-Cookie verwenden sollen
    #load-module module-native-protocol-unix
    load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.2.0/24;
    
    ## CLI
    load-module module-cli-protocol-tcp listen=127.0.0.1 port=4712
    #load-module module-cli-protocol-tcp
    
    
    ### Automatically restore the volume of streams and devices
    load-module module-stream-restore
    load-module module-device-restore
    
    ### Automatically restore the default sink/source when changed by the user during runtime
    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
    
    ### Automatically suspend sinks/sources that become idle for too long
    load-module module-suspend-on-idle
    
    ### Enable positioned event sounds
    #load-module module-position-event-sounds
    
    ## Default NULL Sink
    load-module module-null-sink
    
    ## ALSA Sinks
    load-module module-alsa-sink device=dmixer sink_name=pakueche
    load-module module-alsa-sink device=dmixerbad sink_name=pabad
    
    #funktioniert so alleine fuer elternschlafzimmer: load-module module-alsa-sink sink_name=pa_eltern device=surround_black
    
    
    #load-module module-alsa-sink name=Galerie sink_name=Galerie device=front_green channels=2 rate=44100 sink_properties=device.description=PA_Galerie
    #load-module module-alsa-sink name=Zimmer3 sink_name=Zimmer3 device=orange channels=2 rate=44100 sink_properties=device.description=PA_Zimmer3
    load-module module-alsa-sink name=Eltern sink_name=Eltern device=surround_black channels=2 rate=44100 sink_properties=device.description=PA_Eltern
    #load-module module-alsa-sink name=Bad sink_name=Elternbad device=side_white channels=2 rate=44100 sink_properties=device.description=PA_Elternbad
    
    ## Combines
    #load-module module-combine sink_name=oben slaves=Zimmer3,Eltern adjust_time=0
    #load-module module-combine sink_name=unten slaves=Galerie,Elternbad adjust_time=0
    
    #load-module module-combine sink_name=alle slaves=Galerie,Zimmer3,Eltern,Elternbad adjust_time=0
    
    ## Equalizer
    #load-module module-ladspa-sink sink_name=GalerieEQ sink_properties=device.description=PA_GalerieEQ master=Galerie plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
    #load-module module-ladspa-sink sink_name=Zimmer3EQ sink_properties=device.description=PA_Zimmer3EQ master=Zimmer3 plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
    load-module module-ladspa-sink sink_name=ElternEQ sink_properties=device.description=PA_ElternEQ master=Eltern plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
    #load-module module-ladspa-sink sink_name=ElternbadEQ sink_properties=device.description=PA_ElternbadEQ master=Elternbad plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
    
    ## per AVAHI veröntlichen
    load-module module-zeroconf-publish
    #load-module module-zeroconf-discover
    
    ## Default auf NULL
    set-default-sink null
    CommunityGate:/etc/pulse#
    Code:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    
    ######################## REQUIRED PATHS ########################
    # You can put symlinks in here, if you like. Make sure that
    # the user that mpd runs as (see the 'user' config parameter)
    # can read the files in this directory.
    music_directory         "/var/lib/mpd/music"
    playlist_directory      "/var/lib/mpd/playlists"
    db_file                 "/var/lib/mpd/tag_cache3"
    log_file                "/var/log/mpd/mpd3.log"
    error_file              "/var/log/mpd/errors3.log"
    pid_file                "/var/run/mpd/pid3"
    ################################################################
    
    
    ######################## OPTIONAL PATHS ########################
    #
    # 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              "/var/lib/mpd/state3"
    #
    ################################################################
    
    
    ######################## 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                            "root"
    #
    # The address and port to listen on.
    #
    # For privacy, we default to the loopback interface. In Debian, "localhost"
    # may resolve to both an IPv4 and an IPv6 address. For MPD 0.13 or earlier,
    # it is recommended to only use one or the other.
    #
    bind_to_address                 "127.0.0.1"
    bind_to_address            "192.168.2.106"
    port                            "6603"
    #
    # Controls the amount of information that is logged.  Can be
    # "default", "secure", or "verbose".
    #
    #log_level                       "default"
    #
    
    audio_output_format             "44100:16:2"
    samplerate_converter            "Fastest Sinc Interpolator"
    
    ################################################################
    
    
    ########################## 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
    #}
    
    
    audio_output {
            type            "pulse"
            name            "ElternEQ"
            ## immer TCP nutzen, darum 127.0.0.1
            server          "127.0.0.1"
            sink            "ElternEQ"
    }
    
    
    #
    #sink    "alsa_output.pci_1274_1371_alsa_playback_0"
    
    #
    # 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"
    mixer_type                      "software"
    #
    # 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            "yes"
    #
    ################################################################
    
    
    ########################### 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%"
    #
    
    #audio_buffer_size               "3060"
    #buffer_before_play              "10%"
    #http_buffer_size                "2048"
    #http_prebuffer_size             "200"
    
    ################################################################
    
    
    ########################### 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              "UTF-8"
    #
    # The encoding that ID3v1 tags should be converted from.
    #
    id3v1_encoding                  "UTF-8"
    #
    ################################################################
    
    
    ######################### 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"
    #
    ################################################################
    Also grundsätzlich krieg ich Ton raus, wenn ich in der default.pa anstatt

    Code:
    load-module module-alsa-sink name=Eltern sink_name=Eltern device=surround_black channels=2 rate=44100 sink_properties=device.description=PA_Eltern
    load-module module-ladspa-sink sink_name=ElternEQ sink_properties=device.description=PA_ElternEQ master=Eltern plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
    folgendes setze

    Code:
    load-module module-alsa-sink sink_name=pa_eltern device=surround_black
    und anstatt in der mpd3.conf:

    Code:
    audio_output {
            type            "pulse"
            name            "ElternEQ"
            ## immer TCP nutzen, darum 127.0.0.1
            server          "127.0.0.1"
            sink            "ElternEQ"
    }
    folgendes setze:

    Code:
    audio_output {
            type            "pulse"
            name            "Eltern"
            ## immer TCP nutzen, darum 127.0.0.1
            server          "127.0.0.1"
            sink            "pa_eltern"
    }
    Naja, der Sound ist ohne Equalizer kaum zu ertragen, von daher würde ich natürlich gerne ladspa integrieren.

    Was ich auch nocht nicht richtig verstanden habe, warum nils in der mpd.conf mehrer audio_outputs definiert, ich dachte, das wird jeweils in der mpd.conf, mpd2.conf , mpd3.conf etc. eingetragen:

    Code:
    audio_output {
            type                    "null"
            name                    "null"
    }
    
    audio_output {
        type        "alsa"
        name        "Schlafzimmer"
        device        "front_green"        # optional
    #    format        "44100:16:2"        # optional
        mixer_device    "hw:0"        # optional
        mixer_control    "Front"            # optional
    }
    
    audio_output {
        type        "alsa"
        name        "Küche"
        device        "usbfront"        # optional
    #    format        "44100:16:2"        # optional
        mixer_device    "hw:1"        # optional
        mixer_control    "Front"            # optional
    }
    
    audio_output {
        type        "alsa"
        name        "Bad"
        device        "usbrear"        # optional
    #    format        "44100:16:2"        # optional
        mixer_device    "hw:1"        # optional
        mixer_control    "Rear"            # optional
    }

    Kommentar


      #47
      Die Konfigdateien von Nils würden mich auch sehr interessieren. Bis dato habe ich den mpd auch noch nicht ans Laufen bekommen. Ich versuche, mpd auf einem PC mit Xubuntu ans Laufen zu bekommen, inkl. dem Startscript von Nils.
      Noch besser wären die Schritte, die für eine Einrichtung in einer Virtuellen Maschine notwendig sind.

      Vielleicht hat ja sonst Jemand ein paar Tipps!

      Gruß Norbert

      Kommentar


        #48
        Also ohne spirlefanz mit XxY x2.0 ohne PA gibts an dem mpd gar wenig einzufummeln/konfigurieren, der geht einfach mit der Default-config(?)
        Und das übrigens seit 5J ohne einen Ruckler/Mucks

        Makki
        EIB/KNX & WireGate & HS3, Russound,mpd,vdr,DM8000, DALI, DMX
        -> Bitte KEINE PNs!

        Kommentar


          #49
          Hallo Makki,

          das Problem ist das Aufsplitten der 7.1 Sondkarte und dann das Ansprechen über mpd.
          Es gibt ja von vlamers die Anleitung bei den Code-Schnipseln und weiterhin ein paar HInweise von NIls. Ich habe aber kein Wiregate (zumindest noch nicht) und möchte es endlich auf einem PC ans Laufen bekommen.
          Basis ist ein PC mit Xubuntu 12.04, 7.1 Sound-Karte (intern und alternativ auch über USB extern).
          Weiterhin seit der Sammelbestellung einen Russound C5, der noch immer eingepackt in der Ecke liegt und leider noch nicht einen Ton von sich gegeben hat. :-((
          Ich hätte gerne mehrere Instanzen vom mpd, welche dann über den Russound ausgegeben werden.
          Ich gehe davon aus, dass es bei der Einrichtung oftmals an den Rechten scheitert.

          Ich arbeite schon lange mit Linux, allerdings nur als Anwender. Ich bin in der Computerwelt nicht so zu Haus (komme mehr aus der mechanischen Welt)! Insofern bräuche ich schon eine Schritt für Schritt Anleitung, die aber leider nicht zu finden ist.

          Gruß Norbert

          Kommentar


            #50
            hi fang mit der asound.conf mal klein an. nur die card, die pcm's zum splitten und unten die pulseconfig. Und dann alle mpds beenden, pulseaudio neustarten, dann erdst die mpds wieder starten.
            wenns weiterhin nicht geht pulse starten mit: (nicht dass init script)
            Code:
            pulseaudio --daemonize=no -vvv
            hoffe dass hilft erst mal! ansonsten bitte die logs posten.

            Gruß

            Edit: ladspa kenn ich nur in der asound.conf. wusste gar nicht dass pulse dass kann...

            Kommentar


              #51
              Hallo vlamers,

              mit welcher asound.conf soll ich am besten anfangen?
              Mit der von Dir aus den Codeschnipseln oder der von Nils oder ??
              Ich habe mir auch die Logilink Soundkarte besorgt.

              Gruß Norbert

              Kommentar


                #52
                Hi, mit der aus der code schnippsel Abteilung.
                Erst die HW definieren und Stück für Stück die pcms dazu "bauen" zwischendurch immer mal kontrollieren obs noch geht. Die pulse definition muss von anfang an in der asound.conf stehen!
                Ersteinmal nur 1 soundkarte. Am besten die 7.1. Nicht vergessen alsa neu zu starten sonst geht gar nix.
                Eigentlich mussten die schritte in der code schnippsel abteilung allgemein sein. Nicht nur speziell für dass WG.

                Gruß


                Gesendet von meinem A500 mit Tapatalk 2

                Kommentar


                  #53
                  Hallo vlamers:
                  Ich gehe also entsprechend den Code-Schnipseln vor:
                  Installation von Alsa, Pulse, mpd usw. wie beschrieben.
                  Nach dem ersten Aufruf von Alsa force-reload erhalte ich schon die ersten Fehlermeldungen bezüglich der Zugriffsberechtigung!

                  Code:
                  nghtpcss@Silverstone:~$ aplay -l
                  **** Liste der Hardware-Geräte (PLAYBACK) ****
                  Karte 1: Device [USB Sound Device], Gerät 0: USB Audio [USB Audio]
                    Sub-Geräte: 1/1
                    Sub-Gerät #0: subdevice #0
                  nghtpcss@Silverstone:~$ alsa force-reload && alsa force-reload
                  mkdir: kann Verzeichnis »/var/run/alsa“ nicht anlegen: Keine Berechtigung
                  /sbin/alsa: Warning: Failed to create /var/run/alsa/. 
                  /sbin/alsa: Warning: Not keeping list of removed modules because /var/run/alsa is absent.
                  It will not be possible automatically to reload these modules. 
                  Unloading ALSA sound driver modules:/sbin/alsa: 135: /sbin/alsa: cannot create /var/run/alsa/modules-removed: Directory nonexistent
                   snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device.
                  mkdir: kann Verzeichnis »/var/run/alsa“ nicht anlegen: Keine Berechtigung
                  Loading ALSA sound driver modules: (none to reload).
                  mkdir: kann Verzeichnis »/var/run/alsa“ nicht anlegen: Keine Berechtigung
                  /sbin/alsa: Warning: Failed to create /var/run/alsa/. 
                  /sbin/alsa: Warning: Not keeping list of removed modules because /var/run/alsa is absent.
                  It will not be possible automatically to reload these modules. 
                  Unloading ALSA sound driver modules:/sbin/alsa: 135: /sbin/alsa: cannot create /var/run/alsa/modules-removed: Directory nonexistent
                   snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device.
                  mkdir: kann Verzeichnis »/var/run/alsa“ nicht anlegen: Keine Berechtigung
                  Loading ALSA sound driver modules: (none to reload).
                  nghtpcss@Silverstone:~$
                  Bei einem Aufruf mittels sudo erhalte ich:

                  Code:
                  nghtpcss@Silverstone:~$ sudo alsa force-reload && alsa force-reload
                  Unloading ALSA sound driver modules: snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device (failed: modules still loaded: snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-rawmidi snd-timer snd-seq-device).
                  Loading ALSA sound driver modules: snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device.
                  nghtpcss@Silverstone:~$
                  Da kommt dann in der Meldung etwas mit failed! Ist das korrekt?

                  Ich mach nun erst einmal weiter mit dem Anlegen der Datei snd-usb-audio, kein Problem

                  Die Sache mit alsa-base habe ich mir gespart, da ich die Onboard Sondkarte im Bios deaktiviert habe.

                  Dann kommt die asound.conf

                  Du schreibst dort, dass die komplette asound.conf irgendwo später komplett kommt. Die habe ich noch nicht gefunden. Kannst Du die noch mal posten. Dann mache ich weiter!

                  Gruß Norbert

                  Kommentar


                    #54
                    Hallo vlamers,

                    hier mal die asound.conf

                    Code:
                    pcm_slave.logilink { 
                    pcm "hw:0,0"            # or "hw:0,0" for the first card 
                        channels 8 
                        rate 44100 
                    #        format  "S16_LE" 
                    }
                    
                    pcm.dmixer { 
                        type plug 
                    slave.pcm { 
                    type dshare 
                        ipc_key 1024 
                    ipc_key_add_uid false 
                    ipc_gid audio 
                        ipc_perm 0660 
                        slave logilink  
                        bindings [ 0 1 ] 
                    #    rate 44100 
                    #    channels 2 
                        } 
                    }
                    
                    pcm.pulse { 
                    type pulse 
                    } 
                    ctl.pulse { 
                    type pulse 
                    } 
                    pcm.!default { 
                    type pulse 
                    } 
                    ctl.!default { 
                    type pulse 
                    }
                    Nach ausführen von alsa force reload erhalte ich:
                    Code:
                    nghtpcss@Silverstone:~$ sudo alsa force-reload && alsa force-reload
                    Unloading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-rawmidi snd-timer snd-seq-device (failed: modules still loaded: snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-rawmidi snd-timer snd-seq-device).
                    Loading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-usb-audio snd-pcm snd-page-alloc snd-hwdep snd-usbmidi-lib snd-rawmidi snd-timer snd-seq-deviceWARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    WARNING: All config files need .conf: /etc/modprobe.d/snd-usb-audio, it will be ignored in a future release.
                    .
                    nghtpcss@Silverstone:~$
                    Da ist doch schon irgendwas nicht ganz korrekt. Liegt es nur daran, dass ich die snd-usb-audio in snd-usb-audio.conf umbenennen muss?

                    Gruß Norbert

                    Kommentar


                      #55
                      Hier ist meine daemon.conf

                      Code:
                      # This file is part of PulseAudio.
                      #
                      # PulseAudio is free software; you can redistribute it and/or modify
                      # it under the terms of the GNU Lesser General Public License as published by
                      # the Free Software Foundation; either version 2 of the License, or
                      # (at your option) any later version.
                      #
                      # PulseAudio is distributed in the hope that it will be useful, but
                      # WITHOUT ANY WARRANTY; without even the implied warranty of
                      # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
                      # General Public License for more details.
                      #
                      # You should have received a copy of the GNU Lesser General Public License
                      # along with PulseAudio; if not, write to the Free Software
                      # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
                      # USA.
                      
                      ## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
                      ## more information. Default values are commented out.  Use either ; or # for
                      ## commenting.
                      
                      ; daemonize = no
                      daemonize = yes
                      ; fail = yes
                      ; allow-module-loading = yes
                      ; allow-exit = yes
                      ; use-pid-file = yes
                      ; system-instance = no
                      ; local-server-type = user
                      ; enable-shm = yes
                      ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
                      ; lock-memory = no
                      ; cpu-limit = no
                      
                      ; high-priority = yes
                      ; nice-level = -11
                      
                      ; realtime-scheduling = yes
                      realtime-scheduling = yes
                      ; realtime-priority = 5
                      realtime-priority = 5
                      
                      ; exit-idle-time = 20
                      ; scache-idle-time = 20
                      
                      ; dl-search-path = (depends on architecture)
                      
                      ; load-default-script-file = yes
                      ; default-script-file = /etc/pulse/default.pa
                      
                      ; log-target = auto
                      ; log-level = notice
                      ; log-meta = no
                      ; log-time = no
                      ; log-backtrace = 0
                      
                      resample-method = speex-float-1
                      ; enable-remixing = yes
                      ; enable-lfe-remixing = no
                      
                      flat-volumes = no
                      
                      ; rlimit-fsize = -1
                      ; rlimit-data = -1
                      ; rlimit-stack = -1
                      ; rlimit-core = -1
                      ; rlimit-as = -1
                      ; rlimit-rss = -1
                      ; rlimit-nproc = -1
                      ; rlimit-nofile = 256
                      ; rlimit-memlock = -1
                      ; rlimit-locks = -1
                      ; rlimit-sigpending = -1
                      ; rlimit-msgqueue = -1
                      ; rlimit-nice = 31
                      ; rlimit-rtprio = 9
                      ; rlimit-rttime = 1000000
                      
                      ; default-sample-format = s16le
                      ; default-sample-rate = 44100
                      ; default-sample-channels = 2
                      ; default-channel-map = front-left,front-right
                      
                      default-fragments = 8
                      default-fragment-size-msec = 10
                      
                      ; enable-deferred-volume = yes
                      deferred-volume-safety-margin-usec = 1
                      ; deferred-volume-extra-delay-usec = 0
                      und hier meine default.pa

                      Code:
                      #!/usr/bin/pulseaudio -nF
                      #
                      # This file is part of PulseAudio.
                      #
                      # PulseAudio is free software; you can redistribute it and/or modify it
                      # under the terms of the GNU Lesser General Public License as published by
                      # the Free Software Foundation; either version 2 of the License, or
                      # (at your option) any later version.
                      #
                      # PulseAudio is distributed in the hope that it will be useful, but
                      # WITHOUT ANY WARRANTY; without even the implied warranty of
                      # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
                      # General Public License for more details.
                      #
                      # You should have received a copy of the GNU Lesser General Public License
                      # along with PulseAudio; if not, write to the Free Software Foundation,
                      # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
                      
                      # This startup script is used only if PulseAudio is started per-user
                      # (i.e. not in system mode)
                      
                      .nofail
                      
                      ### Load something into the sample cache
                      #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
                      #load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
                      #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
                      #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
                      
                      .fail
                      
                      ### Automatically restore the volume of streams and devices
                      load-module module-device-restore
                      load-module module-stream-restore
                      load-module module-card-restore
                      
                      ### Automatically augment property information from .desktop files
                      ### stored in /usr/share/application
                      load-module module-augment-properties
                      
                      ### Load audio drivers statically
                      ### (it's probably better to not load these drivers manually, but instead
                      ### use module-udev-detect -- see below -- for doing this automatically)
                      #load-module module-alsa-sink
                      #load-module module-alsa-source device=hw:1,0
                      #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
                      #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
                      #load-module module-null-sink
                      #load-module module-pipe-sink
                      
                      ### 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/hal 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
                      .fail
                      .endif
                      
                      ### Automatically load driver modules for Bluetooth hardware
                      .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
                      
                      ### Network access (may be configured with paprefs, so leave this commented
                      ### here if you plan to use paprefs)
                      #load-module module-esound-protocol-tcp
                      #load-module module-native-protocol-tcp
                      #load-module module-zeroconf-publish
                      
                      ### Load the RTP receiver module (also configured via paprefs, see above)
                      #load-module module-rtp-recv
                      
                      ### Load the RTP sender module (also configured via paprefs, see above)
                      #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
                      #load-module module-rtp-send source=rtp.monitor
                      
                      ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
                      ### Please keep in mind that the modules configured by paprefs might conflict with manually
                      ### loaded modules.
                      .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
                      load-module module-console-kit
                      .endif
                      
                      ### Enable positioned event sounds
                      load-module module-position-event-sounds
                      
                      ### Cork music streams when a phone stream is active
                      #load-module module-cork-music-on-phone
                      
                      ### Modules to allow autoloading of filters (such as echo cancellation)
                      ### on demand. module-filter-heuristics tries to determine what filters
                      ### make sense, and module-filter-apply does the heavy-lifting of
                      ### loading modules and rerouting streams.
                      load-module module-filter-heuristics
                      load-module module-filter-apply
                      
                      ### Load DBus protocol
                      #.ifexists module-dbus-protocol.so
                      #load-module module-dbus-protocol
                      #.endif
                      
                      # X11 modules should not be started from default.pa so that one daemon
                      # can be shared by multiple sessions.
                      
                      ### Load X11 bell module
                      #load-module module-x11-bell sample=bell-windowing-system
                      
                      ### Register ourselves in the X11 session manager
                      #load-module module-x11-xsmp
                      
                      ### Publish connection data in the X11 root window
                      #.ifexists module-x11-publish.so
                      #.nofail
                      #load-module module-x11-publish
                      #.fail
                      #.endif
                      
                      load-module module-switch-on-port-available
                      
                      ### Make some devices default
                      #set-default-sink output
                      #set-default-source input
                      Was muss ich denn nun in der default.pa ändern?

                      Gruß Norbert

                      Kommentar


                        #56
                        Hi

                        Also schau erst mal dass der alsa läuft. Bevor du mit pulse weitermachst. Asound.conf sieht ok aus.
                        Kannst du mit mpg 123 auf das PCM device spielen ohne dass pulseaudio läuft?
                        Lass mal in der daemon.conf alles auskommentiert bis auf den daemonize.
                        Alsa restart sieht komisch aus. Machst du dass als root? hast du die gruppen mitgliedschaften gesetzt? root und dein user zur audio-gruppe hinzugefügt?

                        Gruß


                        Gesendet von meinem A500 mit Tapatalk 2

                        Kommentar


                          #57
                          @norbert: das Problem ist: das kann man bei unbekannter HW schlicht nicht
                          ("ich habe eine interne und optional externe USB 7.1") - na was nun.. Welche ist die erste, ...

                          Unter Windows gehen solche spielchen wie eine 7.1 Soundkarte auf 3x2.0 Kanäle aufzuteilen und mit 3 Playern dann noch sep. anzuspielen eher garnicht, unter Linux schon, aber dann muss man halt in die Details..
                          Das (neu)laden der alsa-module halte ich für überflüssig..

                          Makki
                          EIB/KNX & WireGate & HS3, Russound,mpd,vdr,DM8000, DALI, DMX
                          -> Bitte KEINE PNs!

                          Kommentar


                            #58
                            @vlamers: Alsa reload mache ich als root (also in Kombination mit sudo), da ich sonst nur Fehlermeldungen erhalte. weitere Rechte habe ich noch nicht gesetzt.
                            Wenn Du mir jetzt noch sagst, wie ich feststellen kann ob pulse läuft oder nicht und mit welchem Befehl ich auf ein PCM zugreifen kann?! Sorry, aber ich habe von diesen Sachen überhaupt keine Ahnung!

                            @makki: die interne Soundkarte habe ich im Bios deaktiviert. Also habe ich nur noch die Logilink Soundkarte extern über USB: Die habe ich mir extra besorgt, da die hier anscheinend von mehreren eingesetzt wird.

                            Code:
                            nghtpcss@Silverstone:~$ aplay -l
                            **** Liste der Hardware-Geräte (PLAYBACK) ****
                            Karte 1: Device [USB Sound Device], Gerät 0: USB Audio [USB Audio]
                              Sub-Geräte: 1/1
                              Sub-Gerät #0: subdevice #0
                            nghtpcss@Silverstone:~$ lsusb
                            Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
                            Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
                            Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
                            Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
                            Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
                            Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
                            Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
                            Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
                            Bus 001 Device 002: ID 05e3:070e Genesys Logic, Inc. USB 2.0 Card Reader
                            Bus 004 Device 002: ID 15c2:0038 SoundGraph Inc. GD01 MX LCD Display/IR Receiver
                            Bus 006 Device 002: ID 0408:3001 Quanta Computer, Inc. Optical Touch Screen
                            [COLOR=Red]Bus 007 Device 002: ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device[/COLOR]
                            Bus 008 Device 002: ID 046d:c046 Logitech, Inc. RX1000 Laser Mouse
                            Bus 008 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
                            nghtpcss@Silverstone:~$
                            Gruß Norbert

                            Kommentar


                              #59
                              Ups sorry wusst ich nicht.

                              Also pulseaudio beenden mit:
                              Code:
                              pulseaudio -k
                              Oder
                              Code:
                              killall pulseaudio
                              je nachdem ob er als Daemon oder im System Mode läuft.
                              starten per init script. Aber dass dürfte auch alles in den Code Schnippseln stehen.

                              Probier mal folgendes:

                              - pulseaudio beenden
                              - und dann mit mpg123 ein mp3 file abspielen
                              Code:
                              mpg123 -a (dein_PCM_name) (pfad_und_name.mp3)
                              wenn dann musik kommt ist die asound.conf erstmal in ordnung und du kannst mit pulseaudio weiter machen.

                              Gruß

                              Gesendet von meinem A500 mit Tapatalk 2

                              Kommentar


                                #60
                                Hallo vlamers,

                                vielen Dank für die Hilfe!
                                Die mp3-Datei bekomme ich abgespielt!

                                Also geht es nun weiter mit pulseaudio. Auch da habe ich wieder das Problem mit Linux. Wie erkenne ich, ob pulseaudio als Daemon oder im System-Mode läuft. Und wie starte ich dieses Init-Script?
                                Die Dateien default.pa und system.pa sind beide vorhanden.
                                Kann ich Deine default.pa aus den Code-Schnipseln übernehmen oder muss ich meine vorhandene Datei abändern? Und wenn ich abändern muss, dann wie?

                                Gruß Norbert

                                Kommentar

                                Lädt...
                                X