Kodi Community Forum

Full Version: Is pulseaudio good, bad, or indifferent?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Try as I might, I can't get menu sounds and audio playback to work, it's either one or the other, with pre-Eden on Ubuntu 11.10. I've been going through all sorts of shenanigans but nothing has worked out for me yet. I'm using a GT430 and audio is being routed over HDMI to my receiver. Right now it's set up so DTS, DD and PCM are all getting passed to the receiver just fine.

I've found that if I change one setting in the pulse config file I can have menu sounds working, but then there's nothing I have found that makes audio playback work. In fact, I've run into issues where only root could see any audio devices via aplay, although xbmc running under my user account does play menu sounds.

I decided to compare my settings against XBMCFreak's latest live installation, and noticed that it doesn't even use Pulse. Since the only app that needs audio on this system is XBMC, do I even need Pulse Audio installed? Would I be better off without it, or is there some advantage to it?
Good! In fact, potentially awesome. But still a bit buggy. Any version below 1.0 shud be treated with caution (as shud any ALSA pre 1.0.24). However they're abt 5 good chaps, incl a Canonical employee, working on it vigorously so it's getting better every day. I've been messing abt with it for abt a year. I'm now on Ubuntu 11.10 x 32, and I've come down to always commenting out the UDEV auto detect features in default.pa and writing my own sink lines - that's what gets me 100pct reliability on selecting and combining the 5 audio outputs my HTPC has. I also use pavucontrol exclusively - never the gnome applet.

I use Audacious media player to test for valid "aplay -L" devices (valid=ones that give me sound) - it's gotta great output section, so u play music and quickly/easily select every Alsa output from a drop down list to test and I then write valid ones into default.pa.

If you're neither combining sinks/outputs, nor networking the sound on your HTPC then yu don't need Pulse - but I don't think there's any reason to uninstall it. XBMC (like Audacious) has the ability to just bypass it and talk directly to ALSA.

Cheers
T

PS I never bothered with system sounds...doan care.
Shud?

"Pulse audio is awesome, I mean it's not quite there yet but we're working on it really hard."

Is pretty much the same thing as when microsoft says

"The NEXT version of windows is going to be awesome. Stable and bug free. We're working really hard".

It's been a nightmare since it first was forced upon the world ages ago. I run XBMC on bare Debian and have just ever installed ALSA.
@darkscout

hehe....If there's one piece of software gteed to raise controversy then it's Pulseaudio. I started with it on Ubuntu 10.04 (think it was with Alsa 1.0.19?) and it was truly hopeless - hardly any features worked properly and I did my head in trying to make it work as promised. But it really has moved on.

Version 1.1 can be called reliable (really!) but I would reiterate about the need to set up your own sinks - UDEV auto detect only seems to get it right on very basic setups and so I assume many users are left 'soundless' - and simply scream at Pulse. However, setting up sinks takes a bit of time and knowledge and I understand not everyone wants to do that, or even expects to have to.

I agree that there's not much point of it in XBMC (though do I use it to combine analog outputs) but for general network audio use it's excellent...now.

T

BTW - I love your graph graphic, had me ROFL - can I steal it? I plan to add default.pa and smb.conf to it though SmileSmile
I've tried to set up a sink based on the information I've found for the 430, but the module fails to load the and the message gives me no details. When I do that, I gain menu sounds, but lose the important stuff, and that's what also causes my user account to not see any devices under aplay, but root still does. None of that makes any sense to me.

Also, since I added:
options snd-hda-intel enable_msi=0 probe_mask=0x108
to take care of my audio initialization problems that caused video issues it's altered the way my devices show up in aplay -l and aplay -L. It used to be that the hdmi output was card 1, device 9, now it's card 0, device 3. And I have no NVidia devices showing up in XBMC's audio settings, only a custom setting will work. I still get an error in the log file indicating a problem initializing audio, it tries hw:0,3 followed by a string of hex values, and says it can't be found and it's switching to hw:0,3. Everything seems fine, and I can't figure out where those hex values come in, but it bugs me that it's happening.

I've used linux for various things for a decade now, sound is one of the worst things I've dealt with. In XBMC there are two sound device definitions, and a third hidden one for menu sounds. It just makes it so difficult for anyone to figure out what to do. Seeing that the live install appears to be far more intuitive without pulse makes me think that that is the best way to go. But I also fear making any significant changes to the audio on my system because if I lose all audio I might be forced to reinstall the OS to get it working again.
Need more details than that to take a stab at what's wrong (versions/aplays etc) It sounds to me like you could have an Alsa/hardware problem but 1.0.24 works fine with Intel HDA. Yu must check to see which of the aplay -L list of devices can actually play audible sound - use Audacious cos it's an easy way and work back from that.

