| View previous topic :: View next topic |
| Author |
Message |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1057 Location: 51:45:20N, 0:40:44W
|
Posted: Tue Jan 01, 2008 5:38 am Post subject: [SOLVED] Cannot login into xdm |
|
|
Hi all,
I ran an update after a week's rest and it seems that something borked up. When xdm bring up a login screen and I enter my username+passwd, it sort of tries to load up fluxbox but within a second or so it returns to the login screen. I can't see anything worth mentioning in the logs. I have downgraded baselayout, sysvinit and freetype but the problem remains. Any ideas? These are the packages emerged recently: | Code: | Mon Dec 31 18:38:51 2007 >>> sys-devel/gcc-config-1.4.0-r4
Mon Dec 31 18:41:08 2007 >>> dev-lang/spidermonkey-1.7.0
Mon Dec 31 18:52:59 2007 >>> sys-libs/ncurses-5.6-r2
Mon Dec 31 18:53:58 2007 >>> sys-kernel/linux-headers-2.6.23-r3
Mon Dec 31 18:57:40 2007 >>> app-shells/bash-3.2_p17-r1
Mon Dec 31 18:58:09 2007 >>> sys-apps/sysvinit-2.86-r10
Mon Dec 31 19:01:55 2007 >>> dev-libs/libcdio-0.78.2-r2
Mon Dec 31 19:03:17 2007 >>> dev-lang/yasm-0.6.2
Mon Dec 31 19:04:03 2007 >>> sys-apps/less-416
Mon Dec 31 19:06:50 2007 >>> media-libs/freetype-2.3.5-r2
Mon Dec 31 19:08:01 2007 >>> media-libs/x264-svn-20070924
Mon Dec 31 19:09:43 2007 >>> media-libs/giflib-4.1.6
Mon Dec 31 19:10:27 2007 >>> app-crypt/johntheripper-1.7.2-r3
Mon Dec 31 19:11:28 2007 >>> dev-python/imaging-1.1.5
Mon Dec 31 19:11:55 2007 >>> sys-apps/baselayout-1.12.10-r5
Mon Dec 31 19:12:53 2007 >>> app-crypt/dirmngr-1.0.1
Mon Dec 31 19:30:13 2007 >>> media-video/mplayer-1.0_rc2
Mon Dec 31 19:35:16 2007 >>> net-print/hplip-2.7.10
Mon Dec 31 19:40:40 2007 >>> dev-lang/ruby-1.8.6_p111 |
I don't have a problem login in at the console. _________________ Regards,
Mick
Last edited by MickKi on Thu Jan 03, 2008 7:25 am; edited 1 time in total |
|
| Back to top |
|
 |
schachti Veteran


