ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在Linux中让xorg支持宽屏以及鼠标的中键支持(转)

在Linux中让xorg支持宽屏以及鼠标的中键支持(转)

原创 Linux操作系统 作者:ba 时间:2007-08-12 15:12:55 0 删除 编辑
在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博客 ” ,链接:https://blog.itpub.net/10617731/viewspace-950278/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    1621
  • 访问量
    4430936