On Wed, Dec 9, 2009 at 11:22 AM, Stefan G. Weichinger <li...@xunil.at> wrote: > Am 09.12.2009 16:31, schrieb walt: > >>> So it seems more gdm/gnome-related to me, right? >> >> That would be my guess. I don't use gdm so I don't know how to fix it. >> I use startx with "exec /etc/X11/Sessions/gnome" in my ~/.xinitrc. You >> could try that to see if gnome starts correctly. > > Yep, that works! > > So I could see how to always start X via startx or research where gdm > fails. Thanks for helping me this step further ... > > S
Well, on my netbook, where I have to give a passphrase to access the encrypted root anyhow (and am, therefore, not terribly interested in typing yet more passwords moments later), I have this... in /etc/inittab: ... c6:2345:respawn:/sbin/agetty 38400 tty6 linux c7:345:respawn:/usr/sbin/auto_start_x.sh ... and /usr/sbin/auto_start_x.sh: #!/bin/bash ASXFILE="/var/run/asx.pid" if [ ! -r /etc/nologin ] ; then if [ -f $ASXFILE ] ; then XPID=`head -1 $ASXFILE` if NAME=`ps -p $XPID -o command=` ; then OLDNAME=`tail -1 $ASXFILE` if [ "$NAME" == "$OLDNAME" ] ; then sleep 5 exit 1 else rm -f $ASXFILE &>/dev/null fi else rm -f $ASXFILE &>/dev/null fi fi /bin/su myuser -l -c "startx >/dev/null 2>&1" & XPID=$! NAME=`ps -p $XPID -o command=` echo $XPID > $ASXFILE echo $NAME >> $ASXFILE wait $XPID exit $? fi # ** End auto_start_x.sh Respawns on close/crash... doesn't allow attempts to start more than once (hence the 'lockfile' type hack in the script), doesn't break on a stale lockfile, and does whatever the user ('myuser' should be replaced with a real username) wishes in terms of WM/desktop by way of the user's ~/.xinitrc ... and all without ever asking me for a user password. -- Poison [BLX] Joshua M. Murphy