View previous topic :: View next topic |
Author |
Message |
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Thu May 12, 2011 11:22 pm Post subject: [Solved] kdm broken since KDE 4.6.2 upgrade |
|
|
I haven't been able to get kdm to start since I upgraded to KDE 4.6.2. I followed the upgrade guide and startx will start a nearly-perfectly-working session for that user, but I can't get kdm to work at all.
/etc/init.d/xdm thinks everything is fine, but X only shows up with a black screen and a cursor for about a half a second, then exits.
I'm not sure what files people will need, X is working great or I'd post its information. Just let me know what you need.
Last edited by IQgryn on Wed May 18, 2011 12:59 am; edited 2 times in total |
|
Back to top |
|
|
jenkler Apprentice
Joined: 28 Apr 2003 Posts: 222 Location: Sweden - Stockholm
|
Posted: Fri May 13, 2011 7:22 pm Post subject: Hi |
|
|
I have the same issue, i can figure out what to do, plese help
So fare i have:
* done the thing here http://www.gentoo.org/proj/en/desktop/kde/kde44-46-upgrade.xml
* Start twm with startx (that is working)
* Removed all kde pkg and then remerge
No luck
Code: |
[# > cat /var/log/kdm.log
********************************************************************************
Note that your system uses syslog. All of kdm's internally generated messages
(i.e., not from libraries and external programs/scripts it uses) go to the
daemon.* syslog facility; check your syslog configuration to find out to which
file(s) it is logged. PAM logs messages related to authentication to authpriv.*.
********************************************************************************
No protocol specified
kdmgreet: cannot connect to X server :0
No protocol specified
kdmgreet: cannot connect to X server :0
|
Code: |
[# > cat /var/log/daemon | grep kdm
May 13 20:54:40 localhost kdm: :0[1940]: Received unknown or unexpected command -2 from greeter
May 13 20:54:40 localhost kdm: :0[1940]: Abnormal termination of greeter for display :0, code 1, signal 0
May 13 21:20:47 localhost kdm: :0[8052]: Received unknown or unexpected command -2 from greeter
May 13 21:20:47 localhost kdm: :0[8052]: Abnormal termination of greeter for display :0, code 1, signal 0
|
_________________ Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english. |
|
Back to top |
|
|
flareguner n00b
Joined: 13 May 2011 Posts: 4
|
|
Back to top |
|
|
flareguner n00b
Joined: 13 May 2011 Posts: 4
|
Posted: Fri May 13, 2011 10:26 pm Post subject: |
|
|
Quote: | * Removed all kde pkg and then remerge |
How i can make it? Help me, gentoo guru. |
|
Back to top |
|
|
jenkler Apprentice
Joined: 28 Apr 2003 Posts: 222 Location: Sweden - Stockholm
|
Posted: Sat May 14, 2011 10:40 am Post subject: |
|
|
flareguner wrote: | Quote: | * Removed all kde pkg and then remerge |
How i can make it? Help me, gentoo guru. |
Sorry but that did not work for me but if you want to know just for knowing
backup /var/lib/portage/world first
* remove every pkg with kde in it, en then run emerge -av --depclean
* Install app-portage/portage-utils and use "qlist -I kde" to see what is left to remove
* Restore your world file and do an emerge -uDNav world
Has someone solved this issue jet ? _________________ Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english. |
|
Back to top |
|
|
jenkler Apprentice
Joined: 28 Apr 2003 Posts: 222 Location: Sweden - Stockholm
|
Posted: Sun May 15, 2011 10:37 am Post subject: hmm |
|
|
Dont know how to fix this issue. Have now tried an empty tree on the system and it did not help
emerge -e world
I relly need some help here, plz _________________ Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english. |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Sun May 15, 2011 2:45 pm Post subject: |
|
|
I really don't know what is going on here, but a quick couple of things to check.
1) Is xdm in the default runlevel?
2) Is the DISPLAYMANAGER variable in the /etc/conf.d/xdm file set to "kdm"? Also is the CHECKVT variable set to a valid tty, like 7?
3) Have you verified that the kdebase/start-kde and kdm packages are installed and are the correct versions? |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Sun May 15, 2011 2:52 pm Post subject: |
|
|
what does /var/log/Xorg.0.log has in after kdm attempt ?
Last edited by dmpogo on Mon May 16, 2011 1:51 am; edited 2 times in total |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Mon May 16, 2011 1:42 am Post subject: |
|
|
platojones wrote: | I really don't know what is going on here, but a quick couple of things to check.
1) Is xdm in the default runlevel?
2) Is the DISPLAYMANAGER variable in the /etc/conf.d/xdm file set to "kdm"? Also is the CHECKVT variable set to a valid tty, like 7?
3) Have you verified that the kdebase/start-kde and kdm packages are installed and are the correct versions? |
1) Yes, it tries to start but fails.
2+3) Yes, and starting kdm manually as root fails in the same way.
dmpogo wrote: | what does /var/log/Xorg.0.log has in after kdm attempt ? |
Nothing, really. X starts just fine. /var/log/daemon.log has this: Code: | kdm: :0[2400]: Received unknown or unexpected command -2 from greeter
kdm: :0[2400]: Abnormal termination of greeter for display :0, code 1, signal 0
|
|
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Mon May 16, 2011 1:51 am Post subject: |
|
|
dmpogo wrote: | what does /var/log/Xorg.0.log has in after kdm attempt ? |
kdm writes its own log as well, usually /var/log/kdm.log
Anything useful there ? |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Mon May 16, 2011 1:54 am Post subject: |
|
|
Do you, by any chance, still have 'hal' installed? If so, you need to get rid of it. |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Mon May 16, 2011 3:08 am Post subject: |
|
|
platojones wrote: | Do you, by any chance, still have 'hal' installed? If so, you need to get rid of it. |
Nope. Like I said, I followed the guide.
One detail I haven't mentioned is that I have two monitors (using xinerama). But again, X (and KDE) works just fine if I use startx -- only kdm seems to be broken. |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Mon May 16, 2011 3:10 am Post subject: |
|
|
dmpogo wrote: | dmpogo wrote: | what does /var/log/Xorg.0.log has in after kdm attempt ? |
kdm writes its own log as well, usually /var/log/kdm.log
Anything useful there ? |
Just this: Code: | No protocol specified
kdmgreet: cannot connect to X server :0 |
The X server is running when I start /etc/init.d/xdm (I see the cursor for a fraction of a second before the error happens and then X closes because kdm aborts). |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Mon May 16, 2011 4:31 am Post subject: |
|
|
So kdm can not connect to X server. Sounds like authentication/premission problem. Could it be you need pam with consolekit USE flag enabled, or something like that ? |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Mon May 16, 2011 4:35 am Post subject: |
|
|
One the other note do you have dbus and consolekit started ? |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Mon May 16, 2011 11:53 am Post subject: |
|
|
dmpogo wrote: | So kdm can not connect to X server. Sounds like authentication/premission problem. Could it be you need pam with consolekit USE flag enabled, or something like that ?
One the other note do you have dbus and consolekit started ? |
I do not have a consolekit USE flag to set for pam. I think it was removed in pam 1.1.3 and just set to permanently on.
Dbus and consolekit are both started. |
|
Back to top |
|
|
jenkler Apprentice
Joined: 28 Apr 2003 Posts: 222 Location: Sweden - Stockholm
|
Posted: Mon May 16, 2011 1:51 pm Post subject: |
|
|
dmpogo wrote: | One the other note do you have dbus and consolekit started ? |
Yes, they ar both in the default runlevel as the guide states .
this shit makes me crazy . any other good hints. I have also removed all traces of dbus and another install of all the pkg .. No luck . _________________ Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english. |
|
Back to top |
|
|
humanthing Tux's lil' helper
Joined: 29 Nov 2006 Posts: 141
|
Posted: Tue May 17, 2011 7:58 pm Post subject: |
|
|
Same problem here. Followed the guide and now kdm refuses to start.
When I try starting X via startx as root I get a working twm session, but when executing startx as normal user I get an error from X complaining about a missing xkeyboard-config...
I'm not sure if this is related but mysqld also refuses to start. _________________ ""Sir! We are surrounded!" - "Excellent! We can attack in any direction!"" |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Tue May 17, 2011 10:00 pm Post subject: |
|
|
humanthing wrote: | Same problem here. Followed the guide and now kdm refuses to start.
When I try starting X via startx as root I get a working twm session, but when executing startx as normal user I get an error from X complaining about a missing xkeyboard-config...
I'm not sure if this is related but mysqld also refuses to start. |
That sounds like something different. I can run startx as any user just fine, it's /etc/init.d/xdm that's broken for me. |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Tue May 17, 2011 10:26 pm Post subject: |
|
|
Alright, so I don't know if this is the root cause or just fixes things for now, but:
In /usr/share/config/kdm/kdmrc, the [General] section, comment the line that says:(the default is root)
This fixes my issue entirely, though I'd rather have kdm running as non-root. |
|
Back to top |
|
|
katull n00b
Joined: 07 Jul 2004 Posts: 4 Location: karlsruhe
|
Posted: Wed May 18, 2011 12:51 am Post subject: |
|
|
IQgryn wrote: |
..
In /usr/share/config/kdm/kdmrc, the [General] section, comment the line that says:(the default is root)
This fixes my issue entirely, though I'd rather have kdm running as non-root. |
I fixed the issue similary, thanks to https://bbs.archlinux.org/viewtopic.php?id=113401
If you don't want to change GreeterUID, follow the solution at the end of that post.
Brief instruction:
Create a folder (for example: /var/run/kdm) and set its owner to kdm:
Code: | mkdir /var/run/kdm
chown kdm:kdm /var/run/kdm |
With your favorite editor, set AuthDir in /usr/share/config/kdm/kdmrc to your newly created folder:
Code: | AuthDir=/var/run/kdm |
Done. |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Wed May 18, 2011 12:58 am Post subject: |
|
|
I just received a response to the bug I filed at https://bugs.gentoo.org/show_bug.cgi?id=367833.
The fix is to chmod 755 /var/run/xauth, or the way katull mentioned should also work.
Now I just have to track down these sound issues. But that's another thread. |
|
Back to top |
|
|
jenkler Apprentice
Joined: 28 Apr 2003 Posts: 222 Location: Sweden - Stockholm
|
Posted: Wed May 18, 2011 5:36 pm Post subject: |
|
|
IQgryn wrote: | I just received a response to the bug I filed at https://bugs.gentoo.org/show_bug.cgi?id=367833.
The fix is to chmod 755 /var/run/xauth, or the way katull mentioned should also work.
Now I just have to track down these sound issues. But that's another thread. |
Thanks man, this was the best solution _________________ Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english. |
|
Back to top |
|
|
critikaster n00b
Joined: 12 Feb 2014 Posts: 6
|
|
Back to top |
|
|
|