*BSD News Article 79272


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!pumpkin.pangea.ca!eru.mt.luth.se!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!news.belnet.be!news.rediris.es!sanson.dit.upm.es!ioda!jmrueda
From: jmrueda@diatel.upm.es (Javier Martin Rueda )
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ANY WAY to re-enter a v0 session???
Date: 26 Sep 1996 11:01:06 GMT
Organization: Dpt. Ing. Telematica
Lines: 29
Message-ID: <52dnpi$o3v@sanson.dit.upm.es>
References: <Dy5DzL.81F@news2.new-york.net>
NNTP-Posting-Host: ioda.diatel.upm.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: TIN [version 1.2 PL2]

> Something occasionally happens when I am logged in at the console at ttyv0
> that forces me to log in again on ttyv[greater than 0].

I don't understand. You mean that ttyv0 hangs and you have to switch to
another virtual console, and then you cannot switch back to ttyv0, or that
it continues to be hung forever? It's weird. The closest hangups I've
experienced are when I use an X server in another virtual console, but
never when using only text virtual consoles:

1) Sometimes, when I switch from the X server to a text virtual console,
the state of the shift, control, and alt keys is broken, and I cannot type
correctly. Pressing and releasing them a few times solves that.

2) If I switch from the X server to a text virtual console while the X server
is resetting the video card, or changing video modes, the screen goes blank,
and I cannot see what I type, or go back to the X server. Network and all
still works perfectly, but console is almost useless. I don't know of a way
of solving that, other than rebooting. Of course, now I never change virtual
consoles if the server is resetting or changing video modes. :-)

> A reboot may restore stuff in .save files,but sometimes a reboot is
> rather inconvenient;is there no sshortcut to re-enter the session or
> bring its processes to the foreground?

I think that the snoop pseudodevice may help you. If your kernel has snoop
compiled in, you may login as root (or use su) in another virtual console,
snoop ttyv0, and go on working. I think that snoop lets you type in, not
only see what other guy is doing. If not, this wouldn't be a solution
either.