Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295918 - xdm with XSESSION=gdm doesn't start the gdm at bootup
Summary: xdm with XSESSION=gdm doesn't start the gdm at bootup
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 342661
  Show dependency tree
 
Reported: 2009-12-06 00:27 UTC by Spider
Modified: 2014-05-30 19:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.log - failed gdm (Xorg.0.log,8.40 KB, text/plain)
2009-12-06 12:08 UTC, Spider
Details
gdm.log - failed gdm (gdm.log.0,1.04 KB, text/plain)
2009-12-06 12:09 UTC, Spider
Details
Xorg.log - manually restarted gdm (Xorg.0.log.works,10.82 KB, text/plain)
2009-12-06 12:09 UTC, Spider
Details
gdm log - manually restarted gdm (gdm.log.0.works,1.04 KB, text/plain)
2009-12-06 12:09 UTC, Spider
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spider 2009-12-06 00:27:45 UTC
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
Comment 1 Arun Raghavan (RETIRED) gentoo-dev 2009-12-06 09:38:43 UTC
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.
Comment 2 Spider 2009-12-06 12:02:46 UTC
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
Comment 3 Spider 2009-12-06 12:08:57 UTC
Created attachment 212215 [details]
Xorg.log  - failed gdm
Comment 4 Spider 2009-12-06 12:09:11 UTC
Created attachment 212217 [details]
gdm.log -  failed gdm
Comment 5 Spider 2009-12-06 12:09:26 UTC
Created attachment 212219 [details]
Xorg.log - manually restarted gdm
Comment 6 Spider 2009-12-06 12:09:48 UTC
Created attachment 212220 [details]
gdm log - manually restarted gdm
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2009-12-06 12:31:11 UTC
Did you put "xdm" in the "boot" runlevel or in "default"?

Thanks
Comment 8 Spider 2009-12-06 15:36:38 UTC
rc-config show boot |grep xdm  -  Returns false
rc-config show default |grep xdm: 

xdm    [started]
xdm-setup  [started]
Comment 9 Spider 2009-12-06 15:38:09 UTC
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                          
Comment 10 Spider 2009-12-06 15:41:46 UTC
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
Comment 11 Spider 2009-12-06 19:11:34 UTC
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...
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-12-06 22:08:28 UTC
Could you try _not_ putting xdm in _any_ runlevels and running it manually after the boot finishes?

Thanks
Comment 13 Spider 2009-12-07 12:59:46 UTC
(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.
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-12-07 13:18:17 UTC
(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
Comment 15 Spider 2009-12-07 14:17:23 UTC
(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.  
Comment 16 Spider 2009-12-07 14:19:27 UTC
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. 
Comment 17 Spider 2009-12-07 14:29:51 UTC
> -- -  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.
Comment 18 Rémi Cardona (RETIRED) gentoo-dev 2009-12-07 15:33:18 UTC
(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
Comment 19 Spider 2009-12-08 09:46:55 UTC
(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? 

Comment 20 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-08 10:05:35 UTC
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.
Comment 21 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-20 23:57:12 UTC
anyway, not a gnome problem afaik, maybe xdm init script needs an "after ntpd" dependency. Moving to x11.
Comment 22 Pacho Ramos gentoo-dev 2014-05-30 19:34:33 UTC
This has changed completely now with gdm-3.12 and systemd