Driver Installation:
The installation of a new video card driver is not perfect, that is, when the system is started, there is no visual pattern of the Progress circle, and it is very likely that the resolution can be properly displayed only by force modification, however, after the video card driver is installed, you can use the desktop special effects (Very dazzling) that come with the system. The default noveau has a visual progress circle, and the resolution is not normal. You can also force the changes, however, you cannot use the desktop effects that come with the system. You can choose the method described later.
1. Download the driver of the corresponding video card model from the NIVIDIA official network (Format: xxxxx. run)
In Linux, the command for finding your own video card information is: lspci | grep VGA
2. Disable the default installed graphics card driver nouveau:
1) vim/etc/modprobe. d/blacklist. conf, add blacklist nouveau at the end of the file
2) rebuilding an image:
Mv/boot/initramfs-$ (uname-r). img/boot/initramfs-$ (uname-r). img. bak
Dracut-v/boot/initramfs-$ (uname-r). img $ (uname-r)
3. Install gcc kernel-devel (driver compilation tool ):
Yum-y install gcckernel-devel
(This requires you to configure the yum source. This blog also provides a brief introduction to the yum source configuration)
4. Enter the graphical interface:
Init 3
5. log on to the root user, enter the path of the xxx. run Driver, and run sh xxx. run.
(After the driver is installed, there will be a very poor situation, that is, 3D acceleration can be used for rendering, that is, desktop effects can be used, but the resolution is super small, very abnormal, so we need to modify the resolution)
Resolution settings:
First of all, we must note that the resolution modification here is not perfect, because it is mandatory after all, but I am a patient with obsessive-compulsive disorder, so after the forced modification, I made some later remedies, so in general, this imperfect modification is acceptable compared to the resolution that is flat-like.
There are two ways to force resolution modification:
1. Use the default graphics card driver nouveau
If you use the default graphics card driver, you do not need to disable nouveau. You only need to execute the following command to force resolution modification:
1) cvt 1920 1080 60 // 19201080 is the desired resolution 60 is the flushing rate
Execution result:
#1920x1080 59.96Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 10801083-hsync + vsync
Note: 173.00 1920 2048 2248 2576 1080 1083 1088 1120-hsync + vsync this data is very important and will be used later
2) xrandroid -- newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 10801083 1088-hsync + vsync
Note that the data used here "173.00 1920 20482248 2576 1080 1083 1088 1120-hsync + vsync" is the data obtained in the previous step, "1920x1080_60.00" is the name of the new mode defined by yourself. If the resolution you want is 800x600, of course, you can change it to "800x600" or "800x600_60.00" (60.00 indicates that the update rate is 60, not necessary)
3) xrandroid -- addmode VGA-0 "1920x1080_60.00"
Note that the VGA-0 here is not fixed, but according to the specific equipment, may be a VGA-0, VGA-1 or DIV1, DIV0 are possible, you can use the xrandroid command to view which device is currently connected. Generally, you can see the *** connected xxxx in the first few lines of xrandroid command output information, this *** is the device you want to use. The "1920x1080_60.00" parameter in the preceding command is the resolution mode added in step 2.
4) xrandroid -- output VGA-0 -- mode "1920x1080_60.00"
VGA-0 and "1920x1080_60.00" parameters mean the same as above, guess what.
After this step, you will find that the resolution has been modified, but after restarting, you will find that the resolution has been restored to the original low resolution, so here you can make a script, this script is automatically executed every time you log on, so as long as you log on, the resolution will be automatically changed, and the system will report the "xxx abnormal" error, however, this does not affect usage.
Recommended reading:
Install the nvidia gt 630M driver on Ubuntu 13.04 dual-graphics card
Install the NVIDIA driver on Ubuntu 12.10