Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
direct rendering: No - try setting LIBGL_DEBUG=verbose
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Wed Feb 18, 2009 1:07 pm    Post subject: direct rendering: No - try setting LIBGL_DEBUG=verbose Reply with quote

I am trying to get direct rendering working with my ATI card. When I run:

gentoo_icc tylerm # dmesg | grep drm
[ 9.755725] [drm] Initialized drm 1.1.0 20060810
[ 9.780143] [drm] Initialized radeon 1.29.0 20080528 on minor 0
[ 27.820594] [drm] Setting GART location based on new memory map
[ 27.820604] [drm] Loading R200 Microcode
[ 27.820643] [drm] writeback test succeeded in 1 usecs
gentoo_icc tylerm # glxinfo | grep rednering
gentoo_icc tylerm # glxinfo | grep rendering
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

I can see it's not running

Where do I set LIBGL_DEBUG=verbose ?
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
zachos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2007
Posts: 103

PostPosted: Wed Feb 18, 2009 2:09 pm    Post subject: Reply with quote

you just set the variable in your shell environment or you can just do from the hash #


# LIBGL_DEBUG=verbose glxinfo | grep rendering
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Wed Feb 18, 2009 2:18 pm    Post subject: Reply with quote

zachos wrote:
you just set the variable in your shell environment or you can just do from the hash #


# LIBGL_DEBUG=verbose glxinfo | grep rendering


unable to load driver: r200_dri.so

gentoo_icc tylerm # LIBGL_DEBUG=verbose glxinfo | grep rendering
libGL: XF86DRIGetClientDriverName: 5.3.0 r200 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/r200_dri.so
libGL: OpenDriver: trying /usr/lib/dri/r200_dri.so
libGL error: dlopen /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: r200_dri.so

gentoo_icc tylerm # locate r200_dri.so
gentoo_icc tylerm #

I installed the xf86-video-ati driver.

lspci -v looks like this:

Code:

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV250 If [Radeon 9000] (rev 01) (prog-if 00 [VGA controller])                                                                                                                         
        Subsystem: PC Partner Limited RV250 If [Sapphire Radeon 9000 Pro]                                                 
        Flags: bus master, stepping, 66MHz, medium devsel, latency 32, IRQ 16                                             
        Memory at e8000000 (32-bit, prefetchable) [size=64M]                                                               
        I/O ports at a000 [size=256]                                                                                       
        Memory at fa030000 (32-bit, non-prefetchable) [size=64K]                                                           
        [virtual] Expansion ROM at fa000000 [disabled] [size=128K]                                                         
        Capabilities: [58] AGP version 2.0                                                                                 
        Capabilities: [50] Power Management version 2                                                                     
        Kernel driver in use: radeonfb                   


xorg.conf
http://www.tyler.mcadams.com/xorg.conf

dri is compiled as a module along with intel-agp, agpgart and ati radeon driver

gentoo_icc X11 # lsmod
Module Size Used by
radeon 127776 1
drm 62632 2 radeon
intel_agp 23492 1
agpgart 26312 2 drm,intel_agp
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
zachos
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2007
Posts: 103

PostPosted: Thu Feb 19, 2009 11:25 am    Post subject: Reply with quote

Do you have the mesa package install?

# emerge -av media-libs/mesa
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Feb 19, 2009 2:51 pm    Post subject: Reply with quote

Thaidog wrote:
locate r200_dri.so

That means very little, unless you also show when locate's database was last updated. Use the "find" command instead, which will show the current reality. E.g.:

find /usr* -name \*r200\*
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Thu Feb 19, 2009 3:34 pm    Post subject: Reply with quote

if you are sure that your packages are all installed correctly and drm/dri should work - make sure that you start consolekit before X starts. Or it won't work (had the same problem).
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Sun Feb 22, 2009 10:24 am    Post subject: Reply with quote

Hi,

Same problem here:
Code:

# glxinfo |grep rendering
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)


Starting consolekit before X doesn't help.

and even if adding DEBUG:
Code:

# LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig, GLX_EXT_texture_from_pixmap
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (1.5 Mesa 6.5.2)
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_shadow, GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_compression, GL_ARB_texture_cube_map,
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_program,
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_clip_volume_hint, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias,
    GL_EXT_texture_mirror_clamp, GL_EXT_texture_object,
    GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
    GL_ATI_draw_buffers, GL_ATI_texture_env_combine3,
    GL_ATI_texture_mirror_once, GL_ATIX_texture_env_combine3,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_NV_blend_square,
    GL_NV_fragment_program, GL_NV_light_max_exponent, GL_NV_point_sprite,
    GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
    GL_SGIX_shadow, GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  0  0  0  0  0  0 0 None
