I just tried this:
- Exit X.
- Make the nvidia installer executable.
- Disabled nouveau with a modprobe blacklist.
- Set the multi-user as the default target (to avoid starting X automatically) (sudo systemctl set-default multi-user.target)
- Rebooted
- Ran the installer as root. (Installing NVIDIA driver version 460.56.)
- Said yes to the questions...
- -> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
- -> Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)
At this point I encountered the error "ERROR: Unable to load the 'nvidia-drm' kernel module."
Code:
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the 'nvidia-drm' kernel module.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
The log (attached as nvidia-installer.log) also includes some warnings, but they sound harmless. It appears to be refusing to install libglvnd because it's already installed, there's also the line "Found non-libglvnd libraries:", but I suspect that's also harmless.
I also attach my Xorg.0.log, which shows a similar error, it fails to load DRM and then falls back to a different module "fbdevhw", and then fails to open that in framebuffer mode.
Code:
[ 17.752] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 17.874] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 17.874] (EE) open /dev/dri/card0: No such file or directory
[ 17.874] (WW) Falling back to old probe method for modesetting
[ 17.874] (EE) open /dev/dri/card0: No such file or directory
[ 17.874] (II) Loading sub module "fbdevhw"
I'm quite keen to solve this now, as purging *nvidia* and 'unblacklisting' nouveau isn't enough to get X, xinit, or startx to work again.
Do I need to change "secure boot" or "UEFI" in my BIOS?