drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice:open result is -1, (Not a directory)
drmOpenDevice:Open failed
......continues with the same output with different card-numbers - card1, card2....
(EE) [drm] drmOpenfailed
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI
(WW) intel(0): drmDropmaster failed: Unknown error 4294967295
tux@slitaz:~$ lsmod
Module Size Used by Not tainted
i915 143208 0
drm 121736 1 i915
i2c_algo_bit 4724 1 i915
video 17828 1 i915
backlight 3584 1 video
output 2260 1 video
i2c_core 17468 3 i915,drm,i2c_algo_bit
intel_agp 23032 1
agpgart 25980 3 drm,intel_agp
snd_intel8x0 26724 1
snd_ac97_codec 88736 1 snd_intel8x0
ac97_bus 1308 1 snd_ac97_codec
snd_pcm 51780 2 snd_intel8x0,snd_ac97_codec
snd_timer 16344 1 snd_pcm
snd 43584 6 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore 5180 1 snd
snd_page_alloc 7256 2 snd_intel8x0,snd_pcm
tux@slitaz:~$
Next, make sure that X works with the DRM correctly.
Look at the bottom of the X log where it has lines with [dri], [drm], [agp], etc. If there are any (EE) errors in there, look at those.
If you get a message like this:
(EE) [dri] RADEONDRIScreenInit failed because of a version mismatch
(EE) [dri] libdri version is 4.2.0 but version 5.0.0 is needed.
(EE) [dri] Disabling DRI.
then your libdri module is too old. If you installed from a snapshot, be sure to update the common module.
If the version numbers are the other way around (version is 5.0 but version 4.2 is needed) then you updated your server without updating your 2D driver as well.
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/X11/modules"
FontPath "/usr/share/fonts/X11/misc/"
FontPath "/usr/share/fonts/X11/TTF/"
FontPath "/usr/share/fonts/X11/OTF"
FontPath "/usr/share/fonts/X11/Type1/"
FontPath "/usr/share/fonts/X11/100dpi/"
FontPath "/usr/share/fonts/X11/75dpi/"
FontPath "/usr/share/fonts/truetype/ttf-dejavu"
EndSection
Section "Module"
Load "dri"
Load "extmod"
Load "dbe"
Load "glx"
Load "freetype"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "de"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
Vendorname "Hewlett-Packard"
Modelname "HP LP2065 Flat Panel Monitor"
Horizsync 30.0-92.0
Vertrefresh 48.0-85.0
Modeline "1600x1200" 159.50 1280 1376 1512 1744 1024 1027 1034 1078
Option "DPMS"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Identifier "Card0"
Driver "intel"
VendorName "Unknown Vendor"
BoardName "Unknown Board"
Option "LinearAlloc" "16384"
#BusID "PCI:0:2:0"
# Option "NoDDC" "true"
Option "XvmcUsesTextures" "true"
Option "renderAccel" "true"
Option "NoDDCValue"
Option "UseEDID" "false"
Option "ExactModeTimingsDVI" "true"
Option "NoLogo" "true"
Option "NoBandWidthTest" "true"
Option "ModeValidation" "NoDFPNativeResolutionCheck, NoEdidMaxPClkCheck, NoMaxPClkCheck, AllowInterlacedModes, AllowNon60HzDFPModes"
Option "DynamicTwinView" "false"
Option "UseEvents" "true"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "true"
Option "Monitor-LVDS" "Disabled Monitor"
Option "Monitor-TMDS-1" "Monitor0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Modes "1600x1200"
EndSubSection
Option "XvmcUsesTextures" "true"
Option "renderAccel" "true"
Option "NoDDCValue"
Option "UseEDID" "false"
Option "ExactModeTimingsDVI" "true"
Option "NoLogo" "true"
Option "NoBandWidthTest" "true"
Option "ModeValidation" "NoDFPNativeResolutionCheck, NoEdidMaxPClkCheck, NoMaxPClkCheck, AllowInterlacedModes, AllowNon60HzDFPModes"
Option "DynamicTwinView" "false"
Option "UseEvents" "true"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "true"
Option "TVStandard" "720p"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
# Option "BlankTime" "0"
# Option "StandbyTime" "0"
# Option "SuspendTime" "0"
# Option "OffTime" "0"
Option "AIGLX" "Off"
EndSection
Section "Monitor"
Identifier "Disabled Monitor"
Option "Enable" "false"
Option "Ignore" "true"
EndSection
Section "Extensions"
Option "Composite" "false"
Option "RENDER" "true"
EndSection
(II) RADEON(0): Detected Radeon Mobility M6, disabling multimedia i2c
(II) Loading sub module "theatre_detect"
(II) LoadModule: "theatre_detect"
(WW) Warning, couldn't open module theatre_detect
(II) UnloadModule: "theatre_detect"
(EE) RADEON: Failed to load module "theatre_detect" (module does not exist, 0)
(EE) RADEON(0): Unable to load Rage Theatre detect module
tazhw setup ati
glxinfo | grep render
there is missing depency linux-drm - mesa-dri-ati
So I think it would be good to synchronize tazx and hwsetup
the module agpgart must be loaded before the module radeon
tux@slitaz:~$ glxinfo
-sh: glxinfo: not found
tom@ubuntu-studio:~$ glxinfo | grep render
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect
(II) AIGLX: Screen 0 is not DRI capable
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/lib/xorg/modules/extensions//libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
compiled for 1.4.0.90, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.3
(II) GLX: Initialized MESA-PROXY GL provider for screen 0
Atom 4, CARD32 4, unsigned long 4
tux@slitaz:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
when I install linux-agp before running tazhw setup ati, everything is ok.
tazpkg search-pkgname glxinfo
tux@slitaz:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
tux@slitaz:~$ glxgears
937 frames in 5.0 seconds = 187.236 FPS
crunchbang@crunchbang:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Mesa DRI R100 (RV100 4C59) 20090101 AGP 1x x86/MMX/SSE2 NO-TCL
crunchbang@crunchbang:~$ glxgears
2470 frames in 5.0 seconds = 493.880 FPS
tux@slitaz:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
tux@slitaz:~$ glxgears
560 frames in 5.0 seconds = 111.956 FPS
tom@ubuntu-studio:~$ glxinfo | grep render
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect
tom@ubuntu-studio:~$ glxgears
1038 frames in 5.1 seconds = 204.261 FPS
tux@slitaz:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
tux@slitaz:~$ glxgears
619 frames in 5.0 seconds = 123.699 FPS
crunchbang@crunchbang:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Mesa DRI Intel(R) 945GME GEM 20091221 2009Q4 x86/MMX/SSE2
crunchbang@crunchbang:~$ glxgears
2066 frames in 5.0 seconds = 413.184 FPS
LIBGL_DEBUG="verbose" glxinfo
tux@slitaz:~$ LIBGL_DEBUG="verbose" glxinfo
name of display: :0.0
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
display: :0 screen: 0
direct rendering: Yes
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.4.4
OpenGL shading language version string: 1.20
glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately 1/2 the monitor refresh rate.
44135 frames in 5.0 seconds = 8826.935 FPS
44310 frames in 5.0 seconds = 8861.892 FPS
cd /usr/lib/X11/modules/extensions
mv libglx.so libglx.so.xorg.bak
ln -s libglx.so.* libglx.so
(II) LoadModule: "glx"
(II) Loading /usr/lib/X11/modules/extensions//libglx.so
dlopen: /usr/lib/X11/modules/extensions//libglx.so: cannot open shared object file: No such file or directory
(EE) Failed to load /usr/lib/X11/modules/extensions//libglx.so
(II) UnloadModule: "glx"
(EE) Failed to load module "glx" (loader failed, 7)
(EE) AIGLX error: dlopen of /usr/lib/dri/radeon_dri.so failed (/usr/lib/dri/radeon_dri.so: cannot open shared object file: No such file or directory)
(EE) AIGLX: reverting to software rendering
(II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: enabled GLX_texture_from_pixmap with driver support
(II) AIGLX: Loaded and initialized /usr/lib/dri/radeon_dri.so
(II) GLX: Initialized DRI GL provider for screen 0
tux@slitaz:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
tux@slitaz:~$ glxgears
963 frames in 5.0 seconds = 192.476 FPS
tux@slitaz:~$ glxinfo | grep render
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa DRI Radeon 20061018 AGP 4x x86/MMX/SSE2 NO-TCL
tux@slitaz:~$ glxgears
1303 frames in 5.5 seconds = 237.682 FPS
1260 frames in 5.6 seconds = 226.145 FPS
tux@slitaz:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
tux@slitaz:~$ lsmod
Module Size Used by Not tainted
radeon 341348 2
intel_agp 23032 1
drm 121736 3 radeon
agpgart 25980 2 intel_agp,drm
i2c_core 17468 1 drm
crunchbang@crunchbang:~$ lsmod
Module Size Used by
radeon 397947 2
ttm 24317 1 radeon
drm_kms_helper 17211 1 radeon
drm 106483 5 radeon,ttm,drm_kms_helper
i2c_algo_bit 3489 1 radeon
intel_agp 20067 1
agpgart 19100 3 ttm,drm,intel_agp
tux@slitaz:~$ dmesg | tail
pci 0000:01:00.0: power state changed by ACPI to D0
pci 0000:01:00.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[drm] Initialized radeon 1.30.0 20080528 for 0000:01:00.0 on minor 0
mtrr: no MTRR for e0000000,ff0000 found
agpgart-intel 0000:00:00.0: AGP 2.0 bridge
agpgart-intel 0000:00:00.0: putting AGP V2 device into 4x mode
pci 0000:01:00.0: putting AGP V2 device into 4x mode
[drm] Setting GART location based on new memory map
[drm] Loading R100 Microcode
[drm] writeback test succeeded in 2 usecs
================================
your config is backed up at /etc/X11/xorg.conf.backup
if ati fails; please use your backed up xorg.conf
Replace vesa driver with radeon in /etc/X11/xorg.conf
Checking if ati radeon is working ...
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
================================
(II) Loading sub module "theatre_detect"
(II) LoadModule: "theatre_detect"
(WW) Warning, couldn't open module theatre_detect
(II) UnloadModule: "theatre_detect"
(EE) RADEON: Failed to load module "theatre_detect" (module does not exist, 0)
(EE) RADEON(0): Unable to load Rage Theatre detect module
It looks like you're new here. If you want to get involved, click one of these buttons!