Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-18-07, 09:33 AM   #1
bbernieb
Registered User
 
Join Date: Nov 2003
Posts: 9
Default 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
bbernieb is offline   Reply With Quote
Old 04-18-07, 10:47 AM   #2
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: could not open device file /dev/nvidiactl

http://www.nvnews.net/vbulletin/showthread.php?t=46678
netllama is offline   Reply With Quote
Old 04-18-07, 11:12 AM   #3
JustinVenus
Registered User
 
Join Date: Apr 2007
Posts: 5
Default 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
JustinVenus is offline   Reply With Quote
Old 04-18-07, 03:09 PM   #4
bbernieb
Registered User
 
Join Date: Nov 2003
Posts: 9
Default Re: could not open device file /dev/nvidiactl

here is the bug report

Sorry for not including it in my first post.

Bernie
Attached Files
File Type: zip nvidia-bug-report.zip (28.3 KB, 475 views)
bbernieb is offline   Reply With Quote
Old 04-18-07, 03:36 PM   #5
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default 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?
netllama is offline   Reply With Quote
Old 04-19-07, 02:24 PM   #6
Ozon
Registered User
 
Join Date: Apr 2007
Posts: 1
Default 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..
Ozon is offline   Reply With Quote
Old 03-10-08, 01:27 PM   #7
hharun
Registered User
 
Join Date: Feb 2008
Posts: 2
Default 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?
hharun is offline   Reply With Quote
Old 03-10-08, 06:22 PM   #8
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default 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.
zbiggy is offline   Reply With Quote

Old 03-13-08, 10:32 AM   #9
hharun
Registered User
 
Join Date: Feb 2008
Posts: 2
Default 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.
hharun is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat 8.0 NVIDIA works - INSTRUCTIONS STEEL1 NVIDIA Linux 267 04-15-03 06:48 PM
RPM Source problems LaoTzuTao NVIDIA Linux 10 01-19-03 05:15 AM
Can't install NVIDIA_kernel.XXXX.XXXX.src or regular rpm noeffort NVIDIA Linux 15 12-17-02 01:22 PM
Undefined Device Error - Can't startx linuxdave NVIDIA Linux 2 08-07-02 03:28 PM

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


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