LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 08-12-2004, 05:57 PM   #1
cludwin
Member
 
Registered: Feb 2002
Distribution: Slack
Posts: 50

Rep: Reputation: 16
Restarting X without ctrl-alt-bksp or reboot


This has always upset me and I finallly found a solution to when X freezes and you can't ctrl-alt-backspace. All you need to do is ssh in from another machine, kill X and restart X using startx, -- no need to reboot --.

I have killed X before but it just leaves the screen foobar'd and I thought that all that there is left to do is reboot, however by issuing a startx everyhting is fixed and you can once again use your machine.

1) find the pid of your X server:
ps -e | grep X

2) kill X
su
kill -9 PID_FROM_ABOVE

3) restart X
startx &

Hope other poeple find this,
it took me 4-ever to figure this out.

cludwin
 
Old 08-12-2004, 07:10 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Or... "kill -9 $(pidof X)"
 
1 members found this post helpful.
Old 08-30-2004, 10:07 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
or
killall X

--Shade
 
Old 07-13-2005, 11:22 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Hi folks,

FedoraCore3
KDE deskop

I'm searching around for 'restart X' without logout and relogin

[Ctrl]+[Alt]+[Back Space]
does not work here. It logout and I have to relogin

$ ps -e | grep X
5889 ? 00:00:12 X

su
# kill -9 5889
also logout

# killall X
also logout

$ kill -9 $5889
bash: kill: (889) - No such process
(It is strange here the number '5' missing)

Advice will be appreciated. TIA

B.R.
satimis
 
Old 07-19-2005, 08:50 PM   #5
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
Quote:
Originally posted by satimis
I'm searching around for 'restart X' without logout and relogin
There shouldn't be a way to do this. Think about it. Wouldn't it be a big security flaw if you didn't have to login when X started?
 
Old 07-19-2005, 09:30 PM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Hi WRSpithead,

Quote:
Wouldn't it be a big security flaw if you didn't have to login when X started?
X window (KDE desktop) is already running. Because I made some changes on a config file it required restarting X window to take effect.

IIRC on Redhat [Ctrl]+[Alt]+[Back Space] will do the job, without logout and relogin. But it did not work on my FC3 box.

B.R.
satimis
 
Old 08-03-2005, 07:14 PM   #7
_UnPrEdictAbLe_
Member
 
Registered: Aug 2004
Location: Hyderabad, India
Distribution: Fedora Core 4
Posts: 183

Rep: Reputation: 30
Angry

Hi people..

Anyone tried Fedora Core 4 ?? There is no switching to text mode and back to graphical with Ctrl+Alt+F1 F7 etc.. can anyone help me
 
Old 08-04-2005, 05:51 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally posted by _UnPrEdictAbLe_
Hi people..

Anyone tried Fedora Core 4 ?? There is no switching to text mode and back to graphical with Ctrl+Alt+F1 F7 etc.. can anyone help me
I reported this problem as a bug during FC4 testing, but was promptly told that it wasn't, but it still doesn't work properly.
 
Old 01-26-2008, 03:23 PM   #9
motin
LQ Newbie
 
Registered: Apr 2006
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by satimis View Post
I'm searching around for 'restart X' without logout and relogin
You can skip the logout part and login in a new parallell X session instead. A Howto for this on Ubuntu can be found here: http://ubuntuforums.org/showthread.php?p=4211618

Hopefully you can use the same principles on your system.

Cheers!
 
Old 11-04-2010, 04:58 AM   #10
mmpsy
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 1
Easier from console?

Quote:
Originally Posted by motin View Post
You can skip the logout part and login in a new parallell X session instead. A Howto for this on Ubuntu can be found here: http://ubuntuforums.org/showthread.php?p=4211618

Hopefully you can use the same principles on your system.

Cheers!
Hi people,
I've had the same issue, and tried the top (kill X then restart it) in my ubuntu 10.04 w. KDE 4, and got the same problems - logged out etc. However I don't need to restart X that often, so now instead of loggin in to KDE in the first place I start with a plain console login and then start X - then the original solution seems to work, at least with GNOME.

Best, Michael.
 
  


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
NEWBIE Slackware 10.0 --> logout shutdown reboot (CTRL-ALT-F2) confused?? koodoo Linux - Newbie 5 06-01-2005 06:21 PM
NEWBIE Slackware 10.0 --> logout shutdown reboot (CTRL-ALT-F2 confused?? koodoo Linux - Newbie 1 05-31-2005 05:51 PM
No alt-ctrl-F7/F8 spotslayer SUSE / openSUSE 3 04-26-2005 07:50 PM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 08:13 AM
Switching window focus (like alt+tab in windows) and Ctrl+Alt+F1 X windows problem... DiZASTiX Linux - Software 3 01-20-2005 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 05:43 AM.

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