[comp.windows.x] Problem when killing of processes.

keating@rex.cs.tulane.edu (John W. Keating) (11/28/90)

Hello...

    Is there any way to solve the problem of killing off the window manager
    process without rebooting the whole system?

    Following is a more specific statement of the problem.

    Occasionally, someone will kill of all their processes while running
    windows.  This causes the console (the terminal curently being used)
    to start misbehaving.  It logs the user off, gives a login prompt,
    and then stops receiving input except for a carriage return and a
    new login prompt after each key is hit.

    I'm running X with twmrc.

    Any help would be geatly appreciated, as I'm fairly new to the world
    of X-windows.

    John Keating

mayoff@cs.utexas.edu (Robert Mayoff) (11/28/90)

In article <5170@rex.cs.tulane.edu> keating@rex.cs.tulane.edu (John W. Keating) writes:
>    Occasionally, someone will kill of all their processes while running
>    windows.  This causes the console (the terminal curently being used)
>    to start misbehaving.  It logs the user off, gives a login prompt,
>    and then stops receiving input except for a carriage return and a
>    new login prompt after each key is hit.

One wonders what system in particular you are using.  I see this problem quite
frequently (to my eternal sorrow) around here on our SPARCstations 1+ and our
Suns-2.  The problem here is that people kill -9 their X server, or crash it in
some way, and fail to restore the state of the keyboard afterward (possibly by
also killing the shell script which started the server).  The solution in this
case in to log in remotely and run the kbd_mode program thus: "kbd_mode -a".
This tells the keyboard to report keypresses as ASCII-encoded characters, which
is what a Sun expects in console mode.  You don't have to be root to do this,
by the way.  If you're not on a Sun, then this probably won't help.
-- 
/_  rob		<mayoff@cs.utexas.edu>
 /_ Fun things to do with UNIX (#12 in a series):
  / cd /dev; cat mouse			# Try this on a Sun.  Really!

etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) (11/29/90)

If you do not exit gracefully from X, the behavior
you describe happens quite often.  How are you
exiting X?

If you log on to your SUN from another station and
type in 'kbd_mode -a', it will fix your keyboard
problems.
--
					Eric Taylor
					Baylor College of Medicine
					etaylor@wilkins.bmc.tmc.edu
					(713) 798-3776