Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
opengl apps only work as root, permissions on /dev/nvidiactl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Fri Dec 24, 2004 5:00 pm    Post subject: opengl apps only work as root, permissions on /dev/nvidiactl Reply with quote

this is the error I get when trying to play tuxracer when not root:

Code:

atom@saturn /home/atom $ tuxracer
Tux Racer 0.61 -- a Sunspire Studios Production (http://www.sunspirestudios.com)
(c) 1999-2000 Jasmin F. Patry <jfpatry@sunspirestudios.com>
"Tux Racer" is a trademark of Jasmin F. Patry
Tux Racer comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See http://www.gnu.org/copyleft/gpl.html for details.

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.
Segmentation fault


it works when I try it as root, so it would seem I need to change permissions.


if it helps, this is how I start my comp up:

[turn on]
login: atom
password:
$ startx
_________________
Atoms are watching...
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Fri Dec 24, 2004 6:02 pm    Post subject: Reply with quote

On my system, I own the files after logging in. I login using xdm. A quick check did not show me where the permissions were set, but setting them by hand should fix your problem.
Back to top
View user's profile Send private message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Fri Dec 24, 2004 6:11 pm    Post subject: Reply with quote

weird, i don't seem to own them after logging in... i don't login using xdm though, maybe that's the problem.

After a chmod 777 /dev/nvidia* everything seems to work, but how can I get to own the files when logging in?
_________________
Atoms are watching...
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Fri Dec 24, 2004 7:53 pm    Post subject: Reply with quote

Looks like this is controled with the file /etc/security/console.perms. I'm not sure who uses that, but what is supposed to happen is things in there are set when you login. Make sure that file referres to the nvidia device files.
Back to top
View user's profile Send private message
srlinuxx
l33t
l33t


Joined: 22 Nov 2003
Posts: 627

PostPosted: Sat Dec 25, 2004 1:31 am    Post subject: Reply with quote

Aren't those typically "owned" by root and in the video group? Just put yourself in the video group. That's what I did. edit /etc/group or use usermod.
_________________
--You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Sat Dec 25, 2004 1:42 am    Post subject: Reply with quote

On my system, the permissions are 600 so that would not work.
Back to top
View user's profile Send private message
placeholder
Advocate
Advocate


Joined: 07 Feb 2004
Posts: 2500

PostPosted: Sat Dec 25, 2004 1:43 am    Post subject: Reply with quote

When I had this error in the past, I actually read what it said to read in order to fix it. Here, this should jog your memory....

Error Message wrote:
Please see the FREQUENTLY ASKED QUESTIONS
section of /usr/share/doc/NVIDIA_GLX-1.0/README for steps
to correct.


The bold indicates which file to read.
Back to top
View user's profile Send private message
apmurray
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 221
Location: Adelaide, Australia

PostPosted: Sat Dec 25, 2004 8:32 am    Post subject: Reply with quote

just add yourself to the video group. I am serious!
Back to top
View user's profile Send private message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Wed Dec 29, 2004 9:39 am    Post subject: Reply with quote

it's fixed, the video and chmod 660 did the trick

thanks guys


PS:
I did read the section and it said nothing about this prob.
_________________
Atoms are watching...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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