Solved

tty1 unresponsive. How to reset?

Posted on 2004-09-21
5
1,005 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:scronkey
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12119709
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.
0
 

Author Comment

by:scronkey
ID: 12119973
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?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 12125793
After you killed the bash process on tty1 the system fired off a getty to look for a log in on that port. So as far as the system is concerned the port is ready for use. Since that tty is still hung there's something else locking it up. Other than some wierd video problem all that I can think of is that perhaps you hit Ctrl-S during the logout. That's an XOFF and would block further output to the port. Hitting CTRL-Q should clear that and release the port if that's the problem.
0
 

Author Comment

by:scronkey
ID: 12129269
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
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12129358
> What I would like to know is if scroll lock is simply toggling XON & XOFF?

In most cases they are equivalent.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now