I enabled the proprietary driver via the Additional Drivers tab of Software & Updates.
Now, whenever I install software with "sudo apt install", I get the following (along with whatever I'm installing):
Setting up nvidia-340 (340.108-0ubuntu5.20.04.2) ...
dpkg: error: version '-' has bad syntax: revision number is empty
dpkg: error: version '-' has bad syntax: revision number is empty
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-340
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Removing old nvidia-340-340.108 DKMS files...
------------------------------
Deleting module version: 340.108
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-340-340.108 DKMS files...
Building for 5.15.0-53-generic
Building for architecture x86_64
Building initial module for 5.15.0-53-generic
Error! Bad return status for module build on kernel: 5.15.0-53-generic (x86_64)
Consult /var/lib/dkms/nvidia-340/340.108/build/make.log for more information.
dpkg: error processing package nvidia-340 (--configure):
installed nvidia-340 package post-installation script subprocess returned error
exit status 10
Is there a way to get the proprietary Nvidia drivers to work with this machine where it won't be trying to unsuccessfully build a kernel module each time I install software?
I had to reboot and was stuck at the "white screen of death", had to switch to tty and login and purge nvidia-* in order to be able to get back to the desktop.
I then tried (cause I hadn't seen your reply yet) to install the proprietary driver via the Additional Drivers tab again.
This time, I noted the error that it gives:
Error while applying changes
pk-client-error-quark: Error while installing package: installed nvidia-340
package post-installation script subprocess returned error exit status 10 (313)
So, I reverted back to the open source driver.
So, now my questions are:
Is it possible to downgrade to a compatible kernel? If so, how is this done?
Even if that works, is it worth it? As in, how much better will the proprietary driver perform over the Nouveaux driver?
It's hard to say. But testing out both is reasonable and safe.
You can install the 5.4 kernel and test out how things work.
Then test Nvidia vs. Nouveau and decide which works better for you.
If you see no appreciable change, just stick with the current kernel.
If you do see one, lock in the older kernel.
But, I see no grub menu when booting this Mac Mini.
I also tried modifying /etc/default/grub with:
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
GRUB_GFXMODE=950x540
And, again updated grub but, still no grub menu is displayed.
I've tried hitting esc and tab while booting but those just seem to make this little Mac sit there with a black screen and a single cursor in the upper left hand quarter of the screen (not the upper left hand corner, more like 3" - 4" down and to the right of the top corner).
Thanks again for all the info and does anyone know how to get the grub menu to display on a Mac Mini?
I may have picked a too new 5.4 kernel lol...
I opted for the latest 5.4.0-81 rather than base 5.4
But I doubt it would make any difference. If it was me, I would have started the attempt on 5.8 and worked back to 5.4
If you are restricted to the 340 driver - it may be a card Nvidia has dropped support for and ... as Storm just said above...