[pkg-nvidia-devel] r727 - in /packages/nvidia-kernel-common/trunk/debian: README.Debian nvidia-kernel-common.install nvidia-kernel-common.postinst nvidia-kernel-common.postrm nvidia-kernel-common.preinst nvidia-kernel-common.udev source/ source/format

rdonald at users.alioth.debian.org rdonald at users.alioth.debian.org
Tue Feb 16 19:33:51 UTC 2010


Author: rdonald
Date: Tue Feb 16 19:33:46 2010
New Revision: 727

URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=727
Log:
patch from Jean-Christophe Dubacq <jcdubacq1 at free.fr>

Added:
    packages/nvidia-kernel-common/trunk/debian/README.Debian
    packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.install
    packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postinst
    packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postrm
    packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.preinst
    packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.udev
    packages/nvidia-kernel-common/trunk/debian/source/
    packages/nvidia-kernel-common/trunk/debian/source/format

Added: packages/nvidia-kernel-common/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-kernel-common/trunk/debian/README.Debian?rev=727&op=file
==============================================================================
--- packages/nvidia-kernel-common/trunk/debian/README.Debian (added)
+++ packages/nvidia-kernel-common/trunk/debian/README.Debian Tue Feb 16 19:33:46 2010
@@ -1,0 +1,32 @@
+This package prepares the system for using a nvidia kernel module. You
+will need to get either a pre-compiled version matching your kernel image,
+or build it yourself. You will then probably have to look for the
+nvidia-kernel-source package.
+
+The proprietary code of the binary nvidia driver is located in nvidia-glx.
+
+To use correctly your kernel module, you will need write access to the device
+created by the kernel. There are several ways for this:
+ * Being root (just joking)
+ * Being in group video (use "adduser yourlogin video" at the command line)
+ * Using ConsoleKit to grant the person seating in front of the console
+   access to the device.
+
+To check whether ConsoleKit is doing the right job after you logged in,
+do LANG=C ls -l /dev/nvidiactl
+
+You should see some output similar to this:
+crw-rw----+ 1 root video 195, 255 Feb  9 02:03 /dev/nvidiactl
+with a + indicating that ACL rights were granted. getfacl /dev/nvidiactl
+(from the acl package) will confirm this.
+
+Since recent versions of nvidia-glx create the device, it is not needed to
+create those manually. The code in /etc/init.d/nvidia-kernel has been left
+there, it is harmless anyway. The devices are not created by udev.
+
+If you want to disable the manual creation of the devices, use
+NVIDIA_CARDS=0
+in /etc/default/nvidia-kernel
+
+To enable FastWrites and Sidebus addressing on module load, please
+uncomment the lines in /etc/modprobe.d/nvidia-kernel-nkc.conf

Added: packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.install
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.install?rev=727&op=file
==============================================================================
--- packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.install (added)
+++ packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.install Tue Feb 16 19:33:46 2010
@@ -1,0 +1,3 @@
+nvidia-kernel.modules-2.6 /etc/modprobe.d/
+nvidia_helper.ck /usr/lib/ConsoleKit/run-seat.d/
+nvidia_helper /lib/udev/

Added: packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postinst?rev=727&op=file
==============================================================================
--- packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postinst (added)
+++ packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postinst Tue Feb 16 19:33:46 2010
@@ -1,0 +1,17 @@
+#!/bin/sh
+set -e 
+
+if [ "$1" = "configure" ]; then
+    if [ -e "/etc/modprobe.d/nvidia-kernel-nkc" ]; then
+    	echo "Preserving user changes to /etc/modprobe.d/nvidia-kernel-nkc(.conf) ..."
+    	if [ -e "/etc/modprobe.d/nvidia-kernel-nkc.conf" ]; then
+    	    mv -f "/etc/modprobe.d/nvidia-kernel-nkc.conf" "/etc/modprobe.d/nvidia-kernel-nkc.conf.dpkg-new"
+    	fi
+    	mv -f "/etc/modprobe.d/nvidia-kernel-nkc" "/etc/modprobe.d/nvidia-kernel-nkc.conf"
+    fi
+    if [ -e "/etc/modprobe.d/nvidia-kernel-nkc.dpkg-move" ]; then
+        rm -f "/etc/modprobe.d/nvidia-kernel-nkc.dpkg-move"
+    fi
+fi
+
+#DEBHELPER#

