This topic was moved from 'Slackware-Installation' to the 'main' Slackware forum in hopes of wider response. I'm sorry if that irritates some folks, but I consider it necessary.
For several years now, and on at least six different computers running Slackware of various versions (usually with xfce), I have experienced intermittent failure of the 'startx' command on cold boot into a user account. Currently this happens on three different computers with Slackware64 14.2 with multilib and xfce4. Typically, startx fails on first and/or second call, then usually succeeds by third trial.
When startx fails, it always results in black screen for 2-3 seconds, then returns to user prompt ($), with (consistent) message like,
" ...
...
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 2 13:47:31 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
resize called 1920 1080
/usr/bin/startxfce4: X server already running on display :0
_IceTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_IceTransMakeAllCOTSServerListeners: server already running
xfce4-session: Unable to establish ICE listeners: Cannot establish any listening sockets
xinit: connection to X server lost
waiting for X server to shut down (II) Server terminated successfully (0). Closing log file."
Every time it fails, it includes the 'claim' that the 'X server is already running on display :0", which seems false, as it happens also on cold boots.
I've looked thru the log file without success in finding a 'culprit', probably due to my own lack of knowing what to look for. The log file typically consists of many 'trials' for 'missing screen section', trial modelines, etc etc. When successful, the logfile just ends with a last line like,
"...NOUVEAU(0): Modeline "1280x800"x0.0 1280 1328 ... " etc,
with no lines following.
I read that 'NOUVEAU' is x's name for an emulation of NVIDIA, which board seems to be in all my machines. I have not tried 'new drivers' and I have doubts that they would solve this.
My monitor resolutions are all 1920x1080.
Hazel commented that maybe (1) I was entering a runlevel other than '3'. Checking, I find this not to be the case, both in the boot messages or in /etc/inittab. - or, (2) If X is running should be able to find it with (probably) alt-F7. I've tried that when returned to the boot line, both 'Alt-F7' and 'Ctrl-Alt-F7'. No response.
I have checked for the existence of a '.X0-lock' file (or similar) - no file like that exists until X boots successfully.
I looked on the x webpage (
www.x.org) at the Faq, especially one question that duplicates the 'already running' message. None of the remedial actions suggested there have any positive effect. There is no 'lock file' at all until X is started.
One other person (not slackware forum) suggested booting x with 'startxfce4'. This 'works', but leaves some menu items in xfce disabled. So is not satisfactory.
Given that this has been going on for years, I'm a bit frustrated. I don't find very much discussion of this problem here or elsewhere online. This seems strange, since it seems 'built-in' to this household, and has for several years of Slackware use. My slackware installs are always from the DVD (earlier CD's) - by the book. I've not upgraded a kernel - but this happened long before that was relevant.
If anyone has experience with this problem and found a resolution, I would be very interested to hear about it.
Thanks - jrc