This is what happens when I try to configure X:
X.Org X Server 1.21.1.14
X Protocol Version 11, Revision 0
Current Operating System: NetBSD selkie 10.1 NetBSD 10.1 (SELKIE) #0: Sat Sep 13 11:28:22 EDT 2025 roy@selkie:/usr/src/sys/arch/i386/compile/SELKIE i386
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 13 13:22:32 2025
List of video drivers:
amdgpu
amdgpu
ast
ast
ati
ati
chips
chips
cirrus
cirrus
elographics
elographics
geode
geode
i128
i128
i740
i740
intel
intel
kbd
kbd
mach64
mach64
mga
mga
mouse
mouse
neomagic
neomagic
nouveau
nouveau
nv
nv
openchrome
openchrome
r128
r128
radeon
radeon
s3virge
s3virge
savage
savage
siliconmotion
siliconmotion
sis
sis
tdfx
tdfx
tseng
tseng
vboxvideo
vboxvideo
vmmouse
vmmouse
vmware
vmware
ws
ws
modesetting
modesetting
vesa
vesa
wsfb
wsfb
(++) Using config file: "/root/xorg.conf.new"
Number of created screens does not match number of detected devices.
Configuration failed.
(EE) Server terminated with error (2). Closing log file.
I've already compiled a custom kernel. Turns out the generic i386 kernel was loading the lms driver instead of mms, and that is why the InPort mouse didn't work. I disabled the lms driver in the kernel config and now my mice play nice 🙂
Now I'm trying to setup the sound card. In the config I put sb* at isapnp?
since it's an ISA PnP card. Also added the card's PnP ID in isapnpdevs as per here, but:
[ 1.000004] isapnp0: <OPTi Audio 16, OPTFFFF, , AUX0> not configured
[ 1.000004] sb0 at isapnp0 port 0x534/4,0x380/12,0x220/16,0xe0c/4 irq 7 drq 0,0
[ 1.000004] sb0: autoconfiguration error: sbmatch failed
[ 1.000004] isapnp0: <OPTi Audio 16, OPT0001, , Game Port> port 0x200/1 not configured
[ 1.000004] isapnp0: <OPTi Audio 16, OPT0002, , MPU401> port 0x300/2 irq 7 not configured
In Windows I can see the OPTi card uses IRQ 7, DRQs 3 and 6, and I/O range 0x0240 - 0x024F for its SoundBlaster part (it integrates multiple sound card standards).