Hi Matt,
Thank you for the input.
The iwlfifi driver gets installed with the 5.4.49 kernel:
# lspci -v | grep iw
Kernel driver in use: iwlfifi
Kernel modules: iwlwifi
With the 4.19.48 kernel, lspci -v didn't print those two lines.
# dmesg | grep firmw
[ 4.433796] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 4.761899] iwlwifi 0000:45:00.0: loaded firmware version 50.3e391d3e.0 op_mode iwlmvm
[ 4.775457] iwlwifi 0000:45:00.0: Allocated 0x00400000 bytes for firmware monitor.
I think the first message with error -2 is not related to iwlwifi.
The iwlwifi module is getting loaded automatically. I am not using insmod or modprobe manually (like I was doing with the 4.19.48 kernel).
ifconfig shows a "wlo1" interface (which was not shown with the 4.19.48 kernel).
This interface does not show an "inet addr", so I have more work to do, but I will figure that out later after I resolve the Nvidia driver problem.
For grub, the computer always boots up in grub command mode.
This indicates "grub-install" is working, I suppose.
The problem appears to be with grub-mkconfig:
grub-mkconfig -o /boot/grub/grub.cfg
The grub.cfg file is attached.
Here's what I type to boot from command mode:
grub> set root=(hd0,1)
grub> linux /boot/vmlinuz root=/dev/nvme0n1p1
grub> boot
The SSD disk is partitioned with MBR:
The first partition is the Linux root partition.
The second partition is not used currently.
The third partition is mounted on /home.
For the nvidia driver, I was using the installer from Nvidia's web site.
I didn't realize there was a port, so I tried it now:
# cd /usr/ports/opt/nvidia
# pkgmk -d -u
This built everything, but failed in the end because nothing was previously installed.
# pkgmk -d -i
This failed because some files existed already, and it suggested the -f option.
# pkgmk -d -f -i
This built everything again, but failed in the end, and suggested the -f option again.
# pkgmk -d -f
This built everything again, and succeeded.
At this point, I can start X, but the screen resolution is wrong.
I am using a 4K monitor, but X appears to be using 1024x768.
Previously, with the 4.19.48 kernel and Nvidia's installer, the resolution was detected properly.
Maybe the fact that I ran Nvidia's installer previously (on the 5.4.49 kernel too) messed things up?
Best regards,
Dave