Chinaunix首页 | 论坛 | 博客
  • 博客访问: 658333
  • 博文数量: 780
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4885
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:14
文章分类

全部博文(780)

文章存档

2008年(780)

我的朋友

分类: LINUX

2008-08-22 16:21:47


用了两个显示器,可以配置二者显示不同的分辨率。

ubuntuedgy,i915gm,外接的显示器为VA902。

xorg.conf的配置为:
QUOTE:Section"Files"
FontPath"/usr/share/X11/fonts/misc"
FontPath"/usr/share/X11/fonts/cyrillic"
FontPath"/usr/share/X11/fonts/100dpi/:unscaled"
FontPath"/usr/share/X11/fonts/75dpi/:unscaled"
FontPath"/usr/share/X11/fonts/Type1"
FontPath"/usr/share/X11/fonts/100dpi"
FontPath"/usr/share/X11/fonts/75dpi"
FontPath"/usr/share/fonts/X11/misc"
#pathtodefomafonts
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"type1"
Load"vbe"
EndSection

Section"InputDevice"
Identifier"GenericKeyboard"
Driver"kbd"
Option"CoreKeyboard"
Option"XkbRules""xorg"
Option"XkbModel""pc104"
Option"XkbLayout""us"
EndSection

Section"InputDevice"
Identifier"ConfiguredMouse"
Driver"mouse"
Option"CorePointer"
Option"Device""/dev/input/mice"
Option"Protocol""ExplorerPS/2"
Option"ZAxisMapping""45"
Option"Emulate3Buttons""true"
EndSection

Section"InputDevice"
Identifier"SynapticsTouchpad"
Driver"synaptics"
Option"SendCoreEvents""true"
Option"Device""/dev/psaux"
Option"Protocol""auto-dev"
Option"HorizScrollDelta""0"
EndSection

Section"InputDevice"
Driver"wacom"
Identifier"stylus"
Option"Device""/dev/wacom"#Changeto
#/dev/input/event
#forUSB
Option"Type""stylus"
Option"ForceDevice""ISDV4"#TabletPCONLY
EndSection

Section"InputDevice"
Driver"wacom"
Identifier"eraser"
Option"Device""/dev/wacom"#Changeto
#/dev/input/event
#forUSB
Option"Type""eraser"
Option"ForceDevice""ISDV4"#TabletPCONLY
EndSection

Section"InputDevice"
Driver"wacom"
Identifier"cursor"
Option"Device""/dev/wacom"#Changeto
#/dev/input/event
#forUSB
Option"Type""cursor"
Option"ForceDevice""ISDV4"#TabletPCONLY
EndSection

Section"Extensions"
Option"Composite""Enable"
EndSection

Section"Device"
Identifier"IntelCorporationMobile915GM/GMS/910GMLExpressGraphicsController"
Driver"i810"
BusID"PCI:0:2:0"
VideoRam131072
Option"MonitorLayout""CRT,LFP"
#Option"Clone""true"
Option"DRI""true"
Option"XAANoOffscreenPixmaps"
Screen0
EndSection

Section"Device"
Identifier"915-External"
Driver"i810"
BusID"PCI:0:2:0"
Option"MonitorLayout""CRT,LFP"
Screen1
EndSection

Section"Monitor"
Identifier"GenericMonitor"
Option"DPMS"
EndSection

Section"Monitor"
Identifier"External"
Option"DPMS"
EndSection

Section"Screen"
Identifier"DefaultScreen"
Device"IntelCorporationMobile915GM/GMS/910GMLExpressGraphicsController"
Monitor"GenericMonitor"
DefaultDepth24
SubSection"Display"
Depth1
Modes"1024x768"
EndSubSection
SubSection"Display"
Depth4
Modes"1024x768"
EndSubSection
SubSection"Display"
Depth8
Modes"1024x768"
EndSubSection
SubSection"Display"
Depth15
Modes"1024x768"
EndSubSection
SubSection"Display"
Depth16
Modes"1024x768"
EndSubSection
SubSection"Display"
Depth24
Modes"1024x768"
EndSubSection
EndSection

Section"Screen"
Identifier"ExternalScreen"
Device"915-External"
Monitor"External"
DefaultDepth24
SubSection"Display"
Depth24
Modes"1280x1024"
EndSubSection
EndSection

Section"ServerLayout"
Identifier"DefaultLayout"
Screen"DefaultScreen"
Screen"ExternalScreen"RightOf"DefaultScreen"
InputDevice"GenericKeyboard"
InputDevice"ConfiguredMouse"
InputDevice"stylus""SendCoreEvents"
InputDevice"cursor""SendCoreEvents"
InputDevice"eraser""SendCoreEvents"
InputDevice"SynapticsTouchpad"
EndSection

Section"DRI"
Mode0666
EndSection
Section"ServerFlags"
Option"Xinerama""true"
EndSection

下载本文示例代码
阅读(216) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~