View previous topic :: View next topic |
Author |
Message |
ad_meis Tux's lil' helper
Joined: 17 Feb 2006 Posts: 120 Location: Tuscany, Italy
|
Posted: Wed Jul 25, 2012 2:12 pm Post subject: xdm - cannot login |
|
|
Dear users,
this is related to a fresh install of lenovo thinkcentre. I had installed everything successfully, I had emerged xfce4, but at boot I get the following "strange" behavior.
Everything is fine with boot, xdm starts, I have the graphical user interface to login. I insert correct username and password, click "enter" and again I get the same xdm screen for the login. (notice that it does not say incorrect login).
This is the output messages from /var/log/messages
Code: | Jul 24 22:08:55 thinkcentre xdm[17213]: pam_lastlog(xdm:session): conversation failed
Jul 24 22:08:55 thinkcentre xdm[17213]: pam_unix(xdm:session): session opened for user marco by (uid=0)
Jul 24 22:08:55 thinkcentre xdm[17213]: pam_ck_connector(xdm:session): nox11 mode, ignoring PAM_TTY :0
Jul 24 22:08:55 thinkcentre xdm[17213]: pam_unix(xdm:session): session closed for user marco |
The following is my .xsession Code: | ls -lht .xsession
-rwxr-xr-x 1 marco marco 1.3K Jul 24 21:35 .xsession |
Code: | #!/bin/bash
## For checking purpose. It check that this file is read at startx
##echo 'pippo' >> /home/marco/leggexses.txt
# Set up the X framework
# ----------------------
# N.B.: at present (on Gentoo) the following resources parsing is
# directly done by the system-wide Xsession script. If necessary,
# uncomment the relevant lines
#userresources=$HOME/.Xresources
#usermodmap=$HOME/.Xmodmap
#sysresources=$xinitdir/.Xresources
#sysmodmap=$xinitdir/.Xmodmap
## merge in defaults and keymaps
#if [ -f $sysresources ]; then
# xrdb -merge $sysresources
#fi
#if [ -f $sysmodmap ]; then
# xmodmap $sysmodmap
#fi
#if [ -f $userresources ]; then
# xrdb -merge $userresources
#fi
#if [ -f $usermodmap ]; then
# xmodmap $usermodmap
#fi
# Start the SSH agent
# -------------------
eval `ssh-agent -s`
# Call ssh-add to add some keys. Redirecting /dev/null should trigger
# the use of a graphical password asker (ssh-askpass).
ssh-add < /dev/null
# Define usefull variables
# ------------------------
export BROWSER=firefox
export TERMCMD=aterm
export EDITOR=emacs
# Start the session
# -----------------
exec startxfce4
## modified on March 8th following gentoo forum by ssuominen
## http://forums.gentoo.org/viewtopic-t-915332.html
# Kill the SSH agent
# ------------------
eval `ssh-agent -k` |
My /etc/env.d/90xsession reads: XSESSION="Xsession"
This is my rc-status
Code: | Runlevel: default
dbus [ started ]
net.eth0 [ started ]
syslog-ng [ started ]
sshd [ started ]
udev-postmount [ started ]
consolekit [ started ]
netmount [ started ]
gpm [ started ]
xdm [ started ]
local [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
sysfs [ started ]
udev-mount [ started ]
Dynamic Runlevel: manual |
Last edited by ad_meis on Wed Aug 01, 2012 4:17 pm; edited 2 times in total |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Wed Jul 25, 2012 3:01 pm Post subject: |
|
|
I'd try to log in as the desired user on a linux console and do Code: | $ xinit -- /usr/bin/startxfce4 |
If that works, it's a problem with xdm.
If that does not work, it's a problem with either xorg or xfce. |
|
Back to top |
|
|
ad_meis Tux's lil' helper
Joined: 17 Feb 2006 Posts: 120 Location: Tuscany, Italy
|
Posted: Thu Jul 26, 2012 7:47 am Post subject: |
|
|
Ok I ll need to check when I am in the office with the desktop.
I guess that would not work if I do in a ssh connection, right? |
|
Back to top |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Thu Jul 26, 2012 8:49 am Post subject: |
|
|
I had the same issue until I added "exec startkde" to ~/.xinitrc file.
May be you need something like "exec startxfce4" ? |
|
Back to top |
|
|
ad_meis Tux's lil' helper
Joined: 17 Feb 2006 Posts: 120 Location: Tuscany, Italy
|
Posted: Thu Jul 26, 2012 8:55 am Post subject: |
|
|
Dear creaker,
thanks for the suggestion. Actually "exec startxfce4" is in the .xsession above. That should be the appropriate way following also advices I was given in other posts https://forums.gentoo.org/viewtopic-t-915332.html
But I cannot be 100% sure... now it doesn't work. |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Thu Jul 26, 2012 9:07 am Post subject: |
|
|
ad_meis wrote: | Ok I ll need to check when I am in the office with the desktop.
I guess that would not work if I do in a ssh connection, right? |
right. |
|
Back to top |
|
|
ad_meis Tux's lil' helper
Joined: 17 Feb 2006 Posts: 120 Location: Tuscany, Italy
|
Posted: Sat Jul 28, 2012 3:51 pm Post subject: |
|
|
Dear all and dear alex.blackbit,
I finally got physically to the desktop.
If I stop X from the console with /etc/init.d/xdm stop, and then I run
Code: | $ xinit -- /usr/bin/startxfce4 |
I have my xfce working. Then according to your suggestion, it is a problem with xdm.... Now how I can solve it?
thnks |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Sun Jul 29, 2012 8:49 am Post subject: |
|
|
ad_meis,
it's good to hear that at least X11 and xfce work as expected.
Do you really use xdm itself and not a substitutional program?
I don't use xfce myself, so I don't know the details, though I don't think that it comes with something like xdm/gdm/kdm itself.
In case it is really xdm you are using, check it's configuration to find out what it tries to load on login.
Maybe there is a list on the login screen itself, there could also be a configuration file.
Also, there may be a log file, located most likely under /var/log.
may help you.
qlist is part of app-portage/portage-utils. |
|
Back to top |
|
|
ad_meis Tux's lil' helper
Joined: 17 Feb 2006 Posts: 120 Location: Tuscany, Italy
|
Posted: Mon Jul 30, 2012 2:04 pm Post subject: |
|
|
Thanks. Your advice and searching into log files, and then again on the forums got me a solution (then we have to see how robust of a solution it is).
When I was running
Code: | $ xinit -- /usr/bin/startxfce4 |
xfce4 was starting and then it broke .... among the error messages I found the following
Code: | WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. |
I removed /etc/modprobe.conf, but no luck yet. Then I found this post https://forums.gentoo.org/viewtopic-t-793730-start-0.html and these points got me a solution
Quote: | 4. built the kernel
5. (did not apply to my case)
6. remerged x86-input-udev, x86-input-keaboard and x86-input-mouse |
|
|
Back to top |
|
|
ad_meis Tux's lil' helper
Joined: 17 Feb 2006 Posts: 120 Location: Tuscany, Italy
|
Posted: Wed Aug 01, 2012 4:20 pm Post subject: |
|
|
I had previously marked as [SOLVED], but it is not stable at all.
I generally use suspend (that thanks to many of the forum) works, but when I reboot I still experience that I have this xdm login screen. I enter the correct ID and PASSWD, the system accept them, for a couple of second it looks as if xfce4 is going to start, but then I get the initial xdm login screen.
Thus, I wouls not say that the solution above solves the problem |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Wed Aug 01, 2012 4:29 pm Post subject: |
|
|
The existence of /etc/modprobe.conf does not have anything to do with your situation.
Maybe it's a X server segfault or something similar.
After the undesired xdm window appears, check the X server log.
If in doubt, paste it here. |
|
Back to top |
|
|
ad_meis Tux's lil' helper
Joined: 17 Feb 2006 Posts: 120 Location: Tuscany, Italy
|
Posted: Thu Aug 02, 2012 8:55 am Post subject: |
|
|
I am pasting a few outputs I think could be useful.
/var/log/xdm.log [when system is working and it launches xfce after xdm login]
Code: | xdm info (pid 16892): Starting
xdm info (pid 16892): Starting X server on :0
X.Org X Server 1.12.2
Release Date: 2012-05-29
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.0.0-gentoo x86_64 Gentoo
Current Operating System: Linux t420 3.0.0-gentoo #1 SMP Wed Aug 1 19:33:41 CEST 2012 x86_64
Kernel command line: root=/dev/ram0 softlevel=offline init=/linuxrc ramdisk=8192 real_root=/dev/sda7
Build Date: 27 June 2012 07:47:14PM
Current version of pixman: 0.26.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
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: Thu Aug 2 12:09:49 2012
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xdm info (pid 16985): sourcing /usr/lib64/X11/xdm/Xsetup_0
xdm info (pid 16985): sourcing /usr/lib64/X11/xdm/GiveConsole
xdm info (pid 17006): executing session /usr/lib64/X11/xdm/Xsession |
/var/log/xdm.log [when system is NOT working and it STUCKS ON XDM LOGIN]
Code: | xdm info (pid 16894): Starting
xdm info (pid 16894): Starting X server on :0
X.Org X Server 1.12.2
Release Date: 2012-05-29
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.0.0-gentoo x86_64 Gentoo
Current Operating System: Linux t420 3.0.0-gentoo #1 SMP Wed Aug 1 19:33:41 CEST 2012 x86_64
Kernel command line: root=/dev/ram0 softlevel=offline init=/linuxrc ramdisk=8192 real_root=/dev/sda7
Build Date: 27 June 2012 07:47:14PM
Current version of pixman: 0.26.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
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: Thu Aug 2 12:05:07 2012
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xdm info (pid 16987): sourcing /usr/lib64/X11/xdm/Xsetup_0
xdm info (pid 16987): sourcing /usr/lib64/X11/xdm/GiveConsole
xdm info (pid 17008): executing session /usr/lib64/X11/xdm/Xsession
xdm info (pid 16987): sourcing /usr/lib64/X11/xdm/TakeConsole
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 104 requests (73 known processed) with 0 events remaining.
xdm info (pid 16894): Starting X server on :0
2 XSELINUXs still allocated at reset
SCREEN: 0 objects of 288 bytes = 0 total bytes 0 private allocs
DEVICE: 0 objects of 96 bytes = 0 total bytes 0 private allocs
CLIENT: 0 objects of 192 bytes = 0 total bytes 0 private allocs
WINDOW: 0 objects of 64 bytes = 0 total bytes 0 private allocs
PIXMAP: 0 objects of 32 bytes = 0 total bytes 0 private allocs
GC: 0 objects of 56 bytes = 0 total bytes 0 private allocs
CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
CURSOR_BITS: 0 objects of 8 bytes = 0 total bytes 0 private allocs
DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
GLYPH: 0 objects of 8 bytes = 0 total bytes 0 private allocs
TOTAL: 0 objects, 0 bytes, 0 allocs
2 SELECTIONs still allocated at reset
WINDOW: 0 objects of 64 bytes = 0 total bytes 0 private allocs
PIXMAP: 0 objects of 32 bytes = 0 total bytes 0 private allocs
GC: 0 objects of 56 bytes = 0 total bytes 0 private allocs
CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
CURSOR_BITS: 0 objects of 8 bytes = 0 total bytes 0 private allocs
DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
GLYPH: 0 objects of 8 bytes = 0 total bytes 0 private allocs
TOTAL: 0 objects, 0 bytes, 0 allocs
xdm info (pid 17089): sourcing /usr/lib64/X11/xdm/Xsetup_0
xdm info (pid 17089): sourcing /usr/lib64/X11/xdm/GiveConsole
xdm info (pid 17112): executing session /usr/lib64/X11/xdm/Xsession
xdm info (pid 17089): sourcing /usr/lib64/X11/xdm/TakeConsole
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 104 requests (73 known processed) with 0 events remaining.
xdm info (pid 16894): Starting X server on :0
xdm info (pid 17194): sourcing /usr/lib64/X11/xdm/Xsetup_0 |
I put on pastebin the Xorg.0.log when it is working and when it is not.
http://pastebin.com/8pMMZAJn Xorg.0.log__notworking
http://pastebin.com/9fNGjA2V Xorg.0.log__working
Further - in the hope to make things easier - the following lines appear in /var/log/Xorg.0.log when it is NOT working (they do not show up in Xorg.0.log when working)
Code: | [ 56.546] (II) evdev: Power Button: Close
[ 56.546] (II) UnloadModule: "evdev"
[ 56.616] (II) evdev: Video Bus: Close
[ 56.616] (II) UnloadModule: "evdev"
[ 56.706] (II) evdev: Sleep Button: Close
[ 56.706] (II) UnloadModule: "evdev"
[ 56.786] (II) evdev: Integrated Camera: Close
[ 56.786] (II) UnloadModule: "evdev"
[ 56.856] (II) evdev: AT Translated Set 2 keyboard: Close
[ 56.856] (II) UnloadModule: "evdev"
[ 56.976] (II) UnloadModule: "synaptics"
[ 57.036] (II) evdev: TPPS/2 IBM TrackPoint: Close
[ 57.036] (II) UnloadModule: "evdev"
[ 57.116] (II) evdev: ThinkPad Extra Buttons: Close
[ 57.116] (II) UnloadModule: "evdev"
[ 57.170] 2 XSELINUXs still allocated at reset
[ 57.170] SCREEN: 0 objects of 288 bytes = 0 total bytes 0 private allocs
[ 57.170] DEVICE: 0 objects of 96 bytes = 0 total bytes 0 private allocs
[ 57.170] CLIENT: 0 objects of 192 bytes = 0 total bytes 0 private allocs
[ 57.170] WINDOW: 0 objects of 64 bytes = 0 total bytes 0 private allocs
[ 57.170] PIXMAP: 0 objects of 32 bytes = 0 total bytes 0 private allocs
[ 57.170] GC: 0 objects of 56 bytes = 0 total bytes 0 private allocs
[ 57.170] CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[ 57.170] CURSOR_BITS: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[ 57.170] DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
[ 57.170] GLYPH: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[ 57.170] TOTAL: 0 objects, 0 bytes, 0 allocs
[ 57.170] 2 SELECTIONs still allocated at reset
[ 57.170] WINDOW: 0 objects of 64 bytes = 0 total bytes 0 private allocs
[ 57.170] PIXMAP: 0 objects of 32 bytes = 0 total bytes 0 private allocs
[ 57.170] GC: 0 objects of 56 bytes = 0 total bytes 0 private allocs
[ 57.170] CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[ 57.170] CURSOR_BITS: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[ 57.170] DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
[ 57.170] GLYPH: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[ 57.170] TOTAL: 0 objects, 0 bytes, 0 allocs
[ 57.171] (II) Open ACPI successful (/var/run/acpid.socket)
[ 57.171] (II) APM registered successfully
[ 57.171] (II) intel(0): [DRI2] Setup complete
[ 57.171] (II) intel(0): [DRI2] DRI driver: i965
[ 57.172] (II) intel(0): Allocated new frame buffer 1600x900 stride 6656, tiled
[ 57.173] (II) UXA(0): Driver registered support for the following operations:
[ 57.173] (II) solid
[ 57.173] (II) copy
[ 57.173] (II) composite (RENDER acceleration)
[ 57.173] (II) put_image
[ 57.173] (II) get_image
[ 57.173] (II) intel(0): Initializing HW Cursor
[ 57.173] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 57.181] (==) intel(0): DPMS enabled
[ 57.181] (==) intel(0): Intel XvMC decoder enabled
[ 57.181] (II) intel(0): Set up textured video
[ 57.181] (II) intel(0): [XvMC] xvmc_vld driver initialized.
[ 57.181] (II) intel(0): direct rendering: DRI2 Enabled
[ 57.181] (==) intel(0): hotplug detection: "enabled"
[ 57.246] (--) RandR disabled
[ 57.261] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 57.261] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 57.261] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 57.261] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 57.261] (II) AIGLX: Loaded and initialized i965
[ 57.261] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 57.262] (II) intel(0): Setting screen physical size to 423 x 238
[ 57.451] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 57.451] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 57.451] (II) Using input driver 'evdev' for 'Power Button'
[ 57.451] (**) Power Button: always reports core events
[ 57.451] (**) evdev: Power Button: Device: "/dev/input/event2"
[ 57.452] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 57.452] (--) evdev: Power Button: Found keys
[ 57.452] (II) evdev: Power Button: Configuring as keyboard
[ 57.452] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[ 57.452] (**) Option "xkb_rules" "evdev"
[ 57.452] (**) Option "xkb_model" "evdev"
[ 57.452] (**) Option "xkb_layout" "us"
[ 57.501] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[ 57.501] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[ 57.501] (II) Using input driver 'evdev' for 'Video Bus'
[ 57.502] (**) Video Bus: always reports core events
[ 57.502] (**) evdev: Video Bus: Device: "/dev/input/event3"
[ 57.502] (--) evdev: Video Bus: Vendor 0 Product 0x6
[ 57.502] (--) evdev: Video Bus: Found keys
[ 57.502] (II) evdev: Video Bus: Configuring as keyboard
[ 57.502] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input3/event3"
[ 57.502] (**) Option "xkb_rules" "evdev"
[ 57.502] (**) Option "xkb_model" "evdev"
[ 57.502] (**) Option "xkb_layout" "us"
|
|
|
Back to top |
|
|
RMCampos n00b
Joined: 30 Jun 2011 Posts: 7
|
Posted: Thu Aug 02, 2012 11:16 am Post subject: |
|
|
ad_meis, did you try slim? Slim is a nice option. |
|
Back to top |
|
|
houtworm Guru
Joined: 08 Mar 2003 Posts: 391 Location: Den Haag, Netherlands
|
Posted: Fri Aug 03, 2012 5:05 pm Post subject: Re: xdm - cannot login |
|
|
ad_meis wrote: | Everything is fine with boot, xdm starts, I have the graphical user interface to login. I insert correct username and password, click "enter" and again I get the same xdm screen for the login. (notice that it does not say incorrect login). |
I had the same problem I think. In kdm.log was something about "no dbus session found".
Solved by downgrading xorg-server (from xorg-server-1.12.99.903 to xorg-server-1.12.99 I think. It is not on this computer). _________________ niemand is onbekwamer, dan een timmerman zonder hamer
Kees |
|
Back to top |
|
|
RobPearce n00b
Joined: 12 Jul 2005 Posts: 66 Location: Cambridge, England
|
Posted: Tue Sep 11, 2012 9:05 am Post subject: |
|
|
I also had a problem with these symptoms, and as houtworm said it was down to dbus sessions, or more specifically, consolekit. I added consolekit to the default runlevel and that fixed it. |
|
Back to top |
|
|
ycUygB1 Apprentice
Joined: 27 Jul 2005 Posts: 276 Location: Portland, Oregon
|
Posted: Tue Dec 03, 2013 8:28 am Post subject: |
|
|
This was incredibly useful. Thank you. I am a refugee from Gnome 3. |
|
Back to top |
|
|
|