Page 18 of 18 FirstFirst ... 8161718
Results 171 to 180 of 180

Thread: HOWTO: Surround sound in pulseaudio

  1. #171
    Join Date
    Feb 2007
    Beans
    35

    Re: HOWTO: Surround sound in pulseaudio

    At one point I had surround sound working using this tutorial. I have creative elite pro x-fi sound card.

    But every time a linux header update comes out I have to reinstall my sound drivers. The X-fi driver 1.0 never worked for me and will not install properly. However, the 1.03 drivers do. They provide all the channels in the mixer but in sound preferences are separate. By changing them I can get sound to come out of the individual speakers.

    But this last update broke everything. Now I'm back to 2 channel. I've always managed to repeat the install steps and get surround working again. But this time is different.

    So here is the output of a few things. Let me know if you see anything i need to change.

    Code:
    ~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: XFi [Creative X-Fi], device 0: ctxfi [Front/WaveIn]
      Subdevices: 8/8
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
      Subdevice #3: subdevice #3
      Subdevice #4: subdevice #4
      Subdevice #5: subdevice #5
      Subdevice #6: subdevice #6
      Subdevice #7: subdevice #7
    card 0: XFi [Creative X-Fi], device 1: ctxfi [Surround]
      Subdevices: 8/8
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
      Subdevice #3: subdevice #3
      Subdevice #4: subdevice #4
      Subdevice #5: subdevice #5
      Subdevice #6: subdevice #6
      Subdevice #7: subdevice #7
    card 0: XFi [Creative X-Fi], device 2: ctxfi [Center/LFE]
      Subdevices: 8/8
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
      Subdevice #3: subdevice #3
      Subdevice #4: subdevice #4
      Subdevice #5: subdevice #5
      Subdevice #6: subdevice #6
      Subdevice #7: subdevice #7
    card 0: XFi [Creative X-Fi], device 3: ctxfi [Side]
      Subdevices: 8/8
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
      Subdevice #3: subdevice #3
      Subdevice #4: subdevice #4
      Subdevice #5: subdevice #5
      Subdevice #6: subdevice #6
      Subdevice #7: subdevice #7
    card 0: XFi [Creative X-Fi], device 4: ctxfi [IEC958 Non-audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    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 a commented out.  Use either ; or # for
    ## commenting.
    
    ; daemonize = no
    ; fail = yes
    ; disallow-module-loading = no
    ; disallow-exit = no
    ; use-pid-file = yes
    ; system-instance = no
    ; disable-shm = no
    ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
    
    ; high-priority = yes
    ; nice-level = -11
    
    ; realtime-scheduling = no
    ; realtime-priority = 5
    
    ; exit-idle-time = 20
    ; module-idle-time = 20
    ; scache-idle-time = 20
    
    ; dl-search-path = (depends on architecture)
    
    ; load-default-script-file = yes
    ; default-script-file = 
    
    ; log-target = auto
    ; log-level = notice
    
    resample-method = src-linear
    ; disable-remixing = no
    ; disable-lfe-remixing = yes
    
    ; no-cpu-limit = 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-rtttime = 1000000
    
    ; default-sample-format = s16le
    ; default-sample-rate = 44100
    ; default-sample-channels = 6
    
    default-fragments = 8
    default-fragment-size-msec = 10
    Default.pa

    Code:
    ## Automatically restore the volume of streams and devices
    load-module module-device-restore
    load-module module-stream-restore
    
    ### Load audio drivers statically (it's probably better to not load
    ### these drivers manually, but instead use module-hal-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-hal-detect.so
    load-module module-hal-detect tsched=0
    .else
    ### Alternatively use the static hardware detection module (for systems that
    ### lack HAL support)
    load-module module-detect
    .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 reciever 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=6 rate=44100 description="RTP Multicast Sink"
    #load-module module-rtp-send source=rtp.monitor
    
    ### 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
    
    ### If autoexit on idle is enabled we want to make sure we only quit
    ### when no local session needs us anymore.
    load-module module-console-kit
    
    ### Enable positioned event sounds
    load-module module-position-event-sounds
    
    # 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
    
    ### Make some devices default
    #set-default-sink output
    #set-default-source input
    But here is the weird part.. speaker test output

    Code:
    speaker-test -Dpulse -c6 -twav
    
    speaker-test 1.0.20
    
    Playback device is pulse
    Stream parameters are 48000Hz, S16_LE, 6 channels
    WAV file(s)
    ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM pulse
    Playback open error: -2,No such file or directory
    ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM pulse
    Playback open error: -2,No such file or directory
    ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM pulse
    Playback open error: -2,No such file or directory
    ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM pulse
    Playback open error: -2,No such file or directory
    The speaker test used to work... before the last update. It is getting annoying that I have to reinstall the sound drivers every time a header update comes out... but never so annoying until now, when repeating the steps I've done time and time again didn't work.

    Hopefully ubuntu will get better support for sound in the near future.

  2. #172
    Join Date
    Oct 2006
    Location
    Second star to the right
    Beans
    607
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Surround sound in pulseaudio

    Hey all.

    First off, thanks for this. It's a good thread, and thanks to the steps outlined here, I have two channels working, not just one!

    Problem is, I have a 5.1 setup.

    I tried the first method, but the test keeps triggering the rear left and center speakers. I have no idea why. I think it's all plugged in correctly, although I've no Windows install to test it on.

    My 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 a commented out.  Use either ; or # for
    ## commenting.
    
    ; daemonize = no
    ; fail = yes
    ; disallow-module-loading = no
    ; disallow-exit = no
    ; use-pid-file = yes
    ; system-instance = no
    ; disable-shm = no
    ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
    
    ; high-priority = yes
    ; nice-level = -11
    
    ; realtime-scheduling = no
    ; realtime-priority = 5
    
    ; exit-idle-time = 20
    ; module-idle-time = 20
    ; scache-idle-time = 20
    
    ; dl-search-path = (depends on architecture)
    
    ; load-default-script-file = yes
    ; default-script-file = 
    
    ; log-target = auto
    ; log-level = notice
    
    resample-method = src-linear
    ; disable-remixing = no
    ; disable-lfe-remixing = yes
    
    ; no-cpu-limit = 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-rtttime = 1000000
    
    ; default-sample-format = s16le
    ; default-sample-rate = 44100
    default-sample-channels = 6
    
    default-fragments = 8
    default-fragment-size-msec = 10
    My 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
    load-sample-dir-lazy /usr/share/sounds/ubuntu/stereo
    
    .fail
    
    ### 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 suspend sinks/sources that become idle for too long
    load-module module-suspend-on-idle
    
    ### Automatically restore the volume of streams and devices
    load-module module-device-restore
    load-module module-stream-restore
    
    ### Load audio drivers statically (it's probably better to not load
    ### these drivers manually, but instead use module-hal-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-hal-detect.so
    load-module module-hal-detect tsched=0
    .else
    ### Alternatively use the static hardware detection module (for systems that
    ### lack HAL support)
    load-module module-detect
    .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 reciever 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 description="RTP Multicast Sink"
    #load-module module-rtp-send source=rtp.monitor
    
    ### 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
    
    ### If autoexit on idle is enabled we want to make sure we only quit
    ### when no local session needs us anymore.
    load-module module-console-kit
    
    ### Enable positioned event sounds
    load-module module-position-event-sounds
    
    # 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
    
    ### Make some devices default
    #set-default-sink output
    #set-default-source input
    Result of aplay -L && aplay -l:

    Code:
    front:CARD=NVidia,DEV=0
        HDA NVidia, ALC883 Analog
        Front speakers
    surround40:CARD=NVidia,DEV=0
        HDA NVidia, ALC883 Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=NVidia,DEV=0
        HDA NVidia, ALC883 Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=NVidia,DEV=0
        HDA NVidia, ALC883 Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=NVidia,DEV=0
        HDA NVidia, ALC883 Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=NVidia,DEV=0
        HDA NVidia, ALC883 Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=NVidia,DEV=0
        HDA NVidia, ALC883 Digital
        IEC958 (S/PDIF) Digital Audio Output
    null
        Discard all samples (playback) or generate zero samples (capture)
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 0: ALC883 Analog [ALC883 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 1: ALC883 Digital [ALC883 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    Output of pulseaudio -k && pulseaudio -vv:

    Code:
    I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
    I: caps.c: Dropping root privileges.
    I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
    N: main.c: Called SUID root and real-time and/or high-priority scheduling was requested in the configuration. However, we lack the necessary privileges:
    N: main.c: We are not in group 'pulse-rt', PolicyKit refuse to grant us the requested privileges and we have no increase RLIMIT_NICE/RLIMIT_RTPRIO resource limits.
    N: main.c: For enabling real-time/high-priority scheduling please acquire the appropriate PolicyKit privileges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
    I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
    I: caps.c: Dropping root privileges.
    I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
    D: main.c: Started as real root: no, suid root: yes
    I: main.c: PolicyKit refuses acquire-high-priority privilege.
    N: main.c: Called SUID root and real-time and/or high-priority scheduling was requested in the configuration. However, we lack the necessary privileges:
    N: main.c: We are not in group 'pulse-rt', PolicyKit refuse to grant us the requested privileges and we have no increase RLIMIT_NICE/RLIMIT_RTPRIO resource limits.
    N: main.c: For enabling real-time/high-priority scheduling please acquire the appropriate PolicyKit privileges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
    I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
    I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
    D: main.c: Can realtime: no, can high-priority: no
    D: main.c: Can realtime: no, can high-priority: no
    I: main.c: This is PulseAudio 0.9.14
    D: main.c: Compilation host: x86_64-pc-linux-gnu
    D: main.c: Compilation CFLAGS: -g -O2 -g -Wall -O3 -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Wvla -Wno-overlength-strings -Wconversion -Wundef -Wformat -Wlogical-op -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -ffast-math
    D: main.c: Running on host: Linux x86_64 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009
    I: main.c: Page size is 4096 bytes
    D: main.c: Compiled with Valgrind support: no
    D: main.c: Running in valgrind mode: no
    D: main.c: Optimized build: yes
    I: main.c: Machine ID is cef871a904afdba9b4db20354aab8d50.
    I: main.c: Using runtime directory /home/benji/.pulse/cef871a904afdba9b4db20354aab8d50:runtime.
    I: main.c: Using state directory /home/benji/.pulse.
    I: main.c: Running in system mode: no
    I: main.c: Fresh high-resolution timers available! Bon appetit!
    D: memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
    D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-gconf.so': success
    I: module.c: Loaded "module-gconf" (index: #0; argument: "").
    I: module.c: Loaded "module-suspend-on-idle" (index: #1; argument: "").
    I: module-device-restore.c: Sucessfully opened database file '/home/benji/.pulse/cef871a904afdba9b4db20354aab8d50:device-volumes.x86_64-pc-linux-gnu.gdbm'.
    I: module.c: Loaded "module-device-restore" (index: #2; argument: "").
    I: module-stream-restore.c: Sucessfully opened database file '/home/benji/.pulse/cef871a904afdba9b4db20354aab8d50:stream-volumes.x86_64-pc-linux-gnu.gdbm'.
    I: module.c: Loaded "module-stream-restore" (index: #3; argument: "").
    D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
    I: module-hal-detect.c: Trying capability alsa
    D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer
    D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_sequencer
    D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_26c_sound_card_0_alsa_capture_2
    D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_26c_sound_card_0_alsa_playback_1
    D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_26c_sound_card_0_alsa_capture_1
    D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0 tsched=0'
    D: alsa-util.c: Trying surround51:0 with SND_PCM_NO_AUTO_FORMAT ...
    I: module-alsa-sink.c: Successfully opened device surround51:0.
    I: module-alsa-sink.c: Successfully enabled mmap() mode.
    I: (alsa-lib)control.c: Invalid CTL surround51:0
    I: alsa-util.c: Unable to attach to mixer surround51:0: No such file or directory
    I: alsa-util.c: Successfully attached to mixer 'hw:0'
    I: alsa-util.c: Using mixer control "Master".
    I: module-device-restore.c: Restoring volume for sink alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0.
    I: module-device-restore.c: Restoring mute state for sink alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0.
    I: sink.c: Created sink 0 "alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0" with sample spec s16le 6ch 44100Hz and channel map front-left,front-right,rear-left,rear-right,front-center,lfe
    I: module-device-restore.c: Restoring volume for source alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0.monitor.
    I: module-device-restore.c: Restoring mute state for source alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0.monitor.
    I: source.c: Created source 0 "alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0.monitor" with sample spec s16le 6ch 44100Hz and channel map front-left,front-right,rear-left,rear-right,front-center,lfe
    I: module-alsa-sink.c: Using 8 fragments of size 5376 bytes, buffer time is 81.27ms
    D: module-alsa-sink.c: hwbuf_unused=0
    D: module-alsa-sink.c: setting avail_min=1
    I: module-alsa-sink.c: Volume ranges from 0 to 31.
    I: module-alsa-sink.c: Volume ranges from -46.50 dB to 0.00 dB.
    I: alsa-util.c: ALSA device lacks independant volume controls for each channel.
    I: module-alsa-sink.c: Using hardware volume control. Hardware dB scale supported.
    D: alsa-util.c: snd_pcm_dump():
    D: alsa-util.c: Soft volume PCM
    D: alsa-util.c: Control: PCM Playback Volume
    D: alsa-util.c: min_dB: -51
    D: alsa-util.c: max_dB: 0
    D: alsa-util.c: resolution: 256
    D: alsa-util.c: Its setup is:
    D: alsa-util.c:   stream       : PLAYBACK
    D: alsa-util.c:   access       : MMAP_INTERLEAVED
    D: alsa-util.c:   format       : S16_LE
    D: alsa-util.c:   subformat    : STD
    D: alsa-util.c:   channels     : 6
    D: alsa-util.c:   rate         : 44100
    D: alsa-util.c:   exact rate   : 44100 (44100/1)
    D: alsa-util.c:   msbits       : 16
    D: alsa-util.c:   buffer_size  : 3584
    D: alsa-util.c:   period_size  : 448
    D: alsa-util.c:   period_time  : 10158
    D: alsa-util.c:   tstamp_mode  : ENABLE
    D: alsa-util.c:   period_step  : 1
    D: alsa-util.c:   avail_min    : 448
    D: alsa-util.c:   period_event : 0
    D: alsa-util.c:   start_threshold  : -1
    D: alsa-util.c:   stop_threshold   : 8070450532247928832
    D: alsa-util.c:   silence_threshold: 0
    D: alsa-util.c:   silence_size : 0
    D: alsa-util.c:   boundary     : 8070450532247928832
    D: alsa-util.c: Slave: Hardware PCM card 0 'HDA NVidia' device 0 subdevice 0
    D: alsa-util.c: Its setup is:
    D: alsa-util.c:   stream       : PLAYBACK
    D: alsa-util.c:   access       : MMAP_INTERLEAVED
    D: alsa-util.c:   format       : S16_LE
    D: alsa-util.c:   subformat    : STD
    D: alsa-util.c:   channels     : 6
    D: alsa-util.c:   rate         : 44100
    D: alsa-util.c:   exact rate   : 44100 (44100/1)
    D: alsa-util.c:   msbits       : 16
    D: alsa-util.c:   buffer_size  : 3584
    D: alsa-util.c:   period_size  : 448
    D: alsa-util.c:   period_time  : 10158
    D: alsa-util.c:   tstamp_mode  : ENABLE
    D: alsa-util.c:   period_step  : 1
    D: alsa-util.c:   avail_min    : 448
    D: alsa-util.c:   period_eve
    D: module-alsa-sink.c: Thread starting up
    D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
    D: module-alsa-sink.c: Requested volume: 0:  52% 1:  52% 2:  52% 3:  52% 4:  52% 5:  52%
    D: module-alsa-sink.c: Got hardware volume: 0:  52% 1:  52% 2:  52% 3:  52% 4:  52% 5:  52%
    D: module-alsa-sink.c: Calculated software volume: 0: 100% 1: 100% 2: 100% 3: 100% 4: 100% 5: 100%
    I: module-alsa-sink.c: Starting playback.
    D: module-suspend-on-idle.c: Source alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0.monitor becomes idle.
    D: module-suspend-on-idle.c: Sink alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0 becomes idle.
    I: module.c: Loaded "module-alsa-sink" (index: #4; argument: "device_id=0 sink_name=alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0 tsched=0").
    D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0 tsched=0'
    D: alsa-util.c: Trying surround51:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying surround51:0 without SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround51:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround51:0 without SND_PCM_NO_AUTO_FORMAT ...
    I: alsa-util.c: PCM device plug:surround51:0 refused our hw parameters: Invalid argument
    D: alsa-util.c: Trying surround71:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying surround71:0 without SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround71:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround71:0 without SND_PCM_NO_AUTO_FORMAT ...
    I: alsa-util.c: PCM device plug:surround71:0 refused our hw parameters: Invalid argument
    D: alsa-util.c: Trying surround50:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying surround50:0 without SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround50:0 with SND_PCM_NO_AUTO_FORMAT ...
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    D: alsa-util.c: Trying plug:surround50:0 without SND_PCM_NO_AUTO_FORMAT ...
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: PCM device plug:surround50:0 refused our hw parameters: Invalid argument
    D: alsa-util.c: Trying surround41:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying surround41:0 without SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround41:0 with SND_PCM_NO_AUTO_FORMAT ...
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    D: alsa-util.c: Trying plug:surround41:0 without SND_PCM_NO_AUTO_FORMAT ...
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: PCM device plug:surround41:0 refused our hw parameters: Invalid argument
    D: alsa-util.c: Trying surround40:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying surround40:0 without SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround40:0 with SND_PCM_NO_AUTO_FORMAT ...
    D: alsa-util.c: Trying plug:surround40:0 without SND_PCM_NO_AUTO_FORMAT ...
    I: alsa-util.c: PCM device plug:surround40:0 refused our hw parameters: Invalid argument
    D: alsa-util.c: Trying front:0 with SND_PCM_NO_AUTO_FORMAT ...
    I: module-alsa-source.c: Successfully opened device front:0.
    I: module-alsa-source.c: Successfully enabled mmap() mode.
    I: (alsa-lib)control.c: Invalid CTL front:0
    I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
    I: alsa-util.c: Successfully attached to mixer 'hw:0'
    I: alsa-util.c: Using mixer control "Capture".
    I: module-device-restore.c: Restoring volume for source alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0.
    I: module-device-restore.c: Restoring mute state for source alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0.
    I: source.c: Created source 1 "alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
    I: module-alsa-source.c: Using 8 fragments of size 1792 bytes, buffer time is 81.27ms
    D: module-alsa-source.c: hwbuf_unused=0
    D: module-alsa-source.c: setting avail_min=1
    I: module-alsa-source.c: Volume ranges from 0 to 31.
    I: module-alsa-source.c: Volume ranges from -12.00 dB to 34.50 dB.
    I: alsa-util.c: All 2 channels can be mapped to mixer channels.
    I: module-alsa-source.c: Using hardware volume control. Hardware dB scale supported.
    D: alsa-util.c: snd_pcm_dump():
    D: alsa-util.c: Soft volume PCM
    D: alsa-util.c: Control: PCM Playback Volume
    D: alsa-util.c: min_dB: -51
    D: alsa-util.c: max_dB: 0
    D: alsa-util.c: resolution: 256
    D: alsa-util.c: Its setup is:
    D: alsa-util.c:   stream       : CAPTURE
    D: alsa-util.c:   access       : MMAP_INTERLEAVED
    D: alsa-util.c:   format       : S16_LE
    D: alsa-util.c:   subformat    : STD
    D: alsa-util.c:   channels     : 2
    D: alsa-util.c:   rate         : 44100
    D: alsa-util.c:   exact rate   : 44100 (44100/1)
    D: alsa-util.c:   msbits       : 16
    D: alsa-util.c:   buffer_size  : 3584
    D: alsa-util.c:   period_size  : 448
    D: alsa-util.c:   period_time  : 10158
    D: alsa-util.c:   tstamp_mode  : ENABLE
    D: alsa-util.c:   period_step  : 1
    D: alsa-util.c:   avail_min    : 448
    D: alsa-util.c:   period_event : 0
    D: alsa-util.c:   start_threshold  : -1
    D: alsa-util.c:   stop_threshold   : 8070450532247928832
    D: alsa-util.c:   silence_threshold: 0
    D: alsa-util.c:   silence_size : 0
    D: alsa-util.c:   boundary     : 8070450532247928832
    D: alsa-util.c: Slave: Hardware PCM card 0 'HDA NVidia' device 0 subdevice 0
    D: alsa-util.c: Its setup is:
    D: alsa-util.c:   stream       : CAPTURE
    D: alsa-util.c:   access       : MMAP_INTERLEAVED
    D: alsa-util.c:   format       : S16_LE
    D: alsa-util.c:   subformat    : STD
    D: alsa-util.c:   channels     : 2
    D: alsa-util.c:   rate         : 44100
    D: alsa-util.c:   exact rate   : 44100 (44100/1)
    D: alsa-util.c:   msbits       : 16
    D: alsa-util.c:   buffer_size  : 3584
    D: alsa-util.c:   period_size  : 448
    D: alsa-util.c:   period_time  : 10158
    D: alsa-util.c:   tstamp_mode  : ENABLE
    D: alsa-util.c:   period_step  : 1
    D: alsa-util.c:   avail_min    : 448
    D: alsa-util.c:   period_event
    D: module-alsa-source.c: Thread starting up
    D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
    D: module-alsa-source.c: Requested volume: 0:  22% 1:  22%
    D: module-alsa-source.c: Got hardware volume: 0:  25% 1:  25%
    D: module-alsa-source.c: Calculated software volume: 0:  97% 1:  97%
    D: module-suspend-on-idle.c: Source alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0 becomes idle.
    I: module.c: Loaded "module-alsa-source" (index: #5; argument: "device_id=0 source_name=alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0 tsched=0").
    D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_10de_26c_sound_card_0_alsa_control__1
    I: module-hal-detect.c: Loaded 2 modules.
    I: module.c: Loaded "module-hal-detect" (index: #6; argument: "tsched=0").
    D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
    I: module.c: Loaded "module-esound-protocol-unix" (index: #7; argument: "").
    I: module.c: Loaded "module-native-protocol-unix" (index: #8; argument: "").
    I: module-default-device-restore.c: Restored default sink 'alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0'.
    D: core-subscribe.c: Dropped redundant event due to change event.
    I: module-default-device-restore.c: Restored default source 'alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0'.
    I: module.c: Loaded "module-default-device-restore" (index: #9; argument: "").
    I: module.c: Loaded "module-rescue-streams" (index: #10; argument: "").
    I: module.c: Loaded "module-always-sink" (index: #11; argument: "").
    I: client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session1"
    D: module-console-kit.c: Added new session /org/freedesktop/ConsoleKit/Session1
    I: module.c: Loaded "module-console-kit" (index: #12; argument: "").
    I: module.c: Loaded "module-position-event-sounds" (index: #13; argument: "").
    I: main.c: Daemon startup complete.
    D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
    D: module-console-kit.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
    I: module-suspend-on-idle.c: Sink alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0 idle for too long, suspending ...
    I: module-alsa-sink.c: Device suspended...
    I: module-suspend-on-idle.c: Source alsa_output.pci_10de_26c_sound_card_0_alsa_playback_0.monitor idle for too long, suspending ...
    I: module-suspend-on-idle.c: Source alsa_input.pci_10de_26c_sound_card_0_alsa_capture_0 idle for too long, suspending ...
    I: module-alsa-source.c: Device suspended...
    HOLY CRAP THAT WAS LONG!

    Any ideas?
    I don't really mind, and it's starting to get to me.

  3. #173
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: HOWTO: Surround sound in pulseaudio

    Update 05/11/09: Attention everyone. This guide is now OUTDATED and no longer necessary. Configuring surround sound is now ridiculously easy in Ubuntu 9.10 (Karmic) - just go into the hardware tab in sound preferences, click the device to configure, then select a surround sound profile from the drop down box. There is NO NEED to use this guide at all any more!

    PLEASE .. I AM only A Learner . a screen shot would be nice


    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  4. #174
    Join Date
    Feb 2007
    Location
    Slovenia
    Beans
    251
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Surround sound in pulseaudio

    Quote Originally Posted by alexfish View Post
    Update 05/11/09: Attention everyone. This guide is now OUTDATED and no longer necessary. Configuring surround sound is now ridiculously easy in Ubuntu 9.10 (Karmic) - just go into the hardware tab in sound preferences, click the device to configure, then select a surround sound profile from the drop down box. There is NO NEED to use this guide at all any more!
    Except when it doesn't work, like in my case where PulseAudio doesn't detect surround mode.

  5. #175
    Join Date
    Apr 2009
    Beans
    23

    Re: HOWTO: Surround sound in pulseaudio

    Here's my question. In Jaunty, I had to disable Pulseaudio because I constantly had sound glitches/dropouts, especially when the system was running multiple programs at once. It was basically unusable.

    Is Karmic any better about this? I'm rather nervous about upgrading, because my system is basically stable now. But having disabled Pulseaudio, I can only have one program locking the sound stream at a time through Alsa, so it's quite annoying. Plus it would be excellent to see if my digital audio out might finally work (in Karmic). But ONLY if the Pulseaudio glitch problem (ironically caused by the "glitch-free audio" feature) is fixed.

  6. #176
    Join Date
    Mar 2008
    Location
    Carolina, Puerto Rico
    Beans
    190
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Surround sound in pulseaudio

    I changed mobos (after my post on page 14) and 9.10 gave me free scratching noises and what not (I havent tried an upgrade though, just the clean install) whereas in 9.04 I have perfect audio and surround. I used to have a dualboot setup so that whenever I needed to play something that didnt work on Ubuntu sound but now I dont have anymore.

    The only thing I would like to know how to do is.... how to setup a crossover setting so that the LFE only receives sound below 70hz, currently I even hear dialogues and other sounds (on both the center and sub). Another option that I had never thought about was to use a physical crossover or something that blocks those frequencies from showing up in the sub.

    BTW, I used to have a sound problem while playing 720p demos and found out that using xbmc I can play them without any noises like I would get from VLC. Is funny, I always kept that windows side because in there VLC played those 720p files without problems and also for watching hulu and getting 5.1 output, but I no longer have this problem. I still have it, just for games.

    And, btw, the sound applet in 9.10 is CONFUSING. You can raise your main volume over 100% but once you turn down the volume you have to manually (at least for me) get into the panel again to raise it up to over 100%. Wish they hadnt touched that!

    ELP
    HTPC: MSI FM2-A55M-E33 mobo, Amd A8-5600k APU, 4GB Kingston HyperX DDR3, 250GB, HDMI Video, Ubuntu 13.04, XBMC Media Center

  7. #177
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: HOWTO: Surround sound in pulseaudio

    Moved to Outdated Tutorials.

  8. #178
    Join Date
    Apr 2009
    Beans
    23

    Re: HOWTO: Surround sound in pulseaudio

    Quote Originally Posted by SR_ELPIRATA View Post
    The only thing I would like to know how to do is.... how to setup a crossover setting so that the LFE only receives sound below 70hz, currently I even hear dialogues and other sounds (on both the center and sub). Another option that I had never thought about was to use a physical crossover or something that blocks those frequencies from showing up in the sub.
    I would also like to know how to do this! Normally I just turn off the sub except when watching 5.1, because Jaunty cannot properly handle the bass in stereo signals. It just routes L+R to the sub channel, or something like that, full-frequency.

    This isn't really an "outdated tutorial" since I don't plan to update to 9.10 after reading about the sound problems people had with it... I think many others plan the same.

  9. #179
    Join Date
    Sep 2011
    Beans
    2

    Re: HOWTO: Surround sound in pulseaudio

    Hi, i have a problem, I attended dozens of tutorials to do to be heard 5.1 and I succeeded here have details about my board audio( http://i56.tinypic.com/209g1eb.png ), do you have any ideas how I could make them hear 5.1? Thank you.

  10. #180
    Join Date
    Feb 2007
    Beans
    35

    Re: HOWTO: Surround sound in pulseaudio

    Quote Originally Posted by bt.ionut View Post
    Hi, i have a problem, I attended dozens of tutorials to do to be heard 5.1 and I succeeded here have details about my board audio( http://i56.tinypic.com/209g1eb.png ), do you have any ideas how I could make them hear 5.1? Thank you.
    This thread died way back in 2009. I'd suggest starting a new thread (if one already doesn't exist) so others that have the same issue can refer to it.

    PM me the link once you've done that.

Page 18 of 18 FirstFirst ... 8161718

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •