Re: How to restart a freezed tty?



On Sun, 30 Sep 2007 00:09:40 -0400 "Brian A. Seklecki"
<lavalamp@xxxxxxxxxxxxxxxxxxxxxx> wrote:

On Sat, 2007-09-29 at 13:16 +0330, Bahman M. wrote:
Hi all,

For some reason all the ttys are frozen up; I can switch between X
and them back and forth but not between the ttys themselves using
ALT+Fn.

Can you start new xterms? When you say 'frozen', do they "not accept
keyboard input"? Is it possible scroll-lock is enabled? What about
the TTY that you started Xorg from?

Is this temporal? When did it start happening?

Is there anything in /var/log/messages?

Good questions; I should have explained the situation a bit more.

I can start as many xterm as I'd like to. In fact when I'm in X
everything is alright.

I was doing some ports compilation on ttyv2 and
in the midst of that I remembered I forgot to pass a switch to compiler.
I pressed CTRL+C and it stopped but ttyv2 also stopped responding to any
keyboard events (even the mouse doesn't appear there).

Now when I switch to ttyvn by pressing ALT+Fn, it always switches
to ttyv2 with the same text shown as the moment it stopped working.

I killed all the ttyvn processes. They terminated and restarted as
expected. Now they all have different PIDs than before but still I
can't use them.

It's the first time I'm encountering such a problem.

I looked through dmesg output or in /var/log/messages but there was
nothing unsual out there.

Did you try: $ sudo pkill -HUP init ?

Will give it a try.

BTW, this is the my home machine just for personal use; it thus doesn't
hurt anyone if I restart the system but I'm just curious to know how
one can get out of such situation.


I tried killing them; they terminate and restart but still
frozen. I don't believe the only way out is to restart the system.

How to make ttys behave normally? I'd appreciate any idea.
FreeBSD 6.2-RELEASE-p7
xorg-7.2
fluxbox-1.0rc3_3


Thanks,

Bahman
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Switching from X to ttys
    ... > For some time now I have not been able to switch to other ttys. ... Pressing ... > # The default runlevel. ...
    (Debian-User)
  • Re: switch between a tty when fvwm is running
    ... % I can switch between ttys on my system using ... % the SysRq and Shift-SysRq key. ... % and then switch. ...
    (comp.unix.bsd.freebsd.misc)
  • How to restart a freezed tty?
    ... For some reason all the ttys are frozen up; I can switch between X and ... them back and forth but not between the ttys themselves using ALT+Fn. ... I don't believe the only way out is to restart the system. ...
    (freebsd-questions)
  • Re: How to restart a freezed tty?
    ... For some reason all the ttys are frozen up; I can switch between X ... I don't believe the only way out is to restart the system. ...
    (freebsd-questions)
  • Re: Problem about arch linux and xfce.
    ... These lines do exist in my /etc/initab, and I can switch between ttys ... but Ctrl-alt-fn doesn't work in Xwindow environment, ...
    (comp.os.linux.misc)