After booting to the GUI in 12.04, I attempt to move to the virtual terminal (or shell, or tty) via Ctrl-Alt-F1 (F1 through F6), and the screen remains blank. I have tried all 6 tty instances and the results are the same. Ctrl-alt-F7 brings me back to the GUI without a problem. Any thoughts?
7 Answers
This is usually caused because the graphical text-mode resolution set at boot up is not compatible with your video card. The solution is to switch to true text-mode by configuring Grub appropriately:
- Open the terminal with Ctrl+Alt+T
Paste the below, and enter your password when asked:
sudo sed -i -e 's/#GRUB_TERMINAL/GRUB_TERMINAL/g' /etc/default/grubThen type
sudo update-grub- Reboot and the virtual terminals should now work.
- 141,990
What fixed this for me was adding nomodeset to the GRUB_CMDLINE_LINUX_DEFAULT line in the /etc/default/grub file. Here's how:
Type in terminal:
gksu gedit /etc/default/grubSearch for this line:
GRUB_CMDLINE_LINUX_DEFAULTSo for example if you have:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"change it to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1 nomodeset"After you finish, update grub (
sudo update-grub) and reboot (sudo reboot) for the changes to take effect.
Optional: You could add nomodeset vga=xxx (not just nomodeset), the xxx is a VESA screen code that best matches your screen resolution. Take a look at this.
Please take a look at my question at https://answers.launchpad.net/ubuntu/+question/643882, with regards to virtual terminal not functioning on Ubuntu 16.04 on Lenovo Thinkpad T400.
The solution i presented is geared towards user with Hybrid Graphics Card, in particular, AMD/ATI graphics card and Intel integrated graphics card. For me, disabling the intel graphics card and enabling the opensource ATI/AMD radeon module helps in my case.
If you are using a old Radeon graphics card like mine (Radeon HD 3450/3470), now you can switch between virtual terminal and graphical desktop with ease to troubleshoot potential issues.
If adding blacklist intel_graphics_card in /etc/modprobe.d/blacklist.conf and running
sudo depmod -a
still doesn't work due to linux kernel or other dependencies, you are advised to add modprobe.blacklist=<module_name> to /etc/default/grub like the following example:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash crashkernel=384M-:128M radeon.dpm=1 modprobe.blacklist=i915"
- 107,582
Here is what worked for me on Ubuntu 18.04 with 2560x1440 screen:
open grub configuration file in editor:
sudo gedit /etc/default/grubuncomment GFXMODE and set your exact resolution -> change
#GRUB_GFXMODEtoGRUB_GFXMODE=2560x1440add line
GRUB_GFXPAYLOAD_LINUX=keepAdd remove
splashand addnosplash noplymouth nomodesetto yourGRUB_CMDLINE_LINUX_DEFAULT. After cahnges mine looks likeGRUB_CMDLINE_LINUX_DEFAULT="quiet nosplash noplymouth intel_idle.max_cstate=1 nomodeset"save the file
update grub
sudo update-grubreboot
use Ctlr+Alt+F2 to switch immediately after boot
- 160
Firstly, MAKE A BACKUP before changing anything in grub!!!
sudo cp /etc/default/grub /etc/default/grub.backup
I tried some solutions here and was greatly relieved to have made a backup because they didn't work for my situation and left me mildly panicked.
The solution I found was to plug one of my monitors into the onboard graphics card. Then I could see a terminal when pressing ctrl+alt+f2. It didn't work with both plugged in to my nvidia card. No grub changes necessary.
- 101
- 2
You need to shut down the graphics driver after you Ctrl+Alt+F1 before you try to install the Nvidia driver
As in sudo /etc/init.d/lightdm stop
- 20,055
- 57
- 82
- 84
- 69