You are not logged in.

#1 2006-03-26 21:31:53

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

could not open the device file /dev/nvidia0

and yet:

[root@mythfe01 dev]# ls -alh nvid*
crw-rw-rw-  1 root root 195,   0 Mar 26 16:06 nvidia0
crw-rw-rw-  1 root root 195, 255 Mar 26 16:06 nvidiactl

and:

[root@mythfe01 dev]# lsmod | grep nv
nvidia               4083280  0
agpgart                28872  1 nvidia

but:

NVIDIA: could not open the device file /dev/nvidia0 (Input/output error).
(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(EE) NVIDIA(0):  *** Aborting ***

I am using a homemade kernel, but i can't think of a reason why that would prevent things from working properly considering the module loaded ok.

Any thoughts?

Offline

#2 2006-03-27 08:36:00

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: could not open the device file /dev/nvidia0

Do you use udev? Have a look if there is a ruleset for nvidia, I remember there was one. Afaik, nvidia should be owned by the video group - well, once it was, I am not up to date and have no arch machine with nvidia right now.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2006-03-27 11:23:04

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: could not open the device file /dev/nvidia0

Permissions shouldn't be a problem yet, I was experimenting as root.

Offline

#4 2007-10-11 04:19:46

KSiimson
Member
Registered: 2007-06-16
Posts: 37

Re: could not open the device file /dev/nvidia0

Moo-Crumpus wrote:

Do you use udev? Have a look if there is a ruleset for nvidia, I remember there was one. Afaik, nvidia should be owned by the video group - well, once it was, I am not up to date and have no arch machine with nvidia right now.

Could anyone specify how to do that? I have the exact same problem, although I use the default kernel that came with Arch.

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

[kristjans@myhost ~]$ cat /proc/driver/nvidia/cards/0
Model:           GeForce 6200 TurboCache(TM)
IRQ:             22
Video BIOS:      05.44.02.52.00
Card Type:       PCI-E
DMA Size:        39 bits
DMA Mask:        0x7fffffffff

[kristjans@myhost dev]$ ls -alh nvid*
crw-rw---- 1 root 27 195,   0 2007-10-06 19:10 nvidia0
crw-rw-rw- 1 root 27 195, 255 2007-10-06 19:10 nvidiactl

[kristjans@myhost dev]$ lsmod | grep nv
nvidia               6829684  40
i2c_core               20352  2 nvidia,i2c_piix4
agpgart                27224  2 nvidia,ati_agp

Last edited by KSiimson (2007-10-11 04:23:18)

Offline

#5 2012-03-14 09:21:52

dklovedoctor
Member
Registered: 2011-08-23
Posts: 5

Re: could not open the device file /dev/nvidia0

Try adiing the following section to xorg.conf:
Code:

Section "DRI"
        Mode         0666
EndSection

Offline

#6 2012-03-14 09:29:56

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: could not open the device file /dev/nvidia0

dklovedoctor wrote:

Try adiing the following section to xorg.conf:
Code:

Section "DRI"
        Mode         0666
EndSection

Nvidia doesn't use dri. And even if it did, this isn't done anymore.

The nvidia device nodes are not owned by the video group on Arch (Gentoo has a special setup so they are), but here I have

ls -l /dev/nvidia*
crw-rw-rw- 1 root root 195,   0 mar  8 16:06 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 mar  8 16:06 /dev/nvidiactl

this means that *everyone* can access the nvidia card. Probably not the safest, which is why Gentoo changes it, but at least things work without requiring further configuration.

Edit: Oh wow, I just noticed this is a massive necro-bump. dklovedoctor, you resurrected a *years* old thread to give incorrect advice. Whoa.

Last edited by Gusar (2012-03-14 09:32:20)

Offline

Board footer

Powered by FluxBB