I want to use my dedicated GPU for gazebo and rviz simulations but so far my integrated gpu is being used.
What I did:
Disabled secure boot
Installed ubuntu 18.04.6 with nomoset in grub
Installed nvidia drivers from ubuntu additional drivers
My nvidia Xserver settings know that I have GTX 1650 but in additional drivers it shows NVIDIA corporation unknown hardware
My friends and I am getting 5-10 fps in gazebo and many more people in the community are also experiencing the same issue but there is no concise solution.
Of course, I didnāt check closely enough. Would it be ok if we merged your request from here with that topic in the public forums? That way we can get more exposure and hopefully help you better.
Many of your ros/gazebo community members already showed up here.
Problem: 18.04 kernel doesnāt support your ryzen 4xxx gpu so you will need to install a kernel manually:
You will need 4 packages
linux-headers-XX
linux-headers-XX-generic
linux-image-unsigned-XX-generic
linux-modules-XX-generic
from https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.79/
and remove the ānomodesetā kernel parameter.
Though you might run into problems with the gcc version. If all runs well, youāll have to tinker a bit with xorg config: nvidia-xconfig doesnt do what i want it to, nor does nvidia-settings - NVIDIA Developer Forums