LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-03-2004, 12:54 PM   #1
WarrenWright
LQ Newbie
 
Registered: Dec 2003
Location: Dallas
Distribution: Fedora Core 1
Posts: 21

Rep: Reputation: 15
How can I recover gracefully when xwindows dies?


I left for work this morning with Licq (linux icq) running on my Fedora xwindows gui (the default one that isn't gnome).

When I got to work I started icq without thinking about it, and started getting error messages that icq is already running on another machine (my home one, in fact). My win2k at work handles this with no trouble, but when I got home for lunch there were 600+ error windows on my linux xwindows screen!

Further, xwindows was exhibiting really weird behavior...going to an all white screen, then a screen that was white but with hundreds of licq error message minimized icons on it, etc, and was unresponsive.

I was still able to swap to command line mode with ctrl-alt-F1 or ctrl-alt-F2, but wasn't sure what to do from there.

Eventually I ran ps -A | more to see what was running, and then killed the licq_bin process, but that closed licq without getting rid of the 600 or so error message popups.

Without knowing what else to do, I had to reboot to fix things.

What should I have done instead? How can I fix it when things go wrong on the GUI side of things without using the old Windows-world standby of having to reboot the machine?

Thanks,

Warren Wright
Dallas, TX
 
Old 02-03-2004, 01:00 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
If you can get to the command line you can always blow away X. A killall X should do it just fine.
 
Old 02-03-2004, 01:28 PM   #3
WarrenWright
LQ Newbie
 
Registered: Dec 2003
Location: Dallas
Distribution: Fedora Core 1
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jtshaw
If you can get to the command line you can always blow away X. A killall X should do it just fine.
Could I somehow restart it at that point so a ctrl-alt-F7 would take me back and let me logon again?

Thanks,

Warren
 
Old 02-03-2004, 01:45 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
If you run a login manager like kdm or xdm then killing it and restarting it will do that. For example, if you run kdm (type ps -A | grep kdm to see if it is running) then a killall -s QUIT kdm will kill it and typing kdm will restart it again.
 
Old 02-03-2004, 02:03 PM   #5
Sm0k3
Member
 
Registered: Sep 2003
Location: Chicago
Distribution: Slackware 13 x86_64
Posts: 58

Rep: Reputation: 15
you could also just do a :
Code:
killall -HUP X
and restart the X server
 
Old 02-03-2004, 04:03 PM   #6
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
hi - doesnt <ctrl><alt><backspace> also kill X?
 
Old 02-04-2004, 11:28 AM   #7
Sm0k3
Member
 
Registered: Sep 2003
Location: Chicago
Distribution: Slackware 13 x86_64
Posts: 58

Rep: Reputation: 15
Quote:
Originally posted by h/w
hi - doesnt <ctrl><alt><backspace> also kill X?
yes, actually it would be a little less work to ctrl+alt+bs, but if X is being unresponsive, it may take awhile to catch the signal, where-as as soon as u flip to a tty killall -HUP X will restart X almost immediatly.. either way you still have to wait for the system to stop being sluggish enough to acknowledge the keypress sequence :-P

oh btw, as soon as you restart X (using whichever method u prefer), you can flip back to terminal 7 (alt+F7) and the login screen should be waiting for you

Last edited by Sm0k3; 02-04-2004 at 11:31 AM.
 
Old 02-04-2004, 03:08 PM   #8
WarrenWright
LQ Newbie
 
Registered: Dec 2003
Location: Dallas
Distribution: Fedora Core 1
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks. I'll take those suggestions home and play with them until they are familiar so next time I can recover without forcing a total reboot.

It was a bit ironic and funny that after telling my wife about the linux installation and about the stability possible I asked her to turn licq off for me so I could use it at work and she reported back a total white-screen and unresponsive GUI similar to what we'd see so often with the old Win98 installation that was there.

I expect those kind of things in the early days thoough, when I'm a newbie and the linux box is still being configured in major ways.

Later,

Warren
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you gracefully interrupt Yum? tcurt Linux - Software 1 06-28-2006 12:17 PM
Wireless Dies in XWindows WashURick Linux - Wireless Networking 4 11-03-2005 10:17 AM
x server dies...dies...dead! aquaboot Linux - Software 2 08-28-2005 11:54 AM
Gracefully restarting ProFTPD? bluelaguna Linux - Software 1 08-04-2005 11:42 PM
shutting down gracefully? pdmackenzie Linux - Hardware 2 10-30-2004 09:33 PM


All times are GMT -5. The time now is 07:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration