20-drivers.conf for 2 GPU cards.

Hi everybody,

I'm installing FreeBSD through its handbook. I got the attached screenshot after creating 20-drivers.conf at /usr/local/etc/X11/xorg.conf.d/.
I have 2 GPU cards, Intel and Nvidia.
Code:
Section "Device"
    Identifier "Card0"
    Driver     "intel"
    BusID     "pci0:0:2:0"
EndSection

Section "Device"
    Identifier "Card1"
    Driver     "nvidia"
    BusID     "pci0:1:0:0"
EndSection

What should I do to resolve this problem? Thank you.
 

Attachments

  • photo_2025-02-24_01-49-10.jpg
    photo_2025-02-24_01-49-10.jpg
    226.2 KB · Views: 477
cat /var/log/Xorg.0.log | nc termbin.com 9999

And what CPU does this machine have? The exact model will tell use which firmware might be appropriate for your system.
 
Hw.model: Intel(R) Core(TM) i9-8950HK CPU @ 2.90Ghz
Hw.machine: AMD64


Now, I removed the Intel section of 20-drivers.conf file to let my laptop to boot right.
 
Turn off any display manager, so it doesn't try to start X when booting. Test your Xorg configuration with startx, once it's working you can enable the display manager again.

Hw.model: Intel(R) Core(TM) i9-8950HK CPU @ 2.90Ghz
That's an oldy. Are you sure it's not automagically disabled when you add an 'external' graphics card?
 
Turn off any display manager, so it doesn't try to start X when booting. Test your Xorg configuration with startx, once it's working you can enable the display manager again.


That's an oldy. Are you sure it's not automagically disabled when you add an 'external' graphics card?
Thank you,
Now, I got this attached screenshot when I run exec startxfce4

I also created /usr/local/etc/X11/xorg.conf.d/10-monitor.conf already.
 

Attachments

  • IMG_20250224_094237_930.jpg
    IMG_20250224_094237_930.jpg
    186.6 KB · Views: 521
Do cat /var/log/Xorg.0.log | nc termbin.com 9999 and post the URL please.

Edit: Oh, it seems termbin is down. Please paste the Xorg.0.log to some other pastebin type website, so we can have a look at the actual log.
 
Do cat /var/log/Xorg.0.log | nc termbin.com 9999 and post the URL please.

Edit: Oh, it seems termbin is down. Please paste the Xorg.0.log to some other pastebin type website, so we can have a look at the actual log.
I did it.
 
The log shows that you have 14.2-RELEASE. Please post the output of:
pkg -v
pkg -vv | sed -n '/^Repositories:/,$ p'
pkg info -g 'drm-*-kmod'


[...] I'm installing FreeBSD through its handbook. I got the attached screenshot after creating 20-drivers.conf at /usr/local/etc/X11/xorg.conf.d/.
I have 2 GPU cards, Intel and Nvidia.
Code:
Section "Device"
    Identifier "Card0"
    Driver     "intel"
[...]
Is there any special reason why are you using the "legacy" Intel driver? I suggest you try the modesetting Xorg driver, like:
Rich (BB code):
Section "Device"
    Identifier "intelGPU"    <-- this might be easier to identify as the GPU of your Intel(R) Core(TM) i9-8950HK CPU
    Driver     "modesetting"
    BusID     "pci0:0:2:0"
EndSection
 
The log shows that you have 14.2-RELEASE. Please post the output of:
pkg -v
pkg -vv | sed -n '/^Repositories:/,$ p'
pkg info -g 'drm-*-kmod'



Is there any special reason why are you using the "legacy" Intel driver? I suggest you try the modesetting Xorg driver, like:
Rich (BB code):
Section "Device"
    Identifier "intelGPU"    <-- this might be easier to identify as the GPU of your Intel(R) Core(TM) i9-8950HK CPU
    Driver     "modesetting"
    BusID     "pci0:0:2:0"
EndSection
your requested Log is here --> https://termbin.com/8jy4

I, also changed the driver to "modesetting" but nothing changed.
 
Your setup:
Code:
1.21.3
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
drm-61-kmod-6.1.92.1401000_3
As you are on 14.2-RELEASE you are likely in need of a 14.2-RELEASE specific version of drm-61-kmod.
On quarterly/14.2-RELEASE:
Code:
# pkg sea '^drm-61-kmod'
drm-61-kmod-6.1.92.1401000_3   DRM drivers modules
drm-61-kmod-6.1.128.1402000_1  DRM drivers modules
you should have the last one listed, containing 1402000. The higher numbered 6.1.128 is nice-to-have but probably doesn't matter because of the age of your CPU/iGPU.
You'll be able to get this search result when you have 'kmods' in a pkg .conf set up; alternatively build the graphics/drm-kmod meta port from source; that should build & install, amongst others, drm-61-kmod. More on that here and in the referenced link as to using the 'kmods' repository.

I can't say if that is your only problem. However, I would suggest you try to keep using the modesetting Xorg driver for your intel GPU. Unless some extraordinary reason (like a monitor that does not communicate its capabilities automatically) you most likely do not need any specific Xorg monitor conf setting.

Disable (temporarily) any display managers (like sddm and what not); start X by hand from the command line.
When running into problems, it's usually useful to post a complete Xorg log file and any specific user set Xorg .conf settings; you can easily 'termbin' them.

If I understand correctly then you have a desktop like setting with a PCIe Nvidia graphics card. IF you run (temporarily) into unsurmountable problems for the intel GPU & Nvidia combo to run together, I suggest you physically remove the Nvidia card and concentrate on getting the intel GPU working first; do keep that specific BusID though (you'll need it for the combo).
 
Back
Top