0x24 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x27 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  0  0  0  0  0  0 0 None
0x28 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x29 24 dc  0 32  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x2a 24 dc  0 32  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None

Hence not possible to enable 3D acceleration, using 2.6.27-gentoo-r8 and video card Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03).

Module i915 loaded, dri and glx loaded in Xorg.conf, 3D acc. worked previously but I just realized it doesn't work anymore since I've done a fex kernel upgrade.

Any hint? How can I know what's wrong?

Thank you
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
ryan_
n00b
n00b


Joined: 12 Feb 2009
Posts: 5

PostPosted: Sun Feb 22, 2009 11:18 am    Post subject: Reply with quote

Have you tried

Quote:

ryan@arrakis ~ $ eselect opengl list
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11


and make sure the right one is enabled, if not;

Quote:

eselect opengl nvidia (or whatever it is yours is called)
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Sun Feb 22, 2009 1:05 pm    Post subject: Reply with quote

Code:

~ $ eselect opengl list
Available OpenGL implementations:
  [1]   xorg-x11 *

Nothing really helpfull I guess?

First I would like to know what's the problem, how can I find logs?

I enabled module i915 for drm in the kernel config:
Code:

# grep -i drm /usr/src/linux/.config
CONFIG_DRM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=m
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set

I'll try with i810 or i830.
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Sun Feb 22, 2009 3:41 pm    Post subject: Reply with quote

Post the output of emerge -pv mesa. Here's mine, for example:
Quote:
[ebuild R ] media-libs/mesa-9999 USE="nptl pic xcb -debug -doc -motif" VIDEO_CARDS="radeon -intel -mach64 -mga -none -r128 -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB [1]

Notice how it has radeon in my VIDEO_CARDS. Perhaps you forgot to set that in your /etc/make.conf? If that's not set, it won't build the DRI driver and that would explain why it can't find r200_dri.so.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Mon Feb 23, 2009 4:57 pm    Post subject: Reply with quote

Aha!

What's this 'intel' flag now. I used to have VIDEO_CARDS="i810" for my intel card, is this deprecated.

If I update make.conf with VIDEO_CARDS="intel" and emerge -uDNpv world it wouldl rebuild xorg-server and mesa with the according flag...
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Mon Feb 23, 2009 6:10 pm    Post subject: Reply with quote

Ok,

Updated make.conf with VIDEO_CARDS="intel" and re-emerged world, here's the result with mesa and xorg-server:
Code:

# emerge -pv mesa xorg-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-6.5.2-r1  USE="nptl -debug -doc -motif -pic -xcb" VIDEO_CARDS="intel -mach64 -mga -none -r128 -radeon -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB
[ebuild   R   ] x11-base/xorg-server-1.3.0.0-r6  USE="dri ipv6 nptl sdl xorg -3dfx -debug -dmx -kdrive -minimal -xprint" INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="intel -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev -fglrx -glint -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -nv -nvidia -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -vga -via -vmware -voodoo" 0 kB

So everything seems to be well setup, but that doesn't help.
I still have:
Code:

# LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2

I found error message in xorg log file:
Code:

grep -i dri /var/log/Xorg.0.log
        X.Org Video Driver: 1.2
        X.Org XInput driver : 0.7
        ABI class: X.Org Video Driver, version 1.2
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
(II) Loading extension XFree86-DRI
(II) Loading /usr/lib/xorg/modules/drivers//intel_drv.so
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 1.2
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 0.7
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 0.7
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 0.7
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        ABI class: X.Org Video Driver, version 1.2
        ABI class: X.Org Video Driver, version 1.2
        ABI class: X.Org Video Driver, version 1.2
(--) intel(0): Will try to allocate texture pool for old Mesa 3D driver.
        ABI class: X.Org Video Driver, version 1.2
               large DRI memory manager reservation:
(II) intel(0): 0x08048000-0x0a047fff: DRI memory manager (32768 kB)
(EE) intel(0): Cannot support DRI with frame buffer width > 2048.
(EE) AIGLX: Screen 0 is not DRI capable
(II) Synaptics touchpad driver version 0.14.6 (1406)

Any other idea?

Thank you
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum