Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X not working for user anymore [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Fri Dec 14, 2007 1:02 pm    Post subject: X not working for user anymore [solved] Reply with quote

Hi,

I have a problem starting X since the latest update of my loginmanager entrance. I had to delete xdm from the runlevel and now the startx command is working but for root only.

If I try to startx as a user I get the following error:
Code:
xinit: Resource temporarily unavailable (errno11): Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open Session: The name org.freedesktop.ConsoleKit was not provided by any .service files


I reemerged xorg-server xorg-x11 and all input modules I use. I eventually even did a emerge -e world.
Nothing worked. :(

Any ideas what could cause this? I don't want to do a complete reinstall :(


Last edited by Tariella on Sat Dec 22, 2007 3:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
neiljw
Apprentice
Apprentice


Joined: 12 Nov 2007
Posts: 166
Location: Telford, UK

PostPosted: Fri Dec 14, 2007 1:26 pm    Post subject: Re: X not working for user anymore Reply with quote

Tariella wrote:
Hi,

I have a problem starting X since the latest update of my loginmanager entrance. I had to delete xdm from the runlevel and now the startx command is working but for root only.

If I try to startx as a user I get the following error:
Code:
xinit: Resource temporarily unavailable (errno11): Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open Session: The name org.freedesktop.ConsoleKit was not provided by any .service files


I reemerged xorg-server xorg-x11 and all input modules I use. I eventually even did a emerge -e world.
Nothing worked. :(

Any ideas what could cause this? I don't want to do a complete reinstall :(


Do you have consolekit installed?
_________________
Be lucky,

Neil
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Fri Dec 14, 2007 5:13 pm    Post subject: Reply with quote

sys-auth/consolekit-0.2.3 is installed with use-flag pam.
Back to top
View user's profile Send private message
esroh
n00b
n00b


Joined: 15 May 2004
Posts: 4
Location: HK

PostPosted: Sun Dec 16, 2007 5:03 pm    Post subject: Reply with quote

I came across the same problem. After emerging x11-base/xorg-server-1.4.0.90, the problem's gone.

Strangely enough, emerge -up world didn't get xorg-server updated. I had to do that manually. :roll:
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Sun Dec 16, 2007 9:29 pm    Post subject: Reply with quote

I already did a re-emerge of every xorg related package.

After a reemerge of consolekit the messages are gone, but X still won't start. :(
The screen goes black and I can see the mouse-pointer for a second, the I'm back at the console. Strangely there are no error-messages.

I don't like the idea of a complete reinstall, my laptop is really slow :cry:
Back to top
View user's profile Send private message
ni1s
n00b
n00b


Joined: 07 Nov 2006
Posts: 29

PostPosted: Mon Dec 17, 2007 11:00 pm    Post subject: Reply with quote

Doesn't consolekit use a init script(/etc/init.d/consolekit)? If so, is it running?
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Tue Dec 18, 2007 7:26 pm    Post subject: Reply with quote

Consolekit was not in the runlevel, I'm fairly sure that I never had it in the runlevel, but I added it just to be sure.
It didn't make a difference.

What can I do now that there are no more error-messages?
Back to top
View user's profile Send private message
esroh
n00b
n00b


Joined: 15 May 2004
Posts: 4
Location: HK

PostPosted: Thu Dec 20, 2007 2:20 pm    Post subject: Reply with quote

Tariella wrote:
Consolekit was not in the runlevel, I'm fairly sure that I never had it in the runlevel, but I added it just to be sure.
It didn't make a difference.

What can I do now that there are no more error-messages?


After I ran into the problem, I emerged consolekit, and had it started at default runlevel. It made no difference, except the message about consolekit did disappeared.

Then I updated xorg-server (as I said, emerge -up world didn't do that for me), and the problem's gone. Now that I removed consolekit from the runlevel, everything is still running well. So at least I believe it is safe to assume you don't need to have consolekit running.
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Thu Dec 20, 2007 3:00 pm    Post subject: Reply with quote

Ok, so I'll try emerging xorg-server again. Maybe it will help now that consolekit is installed properly.
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Thu Dec 20, 2007 4:30 pm    Post subject: Reply with quote

A quick thing to try is delete any ~/.Xauthority and ~/.serverauth.* files in your home directory, and clean out /tmp. In /etc/conf.d/bootmisc there is an option to wipe the /tmp directory on every boot.

Most times for me when X has just quit starting for some reason, it was one of these files causing problems.
Back to top
View user's profile Send private message
esroh
n00b
n00b


Joined: 15 May 2004
Posts: 4
Location: HK

PostPosted: Thu Dec 20, 2007 5:01 pm    Post subject: Reply with quote

Rainskellr wrote:
A quick thing to try is delete any ~/.Xauthority and ~/.serverauth.* files in your home directory, and clean out /tmp. In /etc/conf.d/bootmisc there is an option to wipe the /tmp directory on every boot.

Most times for me when X has just quit starting for some reason, it was one of these files causing problems.


Nice input......I do have WIPE_TMP set to "yes" :wink:
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Fri Dec 21, 2007 5:59 pm    Post subject: Reply with quote

I tried all your solutions but nothing worked. :-(
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Fri Dec 21, 2007 6:28 pm    Post subject: Reply with quote

Try to look in your /var/log/messages to see if there's anything related to your problem. Usually PAM and modules send the logs to this default file.
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Sat Dec 22, 2007 10:17 am    Post subject: Reply with quote

The only messages from trying to start X are the following:

Code:

agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
agpgart: Device is in legacy mode, falling back to 2.x
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode


This are exactly the same messages that appear when I'm starting X as root and it works then.
:(
Back to top
View user's profile Send private message
grexxx
n00b
n00b


Joined: 25 Mar 2006
Posts: 5

PostPosted: Sat Dec 22, 2007 11:31 am    Post subject: Reply with quote

I just made a new install of the entire system (new kernel, new internet provider and some new hardware - just did everything from scratch to refresh my knowledge of everything) and encountered exactly the same problem.
X just wouldn't start as a user, first with consolekit error message, then I read this thread, reemerged consolekit, started it and was left out without error but X still wouldn't start.
So I started deleting all those Xorg related files, nothing.
Then started to reemerge xorg-server and during that started X again (just because of waiting).. nothing.
So then I just started deleting everything I didn't find strictly necesarry (like /tmp and some logs I didn't want -- waiting for the emerge to finish can be very annoying so I actually forgot /tmp might have been used during emerge process - another story never mind).,.. still it wouldn't start.
Then I deleted ~/.xinitrc (which had one commented line saying #exec startkde - playing around with kde4).

It worked after I deleted that file and the emerge of xorg-server still hasn't finished by then.

Can't explain that, but it happend 2 times... both times it started to work after I deleted .xinitrc without any noncommented data in it (just one commented line as stated above).

Is there any good explanation for this?
Back to top
View user's profile Send private message
Adwin
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2005
Posts: 128
Location: Poland

PostPosted: Sat Dec 22, 2007 1:00 pm    Post subject: Reply with quote

If you have DBUS enabled in the new xorg-servers, you must be sure to have dbus running.
Back to top
View user's profile Send private message
Tariella
Guru
Guru


Joined: 10 Dec 2005
Posts: 384
Location: Europe/Austria

PostPosted: Sat Dec 22, 2007 3:24 pm    Post subject: Reply with quote

Its really strange but it works now ! :D :D

When I looked last time there was no ~/.xinitrc but now after reemerging xorg-server I looked again and found it (it was empty, 0Bytes). So I tried to delete it and the problem is gone :)
Back to top
View user's profile Send private message
BouletInside
n00b
n00b


Joined: 28 Sep 2007
Posts: 3

PostPosted: Thu Dec 27, 2007 10:00 am    Post subject: Reply with quote

I was having the same problem.
I started the "/etc/init.d/consolekit" service and no more xinit error.

But I still have some problem starting xfce4 :(.
May be due to the nvidia driver....
Back to top
View user's profile Send private message
random303
n00b
n00b


Joined: 07 Mar 2006
Posts: 7
Location: Belgium

PostPosted: Tue Jul 22, 2008 8:30 pm    Post subject: Reply with quote

I had the same problems as above, thank god I found this thread...

"exec startdkde" problem was gone after I removed .xinitrc from root home directory. I think for users this is needed, for root user it isn't.

xinitd problem was gone after I started consolekit.

Thanks, and I hope some else found this usefull.

I love gentoo ... nice OS. Ones you get the hang of it...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum