Comment 1 for bug 1931514

Revision history for this message
Bin Li (binli) wrote : Re: The NVIDIA X server Settings is blank when under Intel mode

The root cause is that the nvidia_loaded is false cause in Power Saving Mode, and nvidia_kmod_available is also false cause couldn't find nvidia.ko correctly, so it wont' do set_offloading() which cause nvidia-settings is blank.
Now we used the linux-modules-nvidia-5.10.0-xxx-oem package to support secure boot, and it will install the nvidia.ko in /lib/modules/5.10.0-xxx-oem/kernel/nvidia-460/, so we need fix the source code to detect the nvidia modules correctly.

            else if ((intel_loaded || amdgpu_loaded) && !nouveau_loaded &&
                                 (nvidia_loaded || nvidia_kmod_available)) {
                fprintf(log_handle, "NVIDIA hybrid system\n");

                /* Try to enable prime */
                if (enable_prime(prime_settings,
                             &discrete_device, current_devices, cards_n)) {

                    /* Write permanent settings about offloading */
                    set_offloading();
                }