Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lag issues with nvidia card
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Thu Jan 15, 2004 4:36 am    Post subject: Lag issues with nvidia card Reply with quote

Hi all, I finally got my nvid card to work in Gentoo without using the dreadful "nv" driver, but to be honest, I don't see much of a difference. For example, the png alpha transparency effect on my website still lags the crap out of mozilla, firebird, galeon, etc. I don't understand why it would still be laggy.

It's a GeForce4 MX 440 128mb card, and in Windows using mozilla, I don't have these lag issues with my site.

Anyone know how I can possibly improve performance a bit?

Also, and this may be offtopic, I can't seem to get my mouse wheel to work.

For the record, I use GNOME.

I suspect both problems can be fixed by tinkering with the xf86config but I am no expert, and need guidance.
Back to top
View user's profile Send private message
Sastraxi
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 258

PostPosted: Thu Jan 15, 2004 5:36 am    Post subject: Reply with quote

Try running glxinfo, to see if the nVidia drivers are *actually* working. If they are, it'll say Direct Rendering: Yes. If that's the case, I suggest using the line Option "NvAgp" "1" in the XFree config file, in the devices section where you have the nvidia driver. If not, you'll have to check what errors are happening in your /var/log/XFree86.0.log.

For the scroll wheel, try ZAxisMapping "4 5" in the mouse section (normal mice); if you have an Intellimouse/Logitech MX500/700/900, then use the Intellimouse guide in the Documentation, Tips & Tricks section. For the intellimouse, that same line would be "6 7".
Back to top
View user's profile Send private message
deadaim
Guru
Guru


Joined: 27 Oct 2003
Posts: 467
Location: Florida

PostPosted: Thu Jan 15, 2004 7:10 am    Post subject: Reply with quote

Go here:

http://www.gentoo.org/doc/en/desktop.xml

And read the "Configuring your NVIDIA Card".
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Sat Jan 17, 2004 2:06 am    Post subject: Reply with quote

Ok, first thank you both.
I managed to get my mouse scrollwheel working due to Sastraxi's advice, and deadaim's link helped a bit.

I forgot to uncomment Load "glx" in my xf86config, which I just did and I see a small improvement in performance. However, I'm still having lag issues.

Sastraxi:
Code:

kethinov@klinux X11 $ glxinfo
name of display: :0.0
NV: could not open control device /dev/nvidiactl (Permission denied)
Error: Could not open /dev/nvidiactl because the permissions
are too resticitive.  Please see the FREQUENTLY ASKED QUESTIONS
section of /usr/share/doc/NVIDIA_GLX-1.0/README for steps
to correct.
kethinov@klinux X11 $ su
Password:
root@klinux X11 # glxinfo
bash: glxinfo: command not found
root@klinux X11 # su kethinov
kethinov@klinux X11 $ glxinfo
bash: glxinfo: command not found
kethinov@klinux X11 $


First, what's the deal with the permission denied stuff in glxinfo? and what's the deal with me not being able to run the command as root and then not being able to run it at all after switching back?
Back to top
View user's profile Send private message
nex_tym
Apprentice
Apprentice


Joined: 29 Jul 2003
Posts: 211

PostPosted: Sat Jan 17, 2004 2:17 am    Post subject: Reply with quote

Are you seeing a nvidia splash screen when you start X up?

Try emerging the nvidia-kernel nvidia-glx again. Then make sure you have nvidia for the driver, and the glx uncommented. You should see a nvidia splash screen as you start X up, if not, they arent working since the splash is enabled by default.
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Sat Jan 17, 2004 3:41 am    Post subject: Reply with quote

I see the nvidia splash screen whenever X starts, using driver "nvidia", glx is uncommented. Still lags with png alpha transparency on websites.
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Sun Jan 18, 2004 6:21 am    Post subject: Reply with quote

Ok this problem hasn't gone way... can no one help me? :(
Everything I've checked so far tells me the vid-card is working great yet it still lags bad on png alpha transparency on my website in all browsers (unless I shrink it really really small hehe)
Back to top
View user's profile Send private message
mike4148
l33t
l33t


Joined: 09 Sep 2003
Posts: 641

PostPosted: Sun Jan 18, 2004 6:03 pm    Post subject: Reply with quote

In the "Device" section for your nvidia card in your /etc/X11/XF86Config*, set the following option:
Code:
Option "RenderAccel" "1"

That might help with the low alpha transparency performance.

