LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1152|回复: 9

xvidtune说unable to query monitor info已解决

[复制链接]
发表于 2008-10-27 09:11:27 | 显示全部楼层 |阅读模式
我的本子965GM 集成显卡 装完xorg7.4  Xserver1.5.0
启动X后字体超大 窗口也远远超出屏幕范围----参见附图
gtf 获得modeline信息后添加到xorg.conf仍然无效
启动xvidtune 居然说unable to query monitor info
google了半天没有找到答案
不知道问题出在哪里 请大家帮忙


Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "glx"
        Load  "dbe"
        Load  "extmod"
        Load  "dri"
        Load  "freetype"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        #DisplaySize      330   210     # mm
        Identifier   "Monitor0"
        VendorName   "LPL"
        ModelName    "ac00"
        Modeline "1280x800_60.00"  83.46  1280 1344 1480 1680  800 801 804 828                                               -HSync +Vsync
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "ageFlip"                  # [<bool>]
        Identifier  "intel"
        Driver      "intel"
        VendorName  "Unknown Vendor"
        BoardName   "Unknown Board"
        BusID       "CI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1280x800" "1024x768" "800x600"
        EndSubSection
EndSection

Section "DRI"
Mode 0660
EndSection

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2008-10-27 09:28:09 | 显示全部楼层
附上xwininfo检测到的信息
默认显示分辨率居然是6484x3988

root [ ~ ]# cat xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x40000d "login"

  Absolute upper-left X:  1
  Absolute upper-left Y:  1
  Relative upper-left X:  1
  Relative upper-left Y:  1
  Width: 6484
  Height: 3988
  Depth: 24
  Visual Class: TrueColor
  Border width: 1
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1+1  --5207+1  --5207--3191  +1--3191
  -geometry 80x24+1+1
回复 支持 反对

使用道具 举报

发表于 2008-10-27 09:34:15 | 显示全部楼层
兄弟的屏幕很漂亮啊!

你装最新的7.4版本,就得承受这种意外。

要是按6.3手册装Xorg-7.2,应该没这问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-27 10:17:28 | 显示全部楼层
Post by ti8er;1899864
兄弟的屏幕很漂亮啊!

你装最新的7.4版本,就得承受这种意外。

要是按6.3手册装Xorg-7.2,应该没这问题。


我觉得不是Xorg7.4的问题
应该是我的xorg.conf写的有问题
log中发现No device specified for screen "Screen0".
我觉得这是我分辨率设置实效的原因
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(==) No device specified for screen "Screen0".
        Using the first device section listed.
(**) |   |-->Device "intel"
回复 支持 反对

使用道具 举报

发表于 2008-10-27 10:32:21 | 显示全部楼层
Post by ppluer;1899885
我觉得不是Xorg7.4的问题
应该是我的xorg.conf写的有问题
log中发现No device specified for screen "Screen0".
我觉得这是我分辨率设置实效的原因
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(==) No device specified for screen "Screen0".
        Using the first device section listed.
(**) |   |-->Device "intel"


你是参照BLFS-6.3做的吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-27 10:51:19 | 显示全部楼层
Post by ti8er;1899886
你是参照BLFS-6.3做的吗?


装包是按照CBLFS做的
配置参考了BLFS6.3手册
我现在的问题归根结底是xorg.conf无法控制屏幕分辨率
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-27 11:52:26 | 显示全部楼层

xvidtune已经可以使用

增加了
       HorizSync     28-60
       VertRefresh   43-60
现在已经可以启动xvidtune看到当前分辨率已经是1280x800
但是字体依然很大---xterm窗口还在6000x6000左右
接下来任务要调节xterm的字体了

修改后的xorg.conf如下

Section "Monitor"
        #DisplaySize      330   210     # mm
        Identifier   "Monitor0"
        Option       "DPMS"     
       HorizSync     28-60
       VertRefresh   43-60

       VendorName   "LPL"
        ModelName    "ac00"
        Modeline "1280x800_60.00"  83.46  1280 1344 1480 1680  800 801 804 828  -HSync +Vsync
EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-27 18:27:59 | 显示全部楼层

字体的问题也解决了

intel driver 默认DPI设置bug

默认不输入任何参数 xdpyinfo | grep resolution 显示结果为112x968 dots per inch
但是log档却报告DPI已经是96

强行指定 96
startx -- -dpi 96 启动后正常(没错需要三个“-”的参数 -- -dpi 96)

干脆创建.xserverrc文件内容为exec /usr/bin/X -dpi 96 彻底解决问题

有个疑惑就是xrdb -query没有结果返回

/var/log/Xorg.0.log档可以查看到intel driver DPI set 信息
但是相当的不准---intel driver有问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-27 19:37:55 | 显示全部楼层
字体变大<font huge>问题
影响GM945 GM965显卡 似乎有人说ATI显卡也由此问题
解决方法归纳如下
1.干脆创建.xserverrc文件内容为
exec /usr/bin/X -dpi 96 ----对我的GM965有效
2.Disable DDC
3.set DisplaySize
4.set "LVDS"
Section "Monitor"
       ... #whatevert was in already.
        Option "DDC" "no"           # 对我的GM965有效
        Identifier "LCD 1280x800"
        Option "DPMS" "true"
VendorName "LPL"
DisplaySize 338 211 # 对我的GM965无效  这个size可以由xdpyinfo 获得
Option "Monitor-LVDS" "LCD 1280x800 #我一直没看懂 好像多了个引号 我没有成功 second part solution <- option for Xrandr (see: man xrandr)
EndSection

参考来源https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/107320

但是这些方法对我有效的只有1 2
回复 支持 反对

使用道具 举报

发表于 2008-10-28 09:25:30 | 显示全部楼层
不错,可以给大家参考。我还是用7.2,反正能用就行,不想去解决新版本可能会存在的问题,呵呵。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表