Bug#671383: pulseaudio: module-udev-detect fails to find the soundcard (hence dummy output aka no sound)

r.ductor r.ductor at gmail.com
Thu May 3 17:05:25 UTC 2012


Package: pulseaudio
Version: 1.1-3
Severity: important

Dear Maintainer,
 
Problem: out-of the box pulseaudio gives a "dummy output" in Kmix aka no sound

Diagnostics:
I think that there is a problem with the start-up execution of the module-udev-detect.
I cannot say if it is the timing when the module is executed, or the module itself.

Executing

pkill pulse ; sleep 10 ; pulseaudio -vvvv 

gives back sound.

The manual fix below gives an apparently working pulseaudio, and explains why the problem concerns module-udev-detect.

This bug is related with

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551498

up to you to decide if to merge or not.

Good luck
Ric

### (Dirty) manual fix ###

manually load the sound card that for me happens to be card 0 and disable theloading of module-udev-detect

~# diff _etc_pulse_default.pa_original /etc/pulse/default.pa 
44,45c44,45
< #load-module module-alsa-sink
< #load-module module-alsa-source device=hw:1,0
---
> load-module module-alsa-sink   
> load-module module-alsa-source device=hw:0
53c53
< load-module module-udev-detect
---
> #load-module module-udev-detect

The following to activate debugging output

~# diff _etc_pulse_daemon.conf_original /etc/pulse/daemon.conf
48,49c48,50
< ; log-target = auto
< ; log-level = notice
---
> ; log-target = syslog
> ; log-level = device
> ; log-time = yes
~#

Sound is back

~$  pacmd list-sinks
Welcome to PulseAudio! Use "help" for usage information.
>>> 1 sink(s) available.
  * index: 0
        name: <alsa_output.default>
        driver: <module-alsa-sink.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 9950
        volume: 0: 100% 1: 100%
                0: 0.00 dB 1: 0.00 dB
                balance 0.00
        base volume: 100%
                     0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s32le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 170.67 ms
        module: 4
        properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "AD198x Analog"
                alsa.id = "AD198x Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xfebfc000 irq 46"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.name = "82801I (ICH9 Family) HD Audio Controller"
                device.form_factor = "internal"
                device.string = "default"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "8192"
                device.access_mode = "mmap+timer"
                device.description = "Internal Audio"
                device.icon_name = "audio-card-pci"

~$ pacmd list-sources
Welcome to PulseAudio! Use "help" for usage information.
>>> 2 source(s) available.
    index: 0
        name: <alsa_output.default.monitor>
        driver: <module-alsa-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 1000
        volume: 0: 100% 1: 100%
                0: 0.00 dB 1: 0.00 dB
                balance 0.00
        base volume: 100%
                     0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 0 KiB
        sample spec: s32le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 170.67 ms
        monitor_of: 0
        module: 4
        properties:
                device.description = "Monitor of Internal Audio"
                device.class = "monitor"
                device.icon_name = "audio-input-microphone"
  * index: 1
        name: <alsa_input.hw_0>
        driver: <module-alsa-source.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 9950
        volume: 0: 100% 1: 100%
                0: 0.00 dB 1: 0.00 dB
                balance 0.00
        base volume: 100%
                     0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
        module: 5
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "AD198x Analog"
                alsa.id = "AD198x Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xfebfc000 irq 46"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.name = "82801I (ICH9 Family) HD Audio Controller"
                device.form_factor = "internal"
                device.string = "hw:0"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.description = "Internal Audio"
                device.icon_name = "audio-input-microphone-pci"







*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pulseaudio depends on:
ii  adduser             3.113+nmu1
ii  consolekit          0.4.5-3
ii  libasound2          1.0.25-2
ii  libasound2-plugins  1.0.25-1+b1
ii  libc6               2.13-27
ii  libcap2             1:2.22-1
ii  libdbus-1-3         1.4.18-1
ii  libfftw3-3          3.3-1
ii  libice6             2:1.0.7-2
ii  libltdl7            2.4.2-1
ii  liborc-0.4-0        1:0.4.16-1
ii  libpulse0           1.1-3
ii  libsamplerate0      0.1.8-4
ii  libsm6              2:1.2.0-2
ii  libsndfile1         1.0.25-4
ii  libspeexdsp1        1.2~rc1-3
ii  libtdb1             1.2.9-4+b1
ii  libudev0            175-3.1
ii  libx11-6            2:1.4.4-4
ii  libx11-xcb1         2:1.4.4-4
ii  libxcb1             1.8.1-1
ii  libxtst6            2:1.2.0-4
ii  lsb-base            3.2+Debian31
ii  udev                175-3.1

Versions of packages pulseaudio recommends:
ii  gstreamer0.10-pulseaudio  0.10.31-1
ii  pulseaudio-esound-compat  1.1-3
ii  pulseaudio-module-x11     1.1-3
ii  rtkit                     0.10-2

Versions of packages pulseaudio suggests:
ii  paman             <none>
ii  paprefs           <none>
ii  pavucontrol       0.99.2-1
ii  pavumeter         <none>
ii  pulseaudio-utils  1.1-3

-- Configuration Files:
/etc/pulse/daemon.conf changed:
; daemonize = no
; 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-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 = syslog
; log-level = device
; log-time = yes
; log-meta = no
; log-time = no
; log-backtrace = 0
; resample-method = speex-float-3
; enable-remixing = yes
; enable-lfe-remixing = no
; flat-volumes = yes
; 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 = 4
; default-fragment-size-msec = 25
; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0

/etc/pulse/default.pa changed:
..nofail
..fail
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-alsa-sink   
load-module module-alsa-source device=hw:0
..ifexists module-udev-detect.so
..else
load-module module-detect
..endif
..ifexists module-jackdbus-detect.so
..nofail
load-module module-jackdbus-detect
..fail
..endif
..ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
..endif
..ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
..endif
load-module module-native-protocol-unix
..ifexists module-gconf.so
..nofail
load-module module-gconf
..fail
..endif
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
..ifexists module-console-kit.so
load-module module-console-kit
..endif
load-module module-position-event-sounds
load-module module-cork-music-on-phone
load-module module-filter-heuristics
load-module module-filter-apply
..ifexists module-dbus-protocol.so
load-module module-dbus-protocol
..endif


-- no debconf information





More information about the pkg-pulseaudio-devel mailing list