Bug 271714

Summary: FreeBSD Handbook: … Graphic card drivers: inaccurate Instructions for some NVIDIA configurations
Product: Documentation Reporter: Sarah <spock>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Open ---    
Severity: Affects Some People CC: emaste, pat
Priority: --- Keywords: needs-patch
Version: Latest   
Hardware: amd64   
OS: Any   
URL: https://github.com/freebsd/freebsd-doc/blob/main/documentation/content/en/books/handbook/x11/_index.adoc#user-content-x-configuration-nvidia
Attachments:
Description Flags
Working Xorg configuration for documentation edge case none

Description Sarah 2023-05-29 19:17:02 UTC
Created attachment 242485 [details]
Working Xorg configuration for documentation edge case

FreeBSD Version: 13.2-RELEASE
Xorg Version: 7.7_3
Nvidia Driver: 470.161.03
Documentation Page: https://docs.freebsd.org/en/books/handbook/x11/



The issue with the documentation applies when the user has two graphics cards installed and one is a Nvidia graphics card. For example, if a user has a desktop computer having a motherboard with onboard video and installs a Nvidia card- this will result in the documentation being inaccurate. The xorg log complains that it cannot tell which of the graphics cards is the primary one, even with the busid added as indicated on the documentation page, and X fails to start stating (EE) No screems found. I got this working with the attached xorg configuration. 




# pciconf -lv|grep -B4 VGA
vgapci0@pci0:3:0:0:	class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x100a subvendor=0x3842 subdevice=0x2883
    vendor     = 'NVIDIA Corporation'
    device     = 'GK110B [GeForce GTX 780 Ti]'
    class      = display
    subclass   = VGA
--
vgapci1@pci0:1:1:0:	class=0x030000 rev=0x10 hdr=0x00 vendor=0x1a03 device=0x2000 subvendor=0x1a03 subdevice=0x2000
    vendor     = 'ASPEED Technology, Inc.'
    device     = 'ASPEED Graphics Family'
    class      = display
    subclass   = VGA
Comment 1 Graham Perrin 2023-08-23 17:41:45 UTC
Thank you, 

(In reply to Sarah from comment #0)

> Working Xorg configuration for documentation edge case

The nvidia-drm-kmod family of ports was very recently added to the FreeBSD ports tree. 

Does this make your edge case alterable?

<https://wiki.freebsd.org/Graphics#NVIDIA>

There's a link to a PRIME-related blog post.