I'm also a big use of the X server kill keystroke. I use it as a really fast logout mechanism all the
time. Of course I could change to another key sequence (though it wouldn't work when the
screen is locked), and I guess I will have to.
The bigger problem in X server and application bugs. There's no easy way to work around them
and the kill sequence is a quick way to recover. Yes, you can say these should be fixed,
but I've seen them for as long as I've used Linux which is more than a decade now. Whether
Firefox, OpenOffice, some full-screen game (the worst because they seem to make virtual
console switching fail when they lock up), or whatever locks up your session, this gives you a way
out.
Really, I'd like to see the X protocol extended so grabs weren't needed as often, and so there was
a safer way to do grabs. But that hasn't happened and it would take a long time for things to be
rewritten to take advantage of it.
The X server going into a catatonic state (or crashing, but at least then you can login and restart
it) is also something which is hard to fix, because there are so many different video cards and
extensions.
So, in summary, I hate to see this go without a replacement. Someone mentioned that Sun
requires you to hit the key sequence three times in a row -- that would be fine with me. The
alternative is to ssh in and kill things from another computer, or to power-cycle the box, which
isn't convenient.
Posted Apr 17, 2009 21:39 UTC (Fri) by oak (guest, #2786)
[Link]
In the case of a keyboard grab, you can just switch to a virtual terminal
and kill the offending program (all toolkits popups use grabs so program
freezing with menu open e.g. to network timeout is pretty bad). That
releases the client's pointer/keyboard/server grab.
This helps only to grabs though, if X itself freezes, you cannot do the VT
switch as similarly to other FB apps, X would need to ACK the VT-switch
(at least until kernel can do the mode switches & palette save/restore on
VT switches by itself). Then you need to use the kernel SysRq key to kill
the whole X.