在Linux中讓xorg支援寬屏以及滑鼠的中鍵支援(轉)

ba發表於2007-08-12
在Linux中讓xorg支援寬屏以及滑鼠的中鍵支援(轉)[@more@]新買的寬屏一直在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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617731/viewspace-950278/,如需轉載,請註明出處,否則將追究法律責任。

相關文章