LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Enable Direct Rendering (https://www.linuxquestions.org/questions/mandriva-30/enable-direct-rendering-301706/)

rca36 03-14-2005 10:30 PM

Enable Direct Rendering
 
Hi, I am running Mandrake 10.1 and just installed UT2004 and noticed a problem with my FPS. I have a 3GHz P4 with GForce 6800 GT OC 256MB graphics and 1GB ram.

I have done a bit of digging and think that this may be the problem tho I dont know how to fix it.

# glxinfo | grep direct
direct rendering: No

I installed the nvidia driver from their site yesterday and I get the nvidia splash screen when entering X so the driver works. Ill also note that I just installed mdk10.1 a couple days ago and haven't loaded much other then sources for the kernel, kde, Qt, Xorg and a few multimedia apps like xmms xine and so forth.

here is some of my xorg.conf
----------------------------------------------------------------------------------------------------


Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "/usr/X11R6/lib/modules/extensions/libglx.a"
# Load "dri"
EndSection

Section "Device"
Identifier "device1"
Driver "nvidia"
Option "NvAGP" "3"
Option "AllowGLXWithComposite" "true"
Option "RenderAccel" "true"
Option "RENDER" "Enable"
EndSection

----------------------------------------------------------------------------------------------------

here is some of my Xorg.0.log

Release Date: 18 December 2003
X Protocol Version 11, Revision 0, Release 6.7
Build Operating System: Linux 2.4.19-44mdkenterprise i686 [ELF]
Current Operating System: Linux localhost 2.6.8-custom #1 SMP Sat Mar 12 18:19:16 CST 2005 i686
Build Date: 18 November 2004
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 14 21:58:45 2005
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "layout1"
(**) |-->Screen "screen1" (0)
(**) | |-->Monitor "monitor1"
(**) | |-->Device "device1"
(**) |-->Input Device "Keyboard1"
(**) Option "XkbModel" "pc105"
(**) XKB: model: "pc105"
(**) Option "XkbLayout" "en_US"
(**) XKB: layout: "en_US"
(WW) Option "XkbOptions" requires an string value
(==) Keyboard: CustomKeycode disabled
(**) |-->Input Device "Mouse1"
(**) FontPath set to "unix/:-1"
(==) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(**) Option "AllowMouseOpenFail"
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.7
X.Org XInput driver : 0.4
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.7
Using vt 7


(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "v4l"
(II) Loading /usr/X11R6/lib/modules/drivers/linux/v4l_drv.o
(II) Module v4l: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 0.0.1
ABI class: X.Org Video Driver, version 0.7
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension FontCache
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.2
x000c0000 - 0x000effff (0x30000) MX[B]
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Type1
(II) Loading font CID
(II) LoadModule: "freetype"
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
compiled for 6.7.0, module version = 2.1.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font FreeType
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.7167
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension GLX
(II) LoadModule: "/usr/X11R6/lib/modules/extensions/libglx.a" (glx)
(WW) LoadModule: given non-canonical module name "/usr/X11R6/lib/modules/extensions/libglx.a"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="X.Org Foundation"
compiled for 6.7.0, 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/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "nvidia"
(II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.o
(II) Module nvidia: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.7167
Module class: XFree86 Video Driver
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.4
(II) v4l driver for Video4Linux
(II) NVIDIA X Driver 1.0-7167 Fri Feb 25 09:10:21 PST 2005
(II) NVIDIA Unified Driver for all NVIDIA GPUs
(II) Primary Device is: PCI 01:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset NVIDIA GPU found
(II) resource ranges after xf86ClaimFixedResources() call:
[0] -1 0 0xf(II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NvAGP" "3"
(**) NVIDIA(0): Option "RenderAccel" "true"
(**) NVIDIA(0): Option "AllowGLXWithComposite" "true"
(**) NVIDIA(0): Enabling experimental RENDER acceleration
(--) NVIDIA(0): Linear framebuffer at 0xE0000000
(--) NVIDIA(0): MMIO registers at 0xF0000000
(II) NVIDIA(0): NVIDIA GPU detected as: GeForce 6800 GT
(--) NVIDIA(0): VideoBIOS: 05.40.02.15.05
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(II) NVIDIA(0): Detected AGP rate: 8X
(--) NVIDIA(0): VideoRAM: 262144 kBytes
(II) NVIDIA(0): Connected display device(s): CRT-1
(--) NVIDIA(0): Display device CRT-1: maximum pixel clock at 8 bpp: 400 MHz
(--) NVIDIA(0): Display device CRT-1: maximum pixel clock at 16 bpp: 400 MHz
(--) NVIDIA(0): Display device CRT-1: maximum pixel clock at 32 bpp: 400 MHz
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.7
(WW) NVIDIA(0): The user specified HorizSync "31.500-82.000" has been adjusted
(WW) NVIDIA(0): to "31.500-70.000" (the intersection with EDID-specified
(WW) NVIDIA(0): HorizSync "30.000-70.000")
(II) NVIDIA(0): monitor1: Using hsync range of 31.50-70.00 kHz
(II) NVIDIA(0): monitor1: Using vrefresh range of 50.00-90.00 Hz
(II) NVIDIA(0): Clock range: 12.00 to 400.00 MHz
fe00000 - 0xffffffff (0x200000) MX[B](B)

(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/X11R6/lib/modules/libramdac.a
(II) Module ramdac: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 0.1.0
ABI class: X.Org Video Driver, version 0.7
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC? No, I don't.

(II) NVIDIA(0): Setting mode "1280x1024"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(II) Loading extension NV-CONTROL
(WW) NVIDIA(0): Option "RENDER" is not used
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing extension GLX
(II) Keyboard "Keyboard1" handled by legacy driver
(**) Option "Protocol" "ExplorerPS/2"
(**) Mouse1: Device: "/dev/mouse"
(**) Mouse1: Protocol: "ExplorerPS/2"
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/mouse"
(==) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "6 7"
(**) Mouse1: ZAxisMapping: buttons 6 and 7
(**) Mouse1: Buttons: 7
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Mouse1: ps2EnableDataReporting: succeeded

----------------------------------------------------------------------------------------------------

here is some of my lsmod

Module Size Used by
nls_cp437 6528 1
smbfs 64504 2
isofs 32956 1
sg 35484 0
sr_mod 16036 0
vmnet 30992 12
parport_pc 32320 0
parport 36296 1 parport_pc
vmmon 49984 0
nvidia 3923388 12
md5 4736 1
ipv6 255492 10
rfcomm 34584 0
l2cap 24320 5 rfcomm
bluetooth 43396 4 rfcomm,l2cap
snd-seq-oss 33920 0
snd-seq-midi-event 7680 1 snd-seq-oss
snd-seq 53520 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 49960 0
snd-mixer-oss 18688 1 snd-pcm-oss
snd-intel8x0 31692 1
snd-ac97-codec 69456 1 snd-intel8x0
snd-pcm 88452 2 snd-pcm-oss,snd-intel8x0
snd-timer 23812 2 snd-seq,snd-pcm
snd-page-alloc 8456 2 snd-intel8x0,snd-pcm
gameport 4608 1 snd-intel8x0
snd-mpu401-uart 7552 1 snd-intel8x0
snd-rawmidi 21796 1 snd-mpu401-uart
snd-seq-device 7432 3 snd-seq-oss,snd-seq,snd-rawmidi
snd 48740 13 snd-seq-oss,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-intel8x0,snd-ac97-codec,snd-pcm,snd-timer,snd-mpu401-uart,snd-rawmidi,snd-seq-device
soundcore 8800 1 snd
af_packet 18568 2
floppy 57584 0
eth1394 18824 0
8139too 23168 0
mii 5248 1 8139too
ide-cd 37792 1
cdrom 38044 2 sr_mod,ide-cd
ohci1394 33156 0
ieee1394 293816 2 eth1394,ohci1394
loop 14088 0
tsdev 6976 0
joydev 9024 0
evdev 8704 0
nls_iso8859-1 4864 3
supermount 36112 1
intel-agp 20256 1
agpgart 28588 2 nvidia,intel-agp
usbmouse 5376 0
usbhid 43392 0
ehci-hcd 27908 0
uhci-hcd 30096 0
usbcore 107236 6 usbmouse,usbhid,ehci-hcd,uhci-hcd
thermal 11144 0
tc1100-wmi 6276 0
processor 15232 1 thermal
fan 3972 0
button 5776 0
battery 8196 0
asus_acpi 10256 0
ac 4356 0
ext3 121320 2
jbd 60824 1 ext3
sd_mod 20096 6
ata_piix 7684 4
libata 40068 1 ata_piix
scsi_mod 106180 4 sg,sr_mod,sd_mod,libata

----------------------------------------------------------------------------------------------------
here is some of my glxinfo

name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: SGI
client glx version string: 1.2
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_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_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_swap_control, GLX_SGI_video_sync,
GLX_SGIX_fbconfig
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 6800 GT/AGP/SSE2
OpenGL version string: 1.2 (1.5.3 NVIDIA 71.67)
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_texture_border_clamp, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
GL_ARB_texture_non_power_of_two, GL_ARB_window_pos, GL_ATI_texture_float,
GL_ATI_texture_mirror_once, GL_EXT_texture_env_add, GL_EXT_abgr,
GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_draw_range_elements,
GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_NV_blend_square,
GL_NV_copy_depth_to_color, GL_NV_depth_clamp, GL_NV_fog_distance,
GL_NV_light_max_exponent, GL_NV_multisample_filter_hint,
GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
GL_SUN_slice_accum
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
----------------------------------------------------------------------------------------------------

let me know if you need anything else.

Thanks

sharkee 03-15-2005 02:36 AM

Uncomment the load dri line in your xorg.conf.

#Load "dri"
Load "dri"

Regards
Sharkee

rca36 03-15-2005 10:42 AM

thanks for the reply. Unfortunately, I already tried this, and when i grep the glxinfo it still says direct rendering is disabled. Im at work atm so I cant re-verify but I did have it like this last night.

I will un-comment it again when I get home from work this evening just to make sure.

If you or anyone else can think of any other reason why it would still be disabled let me know.

Thanks

Edit: Do I need both of these in my xorg.conf?

Load "glx" # 3D layer
Load "/usr/X11R6/lib/modules/extensions/libglx.a"

..or should one be removed?

dubya 03-15-2005 03:46 PM

Check the permissions on the nvidia devices in the /dev directory uses this command:
Code:

ll /dev | grep -i nvidia
I am running FC3 and for some reason, whenever I boot, permissions will be set on some of these devices so that only the root may access them. If this is your problem, you will need to modify these permissions so that all users may access them.

Hope this helps. If you don't know what I'm talking about, just post the output of that command I mentioned.

rca36 03-15-2005 06:45 PM

Sharkee-
I uncommented the Load "dri" and rebooted... direct rendering still disabled

dubya-

I ran that command and here is the output:
crw-rw---- 1 rca36 video 195, 0 Mar 15 18:40 nvidia0
crw-rw---- 1 rca36 video 195, 255 Mar 15 18:40 nvidiactl

please advise.

dubya 03-15-2005 07:47 PM

Try running this command as root:
Code:

chmod 666 /dev/nvidia*
This changes the permissions of the devices. Then try:
Code:

glxinfo | grep direct
You should get a positive result if you run that command as root before you change the permissions. After, it should give you a positive result no matter what type of user you are.

However, I have to do this everytime I want to enable direct rendering support. Whenever I reboot, the permissions get reset. So be warned that you may have to do this everytime you need it.

Hope this helps.

rca36 03-15-2005 07:58 PM

dubys-

ok i did that and it sill says direct rendering is off :(

dubya 03-15-2005 08:30 PM

Is the Load dri line still commented out?

Please post the output of
Code:

ll /dev | grep nvidia
Other than that, I'm not too sure...sorry!

rca36 03-15-2005 08:33 PM

dubys-

Load "dri" is not commented out anymore and I tried chmod 666 and it didnt work so I did 777 and it didnt work... here is output:

crwxrwxrwx 1 rca36 video 195, 0 Mar 15 19:53 nvidia0
crwxrwxrwx 1 rca36 video 195, 255 Mar 15 19:53 nvidiactl

dubya 03-15-2005 09:59 PM

Load dri should be commented out, or simply deleted.

I'm not sure how else to help you though. Sorry! Good luck.

rca36 03-15-2005 10:02 PM

Problem Solved!

I was cruising the net looking at various things when i came across a link about a new Nvidia driver so I DLd and installed it. Im not sure it was really the driver tho is prolly didnt hurt, but rather I noticed a blip of text just as i did a startx. So I exited and noticed it was complaining about libglx.a link. I then went and looked at the samble XF86 conf file supplied with the newest nvidia and noticed they have the following:

Section "Module"

# PoLoadr sectio"dbe"

# Load the glx module.
Load "glx"

Load "extmod"

Load "type1"
Load "freetype"
EndSection

so i modeled mine after this and YAY Direct Rendering:yes

thanks again for the help getting me here :)

dubya 03-16-2005 11:18 AM

Congratulations!

MegaByll 03-29-2005 01:15 PM

Finally, someone who has had the exact same problem as I, and actually has the solution. Unforunately I am not at the computer with the linux install, so I cannot try it out yet, but I will be doing so the second I get back. I hope this works for me too.


All times are GMT -5. The time now is 11:03 AM.