Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What to do when X crashes?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ChojinDSL
l33t
l33t


Joined: 07 Jul 2003
Posts: 784

PostPosted: Fri Apr 29, 2005 12:15 pm    Post subject: What to do when X crashes? Reply with quote

Thankfully this has happened very rarely. But I think most people might have experienced this at one time or another.

What I'd like to know is, whats the recommended procedure for dealing with X locking up?
By lock up I mean, the picture froze, the keyboard and mouse dont respond anymore, but you can still ssh into your box.

Should you always reboot, or is there a simple way to make the system unload and reload the keyboard and mouse drivers and then reload the desktop?
Back to top
View user's profile Send private message
AliasXZ
l33t
l33t


Joined: 08 Feb 2005
Posts: 847
Location: England, Wakefield

PostPosted: Fri Apr 29, 2005 12:27 pm    Post subject: Reply with quote

i take it the caps lock light and scroll light are not flashing on the keyboard?
_________________
Main:
Kernel: 5.4.38 amd64
RAM: 4GB
Lappy:
Macbook Pro 10.14.6
------------------------------
Please add (solved) to your first post when your issue is resolved 8)
Back to top
View user's profile Send private message
anil_et
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 98

PostPosted: Fri Apr 29, 2005 12:47 pm    Post subject: Reply with quote

ssh from another machine and
Code:
killall X

but you need another machine to do that
Anil
Back to top
View user's profile Send private message
Fran
Guru
Guru


Joined: 29 Feb 2004
Posts: 530
Location: Coruña (Spain)

PostPosted: Fri Apr 29, 2005 2:05 pm    Post subject: Reply with quote

And if you don't have another machine: acpid. You can assign an action to the case power button.
Back to top
View user's profile Send private message
Chaosite
Guru
Guru


Joined: 13 Dec 2003
Posts: 540
Location: Right over here.

PostPosted: Fri Apr 29, 2005 2:37 pm    Post subject: Reply with quote

Fran wrote:
And if you don't have another machine: acpid. You can assign an action to the case power button.


And if you're good enough, you can write a program that does a different thing depending on the morse code you enter using the power key.

Hmmm... That would actually be pretty cool :)
Back to top
View user's profile Send private message
Fran
Guru
Guru


Joined: 29 Feb 2004
Posts: 530
Location: Coruña (Spain)

PostPosted: Fri Apr 29, 2005 3:00 pm    Post subject: Reply with quote

Chaosite wrote:
And if you're good enough, you can write a program that does a different thing depending on the morse code you enter using the power key.

Hmmm... That would actually be pretty cool :)

Yep, I had already thought that :D.
Back to top
View user's profile Send private message
cbr
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 285
Location: Tallinn/Rakvere, Estonia

PostPosted: Fri Apr 29, 2005 3:43 pm    Post subject: Reply with quote

Enable Magic SysRq from kernel menuconfig Kernel Hacking subsection. And upon X lockup just press Shift-PrintScrn-K. (SysRq-K) That will kill the application in the current VT, in your case X. It doesn't always work but in several cases it does. SysRq-S is also an emergency disk cache flush IIRC.
Back to top
View user's profile Send private message
ChojinDSL
l33t
l33t


Joined: 07 Jul 2003
Posts: 784

PostPosted: Sat Apr 30, 2005 9:53 am    Post subject: Reply with quote

Ok, I knew about the magic sysrq key and sshing into it via another machine. All good so far.
But is there any way to deal with this, WITHOUT having to reboot?

Perhaps if the driver for mouse and keyboard were modules, would it then be possible to rmmod/modprobe all the relevant display and input drivers and kill&restart X so that you dont have to reboot?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum