Nvidia help required - sluggish video performance

Hi all,

operating System: Opensuse version 11.3 (x86_64)
Nvidia Driver Version: 256.35

I have been getting sluggish performance while playing games recently as a normal user, although when I switch to a superuser I get great performance.

I have ran the command Glxinfo as a normal user and I get the following output.
name of display: :0.0 NVIDIA: - Anonymous - TzhDEdV5 - Pastebin.com

When run as a superuser I get the following output.
name of display: :0.0 display - Anonymous - 4nb3pDJH - Pastebin.com

I have noticed a major difference in output is that as a normal user Direct Rendering is not enabled, though as soon as I log into the super user there is no such error message.

Is there a way that I can enable Direct Rendering as a normal user?

I believe that this may be part of the issue.

Thank you for your assistance.

Regards,

Paul.

I don’t know if it’s relevant to your problem, but on my system the nvidia devices are group owned by “video”, and all my users are members of this group.

ls -l /dev/ | grep video
crw-rw---- 1 root video 29, 0 2010-08-21 10:54 fb0
crw-rw---- 1 root video 195, 0 2010-08-21 10:54 nvidia0
crw-rw---- 1 root video 195, 255 2010-08-21 10:54 nvidiactl
crw-rw----+ 1 root video 81, 2 2010-08-21 10:54 radio0
crw-rw----+ 1 root video 81, 1 2010-08-21 10:54 vbi0
crw-rw----+ 1 root video 81, 0 2010-08-21 10:54 video0

Hi my output of that command appears to be similar

crw-rw---- 1 root video 29, 0 2010-08-21 10:17 fb0
crw-rw---- 1 root video 195, 0 2010-08-21 10:17 nvidia0
crw-rw---- 1 root video 195, 255 2010-08-21 10:17 nvidiactl
crw-rw----+ 1 root video 81, 0 2010-08-21 10:17 video0

Although I’m not too sure how to use this information though and how to change ownership if that is what is causing the issue.

Hi all,

I appear to have fixed the problem by editing a file called /etc/modprobe.d/50-nvidia.conf
and changed it to
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0666
instead of
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660

I believe that this may have changed my permissions, and my graphics card now appears to be using Direct Rendering despite the output of the

ls -l /dev/ | grep video being…

crw-rw---- 1 root video 29, 0 2010-08-21 11:04 fb0
crw-rw-rw- 1 root video 195, 0 2010-08-21 11:04 nvidia0
crw-rw-rw- 1 root video 195, 255 2010-08-21 11:04 nvidiactl
crw-rw----+ 1 root video 81, 0 2010-08-21 11:04 video0

Correct, now anyone logged into the box can access these devices. Depending on how secure you want to be, this may be OK.

What you could have done is to check that the user involved is in the video group in the Yast Control Center - User and Group Administration - Groups. If they were not, then you could have added that user to the group. That way things could stay read-write for anyone the video group and no access to anyone else outside it (except for root).