nvidia device permissions in jessie
Luca Boccassi
luca.boccassi at gmail.com
Sun Oct 11 19:48:04 UTC 2015
On Sun, 2015-10-11 at 20:24 +0100, Luca Boccassi wrote:
> On Sun, 2015-10-11 at 20:52 +0200, Andreas Beckmann wrote:
> > On 2015-10-11 19:10, Luca Boccassi wrote:
> > > Here's the output on a fresh Jessie 8.2 amd64 installation on a desktop
> > > with a 780gtx, after installing nvidia-driver and rebooting with a basic
> > > xorg.conf:
> > >
> > > 9659 0 drwxr-xr-x 2 root root 60 Oct 11 18:02 /dev/dri
> > > 9660 0 crw-rw---- 1 root video Oct 11 18:02 /dev/dri/card0
> > > 13362 0 crw-rw-rw- 1 root root Oct 11 18:02 /dev/nvidia0
> > > 13359 0 crw-rw-rw- 1 root root Oct 11 18:02 /dev/nvidiactl
> >
> > Hmm, not really what we want ...
> >
> > can you run this (in a console) and send the transcript?
> >
> > ls -l /dev/nvidia*
> > invoke-rc.d gdm3 stop
> > rmmod nvidia
> > lsmod | grep nvidia
> > ls -l /dev/nvidia*
> > modprobe -v nvidia
> > ls -l /dev/nvidia*
> > invoke-rc.d gdm3 start
> >
> > If gdm3 fails to start now, stop here
> >
> > How does this look with the nvidia packages from jessie-backports?
> > (340.93-3~bpo8+1)
> > I'm afraid we could hit the 'adduser *dm video' bug here ... (don't fix
> > it this way).
>
> Shoved it into a script with -x and ran it as root. Changed rmmod to
> modprobe -r since nvidia is used by i2c_core, and invoke-rc.d with
> systemctl since I'm running systemd.
>
> + ls -l /dev/nvidia0 /dev/nvidiactl
> crw-rw-rw- 1 root root 195, 0 Oct 11 20:15 /dev/nvidia0
> crw-rw-rw- 1 root root 195, 255 Oct 11 20:15 /dev/nvidiactl
> + systemctl stop gdm3
> + modprobe -r nvidia
> rmmod: ERROR: Module nvidia_uvm is not currently loaded
> modprobe: FATAL: Error running remove command for nvidia_current
> + lsmod
> + grep nvidia
> + ls -l /dev/nvidia0 /dev/nvidiactl
> crw-rw-rw- 1 root root 195, 0 Oct 11 20:15 /dev/nvidia0
> crw-rw-rw- 1 root root 195, 255 Oct 11 20:15 /dev/nvidiactl
> + modprobe -v nvidia
> insmod /lib/modules/3.16.0-4-amd64/updates/dkms/nvidia-current.ko NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_DeviceFileMode=0660
> + ls -l /dev/nvidia0 /dev/nvidiactl
> crw-rw-rw- 1 root root 195, 0 Oct 11 20:15 /dev/nvidia0
> crw-rw-rw- 1 root root 195, 255 Oct 11 20:15 /dev/nvidiactl
> + lsmod
> + grep nvidia
> nvidia 10507891 0
> drm 249955 2 nvidia
> i2c_core 46012 3 drm,i2c_i801,nvidia
> + systemctl start gdm3
> + ls -l /dev/nvidia0 /dev/nvidiactl
> crw-rw---- 1 root video 195, 0 Oct 11 20:15 /dev/nvidia0
> crw-rw---- 1 root video 195, 255 Oct 11 20:15 /dev/nvidiactl
>
> Permissions and ownership change after starting gdm3, and Gnome oopses
> with the usual "Something has gone wrong" screen.
The problem is the value of NVreg_Device_file_Mode used by insmod, 0660,
right?
Installed the nvidia-driver packages from backports, and as expected
Gnome oopses on boot. Same result running the script:
+ ls -l /dev/nvidia0 /dev/nvidiactl
crw-rw---- 1 root video 195, 0 Oct 11 20:43 /dev/nvidia0
crw-rw---- 1 root video 195, 255 Oct 11 20:43 /dev/nvidiactl
+ systemctl stop gdm3
+ modprobe -r nvidia
+ lsmod
+ grep nvidia
+ ls -l /dev/nvidia0 /dev/nvidiactl
crw-rw---- 1 root video 195, 0 Oct 11 20:43 /dev/nvidia0
crw-rw---- 1 root video 195, 255 Oct 11 20:43 /dev/nvidiactl
+ modprobe -v nvidia
insmod /lib/modules/3.16.0-4-amd64/updates/dkms/nvidia-current.ko NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_DeviceFileMode=0660
install modprobe -i nvidia-current $CMDLINE_OPTS NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_DeviceFileMode=0660
+ ls -l /dev/nvidia0 /dev/nvidiactl
crw-rw---- 1 root video 195, 0 Oct 11 20:43 /dev/nvidia0
crw-rw---- 1 root video 195, 255 Oct 11 20:43 /dev/nvidiactl
+ lsmod
+ grep nvidia
nvidia 10516083 0
drm 249955 2 nvidia
i2c_core 46012 3 drm,i2c_i801,nvidia
+ systemctl start gdm3
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151011/e9d624f3/attachment.sig>
More information about the pkg-nvidia-devel
mailing list