I have a laptop with a ATI Radeon 9000 Mobility graphics card. I wanted to get 
3d rendering working with the free dri drivers so I followed this howto: 
http://www.gentoolinux.org/doc/en/dri-howto.xml

But it does not work:
~# glxinfo | grep rendering
direct rendering: No

Below is listed everything that I think might be relevant. I hope someone has 
an idea. What I notice in particular is these two lines 
from /var/log/Xorg.0.log:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)

===========================================
~# lspci | grep AGP
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 
03)
===========================================
~#cat /boot/config
...
CONFIG_MTRR=y
...
CONFIG_AGP=m
CONFIG_AGP_INTEL=m
...
# CONFIG_DRM is not set
...
===========================================
~# emerge -vp xorg-x11 x11-drm

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-base/xorg-x11-6.8.2-r6  USE="bitmap-fonts ipv6 nls opengl 
pam sse truetype-fonts type1-fonts xprint xv dfx -3dnow -cjk -debug -dlloader 
-dmx -doc -font-server -insecure-drivers -minimal -mmx -nocxx -sdk -static" 0 
kB
[ebuild   R   ] x11-base/x11-drm-20050502  0 kB
===========================================
~# cat /etc/X11/xorg.conf | grep -v ^#
Section "Module"
   Load        "synaptics"
   Load        "dbe"
   SubSection  "extmod"
      Option    "omit xfree86-dga" 
   EndSubSection
   Load        "type1"
   Load        "freetype"
   Load       "dri"
   Load       "glx"
EndSection

Section "Files"
   ....
EndSection

Section "InputDevice"
   Identifier  "Keyboard1"
   ....
EndSection

Section "InputDevice"
   Identifier      "Touchpad"
   ...
EndSection

Section "InputDevice"
   Identifier  "External Mouse"
   ...
EndSection

Section "Monitor"
    Identifier  "AcerMonitor"
    HorizSync   31.5-57.0
    VertRefresh 50-70
EndSection

Section "Device"
    Identifier  "Ati Radeon 9000 Mobility"
    Driver      "radeon"
    Option      "AGPMode" "4"
    Option      "AGPFastWrite" "True"
    Option      "EnablePageFlip" "True"
EndSection

Section "Screen"
   Identifier  "Screen 1"
   Device      "Ati Radeon 9000 Mobility"
   Monitor     "AcerMonitor"
   DefaultDepth 24
   Subsection "Display"
   ...
   Subsection "Display"
      Depth       24
      Modes       "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
      ViewPort    0 0
   EndSubsection
EndSection

Section "ServerLayout"
   Identifier  "Simple Layout"
   Screen "Screen 1"
   InputDevice "Touchpad" "Corepointer"
   InputDevice "External Mouse" "SendCoreEvents"
   InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
   Mode 0666
EndSection
===========================================
~# cat /etc/modules.autoload.d/kernel-2.6
...
intel-agp
...
drm
===========================================
~# lsmod | grep 'drm\|agp'
drm                    65944  0
intel_agp              20508  1
agpgart                29256  2 drm,intel_agp
===========================================
~# cat /var/log/Xorg.0.log
...
(II) LoadModule: "dri"
(II) Loading /usr/lib/modules/extensions/libdri.a
(II) Module dri: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/lib/modules/linux/libdrm.a
(II) Module drm: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "glx"
(II) Loading /usr/lib/modules/extensions/libglx.a
(II) Module glx: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "radeon"
(II) Loading /usr/lib/modules/drivers/radeon_drv.o
(II) Module radeon: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 4.0.1
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 0.7
(II) LoadModule: "ati"
(II) Loading /usr/lib/modules/drivers/ati_drv.o
(II) Module ati: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 6.5.6
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 0.7
...
(II) Primary Device is: PCI 01:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset ATI Radeon Mobility 9000 (M9) Lf (AGP) found
...
(II) Loading sub module "radeon"
(II) LoadModule: "radeon"
(II) Reloading /usr/lib/modules/drivers/radeon_drv.o
...
(II) Setting vga for screen 0.
(II) RADEON(0): MMIO registers at 0xd0100000
(II) RADEON(0): PCI bus 1 card 0 func 0
(**) RADEON(0): Depth 24, (--) framebuffer bpp 32
(II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) RADEON(0): Default visual is TrueColor
(**) RADEON(0): Option "AGPMode" "4"
(**) RADEON(0): Option "AGPFastWrite" "True"
(**) RADEON(0): Option "EnablePageFlip" "True"
...
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "radeon"
(II) RADEON(0): [drm] drmOpen failed
(EE) RADEON(0): [dri] DRIScreenInit failed.  Disabling DRI.
(II) RADEON(0): Memory manager initialized to (0,0) (1408,8191)
(II) RADEON(0): Reserved area from (0,1050) to (1408,1052)
(II) RADEON(0): Largest offscreen area available: 1408 x 7139
(II) RADEON(0): Render acceleration enabled
(II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
...
(II) RADEON(0): Acceleration enabled
(==) RADEON(0): Backing store disabled
(==) RADEON(0): Silken mouse enabled
(II) RADEON(0): Using hardware cursor (scanline 1052)
(II) RADEON(0): Largest offscreen area available: 1408 x 7136
(II) RADEON(0): Direct rendering disabled
(==) RandR enabled
...
===========================================

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list

Reply via email to