The reason you couldn't run glxinfo is because su does not use a login shell by default; this means that you lose your PATH variable. If you entered the full path (/usr/X11R6/bin/glxinfo), you could still run it. Alternatively, pass the '-' option to su to use a login shell. For example,
Code:
su -

as a normal user will switch you to root as if you had just logged in as root.

That still doesn't shed any light on the permission denied problem, though. Try running this command next time you see the message:
Code:
ls -l /dev/nvidiactl

Post the output thereof. If you're using devfs (the default for Gentoo), you should see something like this:
Code:
crw-rw-rw-    1 root root   195,255 Dec 31 1969 /dev/nvidiactl
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Sun Jan 18, 2004 7:11 pm    Post subject: Reply with quote

The renderaccel option didn't fix it.

I still can't glxinfo from regular user, but su - worked.

Code:
kethinov@klinux kethinov $ ls -l /dev/nvidiactl
crw-------    1 root     root     195, 255 Dec 31  1969 /dev/nvidiactl


Should I post the complete glxinfo output here?
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Mon Jan 19, 2004 10:00 pm    Post subject: Reply with quote

Here is the complete glxinfo output.

Code:

klinux root # glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
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
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
    GLX_SGIX_swap_group, GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_NV_float_buffer
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 MX 440/AGP/3DNOW!
OpenGL version string: 1.4.0 NVIDIA 44.96
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_point_parameters,
    GL_ARB_texture_compression, 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_transpose_matrix, GL_ARB_vertex_buffer_object,
    GL_ARB_vertex_program, GL_ARB_window_pos, GL_S3_s3tc, GL_EXT_abgr,
    GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_minmax,
    GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_compiled_vertex_array, GL_EXT_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
    GL_EXT_paletted_texture, GL_EXT_point_parameters, GL_EXT_rescale_normal,
    GL_EXT_secondary_color, GL_EXT_separate_specular_color,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
    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_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_blend_square,
    GL_NV_fence, GL_NV_fog_distance, GL_NV_light_max_exponent,
    GL_NV_packed_depth_stencil, GL_NV_pixel_data_range, GL_NV_point_sprite,
    GL_NV_register_combiners, GL_NV_texgen_reflection,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle,
    GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_NVX_ycrcb, GL_SGIS_generate_mipmap,
    GL_SGIS_multitexture, GL_SGIS_texture_lod
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
 
   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
----------------------------------------------------------------------
0x21 24 tc  0 32  0 r  y  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x22 24 dc  0 32  0 r  y  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x23 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x24 24 tc  0 32  0 r  .  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x25 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x26 24 tc  0 32  0 r  y  .  8  8  8  0  0 16  0 16 16 16 16  0 0 None
0x27 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  0 16 16 16 16  0 0 None
0x28 24 tc  0 32  0 r  .  .  8  8  8  0  0 16  0 16 16 16 16  0 0 None
0x29 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  0 16 16 16 16  0 0 None
0x2a 24 tc  0 32  0 r  y  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x2b 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
0x2c 24 tc  0 32  0 r  .  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x2d 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
0x2e 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x2f 24 dc  0 32  0 r  .  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x30 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x31 24 dc  0 32  0 r  y  .  8  8  8  0  0 16  0 16 16 16 16  0 0 None
0x32 24 dc  0 32  0 r  y  .  8  8  8  8  0 16  0 16 16 16 16  0 0 None
0x33 24 dc  0 32  0 r  .  .  8  8  8  0  0 16  0 16 16 16 16  0 0 None
0x34 24 dc  0 32  0 r  .  .  8  8  8  8  0 16  0 16 16 16 16  0 0 None
0x35 24 dc  0 32  0 r  y  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x36 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
0x37 24 dc  0 32  0 r  .  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x38 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
klinux root #
Back to top
View user's profile Send private message
eyd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 91
Location: Kansas, USA

PostPosted: Mon Jan 19, 2004 10:41 pm    Post subject: Possible fix Reply with quote

I check both my gentoo PC's and I am the owner of /dev/nvidiactl.

eyd@narn eyd $ ls -l /dev/nvidiactl
crw------- 1 eyd root 195, 255 Dec 31 1969 /dev/nvidiactl


I don't recall doing anything other than emerging the nvidia-kernel and nvidia-glx...and running
Code:
opengl-update nvidia


You could test it by making yourself owner of the file. As root...
Code:
chown [i]username[/i] /dev/nvidiactl
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Tue Jan 20, 2004 5:43 am    Post subject: Reply with quote

