View previous topic :: View next topic |
Author |
Message |
ChojinDSL l33t

Joined: 07 Jul 2003 Posts: 784
|
Posted: Fri Apr 29, 2005 12:15 pm Post subject: What to do when X crashes? |
|
|
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 |
|
 |
AliasXZ l33t


Joined: 08 Feb 2005 Posts: 847 Location: England, Wakefield
|
Posted: Fri Apr 29, 2005 12:27 pm Post subject: |
|
|
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  |
|
Back to top |
|
 |
anil_et Tux's lil' helper


Joined: 22 Jul 2002 Posts: 98
|
Posted: Fri Apr 29, 2005 12:47 pm Post subject: |
|
|
ssh from another machine and
but you need another machine to do that
Anil |
|
Back to top |
|
 |
Fran Guru


Joined: 29 Feb 2004 Posts: 530 Location: Coruña (Spain)
|
Posted: Fri Apr 29, 2005 2:05 pm Post subject: |
|
|
And if you don't have another machine: acpid. You can assign an action to the case power button. |
|
Back to top |
|
 |
Chaosite Guru


Joined: 13 Dec 2003 Posts: 540 Location: Right over here.
|
Posted: Fri Apr 29, 2005 2:37 pm Post subject: |
|
|
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 |
|
 |
Fran Guru


Joined: 29 Feb 2004 Posts: 530 Location: Coruña (Spain)
|
Posted: Fri Apr 29, 2005 3:00 pm Post subject: |
|
|
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 . |
|
Back to top |
|
 |
cbr Apprentice

Joined: 05 Jan 2004 Posts: 285 Location: Tallinn/Rakvere, Estonia
|
Posted: Fri Apr 29, 2005 3:43 pm Post subject: |
|
|
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 |
|
 |
ChojinDSL l33t

Joined: 07 Jul 2003 Posts: 784
|
Posted: Sat Apr 30, 2005 9:53 am Post subject: |
|
|
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 |
|
 |
|