Xorg doesn't go back correctly to console when closed on FreeBSD 9.0

Matthias Apitz guru at unixarea.de
Sat Apr 14 08:53:27 UTC 2012


El día Friday, April 13, 2012 a las 08:10:09PM +0700, Erich Dollansky escribió:

> I did but it is too short to see the error. After creating this file, I tried to close X and got into the usual problems. It seems that X does not switch properly back to console video mode (whatever name it has). I switched then to twm and ran into the same problem. Of course, this could have been caused by blackbox from the run before.
> 
> I checked the log files but could not see something which could be the reason for the problem.
> 
> If you tell me what I could do, I could try to find the cause of the problem.

Show us /var/log/Xorg.0.log with the hanging X (just go to another alpha
console or login remotely);

check the proc hierarchy in your system, mine is like this:

$ ps axl | fgrep 2194
 1001  2194  2176   0  47  0  10844   1980 wait   I+    v0    0:00,01 xinit /ho
    0  2195  2194   0  45  0 322240 312608 select S     v0    3:53,80 X -nolist
 1001  2198  2194   0  76  0   9896   1740 wait   I     v0    0:00,05 /bin/sh /
$ ps axl | fgrep 2195
    0  2195  2194   0  45  0 322240 312608 select S     v0    3:54,22 X -nolist
$ ps axl | fgrep 2198
 1001  2198  2194   0  76  0   9896   1740 wait   I     v0    0:00,05 /bin/sh /
 1001  2257  2198   0  44  0   9752   1260 nanslp S     v0    0:00,29 kwrapper 
$ ps ax | fgrep 2198
 2198  v0  I      0:00,05 /bin/sh /usr/local/bin/startkde

i.e. xinit (2194) launches X (2195) and a shell (2198) for startkde;
which process does not terminate for you;

	matthias 
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5


More information about the freebsd-questions mailing list