In response to my asking for help getting X to run after upgrading to 13.2-RELEASE, <
george@invalid.com> kindly replied:
I need a module compiled from ports to run X11.
kld_list="i915kms.ko"
It won't update properly from a repository. I need to compile it.
Your module is likely different.
I'll keep that in mind, but that seems more like the kind of problem a
new graphics card might have. The machine in question has pretty old
graphics, and even the built-in (motherboard) graphics with generic
drivers like vesa won't start up any more. (The virtual terminals work,
at least.) The risk is more likely that they're no longer supported,
except that I'd be surprised if support vanished between minor versions.
I do see that the official Nvidia 304 driver for one of the devices says
it won't work with X 1.20 or later, but I haven't used that driver (or
even installed it).
groenveld@acm.org (John D Groenveld) then replied:
For reasons I can't remember and I failed to document the OP is
in my killfile,
I don't know why I would be either, but OK.
... the output of pciconf(8) might be a good start
1) "pciconf -l" (which is what I assume you had in mind) lists both
graphics devices:
vgapci0@pci0:3:3:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x0221 subvendor=0x3842 subdevice=0xb399
vgapci1@pci0:3:4:0: class=0x030000 rev=0x0a hdr=0x00 vendor=0x102b device=0x0532 subvendor=0x15d9 subdevice=0xba11
2) The machine in question has a rather complete xorg.conf that
describes the devices, the drivers to use, etc., so I don't think
failing now would be a result of some change in Xorg's default
startup. I compared the Xorg.0.log from a few days ago with the
current one, and all the setup stuff looks the same, except now it
dies saying a kernel module is claiming the device ... The same
xorg.conf worked a couple days ago under 13.1 with Xorg X Server
1.21.1.4 with the "nv" driver. It's not working today under 13.2
with Xorg X Server 1.21.1.8 with any driver. The PCI device numbers
are the same as they were before, and the Xorg.0.log file description
of the devices matches (i.e., the graphics cards didn't swap numbers
with each other after the upgrade and reboot).
Additional things I've tried since my original post:
* I Google'd the error message, found a bunch of articles dating from
mid-2000s to 2019, and tried pretty much everything anyone suggested.
None worked. Using alternate drivers, including vesa (the machine has
BIOS, not UEFI), didn't help.
* One reference was the X11 section of the FreeBSD Handbook, dated
March 2023. Tried what that said. No improvement.
* Several places recommended deleting the xorg.conf file altogether.
Tried that. X still didn't start, but it did die a bit differently
when its fallback (looking for /dev/dri/card0) failed (no /dev/dri/).
* I note that the log file says the server relies on udev. However, I
see no program named udev. apropos (man -k) finds nothing either.
* One article referenced "lspci" with -k which looked potentially
helpful, since it could show which kernel module owns (or could own)
the PCI device. I found lspci in the pciutils pkg. Unfortunately,
-k only works on Linux and isn't even a valid switch in the pkg
repository version.
* I renamed /usr/local/lib/xorg/modules/drivers/nvidia_drv.so to ensure
neither it nor glx gets loaded. "Xorg -configure" still dies saying
a kernel module is claiming the device.
Sorry if this rambled a bit. I've spent the day trying one thing after another, looking for any clue as to how to make progress, and nothing so
far seems to have helped.
Still TIA,
-WBE
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)