You are not logged in.

#1 2011-08-09 22:48:59

fredo1664
Member
From: Ireland (but I'm French)
Registered: 2011-08-09
Posts: 29

pulseaudio errors when logging in

Hi all,

  I'm under Gnome 3 and I noticed some strange errors in /var/log/errors.log when I log in from gdm:

Aug  9 23:29:07 localhost pulseaudio[7237]: pid.c: Daemon already running.
Aug  9 23:29:07 localhost pulseaudio[4184]: x11wrap.c: XOpenDisplay() failed
Aug  9 23:29:07 localhost pulseaudio[4184]: module.c: Failed to load  module "module-x11-publish" (argument: "display=:0"): initialization failed.
Aug  9 23:29:08 localhost pulseaudio[7300]: pid.c: Daemon already running.
Aug  9 23:29:08 localhost pulseaudio[4184]: x11wrap.c: XOpenDisplay() failed
Aug  9 23:29:08 localhost pulseaudio[4184]: module.c: Failed to load  module "module-x11-publish" (argument: "display=:0"): initialization failed.

  The sound works perfectly well, but I was wondering why I'm getting these errors.
  Does anyone have the same errors or have an idea where to look? Google didn't help much...

  (this may as well belong to the beginner section)

Thanks!


I'm French and French people can't speak English, so please please please excuse the terrible English!

Offline

#2 2011-08-10 00:07:25

Muf
Member
Registered: 2011-07-26
Posts: 10

Re: pulseaudio errors when logging in

Hi, I have the same problem :-(( Something about it is here

Last edited by Muf (2011-08-10 00:15:13)

Offline

#3 2011-08-10 06:49:36

fredo1664
Member
From: Ireland (but I'm French)
Registered: 2011-08-09
Posts: 29

Re: pulseaudio errors when logging in

Hi Muf,

Thank you very much for the link. It really looks like my problem. I'll have to figure out whether this patch is implemented in the current version of pulseaudio or not.

There may be another problem though:

First time I log in, I get only 1 error:

Aug 10 07:33:34 localhost pulseaudio[1270]: pid.c: Daemon already running.

but then if I log out and log back in:

Aug 10 07:36:09 localhost pulseaudio[1475]: pid.c: Daemon already running.
Aug 10 07:36:09 localhost pulseaudio[1210]: x11wrap.c: XOpenDisplay() failed
Aug 10 07:36:09 localhost pulseaudio[1210]: module.c: Failed to load  module "module-x11-publish" (argument: "display=:0"): initialization failed.
Aug 10 07:36:10 localhost pulseaudio[1537]: pid.c: Daemon already running.
Aug 10 07:36:10 localhost pulseaudio[1210]: x11wrap.c: XOpenDisplay() failed
Aug 10 07:36:10 localhost pulseaudio[1210]: module.c: Failed to load  module "module-x11-publish" (argument: "display=:0"): initialization failed.

The link you submitted doesn't explain the error I get when I first log in.

I have to go to work, but if I'm not too busy there, I'll try and see if I find something interesting online.

Cheers!

Last edited by fredo1664 (2011-08-10 06:57:25)


I'm French and French people can't speak English, so please please please excuse the terrible English!

Offline

#4 2011-08-10 09:45:28

fredo1664
Member
From: Ireland (but I'm French)
Registered: 2011-08-09
Posts: 29

Re: pulseaudio errors when logging in

So from what I've read, it could very well be that GDM starts its own pulseaudio and it is not killed properly afterward.
I don't have access to my Arch box right now but I will give this a try tonight, since I don't really need sound enabled in GDM...
Is every Gnome 3 user experiencing this problem??


I'm French and French people can't speak English, so please please please excuse the terrible English!

Offline

#5 2011-08-10 14:31:05

Muf
Member
Registered: 2011-07-26
Posts: 10

Re: pulseaudio errors when logging in

I turned off auto login and gdm is not producing some sound, you are probably right, that is it gdm + pulseaudio problem.

Offline

#6 2011-08-10 17:11:14

fredo1664
Member
From: Ireland (but I'm French)
Registered: 2011-08-09
Posts: 29

Re: pulseaudio errors when logging in

So I did what is said here and I now only have one error message when logging in from GDM:

Aug 10 18:08:42 localhost pulseaudio[2883]: pid.c: Daemon already running.

Seems like I still have something to figure out...

ps aux | grep pulseaudio gives just after I log in:

[frederic ~]$ ps aux | grep pulseaudio
frederic  1219  0.3  0.1 227484  5544 ?        S<sl 18:29   0:01 /usr/bin/pulseaudio --start
gdm       1558  0.4  0.1 209636  4264 ?        D<s  18:36   0:00 /usr/bin/pulseaudio --start --log-target=syslog
frederic  1743  0.0  0.0  10572  1004 pts/0    S+   18:36   0:00 grep pulseaudio

Edit: After a reboot, all the error messages are back, so it seems that I didn't fix anything. Will try and understand and will come back... hopefully.

Last edited by fredo1664 (2011-08-10 20:04:47)


I'm French and French people can't speak English, so please please please excuse the terrible English!

Offline

#7 2011-08-10 22:25:47

Muf
Member
Registered: 2011-07-26
Posts: 10

Re: pulseaudio errors when logging in

I did the same as you with the same result, I think that it is probably bug. Gnome 3 is new thing and has some problems, yet.

Last edited by Muf (2011-08-11 01:17:22)

Offline

#8 2011-08-10 22:40:01

fredo1664
Member
From: Ireland (but I'm French)
Registered: 2011-08-09
Posts: 29

Re: pulseaudio errors when logging in

Mmm, I don't have any error message after I disabled the Pulseaudio server on every of my user accounts using:

gnome-session-properties

And I still have sound... But it feels like a workaround to me... not a proper fix.


I'm French and French people can't speak English, so please please please excuse the terrible English!

Offline

#9 2011-08-10 23:20:09

Muf
Member
Registered: 2011-07-26
Posts: 10

Re: pulseaudio errors when logging in

I don't know if is it normal but when I run gnome-session-properties I have there Pulseaudio start two times.

First commnad is

start-pulseaudio-kde

and second is

start-pulseaudio-x11

By wiki these two commnads start PA in KDE 4.

Last edited by Muf (2011-08-10 23:23:09)

Offline

#10 2011-08-24 03:56:49

seaslee
Member
Registered: 2011-08-13
Posts: 1

Re: pulseaudio errors when logging in

I also has this problem. fredo1664's solution is ok.

Offline

#11 2012-09-04 10:23:17

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 370
Website

Re: pulseaudio errors when logging in

I'm afraid this still happens (double start of pulseaudio, with systemd and gdm). Should we open a bug report upstream?

Offline

#12 2012-09-21 22:24:07

vjm
Member
From: Amsterdam, NL
Registered: 2012-09-15
Posts: 6

Re: pulseaudio errors when logging in

Still happens... I managed to get rid of the error by changing the line

/usr/bin/pulseaudio --start "$@"

to

if ! /usr/bin/pulseaudio --check: then
        /usr/bin/pulseaudio --start "$@"
fi

in both /usr/bin/start-pulseaudio-kde and /usr/bin/start-pulseaudio-x11.

However, this seemed to result in the module "module-device-manager" not to be loaded, but that can be fixed by adding

load-module module-device-manager

to /etc/pulse/default.pa as suggested in ArchWiki. I think that it should not be necessary, since that module is supposed to be loaded in the script start-pulseaudio-kde. But since it stops being loaded after my tweaks, it propably means that my approach not entirely correct...

Offline

Board footer

Powered by FluxBB