Double gpu laptop xorg configuration problem

I have a double gpu laptop (with intel UHD 630 and Nvidia GTX 1050 ti mobile). Modules i915.ko, nvidia.ko, nvidia-modeset.ko, nvidia-drm.ko load normally (seen with kldstat).
I go and create config file
Code:
/usr/local/etc/X11/xorg.conf.d/20-drivers.conf
as instructed my handbook


Code:
#Intel onboard and Nvidia Gpu config file for X11
Section "Device"
         Identifier "intel"
         BusID      "pci0:0:2:0"
EndSection

Section "Device"
        Identifier "nvidia-modeset"
        BusID      "pci0:1:0:0"
EndSection

/var/log/Xorg.0.log shows that /usr/local/etc/X11/xorg.conf.d is used for configuration, and that intel and nvidia modules cant be loaded because they werent found.

If i remove /usr/local/etc/X11/xorg.conf.d/20-drivers.conf file startx works and xfce4 is started.

I have checked the pci adresses with
Code:
pciconf -lv | grep -B4 display
and they are correct. Any ideas about what is wrong with my 20-drivers.conf file? Thanks
 
Back
Top