打印本文 打印本文 关闭窗口 关闭窗口
如何在Linux下实现设备的配置
作者:武汉SEO闵涛  文章来源:敏韬网  点击数3297  更新时间:2009/4/22 20:46:04  文章录入:mintao  责任编辑:mintao
ed-weight green-weight blue-weight
指定16位显示时,RGB三种颜色所占的权重

Virtual xdim ydim
设置逻辑虚屏的大小,xdim一般要求为8或16的整数倍。注意:有的驱动程序不允许设置虚屏。

ViewPort x0 y0
设置初始显示的左上角。

Modes "mode-name" ...
设置此深度下的视频模式列表。所指定没个模式必须被双引号括起来。这必须和Monitor节指定的信息相对应,也就是说,Monitor节指定的扫描频率范围一定要包含对应的模式。

Visual "visual-name"
visual-name可用的类型是StaticGray GrayScale StaticColor PseudoColor TrueColor DirectColor

Black red green blue

White red green blue
分别可以指定黑色和白色的颜色

6.5.9 ServerLayout节
每个配置文件可以有多个ServerLayout节,一个ServerLayout表示多个Screen和一个或多个输入设备(InputDevice节)的组合。

Section "ServerLayout"
        Identifier   "name"
        Screen        "screen-id"
        …  
        InputDevice  "idev-id"
        …
        options
        …
EndSection

Screen screen-num "screen-id" position-information

screen-id是强制的,指定引用的Screen节
InputDevice "idev-id" "option" ...
idev-id也是强制的,指定被引用的InputDevice节,可以指定多个选项,它们之间由引号隔开,这些选项也是InputDevice节支持的,包括:"CorePointer","CoreKeyboard","SendCoreEvents"。

例如,指定两个鼠标:

Section "ServerLayout"
Identifier  "Layout 1"
Screen      "MGA 1"
Screen      "MGA 2" RightOf "MGA 1"
InputDevice "Keyboard 1" "CoreKeyboard"
InputDevice "Mouse 1"    "CorePointer"
InputDevice "Mouse 2"    "SendCoreEvents"
Option      "BlankTime"  "5"
EndSection

上一页  [1] [2] [3] [4] 

打印本文 打印本文 关闭窗口 关闭窗口