From 3bb0b2102ee559617d87d8966b979ed58a165dfa Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 28 Mar 2017 12:26:52 +0200 Subject: [PATCH 1/3] nvidiactl: Strip trailing spaces --- nvidiactl/nvidiactl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvidiactl/nvidiactl b/nvidiactl/nvidiactl index b54059c..3149b71 100755 --- a/nvidiactl/nvidiactl +++ b/nvidiactl/nvidiactl @@ -21,7 +21,7 @@ pciids="${PCIIDHINT_DIR}/${kver}-${nvver} ${PCIIDHINT_DIR}/${nvver}" leglvl="current" -for leglvlhint in ${pciids} ; do +for leglvlhint in ${pciids} ; do if [ -h "${leglvlhint}" ] ; then leglvl=$(readlink ${leglvlhint}) break @@ -66,7 +66,7 @@ if [ ! -z $N ]; then if [ -e ${leglink}/nvidia-uvm.ko ]; then insmod ${leglink}/nvidia-uvm.ko D=`grep nvidia-uvm /proc/devices | awk '{print $1}'` - if [ ! -z $D ]; then + if [ ! -z $D ]; then mknod -m 666 /dev/nvidia-uvm c $D 0 fi fi From 139bdb484649f4dc012735f03bd8795eeb422981 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 28 Mar 2017 12:27:09 +0200 Subject: [PATCH 2/3] nvidiactl: Remove blank line at end of file --- nvidiactl/nvidia.service | 1 - 1 file changed, 1 deletion(-) diff --git a/nvidiactl/nvidia.service b/nvidiactl/nvidia.service index 873398a..ad00f90 100644 --- a/nvidiactl/nvidia.service +++ b/nvidiactl/nvidia.service @@ -10,4 +10,3 @@ StandardOutput=syslog [Install] WantedBy=graphical.target multi-user.target - From 9107cfcb7df07398ea1a19b4da55a29921778834 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 28 Mar 2017 12:27:55 +0200 Subject: [PATCH 3/3] nvidiactl: Load nvidia-drm Linux kernel module From `nvidia-drm-outputclass.conf` shipped by the NVIDIA Installer. > This xorg.conf.d configuration snippet configures the X server to > automatically load the nvidia X driver when it detects a device driven > by the nvidia-drm.ko kernel module. Please note that this only works > on Linux kernels version 3.9 or higher with CONFIG_DRM enabled, and > only if the nvidia-drm.ko kernel module is loaded before the X server > is started. Therefore load that Linux Kernel module so that the configuration works automatically. From Aaron Plattner in #nvidia@irc.freenode.net: > 16:31 < aaronp> PaulePanter, by default, nvidia-drm.ko provides the X > auto-load behavior and also assists in wiring up PRIME > configurations to the integrated GPU's display. > 16:31 < aaronp> If you load it with the 'modeset=1' parameter, then it > provides a complete drm driver that can be used by drm/eglstream > clients such as mutter or patched versions of weston. --- nvidiactl/nvidiactl | 1 + 1 file changed, 1 insertion(+) diff --git a/nvidiactl/nvidiactl b/nvidiactl/nvidiactl index 3149b71..5398b34 100755 --- a/nvidiactl/nvidiactl +++ b/nvidiactl/nvidiactl @@ -71,5 +71,6 @@ if [ ! -z $N ]; then fi fi test -e ${leglink}/nvidia-modeset.ko && insmod ${leglink}/nvidia-modeset.ko + test -e ${leglink}/nvidia-drm.ko && insmod ${leglink}/nvidia-drm.ko fi exit 0