免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 619 | 回复: 0
打印 上一主题 下一主题

Linux支持宽屏显示器 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-09 07:12 |只看该作者 |倒序浏览
上个礼拜买了19英寸的ViewSonic显示器,发觉在Linux下(Ubuntu)不能把分辨率设置到1440 x 900.研究了一下X Windows的显示配置,只需稍微修改一下即可.

原始的xorg.conf (/etc/X11目录)如下
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver  "kbd"
Option  "CoreKeyboard"
Option  "XkbRules" "xorg"
Option  "XkbModel" "pc105"
Option  "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device"  "/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "ZAxisMapping"  "4 5"
Option  "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Driver  "wacom"
Identifier "stylus"
Option  "Device" "/dev/input/wacom"
Option  "Type"  "stylus"
Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver  "wacom"
Identifier "eraser"
Option  "Device" "/dev/input/wacom"
Option  "Type"  "eraser"
Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver  "wacom"
Identifier "cursor"
Option  "Device" "/dev/input/wacom"
Option  "Type"  "cursor"
Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY
EndSection
Section "Device"
Identifier "nVidia Corporation NV34 [GeForce FX 5200]"
Driver  "nv"
BusID  "PCI:1:0:0"
EndSection
Section "Monitor"
Identifier "VA1912w-4"
Option  "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device  "nVidia Corporation NV34 [GeForce FX 5200]"
Monitor  "VA1912w-4"
DefaultDepth 24
SubSection "Display"
  Depth  1
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  4
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  8
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  15
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  16
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  24
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen  "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice     "stylus" "SendCoreEvents"
InputDevice     "cursor" "SendCoreEvents"
InputDevice     "eraser" "SendCoreEvents"
EndSection
Section "DRI"
Mode 0666
EndSection

修改了Section "Screen".

Section "Screen"
Identifier "Default Screen"
Device  "nVidia Corporation NV34 [GeForce FX 5200]"
Monitor  "VA1912w-4"
DefaultDepth 24
SubSection "Display"
  Depth  1
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  4
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  8
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  15
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  16
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
  Depth  24
  Modes  "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/40580/showart_317928.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP