I'm using Kubuntu 18.04 and I have an Nvidia graphics card with driver 430 installed. I would like to use the Nvidia GPU for its Cuda only and not for the video output. After some search online, it appears that one way to do this is to use Nvidia PRIME.
Here are my issues switching from Nvidia display output to intel (my onboard graphics card):
- I've seen articles and images of Nvidia X Server Settings with PRIME Profiles tab. I don't have that tab.
- Some people pointed out that the same functionality could be achieved with commands like
sudo prime-select intel
. I've done that without any errors. And when I runprime-select query
, it shows meintel
afterward. But still, I could only get video output out of Nvidia HDMI (after reboot). And it was a very low-resolution output without the Nvidia driver loaded.
BTW, I've purged all the Nvidia packages and reinstalled them from scratch.
Can someone please help me switch the video output to my onboard graphics card?
reference: https://devtalk.nvidia.com/default/topic/1043405/linux/ubuntu-18-04-headless_390-intel-igpu-after-prime-select-intel-lost-contact-to-geforce-1050ti/
prime-select nvidia
to enable GPU.prime-select intel
will disable GPU./etc/X11/xorg.conf
:/etc/default/grub
, addnogpumanager
inGRUB_CMDLINE_LINUX_DEFAULT
parameter. Then executeupdate-grub
.After rebooting, in
nvidia-smi
you will see only 7MiB memory are used. Worked in Ubuntu 18.04 with GTX1060.