Link to home
Start Free TrialLog in
Avatar of scronkey
scronkey

asked on

tty1 unresponsive. How to reset?

Hi there,

I'm running Gentoo linux.

It appears that tty1 has locked up after logging out. tty2-6 are all OK, so system is fine, but tty1 is locked up.

I use ctrl-D to logout from terminals, and with tty1 it shows "logout" on the prompt, the cursor is on the line below and frozen.
Not responsive to any keys, nor is the cursor blinking.

Is there a way, from one of the other terminals, to reset tty1 so I can log back into it?
I'm aware I can restart the system, but I'm sure there is a manual way.

Any ideas?

Rgds,
-Scronkey
Avatar of jlevie
jlevie

Depends on what casued the port to lock up. Log in on another terminal and see what processes migh be still running on the port (ps -ef | grep tty1 | grep -v grep) and try to kill them. If it is a hung process killing said process should unlock the port.
Avatar of scronkey

ASKER

Hi there,

The only process running on tty1 was -bash

I killed the process, and now when I run ps -ef | grep tty1 | grep -v grep is:
4486 1 0 03:50 tty1 00:00:00 /sbin/agetty 38400 tty1 linux

When I kill the PID 4486, then run the ps -ef command, the same thing shows up, but with a different PID

I checked out the man page for agetty to see if there was something obvious in there I could do, but I gleaned nothing.

Also, the cursor is actually blinking on tty1 (I stated that it was not)
I don't know if this changes anything, as the terminal is still locked up.

Any further ideas?
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi, thanks for your further investigation.

I have found the problem, similar to your suggestion here.
I would just like to confirm something for my own knowledge.

I tried hitting ctrl-q, to no avail. I tried ctrl-s & ctrl-q a few more times with no change.
Then I saw that scroll lock was on (d'uh) and this fixed it. (Thank you for helping out, even with such an embarrasing solution!)

What I would like to know is if scroll lock is simply toggling XON & XOFF?
I tested it on a functioning terminal (that had info scrolling in it) and ctrl-s AND scroll lock stop the scrolling. And ctrl-q started it again, as does scroll-lock.

So why, after hitting logout (then accidently hitting ctrl-s) does  ctrl-q not work? Is it because the short-cut keys are no longer available?

I'm probably confusing myself more here, but this is the first time I've ever seen what scroll lock does/can do.

Thanks for anyadditional info
-Scronkey
> What I would like to know is if scroll lock is simply toggling XON & XOFF?

In most cases they are equivalent.