LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-13-2007, 04:16 PM   #1
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Rep: Reputation: 15
x doesn't start, lock file created


Bit of an annoying problem on my laptop since I upgraded to Kubuntu Gutsy - on bootup I get a black screen and have to drop to a console after 5 minutes of blankness. If I startx I get an error message saying X is already started and a /tmp lock file created. If I delete this lock file I can start X... so why doesn't it start properly on startup?

No error message of note appears on the console screen and ctrl-alt-F7 sends me back to a blank screen if I don't restart X.

~/.xsession-errors doesn't enlighten me much. It doesn't get updated until after I startx either.
 
Old 12-13-2007, 04:27 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by pickarooney View Post
Bit of an annoying problem on my laptop since I upgraded to Kubuntu Gutsy - on bootup I get a black screen and have to drop to a console after 5 minutes of blankness. If I startx I get an error message saying X is already started and a /tmp lock file created. If I delete this lock file I can start X... so why doesn't it start properly on startup?
Maybe the problem is that the lock file is not being deleted when X shuts down. You could shut down your system and use a live CD to see if the lock file was deleted during shutdown.

------------------
Steve Stites
 
Old 12-13-2007, 04:33 PM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
The ~/.xsession-errors is only updated if you start the X server as a user. If the system starts the X server as part of the switch to a certain run level, it will be logged in the system log files (not sure on Kubuntu, but Fedora is /var/log/Xorg.0.log). I'm guessing X is starting, it just isn't launching your login window or something. You may also want to look at the gdm log (once again, on Fedora /var/log/gdm/:0.log).

HTH

Forrest
 
Old 12-15-2007, 04:07 PM   #4
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
Nothing untoward in the Xorg.log and the kdm.log is empty. No gdm log or folder in my var.
When I boot up and fall back to the console I can never see the lock file. It only seems to appear once I try to run startx.

Is there some way of deleting kdm's settings and starting again?
 
Old 12-17-2007, 01:28 PM   #5
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
Any other tips?
 
Old 04-30-2008, 03:28 PM   #6
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
Uy! I solved the problem somehow the last time (probably a reformat) and have forgotten how. Just updated to Hardy Heron and have exactly the same problem again. Christ, I hate these half-assed releases!

Again, if anyone has a tip this time apart from reformatting, I'm all ears
 
Old 04-30-2008, 03:40 PM   #7
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
What happens if you log in, switch to run level 3, remove any lock files, and then switch to run level 5?

HTH

Forrest
 
Old 04-30-2008, 03:51 PM   #8
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by forrestt View Post
What happens if you log in, switch to run level 3, remove any lock files, and then switch to run level 5?

HTH

Forrest
Can you explain exactly how to do that please?

Thanks
P
 
Old 04-30-2008, 03:57 PM   #9
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Log in and run:

Code:
sudo /sbin/init 3
sudo rm /tmp/.X0.lock
sudo /sbin/init 5;exit
HTH

Forrest

p.s. I'm just guessing that the lock file is the same on Hardy Heron as it is in Fedora. It might be different.

Last edited by forrestt; 04-30-2008 at 03:58 PM.
 
Old 04-30-2008, 04:46 PM   #10
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
I did that and I ended up in a command line login screen, from where I logged in and ran startx. I'm not sure if that advances us any?
 
Old 04-30-2008, 05:15 PM   #11
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Don't run the startx. Log in, remove the lock file, and then run the init 5.

HTH

Forrest
 
Old 05-01-2008, 12:50 PM   #12
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
I'm sorry, I don't get it. I booted up, dropped to console, logged in, ran those three commands you gave me and ended up at a console login screen. There didn't seem to be much else to do after that, apart from login again...
 
Old 05-01-2008, 01:26 PM   #13
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
What happens if you hit [ctrl][alt][F7] at the login?

Forrest
 
Old 08-02-2008, 06:13 PM   #14
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
It just goes back to black again.


I reformatted, reinstalled and it's giving me the exact same crap again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scren saver won't start on lock sadiqdm Linux - Desktop 1 11-22-2006 06:09 PM
File format of .vnc file created by vncrec rktech83 Linux - Networking 0 08-17-2006 09:16 AM
Can't read lock file /tmp/.X0-lock squinn Linux - Newbie 3 07-13-2004 03:42 PM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 04:54 PM
num lock on start up wincrk Linux - General 5 03-24-2003 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration