During bootup xdm starts gdm properly, screen changes resolution (goes black, flickers, heads back to text mode) However, it doesn't actually give me a login window. If I log in as root afterwards and do /etc/init.d/xdm status, it tells me it's running. If I do /etc/init.d/xdm restart, I get a proper gdm screen that works. ( So it isn't a malconfigured X server ) gnome-base/gdm-2.20.10-r2 x11-apps/xinit-1.2.0-r2 Reproducible: Always
Please check ~/.xsesion-errors to see if anything is failing. Might benefit to compare the outputs from the failed and successful runs. Just for sanity, you could also check the /var/log/Xorg.0.log after the first (failed) run as well as dmesg output for clues.
There is no generated ~/.xsession-errors because you never log in in the first place, it just launches gdm, gdm starts the greeter, greeter shuts down again, gdm doesn't respawn greeter. I'll attach gdm's Xorg.log, real xorg log and play spot the difference, but I didn't see any when I was investigating
Created attachment 212215 [details] Xorg.log - failed gdm
Created attachment 212217 [details] gdm.log - failed gdm
Created attachment 212219 [details] Xorg.log - manually restarted gdm
Created attachment 212220 [details] gdm log - manually restarted gdm
Did you put "xdm" in the "boot" runlevel or in "default"? Thanks
rc-config show boot |grep xdm - Returns false rc-config show default |grep xdm: xdm [started] xdm-setup [started]
Darkmere boot # rc-update udev | sysinit alsasound | boot urandom | boot postfix | default nonetwork fcron | default nonetwork consolekit | default local | default nonetwork sshd | default ntpd | default swap | boot keymaps | boot udev-postmount | default xdm-setup | default procfs | boot root | boot localmount | boot gpm | default nonetwork netmount | default modules | boot avahi-dnsconfd | default smartd | default nonetwork xdm | default killprocs | shutdown dbus | default nonetwork distccd | default devfs | sysinit dmesg | sysinit termencoding | boot acpid | default hwclock | boot hald | default nonetwork net.lo | boot bootmisc | boot savecache | shutdown consolefont | boot syslog-ng | default nonetwork net.eth0 | default fsck | boot hotplug | default nonetwork avahi-daemon | default mtab | boot mount-ro | shutdown sysctl | boot hostname | boot
Portage 2.1.7.9 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11-r0, 2.6.31-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r6-i686-AMD_Athlon-TM-_XP_2500+-with-gentoo-2.0.1 Timestamp of tree: Mon, 30 Nov 2009 17:45:02 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 1.3.7-r1, 2.1.9-r1 dev-lang/python: 2.6.4, 3.1.1-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.64 sys-devel/automake: 1.4_p6, 1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/X11/rstart /etc/X11/xdm /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d /usr/X11R6/lib/X11/xkb" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/mnt/devel/distfiles" FEATURES="assume-digests candy ccache collision-protect cvs distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms sign strict strip unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/" LANG="en_GB.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en sv" MAKEOPTS="-j1" PKGDIR="/mnt/devel/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/devel/cvstree/gentoo-x86" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X a52 aac acl acpi alsa ao asf asyncns avahi berkdb branding bzip2 cairo ccache cdparanoia cdr clamd cli consolekit cracklib crypt css cups dbus dga dlloader dmx dri dts dvb dvd dvdr dvdread eds emboss encode epiphany ethereal evo exif faad fam ffmpeg firefox flac fortran freetype galago gcj gdbm gif gimp glitz glsa gnome gnome-keyring gpm gsm gstreamer gtk gtk2 gtkhtml h323 hal howl-compat iconv id3 ieee1394 inotify ipod ipv6 jingle joystick jpeg jpeg2k keyring lame lcms libnotify live logitech-mouse lzma mad mikmod mmx mmxext modules mozilla moznoirc moznomail mp3 mp4 mp4live mpeg mpeg2 mpeg4 msn mudflap musepack musicbrainz ncurses nethack network-cron nls nptl nptlonly nsplugin nvidia objc offensive ogg opengl openmp pam pcre pda pdf perl pipechan png pppd pulseaudio python qt3support qt4 quicktime readline reflection samba sdl session sip spell spl sqlite sse ssl startup-notification svg sysfs tcpd theora thunar tiff truetype truetype-fonts type1-fonts unicode usb vorbis wav win32codecs x264 x86 xcomposite xgetdefault xml xorg xscreensaver xulrunner xv xvid yahoo zeroconf zlib zsh-completion" ALSA_CARDS="trident dummy via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en sv" USERLAND="GNU" VIDEO_CARDS="vesa nvidia dummy fbdev vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Checked, gdm 2.28.x works properly, but still doesn't give me remote logins, so I'm back to this version, that doesn't work preoperly. Adding a service xdm restart in local isn't too fun but...
Could you try _not_ putting xdm in _any_ runlevels and running it manually after the boot finishes? Thanks
(In reply to comment #12) > Could you try _not_ putting xdm in _any_ runlevels and running it manually > after the boot finishes? > > Thanks > Done, works.
(In reply to comment #13) > Done, works. Ok, so my feeling here is that gdm/X are started before another service and somehow gdm/X don't like that. NB : - I say gdm/X because there's yet no way to tell which one is really failing - I have no idea how to debug openrc - I have no idea how to debug gdm Now on to your setup : - Is your openrc using parallel start-up? If so, try turning it off. - Do you use special admin "stuff" (nscd, pam modules, ldap, ...) - Did you configure gdm in any way? To be perfectly honest, this is going to be hard to debug since I have _no_ idea what could be causing this. Thanks
(In reply to comment #14) > (In reply to comment #13) > > Done, works. > > Ok, so my feeling here is that gdm/X are started before another service and > somehow gdm/X don't like that. > > NB : > - I say gdm/X because there's yet no way to tell which one is really failing > - I have no idea how to debug openrc > - I have no idea how to debug gdm > > Now on to your setup : > - Is your openrc using parallel start-up? If so, try turning it off. > - Do you use special admin "stuff" (nscd, pam modules, ldap, ...) > - Did you configure gdm in any way? > > To be perfectly honest, this is going to be hard to debug since I have _no_ > idea what could be causing this. Welcome to my world, I used to maintain this thing ;P Lets see if I can dig up some more info on OpenRC then, the old init-style system used to have a way of showing the real dependency-startorder tree that we had, but right now it seems that openrc isn't completely documented.. From the precursor look, it seems that It's not using parallel startup, I'll peek at adding some startup latencies and see if that sorts it.
Peeking more, I wouldn't guess it's an ordering issue: Mounting network filesystems Starting gpm Setting up gdm Starting avahi-dnsconfd Starting distccd Starting fcron Starting ntpd Starting postfix Starting S.M.A.R.T. Starting sshd Starting local -- - The only thing I can imagine that would fark gdm would be ntpd.
> -- - The only thing I can imagine that would fark gdm would be ntpd. > Appears my guess was correct, if I modify xdm startup script to add "uses ntpd" it resorts them and appears to function.
(In reply to comment #17) > Appears my guess was correct, if I modify xdm startup script to add "uses ntpd" > it resorts them and appears to function. Why ?! o_0
(In reply to comment #18) > (In reply to comment #17) > > Appears my guess was correct, if I modify xdm startup script to add "uses ntpd" > > it resorts them and appears to function. > > Why ?! o_0 > Well, A first guess would be that gdm-2.20 (2.28 worked fine) has some issues with a 1-2 hour negative drift while it's starting up?
X itself it not that happy about clock drifts especially if it happens backwards. It used to cause locks on one of my machines for years if I had ntpd enabled.
anyway, not a gnome problem afaik, maybe xdm init script needs an "after ntpd" dependency. Moving to x11.
This has changed completely now with gdm-3.12 and systemd