使用宽屏显示器 的设置[zt]

xrandr -q9.52. 使用宽屏显示器

现在的宽屏LCD显示器已越来越流行了,在Linux中使用宽屏显示器可通过配置xorg.conf配置文档实现。配置参数如下:

Section "Monitor" Identifier "phile"# HorizSync 28.0 - 51.0# VertRefresh 43.0 - 60.0 Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync Option "DPMS"EndSection

关键是要设置Modeline参数,通过运行以下命令获取1400x900分辨率60Hz的Modeline参数:

debian:~# gtf 1440 900 60
http://www.17xie.com/read-54115.html http://www.linuxsir.org/bbs/showthread.php?t=194091

首先使用 gtf命令获得 modeline
代码:linux:~ # gtf 1440 900 70

# 1440x900 @ 70.00 Hz (GTF) hsync: 65.59 kHz; pclk: 126.98 MHz
Modeline "1440x900_70.00" 126.98 1440 1536 1688 1936 900 901 904 937 -HSync +Vsync














然后把这些内容加入到xorg.conf























代码:














Section "Modes"
Identifier "Modes[0]"
# 1440x900 @ 70.00 Hz (GTF) hsync: 65.59 kHz; pclk: 126.98 MHz
Modeline "1440x900_70.00" 126.98 1440 1536 1688 1936 900 901 904 937 -HSync +Vsync
EndSection














注意这一段原本内容是空的,所以会报错说没有这个mode















我们加入的内容是















# 1440x900 @ 70.00 Hz (GTF) hsync: 65.59 kHz; pclk: 126.98 MHz















Modeline "1440x900_70.00" 126.98 1440 1536 1688 1936 900 901 904 937 -HSync +Vsync
















当然注释行可以没有,不过我习惯把注释写清楚,这是个好习惯































然后还要修改 xorg.conf后面的内容























代码:














Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1440x900_70.00"
EndSubSection
SubSection "Display"
Depth 16
Modes "1440x900_70.00"
EndSubSection
SubSection "Display"
Depth 24
Modes "1440x900_70.00"
EndSubSection
SubSection "Display"
Depth 32
Modes "1440x900_70.00"
EndSubSection
SubSection "Display"
Depth 8
Modes "1440x900_70.00"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection














就是把其余的 Modes全部删掉,然后加入你刚才在 Modeline命名的那个"1440x900_70.00"(当然本质上这个名字可以按照你自己的喜好随便起,我们这里保留 gtf命令输出的那个默认的名字)































最后重启X,1440X900@70Hz的屏幕分辨率就生效了!















最后,把你修改好的 xorg.conf保存一个副本,因为以后如果你启用Sax2的话很可能把你的配置文件给改掉,留一个备份以防不测







==============================================



注:以下是我的xorg.conf文件,根据nvidia-setting 设置保存后增加了些配置,发现75Hz比70Hz 和60Hz效果



要清晰很多, 三星的19寸LCD显示器943NW, 在WIN下也是75Hz效果最好 --by 枪炮















# nvidia-settings: X configuration file generated by nvidia-settings







# nvidia-settings: version 1.0 (root@mygentoo) Fri Mar 7 22:03:04 CST 2008















Section "ServerLayout"







Identifier "Layout0"







Screen 0 "Screen0" 0 0







InputDevice "Keyboard0" "CoreKeyboard"







InputDevice "Mouse0" "CorePointer"







Option "BlankTime" "10"







Option "StandbyTime" "25"







Option "SuspendTime" "20"







Option "OffTime" "30"







# BlankTime:设置进入屏幕保护的时间,单位为分。默认为10分钟。







# StandbyTime:设置显示器进入待机状态的时间,单位为分。默认为20分钟。







# SuspendTime:设置显示器进入挂起状态的时间,单位为分。默认为30分钟。







# Offtime:设置显示器关闭的时间,单位为分。 默认为40分钟。















EndSection















Section "Files"







RgbPath "/usr/lib/X11/rgb"







FontPath "/usr/share/fonts/misc/"







# FontPath "/usr/share/fonts/TTF/"







# FontPath "/usr/share/fonts/OTF"







FontPath "/usr/share/fonts/Type1/"







# FontPath "/usr/share/fonts/CID/"







FontPath "/usr/share/fonts/100dpi/"







FontPath "/usr/share/fonts/75dpi/"







# FontPath "/usr/lib/X11/fonts/local/"







# FontPath "/usr/lib/X11/fonts/misc/"







# FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"







# FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"







# FontPath "/usr/lib/X11/fonts/Speedo/"







# FontPath "/usr/lib/X11/fonts/Type1/"







# FontPath "/usr/lib/X11/fonts/TrueType/"







# FontPath "/usr/lib/X11/fonts/freefont/"







# FontPath "/usr/lib/X11/fonts/75dpi/"







# FontPath "/usr/lib/X11/fonts/100dpi/"























EndSection















Section "Module"







Load "dbe" # Double buffer extension







Load "extmod"







Load "type1"







Load "freetype"







Load "glx"







EndSection















Section "ServerFlags"







Option "Xinerama" "0"







EndSection















Section "InputDevice"







# generated from data in "/etc/conf.d/gpm"







Identifier "Mouse0"







Driver "mouse"







Option "Protocol"







Option "Device" "/dev/input/mice"







Option "Emulate3Buttons" "no"







Option "ZAxisMapping" "4 5"







EndSection















Section "InputDevice"







# generated from default







Identifier "Keyboard0"







Driver "kbd"







EndSection















Section "Monitor"







# HorizSync source: edid, VertRefresh source: edid







Identifier "Monitor0"







VendorName "Unknown"







ModelName "Samsung SyncMaster"







#HorizSync 30.0 - 81.0







#VertRefresh 56.0 - 75.0







#gtf 1440 900 75







# 1440x900 @ 75.00 Hz (GTF) hsync: 70.50 kHz; pclk: 136.49 MHz







Modeline "1440x900_75.00" 136.49 1440 1536 1688 1936 900 901 904 940 -HSync +Vsync







#ModeLine "1440x900_70.00" 127.0 1440 1536 1688 1936 900 901 904 937 -hsync +vsync







Option "DPMS"







EndSection















Section "Device"







Identifier "Videocard0"







Driver "nvidia"







VendorName "NVIDIA Corporation"







BoardName "GeForce 7600 GS"







Option "NoLogo" "true"







#BusID "PCI:7:0:0"







Option "DPMS" "TRUE"















EndSection















Section "Screen"







Identifier "Screen0"







Device "Videocard0"







Monitor "Monitor0"







DefaultDepth 24







Option "TwinView" "0"







Option "metamodes" "1440x900_75 +0+0; 1440x900_70 +0+0; 1440x900 +0+0; 1024x768 +0+0; 800x600 +0+0; 640x480 +0+0; 1440x900_60 +0+0"







SubSection "Display"







Depth 24







Modes "1440x900" "1024x768" "800x600" "640x480"







ViewPort 0 0







EndSubSection







EndSection

你可能感兴趣的:(#常用命令)