I ran opengl-update nvidia just to make sure, and that still hasn't helped my lag issues. :(
Back to top
View user's profile Send private message
eyd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 91
Location: Kansas, USA

PostPosted: Tue Jan 20, 2004 1:57 pm    Post subject: ?? Reply with quote

What's the site address? Perhaps it's a more general linux issue and not a nvidia issue. How do things like Quake3 and UT2003 run?
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Tue Jan 20, 2004 5:10 pm    Post subject: Reply with quote

Hehe if I had the games I'd tell ya.
http://eric.halo43.com
Back to top
View user's profile Send private message
eyd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 91
Location: Kansas, USA

PostPosted: Tue Jan 20, 2004 6:11 pm    Post subject: Reply with quote

How fast is your PC? I don't notice any lag, but my CPU usage goes to about 80% when I use the mousewheel to scroll through the page. This is on an AthlonXP 2200+ 512MB. If I scroll up and down constantly then it pegs at 100% and begins to lag. You could run top in a terminal and see if it's your CPU usage.
Back to top
View user's profile Send private message
eyd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 91
Location: Kansas, USA

PostPosted: Tue Jan 20, 2004 6:13 pm    Post subject: Reply with quote

You could also install the demo. It's a great game!
Code:
emerge -u ut2003-demo
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Wed Jan 21, 2004 12:02 am    Post subject: Reply with quote

My CPU usage on scrolling is 100%.
Screenshot: http://eric.halo43.com/images/screenshots/2004-01-19-scrolllag.png

Relevent system specs:
Motherboard: AOpen AK73 Pro
Processor: AMD Athlon 1000mhz Socket A
System Memory: 1024mb PC133 SDRAM
Graphics card: GeForce4 MX 440, 128MB, TV-Out, AGP
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Wed Jan 21, 2004 12:07 am    Post subject: Reply with quote

It's also relevent to note that these issues did not occur when I ran Windows on that machine. I'm not ready to blame this on hardware just yet.
Back to top
View user's profile Send private message
eyd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 91
Location: Kansas, USA

PostPosted: Wed Jan 21, 2004 2:05 pm    Post subject: Reply with quote

No, it's probably not hardware, but I think it's a linux thing. Whatever library it uses for that eats up the CPU.?.
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Wed Jan 21, 2004 6:38 pm    Post subject: Reply with quote

But... shouldn't it be using the gpu?
Back to top
View user's profile Send private message
eyd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 91
Location: Kansas, USA

PostPosted: Wed Jan 21, 2004 7:41 pm    Post subject: Reply with quote

I don't know. How does it work using the nv driver?
Back to top
View user's profile Send private message
SPY_jmr1
n00b
n00b


Joined: 02 Jan 2004
Posts: 62

PostPosted: Wed Jan 21, 2004 9:28 pm    Post subject: Reply with quote

Kethinov wrote:
The renderaccel option didn't fix it.

I still can't glxinfo from regular user, but su - worked.

Code:
kethinov@klinux kethinov $ ls -l /dev/nvidiactl
crw-------    1 root     root     195, 255 Dec 31  1969 /dev/nvidiactl


Should I post the complete glxinfo output here?


I had a related problem, I recognize the permissions problem... Search for nvidia and pam.

A chmod/chown won't help...

Aha! Here is the text...

Quote:
/etc/security/console.perms


That is the file that needs editing, look for a nvidia* line, and change the 0600 to 0666...

Fixed mine, Your miles may vary ;)
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Thu Jan 22, 2004 12:25 am    Post subject: Reply with quote

eyd wrote:
I don't know. How does it work using the nv driver?
Same issues except a little worse.
Back to top
View user's profile Send private message
eyd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 91
Location: Kansas, USA

PostPosted: Thu Jan 22, 2004 1:20 pm    Post subject: Reply with quote

I'm still back to thinking it's a linux thing. I can't say why, but every linux workstation I try it on pegs the CPU when scrolling your webpage. My home PC does the same thing, and it's an Athlon XP2800+, 1Gig PC3200, GeForce 3Ti.
Back to top
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Fri Jan 23, 2004 12:07 am    Post subject: Reply with quote

high cpu is normal. but the lag isn't. In windows my cpu jumps up too but it scrolls smoothly. the lag i'm describing is genuine unresponsiveness during the scrolling. visibly bad.
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
Goto page 1, 2  Next
Page 1 of 2

 
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