Fedora 30/29/28 nVidia Drivers Install Guide - Comment Page: 67

This is guide, howto install nVidia proprietary drivers on Fedora 30/29/28/27/26/25/24/23 and disable Nouveau driver. This guide works with GeForce 6/7/8/9/200/300/400/500/600/700/800/900/10/20 series cards. GeForce 20 series cards works with 418.xx, 430.xx and 435.xx nVidia drivers GeForce 600/700/800/900/10 series cards works with 390.xx, 418.xx, 430.xx and 435.xx nVidia drivers GeForce 400/500 series cards works with 390.xx nVidia drivers GeForce 8/9/200/300 series cards works with 340.xx nVidia drivers GeForce 6/7 series cards works with 304.xx nVidia drivers [inttf_post_ad1] This is totally different guide than my earlier guides, like Fedora 20 nVidia driver...

2,478 comments on “Fedora 30/29/28 nVidia Drivers Install Guide - Comment Page: 67

1 65 66 67 68 69 94
    1. Thank you!

      nvidia-installer: version 390.59 ([email protected]) Wed May 9 23:09:50 PDT
      Linux tuxpc 4.16.8-300.fc28.x86_64 #1 SMP Wed May 9 20:23:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
      26:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050] (rev a1)

      Reply
    2. Hello! Could use some help.

      Everything went well, installer didn’t complain or anything. That is until I rebooted to the graphical target and got an unresponsive black screen.

      Linux localhost.localdomain 4.16.8-300.fc28.x86_64 #1 SMP Wed May 9 20:23:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

      00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)

      01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1200 Mobile] (rev a2)

      nvidia-installer: version 390.59 ([email protected]y-x64-rhel04-13) Wed May 9 23:09:50 PDT 2018

      Thanks!

      Reply
      • Hi Ben,

        Is it possible to disable Intel graphics/nVidia Optimus from Bios/UEFI?

        Reply
        • I haven’t found an Optimus setting so I don’t think so.

          Reply
            • I just purchased a new laptop (Dell G3 15, Intel 630 & Nvidia 1050Ti). Dual boot with windows 10. Installed Kubuntu first as I was having trouble installing a linux at first. Kubuntu worked out of the box with my external (HDMI 2.0) 40″ 4k monitor at the correct resolution UHD. I prefer Fedora so just installed it and no ouput to external 4K monitor. I don’t mind installing the proprietary drivers if it will let me use both laptop and external display, but from the above post it sounds like thats a no go? How is this working out of the box in Kubuntu and not Fedora (3rd party repo)? Any help/insight is greatly appreciated.

              Reply
              • Hi KM,

                You didn’t tell what drivers you used on Kubuntu? Intel, nouveau or nvidia? Did you used Xorg or Wayland? What desktop you used on Fedora (assumed that you used KDE on Kubuntu)?

                Reply
    3. Thanks, i was searching this all day. You are the best ;)

      Here my results:
      [[email protected] ~]# nvidia-installer -v |grep version
      nvidia-installer: version 396.24 ([email protected])
      [[email protected] ~]# uname -a
      Linux localhost.localdomain 4.16.8-300.fc28.x86_64 #1 SMP Wed May 9 20:23:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
      [[email protected] ~]# lspci |grep -E “VGA|3D”
      01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)

      Reply
    4. An advice: you forget ‘dnf make’ otherwise during nvidia driver’s installation it will fail.

      Reply
      • Hi sad pencil,

        I don’t understand what you mean? There is no dnf make command?

        If you mean dnf install make, you should have it installed if you install all dependencies on step 2.5 Install needed dependencies.

        Reply
    5. With the latest update to kernel 4.16.10-300.fc28.x86_64
      I was unable to boot. I received only a blank screen.

      I found the fix manually installing the following packages:

      selinux-policy-targeted-3.14.1-29.fc28.noarch.rpm
      selinux-policy-3.14.1-29.fc28.noarch.rpm

      After installing, I did as root:

      dnf install selinux-policy-3.14.1-29.fc28.noarch.rpm selinux-policy-targeted-3.14.1-29.fc28.noarch.rpm
      reboot

      And problem fixed.

      Reply
      • Hi moyses and thanks for this info!

        Reply
    6. I was rolling along just fine on F28 having followed these instructions until today when kernel got bumped to 4.16.10-300. I tried reinstalling and that didnt work. I get a black screen rather than the login screen. logs linked below.

      kernel:
      Linux deepthought 4.16.10-300.fc28.x86_64 #1 SMP Mon May 21 14:41:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
      installer:
      NVIDIA-Linux-x86_64-396.24.run
      card:
      03:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750] (rev a2)

      logs: https://paste.fedoraproject.org/paste/csMOjECxVlD5pCIdayD0Mw

      thanks for any help

      Reply
      • Hi Kevin,

        Try to update your selinux-policy and selinux-policy-targeted using following command:

        dnf install https://kojipkgs.fedoraproject.org/packages/selinux-policy/3.14.1/29.fc28/noarch/selinux-policy-3.14.1-29.fc28.noarch.rpm https://kojipkgs.fedoraproject.org/packages/selinux-policy/3.14.1/29.fc28/noarch/selinux-policy-targeted-3.14.1-29.fc28.noarch.rpm

        moyses just reported same style selinux problem, this should be fixed soon on fedora updates-repo too.

        Reply
    7. Thanks a lot for this guide, the rpmfusion driver is headache inducing..

      Reply
    8. Brilliant, thank you, brilliant as always. Successful on a 1080 Ti, Fedora 28, commands output below.

      [[email protected] ~]$ nvidia-installer -v |grep version
      nvidia-installer: version 390.59 ([email protected]) Wed May 9 23:09:50 PDT 2018
      [[email protected] ~]$ uname -a
      Linux localhost.localdomain 4.16.11-300.fc28.x86_64 #1 SMP Tue May 22 18:29:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
      [[email protected] ~]$ lspci |grep -E “VGA|3D”
      01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
      [[email protected] ~]$

      Reply
    9. I’m getting an error when trying to build the dkms kernel module. I’ve seen several similar posts which seemed to state the problem was a mismatch in gcc compiler versions (7.2 versus 7.31) so I upgraded the compiler using updates-testing and still had the same problem.

      the make.log follows:

      DKMS make.log for nvidia-304.137 for kernel 4.16.11-200.fc27.x86_64 (x86_64)
      Mon May 28 06:07:34 EDT 2018
      NVIDIA: calling KBUILD…
      test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
      echo >&2; \
      echo >&2 ” ERROR: Kernel configuration is invalid.”; \
      echo >&2 ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
      echo >&2 ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \
      echo >&2 ; \
      /bin/false)
      mkdir -p /var/lib/dkms/nvidia/304.137/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia/304.137/build/.tmp_versions/*
      make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia/304.137/build
      (cat /dev/null; echo kernel//var/lib/dkms/nvidia/304.137/build/nvidia.ko;) > /var/lib/dkms/nvidia/304.137/build/modules.order
      cc -Wp,-MD,/var/lib/dkms/nvidia/304.137/build/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/7/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -DCONFIG_CC_STACKPROTECTOR -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 –param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fvar-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\”304.137\” -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='”nv”‘ -DKBUILD_MODNAME='”nvidia”‘ -c -o /var/lib/dkms/nvidia/304.137/build/nv.o /var/lib/dkms/nvidia/304.137/build/nv.c
      cc -Wp,-MD,/var/lib/dkms/nvidia/304.137/build/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/7/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -DCONFIG_CC_STACKPROTECTOR -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 –param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fvar-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\”304.137\” -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='”nv_acpi”‘ -DKBUILD_MODNAME='”nvidia”‘ -c -o /var/lib/dkms/nvidia/304.137/build/nv-acpi.o /var/lib/dkms/nvidia/304.137/build/nv-acpi.c
      In file included from ./include/linux/byteorder/little_endian.h:11:0,
      from ./arch/x86/include/uapi/asm/byteorder.h:5,
      from ./include/asm-generic/bitops/le.h:6,
      from ./arch/x86/include/asm/bitops.h:521,
      from ./include/linux/bitops.h:38,
      from ./include/linux/kernel.h:11,
      from ./arch/x86/include/asm/percpu.h:45,
      from ./arch/x86/include/asm/current.h:6,
      from ./include/linux/sched.h:12,
      from ./include/linux/utsname.h:6,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
      from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
      ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’:
      ./include/linux/byteorder/generic.h:178:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (i = 0; i < len; i++)
      ^
      ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’:
      ./include/linux/byteorder/generic.h:186:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (i = 0; i < len; i++)
      ^
      In file included from ./include/linux/byteorder/little_endian.h:11:0,
      from ./arch/x86/include/uapi/asm/byteorder.h:5,
      from ./include/asm-generic/bitops/le.h:6,
      from ./arch/x86/include/asm/bitops.h:521,
      from ./include/linux/bitops.h:38,
      from ./include/linux/kernel.h:11,
      from ./arch/x86/include/asm/percpu.h:45,
      from ./arch/x86/include/asm/current.h:6,
      from ./include/linux/sched.h:12,
      from ./include/linux/utsname.h:6,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
      from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
      ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’:
      ./include/linux/byteorder/generic.h:178:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (i = 0; i < len; i++)
      ^
      ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’:
      ./include/linux/byteorder/generic.h:186:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (i = 0; i = 0 && sz = 0 && sz nelems) > (tbl->size / 4 * 3) &&
      ^
      ./include/linux/rhashtable.h: In function ‘rht_shrink_below_30’:
      ./include/linux/rhashtable.h:317:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      return atomic_read(&ht->nelems) size * 3 / 10) &&
      ^
      ./include/linux/rhashtable.h: In function ‘rht_grow_above_100’:
      ./include/linux/rhashtable.h:329:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      return atomic_read(&ht->nelems) > tbl->size &&
      ^
      ./include/linux/rhashtable.h: In function ‘rht_grow_above_max’:
      ./include/linux/rhashtable.h:341:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      return atomic_read(&ht->nelems) >= ht->max_elems;
      ^~
      ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
      ./include/asm-generic/qrwlock.h:75:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      cnts, cnts | _QW_LOCKED) == cnts);
      ^
      ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’
      # define likely(x) __builtin_expect(!!(x), 1)
      ^
      In file included from ./include/linux/ipc.h:7:0,
      from ./include/uapi/linux/sem.h:5,
      from ./include/linux/sem.h:9,
      from ./include/linux/sched.h:15,
      from ./include/linux/utsname.h:6,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
      from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
      ./include/linux/rhashtable.h: In function ‘rht_grow_above_75’:
      ./include/linux/rhashtable.h:304:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) &&
      ^
      ./include/linux/rhashtable.h: In function ‘rht_shrink_below_30’:
      ./include/linux/rhashtable.h:317:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      return atomic_read(&ht->nelems) size * 3 / 10) &&
      ^
      ./include/linux/rhashtable.h: In function ‘rht_grow_above_100’:
      ./include/linux/rhashtable.h:329:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      return atomic_read(&ht->nelems) > tbl->size &&
      ^
      ./include/linux/rhashtable.h: In function ‘rht_grow_above_max’:
      ./include/linux/rhashtable.h:341:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      return atomic_read(&ht->nelems) >= ht->max_elems;
      ^~
      In file included from ./arch/x86/include/asm/current.h:5:0,
      from ./include/linux/sched.h:12,
      from ./include/linux/utsname.h:6,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
      from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
      ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
      ./include/linux/mmzone.h:988:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
      ^
      ./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’
      # define likely(x) __builtin_expect(!!(x), 1)
      ^
      In file included from ./arch/x86/include/asm/current.h:5:0,
      from ./include/linux/sched.h:12,
      from ./include/linux/utsname.h:6,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
      from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
      ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
      ./include/linux/mmzone.h:988:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if (likely(!nodes && zonelist_zone_idx(z) read_count);
      ^~~~~~~~~~~~~~
      ./arch/x86/include/asm/percpu.h:131:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      ((val) == 1 || (val) == -1)) ? \
      ^
      ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
      #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
      ^~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break; \
      ^~~~
      ./include/linux/percpu-defs.h:424:32: note: in expansion of macro ‘__pcpu_size_call’
      #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val)
      ^~~~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:460:2: note: in expansion of macro ‘raw_cpu_add’
      raw_cpu_add(pcp, val); \
      ^~~~~~~~~~~
      ./include/linux/percpu-defs.h:498:34: note: in expansion of macro ‘__this_cpu_add’
      #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:500:30: note: in expansion of macro ‘__this_cpu_sub’
      #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1)
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
      ./arch/x86/include/asm/percpu.h:131:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      ((val) == 1 || (val) == -1)) ? \
      ^
      ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’
      #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
      ^~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:381:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break; \
      ^~~~
      ./include/linux/percpu-defs.h:424:32: note: in expansion of macro ‘__pcpu_size_call’
      #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val)
      ^~~~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:460:2: note: in expansion of macro ‘raw_cpu_add’
      raw_cpu_add(pcp, val); \
      ^~~~~~~~~~~
      ./include/linux/percpu-defs.h:498:34: note: in expansion of macro ‘__this_cpu_add’
      #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:500:30: note: in expansion of macro ‘__this_cpu_sub’
      #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1)
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
      ./arch/x86/include/asm/percpu.h:131:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      ((val) == 1 || (val) == -1)) ? \
      ^
      ./arch/x86/include/asm/percpu.h:470:35: note: in expansion of macro ‘percpu_add_op’
      #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
      ^~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:382:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break; \
      ^~~~
      ./include/linux/percpu-defs.h:424:32: note: in expansion of macro ‘__pcpu_size_call’
      #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val)
      ^~~~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:460:2: note: in expansion of macro ‘raw_cpu_add’
      raw_cpu_add(pcp, val); \
      ^~~~~~~~~~~
      ./include/linux/percpu-defs.h:498:34: note: in expansion of macro ‘__this_cpu_add’
      #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:500:30: note: in expansion of macro ‘__this_cpu_sub’
      #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1)
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
      ./arch/x86/include/asm/percpu.h:131:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      ((val) == 1 || (val) == -1)) ? \
      ^
      ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
      #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
      ^~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break; \
      ^~~~
      ./include/linux/percpu-defs.h:424:32: note: in expansion of macro ‘__pcpu_size_call’
      #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val)
      ^~~~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:460:2: note: in expansion of macro ‘raw_cpu_add’
      raw_cpu_add(pcp, val); \
      ^~~~~~~~~~~
      ./include/linux/percpu-defs.h:498:34: note: in expansion of macro ‘__this_cpu_add’
      #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:500:30: note: in expansion of macro ‘__this_cpu_sub’
      #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1)
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
      ./arch/x86/include/asm/percpu.h:131:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      ((val) == 1 || (val) == -1)) ? \
      ^
      ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
      #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
      ^~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break; \
      ^~~~
      ./include/linux/percpu-defs.h:424:32: note: in expansion of macro ‘__pcpu_size_call’
      #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val)
      ^~~~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:460:2: note: in expansion of macro ‘raw_cpu_add’
      raw_cpu_add(pcp, val); \
      ^~~~~~~~~~~
      ./include/linux/percpu-defs.h:498:34: note: in expansion of macro ‘__this_cpu_add’
      #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:500:30: note: in expansion of macro ‘__this_cpu_sub’
      #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1)
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
      ./arch/x86/include/asm/percpu.h:131:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      ((val) == 1 || (val) == -1)) ? \
      ^
      ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’
      #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
      ^~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:381:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break; \
      ^~~~
      ./include/linux/percpu-defs.h:424:32: note: in expansion of macro ‘__pcpu_size_call’
      #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val)
      ^~~~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:460:2: note: in expansion of macro ‘raw_cpu_add’
      raw_cpu_add(pcp, val); \
      ^~~~~~~~~~~
      ./include/linux/percpu-defs.h:498:34: note: in expansion of macro ‘__this_cpu_add’
      #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:500:30: note: in expansion of macro ‘__this_cpu_sub’
      #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1)
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
      ./arch/x86/include/asm/percpu.h:131:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      ((val) == 1 || (val) == -1)) ? \
      ^
      ./arch/x86/include/asm/percpu.h:470:35: note: in expansion of macro ‘percpu_add_op’
      #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
      ^~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:382:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break; \
      ^~~~
      ./include/linux/percpu-defs.h:424:32: note: in expansion of macro ‘__pcpu_size_call’
      #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val)
      ^~~~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:460:2: note: in expansion of macro ‘raw_cpu_add’
      raw_cpu_add(pcp, val); \
      ^~~~~~~~~~~
      ./include/linux/percpu-defs.h:498:34: note: in expansion of macro ‘__this_cpu_add’
      #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-defs.h:500:30: note: in expansion of macro ‘__this_cpu_sub’
      #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1)
      ^~~~~~~~~~~~~~
      ./include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
      In file included from ./arch/x86/include/asm/paravirt.h:17:0,
      from ./arch/x86/include/asm/irqflags.h:65,
      from ./include/linux/irqflags.h:16,
      from ./include/linux/rcupdate.h:39,
      from ./include/linux/rculist.h:11,
      from ./include/linux/pid.h:5,
      from ./include/linux/sched.h:14,
      from ./include/linux/utsname.h:6,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
      from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
      ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’:
      ./include/linux/cpumask.h:231:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      (cpu) < nr_cpu_ids;)
      ^
      ./include/linux/cpumask.h:766:36: note: in expansion of macro ‘for_each_cpu’
      #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
      ^~~~~~~~~~~~
      ./include/linux/vmstat.h:145:2: note: in expansion of macro ‘for_each_online_cpu’
      for_each_online_cpu(cpu)
      ^~~~~~~~~~~~~~~~~~~
      ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’:
      ./include/linux/cpumask.h:231:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      (cpu) < nr_cpu_ids;)
      ^
      ./include/linux/cpumask.h:766:36: note: in expansion of macro ‘for_each_cpu’
      #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
      ^~~~~~~~~~~~
      ./include/linux/vmstat.h:210:2: note: in expansion of macro ‘for_each_online_cpu’
      for_each_online_cpu(cpu)
      ^~~~~~~~~~~~~~~~~~~
      In file included from ./arch/x86/include/asm/paravirt.h:17:0,
      from ./arch/x86/include/asm/irqflags.h:65,
      from ./include/linux/irqflags.h:16,
      from ./include/linux/rcupdate.h:39,
      from ./include/linux/rculist.h:11,
      from ./include/linux/pid.h:5,
      from ./include/linux/sched.h:14,
      from ./include/linux/utsname.h:6,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
      from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
      ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’:
      ./include/linux/cpumask.h:231:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      (cpu) < nr_cpu_ids;)
      ^
      ./include/linux/cpumask.h:766:36: note: in expansion of macro ‘for_each_cpu’
      #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
      ^~~~~~~~~~~~
      ./include/linux/vmstat.h:145:2: note: in expansion of macro ‘for_each_online_cpu’
      for_each_online_cpu(cpu)
      ^~~~~~~~~~~~~~~~~~~
      ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’:
      ./include/linux/cpumask.h:231:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      (cpu) tv_nsec tv_nsec > NSEC_PER_SEC – TIME_SET_NSEC_FUZZ) {
      ^
      In file included from ./include/linux/efi.h:20:0,
      from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:193,
      from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
      ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’:
      ./include/linux/rtc.h:252:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if (to_set->tv_nsec tv_nsec > NSEC_PER_SEC – TIME_SET_NSEC_FUZZ) {
      ^
      /var/lib/dkms/nvidia/304.137/build/nv.c: In function ‘nv_start_rc_timer’:
      /var/lib/dkms/nvidia/304.137/build/nv.c:3032:5: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
      init_timer(&nvl->rc_timer);
      ^~~~~~~~~~
      init_timers
      /var/lib/dkms/nvidia/304.137/build/nv.c:3033:28: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
      nvl->rc_timer.function = nv_kern_rc_timer;
      ^
      /var/lib/dkms/nvidia/304.137/build/nv.c:3034:18: error: ‘struct timer_list’ has no member named ‘data’
      nvl->rc_timer.data = (unsigned long) nv;
      ^
      cc1: some warnings being treated as errors
      make[3]: *** [scripts/Makefile.build:324: /var/lib/dkms/nvidia/304.137/build/nv.o] Error 1
      make[3]: *** Waiting for unfinished jobs….
      ./tools/objtool/objtool orc generate –module –no-fp –retpoline “/var/lib/dkms/nvidia/304.137/build/nv-acpi.o”;
      if [ “-pg” = “-pg” ]; then if [ /var/lib/dkms/nvidia/304.137/build/nv-acpi.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/var/lib/dkms/nvidia/304.137/build/nv-acpi.o”; fi; fi;
      make[2]: *** [Makefile:1565: _module_/var/lib/dkms/nvidia/304.137/build] Error 2
      NVIDIA: left KBUILD.
      nvidia.ko failed to build!
      make[1]: *** [Makefile:261: module] Error 1
      make: *** [makefile:59: module] Error 2

      Reply
      • Hi Randy,

        Sorry, but nVidia 304.137, is not supported with 4.16 kernel and also nVidia doesn’t support it anymore. Check 2.1 Download nVidia Installer Package -> Tested versions (notes, 304.137 works with older kernels, but not with 4.16).

        Reply
    10. Works like a charm! Thanks!

      # nvidia-installer -v |grep version
      nvidia-installer: version 390.59 ([email protected]) Wed May 9 23:09:50 PDT 2018

      # uname -a
      Linux localhost.localdomain 4.16.7-100.fc26.x86_64 #1 SMP Wed May 2 21:45:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

      # lspci |grep -E “VGA|3D”
      01:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1)

      Reply
    11. Thank you so much! :D

      version 340.106 ([email protected]) Tue Jan 9

      Linux Chloe.srv 4.16.12-200.fc27.x86_64 #1 SMP Fri May 25 21:10:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

      01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)

      Reply
    12. Thank you! Your instructions are the only working solution to get my aging 2009 Mac Mini working with Nvidia drivers for its GeForce 9400 in Fedora 28. Being a bit of a Linux newb, I have tried the built in driver install tools in Ubuntu and Mint, and they always result in a flickering unusable mess. Was hesitant to go thru your instructions, as they seemed intimidating at first, but glad I did as I finally have a Linux setup that can utilize this Mac/Nvidia combo. Thanks again.

      Reply
    13. Thank you for your guide, it’s was a success.

      Here is the output:

      [[email protected] ~]$ nvidia-installer -v |grep version
      nvidia-installer: version 396.24 ([email protected]) Thu Apr 26 01:14:04 PDT 2018
      [[email protected] ~]$ uname -a
      Linux Wasteland 4.16.12-300.fc28.x86_64 #1 SMP Fri May 25 21:13:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
      [[email protected] ~]$ lspci |grep -E “VGA|3D”
      01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)

      I have a question though. What do I have to install additional so that I can open the “NVIDIA Graphics Drivers Control Panel” same as the one from the screenshots?

      cheers.

      Reply
      • Hi Bioshark.dev,

        You are welcome! You can open nVidia control panel using following command:

        nvidia-settings
        Reply
    14. Just for completeness, in some systems grub.cfg must be located in /boot/grub2, instead of /boot/efi/EFI/fedora/.

      Reply
      • Check 2.6.3 Update grub2 conf both BIOS and UEFI? Both is there or what you mean?

        Reply
    15. [[email protected] ~]$ nvidia-installer -v |grep version
      nvidia-installer: version 390.59 ([email protected])
      [[email protected] ~]$ uname -a
      Linux localhost.localdomain 4.16.13-300.fc28.x86_64 #1 SMP Wed May 30 14:31:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
      [[email protected] ~]$ lspci |grep -E “VGA|3D”
      01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
      04:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)

      Reply
1 65 66 67 68 69 94

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close