LinuxSir.cn,穿越时空的Linuxsir!

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

想打开direct rendering,失败了:(

[复制链接]
发表于 2006-5-20 19:34:19 | 显示全部楼层 |阅读模式
我用的是intel 845gl的主板,以前的linux就可以打开direct rendering,昨天也想把arch给打开,结果没有成功.执行glxinfo时出现

  1. [huting@Archlinux ~]$ glxinfo
  2. name of display: :0.0

  3. ERROR!  sizeof(I830DRIRec) does not match passed size from device driver
  4. libGL warning: 3D driver returned no fbconfigs.
  5. libGL error: InitDriver failed
  6. libGL error: reverting to (slow) indirect rendering
  7. display: :0  screen: 0
  8. direct rendering: No
  9. server glx vendor string: SGI
  10. server glx version string: 1.2
复制代码

在网上找,有类似的问题,但是没有找到解决方法,不知道这是怎么一回事
另外lsmod的结果是这样的

  1. Module                  Size  Used by
  2. i915                   17024  1
  3. nls_cp437               5760  1
  4. vfat                   11008  1
  5. fat                    48540  1 vfat
  6. fuse                   35856  2
  7. ehci_hcd               29960  0
  8. uhci_hcd               29712  0
  9. usb_storage            78656  0
  10. usbcore               116256  4 ehci_hcd,uhci_hcd,usb_storage
  11. sd_mod                 14976  0
  12. drm                    64532  2 i915
  13. intel_agp              21532  1
  14. agpgart                27108  3 drm,intel_agp
  15. snd_intel8x0           29340  1
  16. snd_ac97_codec         94624  1 snd_intel8x0
  17. snd_ac97_bus            2176  1 snd_ac97_codec
  18. snd_pcm_oss            38176  0
  19. snd_mixer_oss          16384  1 snd_pcm_oss
  20. snd_pcm                78084  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
  21. snd_timer              20100  1 snd_pcm
  22. snd                    46432  8 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
  23. soundcore               7776  1 snd
  24. snd_page_alloc          8200  2 snd_intel8x0,snd_pcm
  25. tulip                  48672  0
  26. xfs                   593004  0
  27. reiserfs              256880  2
  28. jfs                   187004  0
  29. ext3                  127880  1
  30. jbd                    56212  1 ext3
  31. ide_floppy             16000  0
  32. ide_cd                 37792  0
  33. cdrom                  36144  1 ide_cd
  34. ide_disk               14336  6
  35. piix                    9476  0 [permanent]
  36. generic                 4356  0 [permanent]
  37. ide_core              116940  6 usb_storage,ide_floppy,ide_cd,ide_disk,piix,generic
复制代码

其中的i915是我后来加载的,也没有出现效果.
最后附上,xorg.log,里面也没有出现EE,真是好怪呀,哪位能我点提示吗?
还有奇怪的一点,我用的是i810的驱动,为什么hwd -s显示
Video      : Intel Corp.|82845 CGC [Chipset Graphics Controller] server: Xorg (vesa)


  1. [huting@Archlinux ~]$ cat /var/log/Xorg.0.log |grep EE
  2. Current Operating System: Linux Archlinux 2.6.16-ARCH #1 SMP PREEMPT Thu May 11 07:20:39 CEST 2006 i686
  3.         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  4. (II) Loading extension MIT-SCREEN-SAVER
  5. [huting@Archlinux ~]$

  6. [huting@Archlinux ~]$ cat /var/log/Xorg.0.log |grep drm
  7. (II) Loading sub module "drm"
  8. (II) LoadModule: "drm"
  9. (II) Loading /usr/lib/xorg/modules/linux/libdrm.so
  10. (II) Module drm: vendor="X.Org Foundation"
  11. drmOpenDevice: node name is /dev/dri/card0
  12. drmOpenDevice: open result is -1, (No such device)
  13. drmOpenDevice: open result is -1, (No such device)
  14. drmOpenDevice: Open failed
  15. drmOpenDevice: node name is /dev/dri/card0
  16. drmOpenDevice: open result is -1, (No such device)
  17. drmOpenDevice: open result is -1, (No such device)
  18. drmOpenDevice: Open failed
  19. drmOpenByBusid: Searching for BusID pci:0000:00:02.0
  20. drmOpenDevice: node name is /dev/dri/card0
  21. drmOpenDevice: open result is 8, (OK)
  22. drmOpenByBusid: drmOpenMinor returns 8
  23. drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
  24. (II) I810(0): [drm] loaded kernel module for "i915" driver
  25. (II) I810(0): [drm] DRM interface version 1.2
  26. (II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
  27. (II) I810(0): [drm] added 8192 byte SAREA at 0xe0d0b000
  28. (II) I810(0): [drm] mapped SAREA 0xe0d0b000 to 0xb78b5000
  29. (II) I810(0): [drm] framebuffer handle = 0xe0020000
  30. (II) I810(0): [drm] added 1 reserved context for kernel
  31. (II) I810(0): [drm] Registers = 0xec100000
  32. (II) I810(0): [drm] ring buffer = 0xe0000000
  33. (II) I810(0): [drm] init sarea width,height = 1024 x 768 (pitch 1024)
  34. (II) I810(0): [drm] Mapping front buffer
  35. (II) I810(0): [drm] Front Buffer = 0xe0020000
  36. (II) I810(0): [drm] Back Buffer = 0xe7c00000
  37. (II) I810(0): [drm] Depth Buffer = 0xe7a00000
  38. (II) I810(0): [drm] textures = 0xe03a0000
  39. (II) I810(0): [drm] Initialized kernel agp heap manager, 26476544
  40. (II) I810(0): [drm] dma control initialized, using IRQ 17
  41. (II) I810(0): [drm] installed DRM signal handler
  42. [huting@Archlinux ~]$                           

  43. [huting@Archlinux ~]$ cat /var/log/Xorg.0.log |grep agp
  44. (II) I810(0): [drm] Initialized kernel agp heap manager, 26476544
  45. [huting@Archlinux ~]$     

复制代码
发表于 2006-5-20 23:31:45 | 显示全部楼层
xorg.conf?
我也觉得奇怪。。。你用testing里的1.5试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-21 07:33:22 | 显示全部楼层
我修改了BIOS里面的显内,然后在xorg.conf里加入videoRam 与显存一致.这样就没有出现
ERROR!  sizeof(I830DRIRec) does not match passed size from device driver
这样的错误了,但是结果更奇怪

  1. [huting@Archlinux ~]$ glxinfo
  2. name of display: :0.0
  3. display: :0  screen: 0
  4. direct rendering: No
复制代码

在log文件中,没有任何EE,WW如下

  1. [huting@Archlinux ~]$ cat /var/log/Xorg.0.log|grep WW
  2.         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  3. (WW) I810(0): Bad V_BIOS checksum
  4. (WW) I810(0): VideoRAM reduced to 12288 kByte (page aligned - was 16120)
  5. (WW) I810(0): Extended BIOS function 0x5f11 not supported.
  6. (WW) I810(0): Bad V_BIOS checksum
  7. *(WW) (1600x1200,Monitor0) mode clock 189MHz exceeds DDC maximum 180MHz
  8. (WW) (1600x1200,Monitor0) mode clock 202.5MHz exceeds DDC maximum 180MHz
  9. (WW) (1600x1200,Monitor0) mode clock 229.5MHz exceeds DDC maximum 180MHz
  10. (WW) module minor version (0) is less than the required minor version (1)
  11. (WW) I810(0): Bad V_BIOS checksum
  12. (WW) I810(0): PGTBL_ER is 0x00000049
复制代码

特别是有这么一行,让我很怪

  1. [huting@Archlinux ~]$ cat /var/log/Xorg.0.log|grep -A3 -B3 direct
  2.         Screen to screen bit blits
  3.         Solid filled rectangles
  4.         8x8 mono pattern filled rectangles
  5.         Indirect CPU to Screen color expansion
  6.         Solid Horizontal and Vertical Lines
  7.         Offscreen Pixmaps
  8.         Setting up tile and stipple cache:
  9. --
  10. (==) I810(0): Backing store disabled
  11. (==) I810(0): Silken mouse enabled
  12. (II) I810(0): Initializing HW Cursor
  13. (II) I810(0): direct rendering: Disabled
  14. (II) I810(0): libshadow is version 1.0.0, required 1.1.0 or greater for rotation.
  15. (==) RandR enabled
  16. (II) Initializing built-in extension MIT-SHM
  17. [huting@Archlinux ~]$                          
复制代码

然后我的xorg.conf如下

  1. [huting@Archlinux ~]$ cat /etc/X11/xorg.conf
  2. Section "ServerLayout"
  3.         Identifier     "X.org Configured"
  4.         Screen      0  "Screen0" 0 0
  5.         InputDevice    "Mouse0" "CorePointer"
  6.         InputDevice    "Keyboard0" "CoreKeyboard"
  7. EndSection

  8. Section "Files"
  9.         RgbPath      "/usr/share/X11/rgb"
  10.         ModulePath   "/usr/lib/xorg/modules"
  11.         FontPath     "/usr/share/fonts/misc"
  12.         FontPath     "/usr/share/fonts/75dpi"
  13.         FontPath     "/usr/share/fonts/100dpi"
  14.         FontPath     "/usr/share/fonts/TTF"
  15.         FontPath     "/usr/share/fonts/Type1"
  16. EndSection

  17. Section "Module"
  18.         Load  "dri"
  19.         Load  "extmod"
  20.         Load  "xtrap"
  21.         Load  "record"
  22.         Load  "dbe"
  23.         Load  "glx"
  24.         Load  "freetype"
  25.         Load  "type1"
  26. EndSection

  27. Section "InputDevice"
  28.         Identifier  "Keyboard0"
  29.         Driver      "kbd"
  30. EndSection

  31. Section "InputDevice"
  32.         Identifier  "Mouse0"
  33.         Driver      "mouse"
  34.         Option      "Protocol" "auto"
  35.         Option      "Device" "/dev/input/mice"
  36.         Option      "ZAxisMapping" "4 5 6 7"
  37. EndSection

  38. Section "Monitor"
  39.         Identifier   "Monitor0"
  40.         VendorName   "Monitor Vendor"
  41.         ModelName    "Monitor Model"
  42.         HorizSync       30 - 86
  43.         VertRefresh     50 - 160
  44. EndSection

  45. Section "Device"
  46.         ### Available Driver options are:-
  47.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  48.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  49.         ### [arg]: arg optional
  50.         #Option     "ShadowFB"                  # [<bool>]
  51.         #Option     "DefaultRefresh"            # [<bool>]
  52.         #Option     "ModeSetClearScreen"        # [<bool>]
  53.         Identifier  "Card0"
  54.         Driver      "i810"
  55.         VendorName  "Intel Corporation"
  56.         BoardName   "82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
  57.         BusID       "PCI:0:2:0"
  58.         videoRam        16120
  59. EndSection

  60. Section "Screen"
  61.         Identifier "Screen0"
  62.         Device     "Card0"
  63.         Monitor    "Monitor0"
  64.         DefaultColorDepth 24
  65.         SubSection "Display"
  66.                 Modes   "1024x768"
  67.                 Viewport   0 0
  68.                 Depth     16
  69.         EndSubSection
  70.         SubSection "Display"
  71.                 Modes   "1024x768"
  72.                 Viewport   0 0
  73.                 Depth     24
  74.         EndSubSection
  75. EndSection

  76. Section "DRI"
  77.         Mode 0666
  78. EndSection
复制代码

二楼说的1.5,是什么1.5?
回复 支持 反对

使用道具 举报

发表于 2006-5-21 11:01:39 | 显示全部楼层
你现在是不是用的testing 的repo?
(WW) module minor version (0) is less than the required minor version (1)?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-21 12:21:45 | 显示全部楼层
我用的是testing/xf86-video-i810 1.5.1.0-1
要换到
current/xf86-video-i810 1.4.1.3-2

是 吗?
回复 支持 反对

使用道具 举报

发表于 2006-5-22 13:48:58 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-22 14:50:54 | 显示全部楼层
就是对着个网页来做的,结果我的情况它里面没有说到
回复 支持 反对

使用道具 举报

发表于 2006-5-23 05:31:39 | 显示全部楼层
你的内核不对,置顶的帖子看一下,系统更新时不要更新Kernel。另外testing的i810有问题。新Kernel加i810打不开OpenGL。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-23 08:11:20 | 显示全部楼层
有这种事?
看看去
那我是不是应该把kernel 和i810的驱动给降下来呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-23 19:51:36 | 显示全部楼层
今天把内核再升一次,又把i810的驱动给降下来
终于成功了
回复 支持 反对

使用道具 举报

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

本版积分规则

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