歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> 我的/etc/X11/xorg的設置

我的/etc/X11/xorg的設置

日期:2017/2/28 11:09:58   编辑:關於Unix


#我的/etc/X11/xorg的設置 ,顯卡為geforce 6100,系統為centos 5.1
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
#設定整個畫面的輸出,重點在 Screen那個設定, 0 0 指的是桌面左上角為 0 0 的意思.
Section "Files"
EndSection
#設定字型與顏色.
Section "Module"
Load "glx"
EndSection
#需要加載的模塊項目.重點設定加載glx即可,其他的不要.
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
#設定周邊輸入接口,有鍵盤及鼠標兩種設定
Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "Monitor 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 70.0
Option "dpms"
EndSection
#這個項目則是設定屏幕的細項,包括分辨率、更新頻率等等的設定值.
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "NoLogo" "true"
EndSection
#這個項目在設定顯示卡驅動程序為nvidia,以及不顯示nvidia的logo標志.
#有時剛裝完系統(如centos 5.1,rhel 5,fc8或fc9等等),發現不顯示鼠標
#針,時在該項目加入選項Option "HWCursor" "false"即可。
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
#設定進入X-Window的時候,顯示的分辨率。
Copyright © Linux教程網 All Rights Reserved