You are not logged in.

#1 2011-03-12 14:31:24

gnomeye
Member
From: Switzerland
Registered: 2010-08-04
Posts: 178

[SOLVED] Problem logging in to gnome with pulseaudio + mpd (arch x86_

Hello everyone

I hope you are doing fine.

I'm not really new to archlinux, the only thing is, I installed it just last week for my productive system although I used arch for many years on my virtual machines.

So that's why I'm writing in the "Newbie Corner".

Now to my problem I can't solve myself, after searching the web for days too:

I read a lot of people present this problem with gnome. After you log in through your DM (I tried gdm and slim, the problem was still there), the screen becomes blank and stays that way for about 7-12 seconds. Afterwards, the Desktop loads, you see your cursor and everything seems fine.

But I thought gnome shouldn't start up so slowly, so I took a look at my /var/log/messages.log. There was always this entry:

Mar 12 00:51:21 localhost pulseaudio[4938]: main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

so I though something with dbus or pulseaudio wasn't okay. the dbus-daemon is beeing launched through rc.conf...

DAEMONS=(syslog-ng @dbus network @netfs @crond @alsa @cups @clamav @mpd)

I was trying out everything to solve this problem. I started deleting and adjusting my DAEMONS section in rc.conf. After I while, I tried leaving out @mpd.

I couldn't believe it - the problem was solved. I tried it many times, but the problem didn't came up at all. After my login through Slim, it took about 3-5 seconds to show my gnomedesktop. The messages.log was also clean. The only entry about playsound was:

Mar 12 14:09:07 localhost rtkit-daemon[4327]: Successfully made thread 4325 of process 4325 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.

So why isn't there a problem when I don't start mpd through rc.conf? I love mpd and I really don't want to start it up everytime I login manually.

Is mpd making dbus-launch so busy he can't handle pulseaudio?

Greetings and thanks for the help from the little swiss country.

gnomeye

Last edited by gnomeye (2011-03-12 19:05:00)

Offline

#2 2011-03-12 14:41:26

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] Problem logging in to gnome with pulseaudio + mpd (arch x86_

leave all '@' before your daemons


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2011-03-12 16:20:29

gnomeye
Member
From: Switzerland
Registered: 2010-08-04
Posts: 178

Re: [SOLVED] Problem logging in to gnome with pulseaudio + mpd (arch x86_

Thx nTia89.

I tried, but it makes no difference. It still needs about 12 seconds to get from SLiM to the Desktop.

/etc/rc.conf

DAEMONS=(syslog-ng dbus network netfs crond alsa cups clamav mpd)

and the error message is still there too:

/var/log/messages.log

Mar 12 17:17:39 localhost pulseaudio[4228]: main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[ ----- EDIT ------- ]

What I found out. I think pulseaudio starts before even X11 is ready... perhaps that is the problem. According the wiki, pulseaudio should be startet through start-pulseaudio-X11 and not before Gnome/KDE is started up. How can I stop Pulseaudio from starting on his own before X11?

Last edited by gnomeye (2011-03-12 17:29:16)

Offline

#4 2011-03-12 17:45:50

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] Problem logging in to gnome with pulseaudio + mpd (arch x86_

read about our archwiki on slim, it says that you need to append somewhere d-bus stuff, i don't remember exactly.... read the wiki....


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#5 2011-03-12 18:26:55

gnomeye
Member
From: Switzerland
Registered: 2010-08-04
Posts: 178

Re: [SOLVED] Problem logging in to gnome with pulseaudio + mpd (arch x86_

if you ment changing the login_cmd entry in /etc/slim.conf to:

login_cmd exec ck-launch-session dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1

That didn't help... thx anyway.


[ ---- EDIT ----- ]

So for me the problem is solved. I now start mpd as user, instead in as a daemon at boot. This solves the problem. Although in the messages.log section there is still this error, after the login, i only wait about 3-5 seconds till the desktop appears.

Thanks for your help

Last edited by gnomeye (2011-03-12 19:04:38)

Offline

Board footer

Powered by FluxBB