Hello.
I tried to follow that method with the "legacy"
390.141 driver and it does not work. Instead, what works with this legacy driver is,
(provided you already have a working Nvidia driver installed, plus the kernel modules, plus bbswitch), a file (might be called 10-nvidia.conf) in /etc/X11/xorg.conf.d with the following options:
Code:
Section "Device"
Identifier "intel"
Driver "modesetting" #must be modesetting and NOT intel
BusID "PCI:0:2:0" #must be specified
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0" #must be specified
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel" #must be inactive
EndSection
It seems to be necessary to add Inactive "intel", as told by Xorg.0.log:
Code:
[ 18034.287] (==) ServerLayout "layout"
[ 18034.287] (**) |-->Screen "nvidia" (0)
[ 18034.287] (**) | |-->Monitor "eDP1"
[ 18034.287] (**) | |-->Device "nvidia"
[ 18034.287] (**) | |-->GPUDevice "nvidia"
[ 18034.287] (**) |-->Inactive Device "intel"
It is also necessary to edit your .xinitrc adding these lines:
Code:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
Preferrably near the top, and you might want to add "xrandr --dpi 96" too.
nvidia-settings shows a nice layout with PRIME: eDP-1-1 on it.
I don't know (haven't tested) if the more current driver works with SDDM or any login manager, but the legacy driver does not fully work, it gives me a black screen on logout and Xorg.0.log shows an error with the modesetting. Might want to try with CDM instead, or manually starting X from runlevel 3.
By the way, I have enabled modesetting with /etc/modprobe.d/nvidia.conf :
Code:
options nvidia-drm modeset=1
Made a tiny script to enable the card at boot with bbswitch (might be called nvidia-start and run from /etc/rc.d/rc.local) :
Code:
#!/bin/bash
modprobe nvidia-drm
modprobe nvidia-modeset
modprobe nvidia
tee /proc/acpi/bbswitch <<<ON
It works good so far except for mostly logging on runlevel 3 and using startx. Will try CDM for fun, and will most probably go back to
just using the Intel card for everything and activating the Nvidia on demand XD.