For Linux Mint and Ubuntu with the NVIDIA driver installed through the Driver Manager.
Why this is needed: with Secure Boot on, Linux only loads modules signed by a key the firmware knows. The NVIDIA driver is compiled on your PC and signed with a local key. That key must be enrolled once. If it is not, the driver does not load and rendering falls back to the CPU.
nvidia-smi