How to determine the correct graphics card driver

From: Rocky Hotas <rockyhotas_at_post.com>
Date: Sat, 16 Jul 2022 09:22:18 UTC
Hello!
After installing FreeBSD 13.1-RELEASE amd64 on an old machine with Intel
Pentium E5300, I would like to properly configure the graphics card.
Currently the display has a 640x480 resolution and I'm struggling to
find the right graphics driver.

`pciconf -lv' shows:

vgapci0@pci0:0:16:0:    class=0x030000 rev=0xa2 hdr=0x00 vendor=0x10de
device=0x07e1 subvendor=0x1734 subdevice=0x115b
    vendor     = 'NVIDIA Corporation'
    device     = 'C73 [GeForce 7100 / nForce 630i]'
    class      = display
    subclass   = VGA

So I guessed that it's an NVIDIA card. According to the link in Section
2.1 of

 <https://docs.freebsd.org/doc/7.3-RELEASE/usr/share/doc/en/articles/compiz-fusion/nvidia-setup.html>

(which is https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/)

such a device is supported by the `304.xx' driver. So, I installed the
package nvidia-driver-304-304.137_9 and added `kldlist="nvidia"' to
/etc/rc.conf as instructed. The driver installs in fact
`/boot/modules/nvidia.ko'.

However, this had no success. The resolution is still 640x480. Some
relevant lines in the dmesg(8) possibly are:

vtvga0: <VT VGA driver>
vgapci0: <VGA-compatible display> mem
0xfd000000-0xfdffffff,0xe0000000-0xefffffff,0xfc000000-0xfcffffff irq 22
at device 16.0 on pci0
vgapci0: Boot video device
...
linker_load_file: /boot/kernel/atanvidia.ko - unsupported file type
nvidia0: <GeForce 7100 / nForce 630i> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io

Here are the full outputs
- of dmesg(8): http://rockyhotas.freeshell.org/dmesg1
- of `pciconf -lv': http://rockyhotas.freeshell.org/pciconf1
- of dmidecode(8): http://rockyhotas.freeshell.org/dmidecode1

First, is this the correct driver? And, if so, what is possibly wrong?

Rocky