Problem after Nvidia graphics card driver uninstallation and uninstallation in Linux
Since the Nvidia graphics card driver is installed in Ubuntu and is always on the cyclic logon interface after it is started, the correct password cannot be entered, and then the Nvidia graphics card driver is uninstalled.
The first step is to use tty1 to log on.
$ Sudo apt-get autoremove -- purge nvidia -*
$ Sudo reboot
Then I found that I was able to enter the desktop when I started the desktop. The result was that the switch to tty mode was a black screen. In fact, it was not a black screen because the screen resolution problem occurred after the nvidia driver was uninstalled.
This problem was solved successfully with the help of senior engineers. The method is as follows:
$ Sudo vi/etc/default/grub
In the grub file, add a parameter GRUB_CMDLINE_LINUX = "" and change it to GRUB_CMDLINE_LINUX = "vga = 792". 792 represents the hexadecimal 0x0318 code of the 1024*768 resolution.
$ Sudo update-grub
Find your own screen VGA parameter code, the VGA parameter of Linux kernel
In a Linux system, if the "vga =" parameter is not specified, the system does not support the frameBuffer device,
By default, the tty resolution provided by the kernel is very limited. The solution is to pass the VGA parameter to the kernel.
1. How to Set lilo
Lilo: linux vga = 318
The 1024x768x24bpp mode is enabled. The following is the encoding of common resolution + color.
Color |
640x400 |
640x480 |
800x600 |
1024x768 |
1280x1024 |
1600x1200 |
4 bits |
? |
? |
Zero x 302 |
? |
? |
? |
8 bits |
Zero x 300 |
Zero x 301 |
Zero x 303 |
Zero x 305 |
Zero x 307 |
0x31C |
15 bits |
? |
Zero x 310 |
Zero x 313 |
Zero x 316 |
Zero x 319 |
0x31D |
16 bits |
? |
Zero x 311 |
Zero x 314 |
Zero x 317 |
0x31A |
0x31E |
24 bits |
? |
Zero x 312 |
Zero x 315 |
Zero x 318 |
0x31B |
0x31F |
32 bits |
? |
? |
? |
? |
? |
? |
If you want to set the value to 1024x768x24bpp by default, you can modify/etc/lilo. conf and add the following statement:
Vga = 0x318
Save and exit, and restart.
2. setting methods in GRUB
Add the vga parameter at the end of the kernel in the grub. conf startup list. For example, set the tty resolution to (800x600x65536)
Cat/etc/grub. conf
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/dev/sda3
# Initrd-version.img/initrd
# Boot =/dev/sda
Default = 0
Timeout = 5
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu
Title Red Hat Enterprise Linux AS (2.6.9-22.EL)
Root (hd0, 0)
Kernel/vmlinuz-2.6.9-22.EL ro root = LABEL =/vga = 788
Initrd/initrd-2.6.9-22.EL.img
The following lists common parameters
Linux video = vga16 (640x480x16) <--- default parameter, supports the most common hardware :)
Vga = 769 (640x480x256)
Vga = 771 (800x600x256)
Vga = 788 (800x600x65536)
Vga = 773 (1024x768x256)
Vga = 791 (1024x768x65536)
After modification and zhcon (http://sourceforge.net/projects/zhcon) or cce (http://sourceforge.net/projects/cce2k/) more perfect.
(Large resolution + Chinese display + Chinese Input)
The following is a list of all resolutions:
# VESA framebuffer console @ 1024x768x64 k vga = 791
# Normal VGA console # vga = normal
# VESA framebuffer console @ 1024x768x64 k
# Vga = 791 # VESA framebuffer console @ 1024x768x32 k
# Vga = 790 # VESA framebuffer console @ 1024x768x256
# Vga = 773 # VESA framebuffer console @ 800x600x64 k
# Vga = 788 # VESA framebuffer console @ 800x600x32 k
# Vga = 787 # VESA framebuffer console @ 800x600x256
# Vga = 771 # VESA framebuffer console @ 640x480x64 k
# Vga = 785 # VESA framebuffer console @ 640x480x32 k
# Vga = 784 # VESA framebuffer console @ 640x480x256
# Vga = 1, 769
Install the Nvidia private driver on Ubuntu 14.04 and switch between two graphics cards
Ubuntu 12.04
Install the graphics card Driver Nvidia Driver 334.21 for Ubuntu users
How to install the latest NVIDIA 13.10 driver in Ubuntu 331.20
How to install the Nvidia 337.12 Beta graphics card driver in Linux
How do Ubuntu users install the latest Nvidia graphics card driver?