Joined: 28 Jul 2003 Posts: 3436 Location: Göttingen, Germany
|
Posted: Tue Jan 01, 2008 12:37 pm Post subject: |
|
|
Did you try to remove (rename) the fluxbox config files? Maybe one configuration file is borked so fluxbox can't start... _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Tue Jan 01, 2008 11:17 pm Post subject: Re: Cannot login into xdm |
|
|
| MickKi wrote: | | ... it sort of tries to load up fluxbox but within a second or so it returns to the login screen. | That's happened to me a few times in XFCE, either when I update my kernel or xorg-server.
If that's the case for you too, you should see /var/log/Xorg.0.log complain about your graphics driver.
For the former (kernel update) you simply have to re-emerge your driver (nvidia-driver or ati-driver), but for the latter you have to emerge additional X drivers.
| List of drivers to be emerged after Xorg update: | | qlist -I -C x11-drivers/ |
Hope it works out and happy new year  _________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1057 Location: 51:45:20N, 0:40:44W
|
Posted: Wed Jan 02, 2008 9:51 am Post subject: |
|
|
Thanks guys and a Happy New Year to you all!
I removed the ~/.fluxbox file and rebuilt the X drivers but it will not load X I am afraid. I noticed that xdm logs in (momentarily I can just see the "login succssful" message) but a few seconds later it dumps me back onto the login screen. I have rebuilt xorg (meta) and server as well as fluxbox.
A temporary and very unsatisfactory work around is to go to a console, stop/zap xdm and finally run startx as a plain user. Then I just run startfluxbox from an xterm and thereafter everything seems to work fine.
revdep-rebuild does not show anything being amiss. All this mess started following a reboot after the emerge session shown above. I can't see any packages in there that could cause this problem and even after I downgraded many of them (sysvinit, baselayout, dirmngr and freetype) the problem remains.
I know that similar problems with xfce have been reported here and in the ML, but I never had such a problem with Xorg/fluxbox for many years now.
Any ideas what I should look for next? _________________ Regards,
Mick |
|
| Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1057 Location: 51:45:20N, 0:40:44W
|
Posted: Wed Jan 02, 2008 10:29 am Post subject: |
|
|
Oops! How stupid of me! It *is* the same error! Redirected the console to check the stderr more carefully and just as you predicted this is what it comes up with: | Code: | xauth: creating new authority file /home/michael/.serverauth.25440
X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: UNKNOWN
Current Operating System: Linux lappy 2.6.23-gentoo-r3 #6 PREEMPT Mon Dec 17 22:12:23 GMT 2007 i686
Build Date: 01 January 2008
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 2 15:16:22 2008
(==) Using config file: "/etc/X11/xorg.conf"
(WW) RADEON: More than one matching Device section for instances
(BusID: PCI:1:0:0) found: Card0
(**) RADEON(0): RADEONPreInit
FATAL: Module radeon not found.
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.
(II) Module already built-in
(II) Module already built-in
(II) Module already built-in |
As I said above I rebuilt | Code: | [I] x11-base/xorg-x11
Available versions:
7.2
~ 7.3
Installed versions: 7.2(12:58:51 01/01/08)
Homepage: http://xorg.freedesktop.org
Description: An X11 implementation maintained by the X.Org Foundation (meta package)
[I] x11-base/xorg-server
[snip...]
Installed versions: 1.3.0.0-r2(12:58:32 01/01/08)(dri input_devices_keyboard input_devices_mouse input_devices_synaptics nptl sdl video_cards_radeon xorg -3dfx -debug -dmx -input_devices_acecad -input_devices_aiptek . . . |
What else is there to try? _________________ Regards,
Mick |
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Wed Jan 02, 2008 10:57 am Post subject: |
|
|
| MickKi wrote: | | What else is there to try? | Just `emerge ati-drivers` should do the trick. _________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1057 Location: 51:45:20N, 0:40:44W
|
Posted: Wed Jan 02, 2008 11:28 am Post subject: |
|
|
Thank you OM,
I've been using the xorg drivers ever since I built this laptop a couple of years ago and therefore have re-emerged x11-drivers/xf86-video-ati as well as x11-drivers/synaptics x11-drivers/xf86-input-keyboard x11-drivers/xf86-input-mouse instead. These are brought in as dependencies by xorg-server. Anyhow, still no joy.
Unless I should be using the proprietary drivers from now on? Is this a bug?
There doesn't seem to be a problem starting X from a console by running startx. I'm not sure what this tells me. Is that the case with xfce or do I have a slightly different problem here? _________________ Regards,
Mick |
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Wed Jan 02, 2008 12:23 pm Post subject: |
|
|
I suggested that you rebuild ati-drivers, because when you emerge that package, it builds your ati kernel driver module.
Your Xlog confirms that it's not finding that such module -
| Code: | | FATAL: Module radeon not found. | You could just the same use x11-drivers/xf86-video-ati if it provides the necessary kernel module needed by X.
| MickKi wrote: | | Unless I should be using the proprietary drivers from now on? Is this a bug? | Your upgraded X server requires a kernel module for the radeon display driver.
1) If x11-drivers/xf86-video-ati never included the kernel module before, it could be a deliberate shift by X to proprietary drivers.
...or maybe it did include the module and it was removed to avoid a conflict with the proprietary drivers.
2) However if xf86-video-ati is not being phased out then, yes, it is a bug with X.
But then if your card is a few years old maybe it's not being supported anymore.
| MickKi wrote: | | There doesn't seem to be a problem starting X from a console by running startx. I'm not sure what this tells me. Is that the case with xfce or do I have a slightly different problem here? | Not finding my nvidia module is always fatal for me.
If you can startx from the console and fluxbox works fine with ATI, then the kernel driver problem has already been fixed.
You would have to change the behavior of xdm to startx instead of doing whatever it's doing now.
| MickKi wrote: | | I built this laptop a couple of years ago | You built your own laptop?!
That's really neat  _________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1057 Location: 51:45:20N, 0:40:44W
|
Posted: Wed Jan 02, 2008 6:16 pm Post subject: |
|
|
| om wrote: |
| MickKi wrote: | | There doesn't seem to be a problem starting X from a console by running startx. I'm not sure what this tells me. Is that the case with xfce or do I have a slightly different problem here? | Not finding my nvidia module is always fatal for me.
If you can startx from the console and fluxbox works fine with ATI, then the kernel driver problem has already been fixed. |
OK, but it is still showing the FATAL error with the radeon driver . . .
| om wrote: |
You would have to change the behavior of xdm to startx instead of doing whatever it's doing now. |
I think that it might be related to changes brought about by the new bash package. I noticed this in my ~/.xsession-errors:
| Code: |
/usr/lib/X11/xdm/Xsession: /home/michael/.xsession: /bin/csh: bad interpreter:
No such file or directory |
Not sure why csh is being called here, or where it is being called from . . .
On this machine /bin/csh is a symlink to tcsh:
| Code: |
# ls -la /bin/csh
lrwxrwxrwx 1 root root 9 Mar 26 2006 /bin/csh -> /bin/tcsh |
. . . which does not seem to exist?
| Code: |
# ls -la /bin/tcsh
ls: cannot access /bin/tcsh: No such file or directory |
This is stretching my understanding. What do you think? Could it be related to the recent update of /bin/bash and the way this is treated for non-KDE WMs (e.g fluxbox) in /usr/lib/X11/xdm/Xsession? I recall that the last bash update changed some config file - not sure which and removed the entry '/bin/sh' from it.
Shall I emerge tcsh, or remove the symlink and then link csh to bash?
What does csh link to in your PC?
| om wrote: |
| MickKi wrote: | | I built this laptop a couple of years ago | You built your own laptop?!
That's really neat  | Well, I didn't build it completely from scratch, but have changed/upgraded some bits (keyboard, memory, bluetooth chip) then wiped out Win98 or some MS Windows OS which had clapped out and installed Gentoo. Gave it another lease of life really.  _________________ Regards,
Mick |
|
| Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1057 Location: 51:45:20N, 0:40:44W
|
Posted: Thu Jan 03, 2008 7:16 am Post subject: |
|
|
I am not sure when this happened . . . but it pays to go back to the basics! I looked into my /etc/rc.conf and noticed that there was no $XSESSION defined. After I set it:X starts happily and brings up fluxbox again. Sorry for all the noise.
Just checking: we are still meant to define a WM in rc.conf, right? _________________ Regards,
Mick |
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Thu Jan 03, 2008 4:31 pm Post subject: |
|
|
I'm glad it worked out
| MickKi wrote: | ...I looked into my /etc/rc.conf and noticed that there was no $XSESSION defined.
...
Just checking: we are still meant to define a WM in rc.conf, right? | Defining $XSESSION in /etc/rc.conf sets the default WM for all users.
It is good practice to define it there, so that every user on your system starts off with an X WM.
It is possible though to only define it in ~/.xinitrc and it will work the same.
Here are the developer comments in rc.conf which explain it more verbosely:
| $XSESSION comments from /etc/rc.conf: | # XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts are smart enough to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enlightenment" can also work. This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE: 1) this behaviour is overridden when a ~/.xinitrc exists, and startx
# is called.
# 2) even if ~/.xsession exists, if XSESSION can be resolved, it will
# be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (look in /etc/X11/Sessions/)
# Xfce4 - will start a XFCE4 session
# Xsession - will start a terminal and a few other nice apps
#XSESSION="Xfce4" |
So then it seems the trouble crept in from updating configuration files.
What is your CONFIG_PROTECT_MASK in /etc/make.conf?
That variable specifies which directories of configuration files NOT to protect.
For example mine is:
| Code: | | CONFIG_PROTECT_MASK="/etc/rc.d /usr/share/X11" | Make sure "/etc" by itself is not there to fully unmask your config files.
Also after updates, use
...and lists at which files need to be updated.
Opt to manually merge the important ones using `cfg-update -u` _________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1057 Location: 51:45:20N, 0:40:44W
|
Posted: Fri Jan 04, 2008 10:44 am Post subject: |
|
|
I feel like a dunce.
I think that this must be the first time I have overwritten a config file for quite some years now. I blame the wife who must have been bending my ears at the time I was running etc-update . . .
I do not have CONFIG_PROTECT_MASK in /etc/make.conf. I suspect that what happened was that after pressing 3 and interactively merging changes, I made the wrong choice and instead of saving the merged file I saved the new configuration (from memory I'm not even sure that this is possible, but something went sideways and I ended up with a default /etc/rc.conf file without me noticing).
Anyway, thanks for all your help.  _________________ Regards,
Mick |
|
| Back to top |
|
 |
|
|
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
|
|