I have Ubuntu 12.04 LTS and I want to know what is a tty login. I was opening my laptop and the screen went black and was written "Ubuntu 12.04 LTS harshira-HP-ProBook-445-G1 tty1". Now it does not go through this. What is a tty? And how do I bypass the tty login so that I can use my PC in graphical mode?
3 Answers
Simplest solution first, have you tried Ctrl+Alt+F7 (Not F8)? If this doesn't work, try this:
- Login from the command line using your username and password.
Try starting the
lightdmservice.sudo service lightdm restart
Otherwise, if your computer displays a message there's something wrong with the swap, you could try doing sudo swapoff -a and repeat the above steps. If they work now, something probably is wring with your swap.
That's all I have now. If these don't work, try posting some more info.
- 1,701
tty is the communication module with the kernel. On a tty port, you can telnet data to kernel. It is one of the ttys which hosts your display.
It's Ctrl+Alt+F7 for the tty containing display. If you press Ctrl+Alt+F1 or F2 up to F6, you can open new connections to your kernel.
If you don't have unsaved information you can try killall -u <user_name> and it kills everything except kernel.
- 9,707
- 163
As others have explained, tty (teletype) is the base communication module for the kernel. It is the first layer of communication a user has with the kernel itself, prior to loading a GUI and etc.
It looks like when you closed your laptop, the computer attempted to hibernate, which caused the swap to turn off. I have had this issue a few times on my laptops. The best thing I can tell you is to go into the Power Settings and make sure to change the action that happens when you close the lid so that it does not hibernate.
If you had your GUI working prior to this, then I suggest a hard reboot (hold down the power button until the computer turns off, then turn it back on) as long as you are not afraid of losing anything. If everything works, then it proves the above stated.
- 527