新买的宽屏一直在linux下表现的差强人意,最近终于搞定。
1、xorg支持宽屏(注:此方法适合nv和ati的卡)
首先确认你的显卡支持非标准的分辨率(上官方网站查)
最佳解决方案:
bash#gtf 1440 900 60
# 1440x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
示出1440x900@60Hz的modeline,将其添加到xorg.conf的Section "Monitor"中
比如我的:
Section "Monitor"
Identifier "Monitor0"
VendorName "AOC 193FW"
ModelName "General LCD Panel"
Option "DPMS" "True"
HorizSync 30.0-80.0
VertRefresh 55.0-75.0
ModeLine "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
EndSection
当然还有比较次的解决方案:
将Virtual 1440 900添加到Section "Screen"中。
比如这样:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Virtual 1440 900
Depth 24
EndSubSection
2、让鼠标的中键好用起来
将Option "ZAXisMapping" "4 5"添加到Section "InputDevice"中。
比如我的:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/psaux"
Option "ZAXisMapping" "4 5"
EndSection