ubuntu-mate / mate-optimus

NVIDIA Optimus GPU switcher
https://ubuntu-mate.org
GNU General Public License v3.0
93 stars 14 forks source link

Nvidia hardware no longer detected when on Intel (Power-Saving) and on 460 Driver #25

Open eeickmeyer opened 3 years ago

eeickmeyer commented 3 years ago

Title pretty much explains it. For the Kubuntu Focus machines, we have a script to completely power-off the Nvidia hardware if the Intel driver is selected. This wasn't a problem with nvidia-driver-455 and lower, but with 460 for some reason the menu no longer displays the Nvidia selections.

Granted, the system would have to be rebooted to get the Nvidia hardware back in this scenario (and we have a script injection in SDDM that does this exactly), but there's a pretty nasty inconvenience to our customers if they don't have the selection to begin with.

In order to take a sledgehammer approach to this, I had to remove line #115 from mate-optimus-applet: nvidia_detected(capability) and \

This produces the desired result. However, I'm sure there's a more graceful approach to this. In the meantime, unfortunately, I am in a position where I have to downstream patch this, but I'm reluctant to downstream patch in in Ubuntu (which I can) since this is a very quick and dirty approach.