[pulseaudio-tickets] [PulseAudio] #180: Can't play audio on multiple X sessions

PulseAudio trac-noreply at tango.0pointer.de
Wed Jan 16 13:29:48 PST 2008


#180: Can't play audio on multiple X sessions
--------------------------------+-------------------------------------------
  Reporter:  beejayzed          |       Owner:  lennart
      Type:  defect             |      Status:  new    
  Priority:  normal             |   Milestone:         
 Component:  module-hal-detect  |    Severity:  normal 
Resolution:                     |    Keywords:         
--------------------------------+-------------------------------------------
Changes (by TheFang):

  * component:  daemon => module-hal-detect

Comment:

 I've done some more research and it seems that PulseAudio tries to connect
 to a PulseAudio server on the current X server, but if that fails, it
 tries other options, and ends up with the PulseAudio server from the first
 X session (in this case, and that PulseAudio server only has a sink on the
 first X server)(from http://www.pulseaudio.org/wiki/FAQ, Question 18). So
 far for explaining why we get sound on the fist X server.

 If I run 'pulseaudio -vvv' I get the following output:
 {{{
 I: main.c: Page size is 4096 bytes
 I: main.c: Fresh high-resolution timers available! Bon appetit!
 D: cli-command.c: Checking for existance of '/usr/lib64/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_8086_27d8_alsa_playback_6
 D: module-hal-detect.c: Not loaded device
 /org/freedesktop/Hal/devices/pci_8086_27d8_alsa_capture_6
 D: module-hal-detect.c: Not loaded device
 /org/freedesktop/Hal/devices/pci_8086_27d8_alsa_playback_1
 D: module-hal-detect.c: Loading module-alsa-sink with arguments
 'device=hw:0 sink_name=alsa_output.pci_8086_27d8_alsa_playback_0'
 ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
 E: module-alsa-sink.c: Error opening PCM device hw:0: Onjuist apparaat
 E: module.c: Failed to load  module "module-alsa-sink" (argument:
 "device=hw:0 sink_name=alsa_output.pci_8086_27d8_alsa_playback_0"):
 initialization failed.
 D: module-hal-detect.c: Not loaded device
 /org/freedesktop/Hal/devices/pci_8086_27d8_alsa_playback_0
 D: module-hal-detect.c: Loading module-alsa-source with arguments
 'device=hw:0 source_name=alsa_input.pci_8086_27d8_alsa_capture_0'
 }}}
 It seems that the detection of the sound devices is going wrong. Running
 it as sudo, I get the exact same output, so it's not a permission problem.

 I'm at a loss as to why it won't detect the sound card correctly, is there
 some way to get more logging from module-hal-detect?

-- 
Ticket URL: <http://www.pulseaudio.org/ticket/180#comment:2>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list