I seem to have fixed the problem. As near as I can tell, what happened is that Ubuntu updated the kernel version behind my back and thereby invalidated the drivers I had installed.
The reason I think this is because when I was investigating this, I thought I'd try and get the names for the actual kernel modules corresponding to the Nvidia and wi-fi stuff, so I followed this advice and looked in /lib/modules/[kernel_version]
. I was a little bit surprised to find two kernel versions:
jack@tower:~$ ls /lib/modules
5.15.0-43-generic 5.15.0-56-generic
Looking in the .0-43
folder, I found some NVidia stuff:
jack@tower:~$ ls /lib/modules/5.15.0-43-generic/kernel
arch fs net nvidia-470 nvidia-515 ubuntu
block kernel nvidia-390 nvidia-470srv nvidia-515srv v4l2loopback
crypto lib nvidia-418srv nvidia-510 samples zfs
drivers mm nvidia-450srv nvidia-510srv sound
But none in the 56
directory (I have since installed those drivers again, so I can't provide ls
output, you'll just have to take my word for it). At this point uname -r
returns the 56
version.
This made me a little suspicious so I uninstalled my custom Wi-fi driver and re-installed it. As I did so I noted that the installer script was putting stuff in the 56
kernel version directory. I checked the same location in the 43
directory and sure enough, there was the wifi file (88x2bu.ko
).
After a reboot, Wi-fi worked again. I then went into the "Additional Drivers" Ubuntu program and re-installed the NVidia drivers (there's no Update button so I had to deselect and re-select the right version and hit "Apply changes"). After another reboot, graphics work properly again.
If anyone could explain to me if this could really be what happened, how to confirm it, how it happened, and how to avoid it in future I'd be very grateful.