CentOS8 + Nvidia Drivers + NVidia Optimus

Issues related to hardware problems
Post Reply
Adrien.D
Posts: 23
Joined: 2016/10/26 06:57:18

CentOS8 + Nvidia Drivers + NVidia Optimus

Post by Adrien.D » 2019/11/17 19:27:23

Hi,
on fedora, when i install NVidia drivers from rpm fusion with :

Code: Select all

dnf install xorg-x11-drv-nvidia akmod-nvidia
and

Code: Select all

reboot
It works.
But on CentOS8, the driver compiles at boot but black Screen.
Do you have a solution for NVidia Optimus cards for laptops ?

NVidia GeForce 650M on Asus N67VZ


mwprado
Posts: 2
Joined: 2020/06/17 17:54:02

Re: CentOS8 + Nvidia Drivers + NVidia Optimus

Post by mwprado » 2020/06/17 18:00:48

I could use optimus installing cuda repo from nvidia in centos 8.2 and editing this files:

1) /etc/X/xorg.conf.d/10.nvidia.conf

Section "ServerLayout"
Identifier "layout"
Option "AllowNVIDIAGPUScreens"
EndSection

Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "no"
Option "SLI" "Auto"
Option "BaseMosaic" "on"
EndSection

Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection

2) comment nvidia line in /lib/udev/rules.d/61-gdm.rules
# disable Wayland when using the proprietary nvidia driver
#DRIVER=="nvidia", RUN+="/usr/libexec/gdm-disable-wayland"

mwprado
Posts: 2
Joined: 2020/06/17 17:54:02

Re: CentOS8 + Nvidia Drivers + NVidia Optimus

Post by mwprado » 2020/08/01 14:14:23

I've forgotten. I had to install make for build the dkms driver.

Post Reply