Hi there,
I followed the following guide to setup NVidia drivers on Fedora and i’m not sure if it actually worked, running glmark2 actually gives worse scores than when it was on the Intel graphics, the NVidia X Settings dialog doesn’t want to open, it just crashes:
https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/
nvidia-installer -v |grep version
nvidia-installer: version 430.40
uname -a
Linux vlad.localhost 5.2.6-200.fc30.x86_64 #1 SMP Mon Aug 5 13:20:47 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
lspci |grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 3D controller: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] (rev a1)
Downloaded the official NVidia drivers:
-rwxrwxr-x. 1 vlad vlad 107M Aug 10 11:08 /home/vlad/Downloads/NVIDIA-Linux-x86_64-430.40.run
Installed some additional needed packages:
dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig
Disabled nouveau:
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
$ cat /etc/modprobe.d/blacklist.conf
blacklist nouveau
Added rd.driver.blacklist=nouveau
to the end of GRUB_CMDLINE_LINUX=
in /etc/sysconfig/grub
$ cat /etc/sysconfig/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora_vlad-swap rd.lvm.lv=fedora_vlad/root rd.lvm.lv=fedora_vlad/swap rhgb quiet rd.driver.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
Did a grub update:
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Removed nouveau driver:
dnf remove xorg-x11-drv-nouveau
Did a “Generate initramfs” (no idea what this is):
## Backup old initramfs nouveau image ##
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
## Create new initramfs image ##
dracut /boot/initramfs-$(uname -r).img $(uname -r)
Rebooted into runlevel 3 where i ran the NVidia installer selecting yes to everything and which installed without problems.
Rebooted back into the graphical interface and installed the following recommended packages:
dnf install vdpauinfo libva-vdpau-driver libva-utils
Running lshw, the output looks a bit suspicious, the Quadro P2000 shows the exact same clockspeed as the Intel graphics:
sudo lshw -numeric -C display
*-display
description: 3D controller
product: GP107GLM [Quadro P2000 Mobile] [10DE:1CBA]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:16 memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff
*-display
description: VGA compatible controller
product: UHD Graphics 630 (Mobile) [8086:3E9B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:135 memory:eb000000-ebffffff memory:80000000-8fffffff ioport:4000(size=64) memory:c0000-dffff
glmark2 before the NVidia driver and all of the above:
=======================================================
glmark2 2017.07
=======================================================
OpenGL Information
GL_VENDOR: Intel Open Source Technology Center
GL_RENDERER: Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2)
GL_VERSION: 3.0 Mesa 19.1.3
=======================================================
...
=======================================================
glmark2 Score: 2289
=======================================================
After the NVidia drivers (it shows VMWare and llvmpipe which looks strange):
=======================================================
glmark2 2017.07
=======================================================
OpenGL Information
GL_VENDOR: VMware, Inc.
GL_RENDERER: llvmpipe (LLVM 8.0, 256 bits)
GL_VERSION: 3.1 Mesa 19.1.3
=======================================================
Lots of the same errors like this one:
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
=======================================================
glmark2 Score: 764
=======================================================
The score is significantly lower which means something is not setup correctly.