Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

tty1 unresponsive. How to reset?

Posted on 2004-09-21
5
1,016 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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