T
Try plughw:0,3.

Or a debug log.
Or the output of aplay -l
Or the output of "id $(whoami)"
Or any number of things that would help us diagnose the problem.

When you have a problem with your call do you phone your mechanic and say "Well it's doing this and this and this"? Or do you let him see the raw data?


http://insanecoding.blogspot.com/2009/06...sorry.html
Image
Well if you want to have a crack at it, I'd appreciate the help. I'll provide you what info I can:
Ubuntu 11.10, kernel 3.0.0-14, 64-bit, Phenom II X4, 8GB ram, GT430 video card
alsa 1.0.24, PulseAudio 1.0, nvidia 280.13, XBMC pre-eden 12/22

This is the old output of aplay:
Code:
$ aplay -l && aplay -L
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC889 Analog [ALC889 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 3: ALC889 Digital [ALC889 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
default
    Playback/recording through the PulseAudio sound server
pulse
    Playback/recording through the PulseAudio sound server
front:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    Front speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Digital
    HDMI Audio Output
dmix:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    Direct sample mixing device
dmix:CARD=SB,DEV=3
    HDA ATI SB, ALC889 Digital
    Direct sample mixing device
dsnoop:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    Direct sample snooping device
dsnoop:CARD=SB,DEV=3
    HDA ATI SB, ALC889 Digital
    Direct sample snooping device
hw:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    Direct hardware device without any conversions
hw:CARD=SB,DEV=3
    HDA ATI SB, ALC889 Digital
    Direct hardware device without any conversions
plughw:CARD=SB,DEV=0
    HDA ATI SB, ALC889 Analog
    Hardware device with all software conversions
plughw:CARD=SB,DEV=3
    HDA ATI SB, ALC889 Digital
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Hardware device with all software conversions

and now with the snd-hda-intel options it shows:
Code:
$ aplay -l && aplay -L
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    Playback/recording through the PulseAudio sound server
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions

If I attempt to set a module-alsa-sink link line I get the following error:
Failed to load module "module-alsa-sink" (argument: "device=hw:0,3"): initialization failed.

hw:0,3 plays audio just fine. It's what I'm using in XBMC right now. Before I added the probe_mask option I was using plughw 1,9, and that worked except that every time I started watching a video for the first 5 seconds the video was real choppy, while the audio was smooth, and the xbmc log showed problems initializing audio. It looked like it was trying to initialize pulse while going ahead and using alsa. Here's a log file from when I was working on that problem. I'll see about generating a debug log now and see how the audio errors compare. If you look at 18:40:16 you'll see a lot of debug messages regarding Pulse, then at 18:40:18 it appears to switch to alsa. Now the video plays fine, but I do get similar error messages regarding the custom device, but I haven't viewed a debug log since fixing the probe_mask.
darkscout Wrote:When you have a problem with your call do you phone your mechanic and say "Well it's doing this and this and this"? Or do you let him see the raw data?

I wasn't necessarily looking for help on fixing the issues, rather than checking to see if pulse is worth it (which I'm still thinking it's not). But since TiberiusT offered, I've thrown up the data.

I've spent a ton of time on this, first was fixing the video stuttering problem, since I got that resolved but still see error messages, I've tried poking around the audio settings a bit. I've googled for info on the GT430 and pulse audio, and tried a few dozen different threads highlighting default.pa settings, asoundrc files, etc. It's a giant mess as far as I can tell.
Here's the contents of eld#3.0:
Code:
monitor_present         1
eld_valid               1
monitor_name            DENON-AVAMP

connection_type         HDMI
eld_version             [0x2] CEA-861D or below
edid_version            [0x3] CEA-861-B, C or D
manufacture_id          0xee11
product_id              0x19
port_id                 0x40000
support_hdcp            0
support_ai              0
audio_sync_delay        0
speakers                [0x5f] FL/FR LFE FC RL/RR RC RLC/RRC
sad_count               8
sad0_coding_type        [0x1] LPCM
sad0_channels           8
sad0_rates              [0x1ee0] 44100 48000 88200 176400 192000 384000
sad0_bits               [0xe0000] 16 20 24
sad1_coding_type        [0x7] DTS
sad1_channels           6
sad1_rates              [0x6c0] 48000 88200 176400 192000
sad1_max_bitrate        1536000
sad2_coding_type        [0x2] AC-3
sad2_channels           6
sad2_rates              [0xe0] 44100 48000 88200
sad2_max_bitrate        640000
sad3_coding_type        [0xb] DTS-HD
sad3_channels           8
sad3_rates              [0x1ec0] 48000 88200 176400 192000 384000
sad4_coding_type        [0xa] E-AC-3/DD+ (Dolby Digital Plus)
sad4_channels           8
sad4_rates              [0xc0] 48000 88200
sad5_coding_type        [0xc] MLP (Dolby TrueHD)
sad5_channels           6
sad5_rates              [0x1ec0] 48000 88200 176400 192000 384000
sad6_coding_type        [0xc] MLP (Dolby TrueHD)
sad6_channels           8
sad6_rates              [0x6c0] 48000 88200 176400 192000
sad7_coding_type        [0x9] DSD (One Bit Audio)
sad7_channels           6
sad7_rates              [0x40] 48000
Pastebin.com is down at the moment, but here's what looks to be the relevant section of the debug log. Comparing this to the old one makes me think pulse was never working quite right, and rather that it was just taking more time fail over to alsa previously.

Code:
20:32:18 T:139958594242304  NOTICE: ------------------------------------
20:32:18 T:139958594242304  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
20:32:18 T:139958594242304  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
20:32:18 T:139958594242304  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
20:32:18 T:139958594242304  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
20:32:18 T:139958594242304  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
20:32:18 T:139958594242304  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
20:32:18 T:139958594242304  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
20:32:18 T:139958594242304   DEBUG: FactoryCodec - Video: ff-h264_vdpau-vdpau - Opened
20:32:18 T:139958594242304  NOTICE: Creating video thread
20:32:18 T:139958602635008   DEBUG: Thread CDVDPlayerVideo start, auto delete: 0
20:32:18 T:139958602635008  NOTICE: running thread: video_thread
20:32:18 T:139958594242304  NOTICE: Opening audio stream: 1 source: 256
20:32:18 T:139958594242304  NOTICE: Finding audio codec for: 86019
20:32:18 T:139958594242304   DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
20:32:18 T:139958594242304    INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - Trying to setup spdif muxer
20:32:18 T:139958594242304    INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - spdif muxer ready
20:32:18 T:139958594242304   DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opened
20:32:18 T:139958594242304  NOTICE: Creating audio thread
20:32:18 T:139958577456896   DEBUG: Thread CDVDPlayerAudio start, auto delete: 0
20:32:18 T:139958577456896  NOTICE: running thread: CDVDPlayerAudio::Process()
20:32:18 T:139958594242304   DEBUG: ReadEditDecisionLists - Checking for edit decision lists (EDL) on local drive or remote share for: /pub/media/video/Television/Comedy/Community/Season 2/Community - S02E10 - Mixology Certification.mkv
20:32:18 T:139958594242304   DEBUG: CDVDPlayer::SetCaching - caching state 2
20:32:18 T:139958602635008   DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
20:32:18 T:139958602635008    INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
20:32:18 T:139958594242304   DEBUG: CheckPlayerInit - dropping packet type:2 dts:83000.000000 to get to start point at 167000.000000
20:32:18 T:139958577456896  NOTICE: Creating audio device with codec id: 86019, channels: 2, sample rate: 48000, pass-through
20:32:18 T:139958594242304   DEBUG: CheckPlayerInit - dropping packet type:2 dts:42000.000000 to get to start point at 167000.000000
20:32:18 T:139958577456896    INFO: AudioRendererFactory:  not a explicit device, trying to autodetect.
20:32:18 T:139958577456896   DEBUG: RemoveActiveDevice - Removing device 1
20:32:18 T:139958577456896   DEBUG: CGUIAudioManager::DeInitialize
20:32:18 T:139958594242304   DEBUG: CheckPlayerInit - dropping packet type:2 dts:125000.000000 to get to start point at 167000.000000
20:32:18 T:139958602635008  NOTICE:  (VDPAU) screenWidth:0 vidWidth:1280 surfaceWidth:1280
20:32:18 T:139958602635008  NOTICE:  (VDPAU) screenHeight:0 vidHeight:720 surfaceHeight:720
20:32:18 T:139958602635008   DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(167000.000000, 0)
20:32:18 T:139958602635008  NOTICE: Creating 1280x720 pixmap
20:32:18 T:139958602635008   DEBUG: Found 4 fbconfigs.
20:32:18 T:139958602635008   DEBUG: Using fbconfig index 0.
20:32:18 T:139958594242304   DEBUG: CDVDPlayer::SetCaching - caching state 0
20:32:18 T:139958602635008  NOTICE:  (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
20:32:18 T:139958602635008  NOTICE:  (VDPAU) Creating the video mixer
20:32:18 T:139958602635008  NOTICE:  fps: 23.976024, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
20:32:18 T:139958602635008   DEBUG: OutputPicture - change configuration. 1280x720. framerate: 23.98. format: VDPAU
20:32:18 T:139958602635008  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
20:32:19 T:139958577456896   DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
20:32:19 T:139958577456896   DEBUG: RemoveActiveDevice - Removing device 0
20:32:19 T:139959038211968   DEBUG: Activating window ID: 12005
20:32:19 T:139959038211968   DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
20:32:19 T:139958577456896   DEBUG: PulseAudio: Context authorizing
20:32:19 T:139958577456896   DEBUG: PulseAudio: Context setting name
20:32:19 T:139958577456896   DEBUG: PulseAudio: Context ready
20:32:19 T:139958577456896   DEBUG: PulseAudio: Stream failed
20:32:19 T:139958577456896   ERROR: PulseAudio: Waited for the stream but it failed
20:32:19 T:139959038211968   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
20:32:19 T:139959038211968    INFO: Loading skin file: VideoFullScreen.xml
20:32:19 T:139958577456896   DEBUG: SetActiveDevice - SetActiveDevice from 2 to 1
20:32:19 T:139958577456896   DEBUG: RemoveActiveDevice - Removing device 2
20:32:19 T:139958577456896   DEBUG: CGUIAudioManager::Initialize
20:32:19 T:139958577456896   DEBUG: RemoveActiveDevice - Removing device 1
20:32:19 T:139958577456896   DEBUG: CGUIAudioManager::DeInitialize
20:32:19 T:139958577456896   DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
20:32:19 T:139958577456896   DEBUG: RemoveActiveDevice - Removing device 0
20:32:19 T:139958577456896   DEBUG: Initialize - using alsa device hw:0,3,AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
20:32:19 T:139958577456896   ERROR: Initialize - failed to open custom device hw:0,3,AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 (error:No such file or directory), retry with default hw:0,3
Had a good look but apart from the obvious of Pulse not fetching the stream nothing stands out. However your "options snd-hda-intel enable_msi=0 probe_mask=0x108" seems ugly - I can't believe yu need to do that.

I also have a GT430 and haven't had any problems with it in 11.10. However I have an ancient receiver which doesn't take HDMI so I use SPDIF for multichannel and then the HDMI into the TV for Stereo only - all is well...

A few things that I've noticed/had to do on my way which might help:

- I was on the XBMC unstable ppa most of last year and saw Pulse get integrated but I did have some fits along the way - I had to go back a couple of times. I'm not sure it's fully and properly integrated. Remember you're using beta software!
- Pulse does not always like a particular Alsa sink - it seems happier with some than others. A bit of experimentation is required. Using pacmd yu can load them in manually to test if they load. And if you're gonna manually load sinks, I find it much more reliable to turn off UDEV in default.pa and load the sinks in the last lines.
- AFAIK, XBMC system sounds go by default into the Alsa default tunnel which is different from your XBMC audio sink - that's probably why yu can't hear both.
- I'm not sure yu need Pulse with what you're trying to do. What happens if u ignore it in XBMC and just use ALSA sinks?

T
Without "options snd-hda-intel enable_msi=0 probe_mask=0x108" video would be very choppy for the first 5 seconds. I can't explain it, but I could not find any other way to fix it, now it's mostly fine, sometimes there's a momentary pause after less than a second, but before it was very bad. The parameters are based on what I found in various other threads.

I don't know what is and isn't a PulseAudio sink, and there are no audio options that work for me in XBMC aside from the Custom setting I'm using. There might be other values I can put in Custom that might work, but I don't know what they are. The only way I know to disable pulse is to rename the executable, as just killing it and restarting xbmc caused pulse to start back up and if I remember right I had no audio from video files when I tried that. So I don't know how I can work around it.

I'll try pacmd, I wasn't aware of that app before you mentioned it.

I certainly think I can get by without Pulse. I just fear removing it and subsequently losing all audio and not being able to get alsa working without it. I've had bad experiences with linux audio in the past, much like samba and X11, once you got it working, even if it's not perfect, it's kind of scary to mess with in case you totally break it.
I'm looking in pacmd now and I see 0 cards, and the only sink is the dummy output. If I enter "load-module module-alsa-sink device hw:0,3" it then appears to load the sink correctly as it appears attached to the nVidia card, however when I put that line in default.pa pulse fails to load and I get that error message in syslog mentioned above. Once I exit pacmd it kills pulse and I get those errors in the log and I can't restart pacmd. I still get that error when trying /etc/init.d/pulseaudio restart. I've also tried service pulseaudio stop and start and that continues to error out, even though none of my pulse config files have changed.