home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.aix:8947 comp.windows.x:15440
- Newsgroups: comp.unix.aix,comp.windows.x
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!wijkstra
- From: wijkstra@fwi.uva.nl (Marcel Wijkstra (AIO))
- Subject: Re: Hanging X11R4 server under AIX3.2.1
- Message-ID: <1992Aug20.085303.23888@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: job.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- References: <1992Aug19.181555.25881@newssrv.edvz.univie.ac.at>
- Date: Thu, 20 Aug 1992 08:53:03 GMT
- Lines: 71
-
- tom@bim.itc.univie.ac.at (Tom Kovar) writes:
-
- # I am running AIX3.2.1 on more RS6000's (550's and 220's). In some cases
- #(not quite reproducible), when the Xserver exits, the console keeps hanging.
- #That means, that the Xserver process really exits, but the background with
- #traces of some of the windows stays on the screen, and the console + keyboard
- #are dead. The only help I know is reboot :(
-
- # I noticed, that this happens mostly in cases where there are many living
- #clients, that should be killed by the exiting server. As we mostly exit
- #the server by exiting the window manager, I have rewritten the twm, so that
- #it tries to delete all of the windows when exiting. It helps much, i.e.
- #the hangups do not occur that often, but nevertheless...
-
- I had similar problems with AIX 3.1.5 . Sometimes, X got killed in a bad
- way, and the entire X screen stayed on the display. More like your problem:
- when I quit twm, the display is cleared, but when the normal text screen
- appears, shades of my xterms are put over it, and the screen freezes as
- well.
- Both can be solved by sending a 'clear screen' to /dev/hft:
-
- tput -Thft clear > /dev/hft
- or
- clear > /dev/hft
- or even
- echo 'some text' > /dev/hft
-
- from another terminal (since the machine is not dead, only the console
- hangs).
-
- I automated this by having a little process running in the background, that
- clears the screen every once and a while (e.g. every minute) when nobody
- is logged in on the console:
-
- #!/bin/csh
- # Usage: 'cleard &' somewhere in your .login
-
- #
- # Is cleard already running?
- #
- if (`ps ax | grep cleard | wc -l` > 2)\
- exit
- #
- # Loop and check every minute for a process starting with a '-'
- # like '-csh'
- #
- while 1
- if (`ps a | grep hft | take +25 | grep '^-' | wc -l` == 0) then
- tput -Thft clear > /dev/hft
- endif
- sleep 60
- end
-
- 'take +25' strips off the first 25 characters of a line, since I only
- need the process name (COMMAND), and not the PID, STAT, TTY and TIME fields.
- There must be other ways to accomplish this, but it works for me, so why
- change, aye?
-
- A better solution than starting 'cleard' on every login would be to start a
- similar process on boot-up, but I'm just an ordinary user, far from root.
- A backdraw of my approach is, that it may clear the screen just when someone
- is trying to log in, i.e. typing his password. I don't know if it can do
- any serious harm, though.
-
- Hope it helps.
- Marcel.
- --
- X Marcel Wijkstra AIO (wijkstra@fwi.uva.nl)
- |X| Faculty of Mathematics and Computer Science
- X University of Amsterdam The Netherlands
- ======Life stinks. Fortunately, I've got a cold.========
-