Added: packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postrm
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postrm?rev=727&op=file
==============================================================================
--- packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postrm (added)
+++ packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.postrm Tue Feb 16 19:33:46 2010
@@ -1,0 +1,13 @@
+#!/bin/sh
+set -e 
+
+if [ "$1" = "abort-upgrade" ]; then
+    if [ -e "/etc/modprobe.d/nvidia-kernel-nkc.dpkg-move" ]; then
+        if [ -e "/etc/modprobe.d/nvidia-kernel-nkc" ]; then
+            mv "/etc/modprobe.d/nvidia-kernel-nkc" "/etc/modprobe.d/nvidia-kernel-nkc.dpkg-abort"
+        fi
+        mv "/etc/modprobe.d/nvidia-kernel-nkc.dpkg-move" "/etc/modprobe.d/nvidia-kernel-nkc"
+    fi
+fi
+
+#DEBHELPER#

Added: packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.preinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.preinst?rev=727&op=file
==============================================================================
--- packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.preinst (added)
+++ packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.preinst Tue Feb 16 19:33:46 2010
@@ -1,0 +1,23 @@
+#!/bin/sh
+set -e
+
+# Migration etch->lenny
+if [ "$1" = install ] || [ "$1" = upgrade ]; then
+    if dpkg --compare-versions "$2" lt-nl '20051028+1+nmu2'; then
+	rm -f /etc/devfs/conf.d/nvidia-kernel-nkc
+	rm -f /etc/modutils/nvidia-kernel-nkc
+    fi
+fi
+
+# Migration lenny->squeeze
+if [ "$1" = install ] || [ "$1" = upgrade ]; then
+    if [ -e "/etc/modprobe.d/nvidia-kernel-nkc" ]; then
+	if [ $(md5sum "/etc/modprobe.d/nvidia-kernel-nkc" | cut -c1-32) = \
+	    $(dpkg-query -W -f='${Conffiles}' nvidia-kernel-common | sed -ne \
+            '/\/etc\/modprobe.d\/nvidia-kernel-nkc/ {s/^ .* //g;p}') ]; then
+	    mv "/etc/modprobe.d/nvidia-kernel-nkc" "/etc/modprobe.d/nvidia-kernel-nkc.dpkg-move"
+	fi
+    fi
+fi
+
+#DEBHELPER#

Added: packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.udev
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.udev?rev=727&op=file
==============================================================================
--- packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.udev (added)
+++ packages/nvidia-kernel-common/trunk/debian/nvidia-kernel-common.udev Tue Feb 16 19:33:46 2010
@@ -1,0 +1,12 @@
+# Set ACLs for console users on /dev/nvidia*
+# This is necessary until the driver uses some other form of auth
+ENV{ACL_MANAGE}=="0", GOTO="nvidia_end"
+DRIVER=="nvidia",ENV{NVIDIA_DEVICE}="1"
+ENV{NVIDIA_DEVICE}=="0", GOTO="nvidia_end"
+ENV{ACL_MANAGE}="1"
+TEST!="/lib/libglib-2.0.so.0", GOTO="nvidia_end"
+# apply ACL for all locally logged in users
+TEST=="/var/run/ConsoleKit/database", \
+  RUN+="nvidia_helper --action=$env{ACTION} --device=$env{DEVNAME}"
+LABEL="nvidia_end"
+

Added: packages/nvidia-kernel-common/trunk/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-kernel-common/trunk/debian/source/format?rev=727&op=file
==============================================================================
--- packages/nvidia-kernel-common/trunk/debian/source/format (added)
+++ packages/nvidia-kernel-common/trunk/debian/source/format Tue Feb 16 19:33:46 2010
@@ -1,0 +1,1 @@
+3.0 (native)




More information about the Pkg-nvidia-devel mailing list