Enable Nvidia or Intel GPUs command line for display in Ubuntu/Linux Mint

Do you want to set the preferred GPU if nvidia x server setting is not displayed in the tray icon. Let’s go command line.

$ sudo prime-select status
Usage: /usr/bin/prime-select nvidia|intel|query
$ sudo prime-select query
nvidia
$ sudo prime-select nvidia
Info: the nvidia profile is already set

Of course, mine is already set to nvidia! Reboot to see the changes.

Peace!

★ 1 min read · Rajesh Pandian M · nvidia , sysadmin