nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   could not open device file /dev/nvidiactl (http://www.nvnews.net/vbulletin/showthread.php?t=89965)

bbernieb 04-18-07 09:33 AM

could not open device file /dev/nvidiactl
 
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.

I get this after installing in Opensuse 10.2 x86_64 with the latest driver.

How do I fix this properly. I found some pages on the net with fixes, but am looking for a properly supported fix.

Bernie
The Boeing Company

netllama 04-18-07 10:47 AM

Re: could not open device file /dev/nvidiactl
 
http://www.nvnews.net/vbulletin/showthread.php?t=46678

JustinVenus 04-18-07 11:12 AM

Re: could not open device file /dev/nvidiactl
 
make sure you have an entry in /etc/udev/rules.d/50-udev.rules for your card.

the entry will look something like this

###################/etc/udev/rules.d/50-udev.rules############

KERNEL=="nvidia*", NAME="%k", GROUP="video"

##############end of /etc/udev/rules.d/50-udev.rules ############
then make sure your user is part of the "video" group

bbernieb 04-18-07 03:09 PM

Re: could not open device file /dev/nvidiactl
 
1 Attachment(s)
here is the bug report

Sorry for not including it in my first post.

Bernie

netllama 04-18-07 03:36 PM

Re: could not open device file /dev/nvidiactl
 
I don't see any signs of this failure in the bug report. How can this problem be reproduced?

Ozon 04-19-07 02:24 PM

Re: could not open device file /dev/nvidiactl
 
make a file named nvidia in /etc/modprobe.d/ (if it isn't there already) any put this in it:

options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0666


The NVreg_DeviceFileGID number should be the GID for the video group.
That should solve it..

hharun 03-10-08 01:27 PM

Re: could not open device file /dev/nvidiactl
 
Quote:

Originally Posted by Ozon
make a file named nvidia in /etc/modprobe.d/ (if it isn't there already) any put this in it:

options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0666


The NVreg_DeviceFileGID number should be the GID for the video group.
That should solve it..

We are running openSuSE 10.3 & have /dev/nvidiactl (Permission denied) problem with OpenGL. The above solution /etc/modprobe.d/nvidia works except we have hundreds of machine everywhere with everybody belongs to different group.

Is there a way, for the permission (/dev/nvidiactl) to be granted to the user who logins at the console only?

zbiggy 03-10-08 06:22 PM

Re: could not open device file /dev/nvidiactl
 
execute as root:
Code:

chmod 666 /dev/nvidia*
So everyone logged on the machine will have access to nvidia device. This change is not permanent and after reboot you will have to execute it again.
If you have root access to every machine you can execute it via remote login like ssh.
You can put this line at the end of init script so file rights will be set right after every reboot.

The more elegant solution is to modify /etc/udev/rules.d/40-video.rules:
KERNEL=="nvidia*", GROUP="video"
to
KERNEL=="nvidia*", GROUP="video", MODE="0666"

Also modify: /etc/security/console.perms.d/50-default.perms
from:
<console> 0600 <dri> 0600 root
to:
<console> 0666 <dri> 0666 root

(however nvidia driver does not use DRI technology the security policy is common for nvidia and DRI because the security target is the same: 3D render)
Remember that 666 file right gives full access to everybody logged in on machine so adjust this 666 example to file rights suitable for your security policy.

These files are only examples and may be different on your system. Just search:
/etc/udev/rules.d/ path for nvidia string to find correct file to modify and
/etc/security/ path for "dri" string to find correct file to modify.

By checking and fixing both locations there will be no need to use chmod in scripts or by hand. The modified files will be used after reboot.

hharun 03-13-08 10:32 AM

Re: could not open device file /dev/nvidiactl
 
Thanks for the pointer.

Permission 0666 is not something i'm comfortable with. After playing around, this configuration seems to work:

1) I made a new rule in /etc/udev/rules.d/, call it 51-nvidiaperm.rules (51something because nvidia is set by 50-udev-defaults.rules and it says on that file not to edit it)

KERNEL=="nvidia*|nvidiactl*", NAME="%k"

2) I have a file in /etc/modprobe.d/nvidia
options nvidia NVreg_DeviceFileMode=0660


Question:
In /etc/udev/rules.d/ files, what is the difference between NAME="%k" and NAME="input/%k" ? Both seems to give /dev/nvidia* the same permisision.

Thanks in advance.


All times are GMT -5. The time now is 05:22 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.