Issues after uninstalling and uninstalling NVIDIA graphics card drivers

Source: Internet
Author: User
Tags tty mode



Since the installation of NVIDIA graphics card driver has been in the loop login interface, password input is correct is not to go, and then decided to uninstall the Nvidia graphics card driver.

First, when you can log in using tty1, use the

$ sudo apt-get autoremove--purge nvidia-*
$ sudo reboot

Then found that the boot can go into the desktop, very happy, the result is to switch to TTY mode is a black screen, in fact, is not a black screen, is due to uninstall the Nvidia driver, screen resolution appeared this problem.

The use of the senior approach, successfully solved the problem. Here's how:

$ sudo vi/etc/default/grub

Grub file grub_cmdline_linux= "" added a parameter, changed to grub_cmdline_linux= "vga=792", 792 for the 1024x768 resolution of the hexadecimal 0x0318 code.

$ sudo update-grub


For finding your own screen VGA parameter code, thank cybertan,http://blog.csdn.net/cybertan/article/details/6550085

VGA parameters for the Linux kernel

In a typical Linux system, if you do not specify the "vga=" parameter, the system will not support the framebuffer device.

The TTY resolution given by default kernel is very limited, and the solution is to pass the VGA parameter to kernel.

1. Setup method under Lilo    lilo:linux vga=318the 1024X768X24BPP mode will be started. The following is the encoding of the common resolution + color

color 640x400 640x480 800x600 1024x768 1280x1024 1600x1200
4bits ? ? 0x302 ? ? ?
8bits 0x300 0x301 0x303 0x305 0x307 0x 31C
15bits ? 0x310 0x313 0x316 0x319 0x31d
16bits ? /td> 0x311 0x314 0x317 0x31a 0x31e
24bits ? 0x312 0x315 0x318 0x31b 0x31f
32bits ? /td> ? ? ? ? ?
If you want to set the default to 1024X768X24BPP mode, you can modify the/etc/lilo.conf, add the statement: vga=0x318 and then save the exit, restart. 2. Setting method under Grub   is to add the VGA parameter to the kernel of the grub.conf startup list, such as setting the TTY resolution to (800x600x65536)
 cat/etc/grub.conf# grub.conf generated by anaconda## Note that you don't have the to rerun grub after making changes to this file# notice:  we have a/boot parti tion.  This means that#          all kernel and INITRD paths is Relative to/boot/, eg.#          root (hd0,0) #           kernel/vmlinuz-version ro root=/dev/sda3#           initrd/initrd-version.img#boot=/dev/sdadefault=0timeout=5splashimage= (hd0,0)/grub/ Splash.xpm.gzhiddenmenutitle 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 is a list of common parameters
Linux video=vga16 (640x480x16) <---Default parameters, support for the most common hardware:) vga=769 (640x480x256) vga=771 (800x600x256) vga=788 ( 800x600x65536) vga=773 (1024x768x256) vga=791 (1024x768x65536)

Modified with 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 @ 1024x768x64k VGA = 791 # normal VGA console # VGA = normal # VESA framebuffer Console @ 1024x 768x64k # vga=791 # VESA Framebuffer console @ 1024x768x32k # vga=790 # VESA Framebuffer console @ 1024x768x256 # vga=773 # VESA Framebuffer Console @ 800x600x64k # vga=788 # VESA Framebuffer console @ 800x600x32k # vga=787 # VESA Framebuffer C  Onsole @ 800x600x256 # vga=771 # VESA Framebuffer console @ 640x480x64k # vga=785 # VESA framebuffer Console @ 640x480x32k # vga=784 # VESA framebuffer console @ 640x480x256 # vga=769

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Issues after uninstalling and uninstalling NVIDIA graphics card drivers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.