X配置文件(xorg.conf)分析
来源:互联网 发布:ubuntu 安装pip出错 编辑:程序博客网 时间:2024/05/01 23:52
X的配置,实际上就是生成 /etc/X11/xorg.conf 这个文件。
通常的配置主要对以下的Section作操作:
a. 显示器的信息写在该节
Section “Monitor”
Identifier “monitor0”
VendorName “VSC”
ModelName “VSC1609 ”
HorizSync 30 – 70
VertRefresh 50 - 160
ModeLine “...” --------->指定显示器的显示模式,很重要。
...
ModeLine “...”
Endsection
ModeLine 可以用ddcxinfo-knoppix直接生成。(通过检测你的显卡和显示器)
或者通过gtf 直接计算标准的VESA mode lines。如:
gtf 1024 768 85
则生成:
# 1024x768 @ 85.00 Hz (GTF) hsync: 68.60 kHz; pclk: 94.39 MHz
Modeline "1024x768_85.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
要成为高手,能手工微调的话参考:
http://www.tldp.org/HOWTO/XFree86-Video-Timings-HOWTO/
中文版: http://man.chinaunix.net/linux/how/XFree86-Video-Timings-HOWTO.html
作者Eric S. Raymond,勿须多言了。
b. 显卡信息写在该节
Section “Device”
Identifier “card0”
VendorName “Intel”
BoardName “Intel Corporation 82845G/GL/GE Chipset Integrated Graphics Device”
Driver “i810”
BusID “PCI:0:2:0”
Endseciton
PS: 一个PCI外设由BusID(8bit):DeviceID(5bit):FunctionID(3bit)来描述。在xorg.conf 中需用十进制表示。
一般PCI接口的显卡的总线编号为0,AGP接口的显卡的总线编号为1。
单显卡的情况下可以没有BusID这一行。
X所用之所有驱动都安装在/usr/X11R6/lib/modules/drivers/ ,官方驱动亦是。
(注: 最新版本的Xorg,其驱动位于 /usr/lib/xorg/modules/drivers/ )
比如安装了官方的nvidia驱动后,会在上述目录中放置nvidia_drv.o文件,则在上节中指定:
Driver “nvidia” (X自带的驱动为nv,相应的文件为nv_drv.so)
c. 一个显卡和一个显示器则组成一个screen,用Section “Screen” 描述。
Section “Screen”
Identifier “screen0”
Device “card0”
Monitor “monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024x768” “800x600” “640x480”
EndSubSection
...
EndSection
若还有一块显卡,其上也接一显示器则再加一Section “Screen”描述。
Section “Screen”
Identifier “screen1”
Device “card1”
Monitor “monitor1”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024x768” “800x600” “640x480”
EndSubSection
...
EndSection
d. 若有两套独立的显卡显示器,则需在Section “ServerLayout”中对多个screen进行组织。
Section “ServerLayout”
Identifier “multihead layout”
Screen 0 “screen0” 0 768
Screen 1 “screen1” 0 0
...
Option “Xinerama” “on” ------------------->扩展桌面,off则为个体桌面
EndSection
PS: 其他常用的Option :
Option "DontZap" 屏蔽 <Ctrl>+<Alt>+<Backspace>
Option "DontVTSwitch" 屏蔽<Ctrl>+<Alt>+<Fn> 的控制台的切换
通常的配置主要对以下的Section作操作:
a. 显示器的信息写在该节
Section “Monitor”
Identifier “monitor0”
VendorName “VSC”
ModelName “VSC1609 ”
HorizSync 30 – 70
VertRefresh 50 - 160
ModeLine “...” --------->指定显示器的显示模式,很重要。
...
ModeLine “...”
Endsection
ModeLine 可以用ddcxinfo-knoppix直接生成。(通过检测你的显卡和显示器)
或者通过gtf 直接计算标准的VESA mode lines。如:
gtf 1024 768 85
则生成:
# 1024x768 @ 85.00 Hz (GTF) hsync: 68.60 kHz; pclk: 94.39 MHz
Modeline "1024x768_85.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
要成为高手,能手工微调的话参考:
http://www.tldp.org/HOWTO/XFree86-Video-Timings-HOWTO/
中文版: http://man.chinaunix.net/linux/how/XFree86-Video-Timings-HOWTO.html
作者Eric S. Raymond,勿须多言了。
b. 显卡信息写在该节
Section “Device”
Identifier “card0”
VendorName “Intel”
BoardName “Intel Corporation 82845G/GL/GE Chipset Integrated Graphics Device”
Driver “i810”
BusID “PCI:0:2:0”
Endseciton
PS: 一个PCI外设由BusID(8bit):DeviceID(5bit):FunctionID(3bit)来描述。在xorg.conf 中需用十进制表示。
一般PCI接口的显卡的总线编号为0,AGP接口的显卡的总线编号为1。
单显卡的情况下可以没有BusID这一行。
X所用之所有驱动都安装在/usr/X11R6/lib/modules/drivers/ ,官方驱动亦是。
(注: 最新版本的Xorg,其驱动位于 /usr/lib/xorg/modules/drivers/ )
比如安装了官方的nvidia驱动后,会在上述目录中放置nvidia_drv.o文件,则在上节中指定:
Driver “nvidia” (X自带的驱动为nv,相应的文件为nv_drv.so)
c. 一个显卡和一个显示器则组成一个screen,用Section “Screen” 描述。
Section “Screen”
Identifier “screen0”
Device “card0”
Monitor “monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024x768” “800x600” “640x480”
EndSubSection
...
EndSection
若还有一块显卡,其上也接一显示器则再加一Section “Screen”描述。
Section “Screen”
Identifier “screen1”
Device “card1”
Monitor “monitor1”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024x768” “800x600” “640x480”
EndSubSection
...
EndSection
d. 若有两套独立的显卡显示器,则需在Section “ServerLayout”中对多个screen进行组织。
Section “ServerLayout”
Identifier “multihead layout”
Screen 0 “screen0” 0 768
Screen 1 “screen1” 0 0
...
Option “Xinerama” “on” ------------------->扩展桌面,off则为个体桌面
EndSection
PS: 其他常用的Option :
Option "DontZap" 屏蔽 <Ctrl>+<Alt>+<Backspace>
Option "DontVTSwitch" 屏蔽<Ctrl>+<Alt>+<Fn> 的控制台的切换
- X配置文件(xorg.conf)分析
- X配置文件(xorg.conf)分析
- X配置文件xorg.conf分析
- xorg.conf配置文件
- xorg.conf 配置文件说明
- xorg.conf配置文件
- Xorg.conf 分析
- 关于X11的重要配置文件xorg.conf
- 关于X11的重要配置文件xorg.conf
- xserver源码分析之解析xorg.conf
- xorg.conf
- xorg.conf
- linux多屏配置文件 xorg.conf 官方配置文件说明翻译
- Failed to start the X server xorg.conf配置
- Failed to start the X server xorg.conf配置
- nginx.conf配置文件分析
- 我的 xorg.conf
- xorg.conf配置
- ASP 五大高效提速技巧
- X11,xorg.conf配置详解
- 精心收集的近百个ASP编程网址
- 关于X窗口的设置/etc/X11/xorg.cof 详解
- 在vs2003运用S60_2.1_chinese部署
- X配置文件(xorg.conf)分析
- eclipse 安装python 插件 pydev
- asp创建对象及中文显示解决技巧
- asp.net
- asp.net
- 使Struts 中的 properties属性的文件支持中文的插件的安装方法
- Use Case 真是个好东西
- linux启动文本模式与图形模式的切换
- excel单元格内换行