[pulseaudio-discuss] Strange problem with pulseaudio 0.5.11

Sean McNamara smcnam at gmail.com
Sat Jul 26 14:28:05 PDT 2008

/var/run is cleared every time you reboot. There seems to be a 0.9.11
bug with the system-wide daemon improperly creating /var/run/pulse. It
may be creating it before it changes user, which means it is owned by
root, which is basically shooting itself in the foot. What I do on
boot-up (once per reboot) is this:

# killall pulseaudio
# mkdir -m 0755 -p /var/run/pulse
# chown pulse:pulse /var/run/pulse
# pulseaudio

Unnecessary if you don't use the system-wide daemon, but if you _do_
use it, this directory needs to exist and have these permissions.

Maybe you could rename the real pulseaudio binary to pulseaudio-bin
and create a script /usr/bin/pulseaudio that sets up /var/run/pulse
and then runs pulseaudio-bin. Careful; don't call 'pulseaudio' from
within your script, but pulseaudio-bin! ;) Infinite recursion
otherwise. :)


On Sat, Jul 26, 2008 at 8:11 AM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> Rafał Mużyło wrote:
>> I spoke too soon.
>> It was working for some time, but on one of subsequent restarts,
>> it stopped working again.
>> The messages were:
>> Jul 25 20:15:21 [pulseaudio] core-util.c: Successfully gained nice level -11.
>> Jul 25 20:15:21 [pulseaudio] ltdl-bind-now.c: Failed to find original
>> dlopen loader.
>> Jul 25 20:15:21 [pulseaudio] main.c: Found user 'pulse' (UID 107) and
>> group 'pulse' (GID 444).
>> Jul 25 20:15:21 [pulseaudio] main.c: Successfully dropped root privileges.
>> Jul 25 20:15:21 [pulseaudio] main.c: This is PulseAudio 0.9.11
>> Jul 25 20:15:21 [pulseaudio] main.c: Page size is 4096 bytes
>> Jul 25 20:15:21 [pulseaudio] main.c: Using runtime directory /var/run/pulse.
>> Jul 25 20:15:21 [pulseaudio] main.c: Running in system mode: yes
>> Jul 25 20:15:21 [pulseaudio] pid.c: Failed to write PID file.
>> Jul 25 20:15:21 [pulseaudio] main.c: pa_pid_file_create() failed.
>> Jul 25 20:15:21 [pulseaudio] main.c: Daemon startup failed.
> Check the ownership of the pid file in /var/run/pulse... I suspect it is
> owned by root and the pulse user cannot write it.
>> And I may have something to add on 'internet radio stream noisy when
>> module-suspend-on-idle is loaded' topic.
>> While I can't be sure it's related and can't really test it now (as I
>> went back to 0.5.10), I got a strange effect in audacious (using native
>> pulse output, I think). When I started playback, I got some terrible
>> noise, but the moment I changed the volume, the sound was OK again.
>> And is there any way for 0.5.11 to work with wine, cause in my setup,
>> it works with 0.5.10 (pulseaudio) and 1.1.2 (wine) (well, more or less,
>> I'm not sure about exact timing, but the sound is good enough),
>> but if I go to 0.5.11, wine goes into permanent XRUN recovery.
>> Yes, I know about wine/alsa problems (i.e. api abuse/lack of needed api)
>> but if there's a way for 0.5.10 to work, there may be a way for
>> 0.5.11, too.
> Do you have something against the number 9? It's pulseaudio 0.9.11, not
> 0.5.11 ;)
> I've not really tried things like this yet myself but hopefully other
> users can help :)
> Col
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at mail.0pointer.de
> https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

More information about the pulseaudio-discuss mailing list