首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
中国IT实验室Linux频道
Google
首页 入门 Linux编程 系统管理 网络管理 Linux认证 Unix/BSD Linux数据库 Linux集群 Linux手册 Linux下载 Ubuntu 论坛 专题 RSS
您现在的位置: 中国IT实验室 >> Linux >> 系统管理 >> 桌面应用 >> 正文

Linux系统中显示设备配置工具介绍

4、 xdpyinfo工具。

我们通过gtf 工具调整了显示器的属性,我们通过观察一般就知道是不是可行了。比如屏幕不闪动的过于厉害。显示区域处于显示屏正中等。但我们还有一个测试工具xdpyinfo 来测试我们的调整 。

xdpyinfo - display information utility for X (用于X的显示信息测试工具)。

[beinan@localhost ~]$ /usr/X11R6/bin/xdpyinfo

通过这个输出,我们能查看到很多信息,最重要的有如下一段。

default screen number: 0
number of screens: 1
screen #0:
dimensions: 1024x768 pixels (302x232 millimeters)
resolution: 86x84 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x3f
depth of root window: 24 planes

我们可以在 xorg.conf中定义多个显示屏幕,比如 1024x768;800x600等。显示屏的定义的标识符号序列从0开始,以此类推。其实定义好一个就足够用。默认的一般就行。如果我们自己调整,把1024x768类似的加入到screen 中色深为24那段的 Modes 行中。然后把默认色深设置为24就好。

Section "Screen"
        Identifier "Screen0"
        Device "Videocard0"
        Monitor "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport 0 0
                Depth 16
                Modes "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport 0 0
                Depth 24
                Modes "1280x1024" "1152x864" "1152x768" 
                "1024x768" "800x600" "640x480"
         EndSubSection
         EndSection

其实上面的一段,我们足可以把色深为16的那段删除或者下面的一段每行前面加#号注掉。因为我们用的是 24的。

SubSection "Display"
          Viewport 0 0
          Depth 16
          Modes "800x600" "640x480"
          EndSubSection

如果我们只有把 DefaultDepth 24 中的24改为16时,这段才起作用。

上一页  [1] [2] 

【责编:Peng】
中国IT教育
相关产品和培训
文章评论
 友情推荐链接
 专题推荐

 ·防范Linux病毒 打造没有病毒的乐土…
 ·Linux Shell编程实用指南…
 ·Linux日志分析与管理
 ·揭密Linux内存管理
 ·邮件服务Sendmail应用配置
 ·Linux 安全管理…
 ·Linux 下DNS服务器架设攻略…
 ·Linux 下的路由的配置与应用…
 ·专题:Apache实用手册
 ·全面剖析Linux文件系统
 今日更新
 认证培训
 频道精选
 Windows频道导航