Incorrect graphics card configuration. Unable to access XWindows

Source: Internet
Author: User
If the video card is incorrectly configured, you cannot enter XWindows-general Linux technology-Linux technology and application information. For more information, see the following. You have to lament the power of linux. What if windows cannot be turned on because of the graphics card driver? Reinstall .... Linux provides a powerful command line (the one in windows cannot be called a command line) that allows you to directly modify the settings and run the changes without restarting. Linux is indeed better than windows.

Go to the command line and run the vi command to modify the following files.

/Etc/X11/Xorg. conf or/etc/X11/XF86config. conf

When installing as4.0for 64bit, the display screen may appear. You can modify/etc/X11/Xorg by using system-config-display -- reconfig. conf/etc/X11/XF86config. conf can also modify Xorg through vncviwer on the vncvncserver client. conf is a simple task. The configuration file structure is simple and there is no complicated syntax. However, if the configuration fails, the result is serious. Therefore, we strongly recommend that you back up the file before each modification.
Xorg. conf is generally located in/etc/X11/xorg. conf
Contains your graphics card information and display information.
============== Sample as my config ====================================== =
#/Etc/X11/xorg. conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# Values from the debconf database.
#
# Edit this file with caution, and see the/etc/X11/xorg. conf manual page.
# (Type "man/etc/X11/xorg. conf" at the shell prompt .)
#
# This file is automatically updated on xserver-xorg package upgrades * only *
# If it has not been modified since the last upgrade of the xserver-xorg
# Package.
#
# If you have edited this file but wowould like it to be automatically updated
# Again, run the following command:
# Sudo dpkg-reconfigure-phigh xserver-xorg
[1; 31 m with # is the comment-out line, no need to worry. [M
Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100 dpi/: unscaled"
FontPath "/usr/share/X11/fonts/75 dpi/: unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/CID"
FontPath "/usr/share/X11/fonts/100 dpi"
FontPath "/usr/share/X11/fonts/75 dpi"
# Paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection
[1; 31 m separated by Section & EndSection, which defines the path of some files [m
Section "Module"
# Load "GLcore" // this line
Load "i2c"
Load "bitmap"
Load "ddc"
# Load "dri" // This line is commented out when I installed the video card driver.
Load "extmod"
Load "freetype"
Load "glx" // This line is added, but you can call quake after it is installed.
Load "int10"
Load "type1"
Load "vbe"
EndSection
[1; 31 mModule, thinking, module, load many types of modules. When you install a driver for your video card, you will modify these things, and the modifications are completed and correct, then you can enjoy the same graphics speed as windows. [M
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
[1; 31m keyboard, obviously, you don't need to modify it here, never, unless your old keyboard is broken and you want to change to a different new keyboard. [M
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
[1; 31 m mouse, same as above. However, the Logitech mouse cannot be used here, because cs is not available here. [M
Section "Device"
Identifier "NVIDIA Corporation NVCrush11 [GeForce2 MX Integrated Graphics]"
Driver "nvidia"
BusID "PCI: 2: 0: 0"
EndSection
[1; 31 m video card, this is a very important part. Although there are only three lines, the display performance is basically reflected here. It is useless to modify it here, you must modify your video card and system accordingly. Search for online articles and you will fix them. [M
Section "Monitor"
Identifier "Philips 105 S" // It is just a name, but it looks better
Option "DPMS" // Let Energy Star go to hell, comment out, if you want
HorizSync 30-63 // before changing the two lines, please refer to the model of your monitor, according
VertRefresh 50-120 // modify the parameter accordingly. [1; 32 M. Do not reverse! [M
EndSection
[1; 31 m display, a problem that has plagued me for a long time, because xorg has been hurting me in my early years, and I have never dared to modify this file. At last, I decided to change it, it's easy. And paid a very small price (two crashes, well, a very small price .) [M
Section "Screen"
Identifier "Default Screen" // [1; 31m this line [m
Device "NVIDIA Corporation NVCrush11 [GeForce2 MX Integrated Graphics]"
Monitor "Philips 105 S" // [1; 31 m to this line [m to find the above, find the relevant, pay attention to the case
DefaultDepth 16 // This is generally 24, And I am old...
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
[1; do not change the remaining 31 m! Automatic Detection will be good. If you change it, make sure you know what you are doing. [M
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection
Related Article

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.