Solved

Can't Always Start X-Windows Automatically

Posted on 2007-03-29
3
337 Views
Last Modified: 2013-12-27
I use my PC daily. For some strange reason, sometimes I end up at a black console screen with a text-based, localhost login just after booting up. While booting, the GUI seems to be working just fine, yet no GUI login. This problem occurs usually 1 to 2 times a week. When it happens, these are the steps that I must employ, in order to get the graphical interface working:

At the console, which comes up 1 to 2 times a week at boot-up, login as root.

Change my directory to /tmp

rm .X0-lock

Delete regular file .X0-lock [y], then tap ENTER.

CTRL-ALT-DEL to reboot WITHOUT logging-out.

If I follow the above EXACTLY, I'll get my GUI login at the next boot. What can I do, so that this problem no longer requires the above steps.

My os is Fedora 6.0.
SELinux = 'Enforcing.'
User mode = 'Single User.'
Processor = 3.2 GHz, Pentium 4, with EM64T (single core Prescott).
RAM = 2 GB.
Graphics card = NVidia NX6600GT, with 128 MB DDR3, DVI, and HDTV-ready.
200 GB Maxtor SATA, with 1 Vol Group (4 Volumes) on LVM.

Much thanks in advance for any help.
0
Comment
Question by:rgoff
  • 2
3 Comments
 
LVL 6

Assisted Solution

by:_iskywalker_
_iskywalker_ earned 50 total points
ID: 18822080
what says your /var/log/Xorg.0.log
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 450 total points
ID: 18827061
X should always remove its lock file if shut down properly. How do you shut down your system? Next time it happens, if you restart X then you need to look at /var/log/Xorg.0.log.old, because /var/log/Xorg.0.log now refers to your current session
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 450 total points
ID: 18827082
If you find that /var/log/Xorg.0.log.old refers to the session that stopped because the lock file existed, you have to go back to the Xorg.0.log before that. When the problem occurs, from the text console (i.e. *before* CTRL-ALT-DEL), do this:

cd /var/log
mv Xorg.0.log.old Xorg.0.log.old.old

(choice of new name of Xorg.0.log.old is up to you). This log will tell you how X shut down when it didn't delete the lock file.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Coding C# in Linux 8 134
Linux mount of Windows Shared Now Fails 8 80
what do I need to host my own web sites? 13 53
Internal CA server 6 51
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question