Bug 5778

Summary: Nvidia-settings does not work
Product: Fedora Reporter: Elijah <waytoroot>
Component: nvidia-settingsAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED UPSTREAM    
Severity: enhancement    
Priority: P1    
Version: f33   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: nvidiaSettingsWindow
nvidia-bug-report
nvidia_setting_window

Description Elijah 2020-10-06 13:13:10 CEST
Created attachment 2237 [details]
nvidiaSettingsWindow

nvidia-settings:  version 450.66
kernel: 5.8.12-200.fc32.x86_64
lspci -nnk: Kernel driver in use: nvidia

Nvidia-settings does not work: 

$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia nvidia-settings

(nvidia-settings:3452): GLib-GObject-CRITICAL **: 14:11:37.898: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

ERROR: nvidia-settings could not find the registry key file. This file should
       have been installed along with this driver at
       /usr/share/nvidia/nvidia-application-profiles-key-documentation. The
       application profiles will continue to work, but values cannot be
       prepopulated or validated, and will not be listed in the help text.
       Please see the README for possible values and descriptions.
Comment 1 Nicolas Chauvet 2020-10-06 13:58:07 CEST
rpm -qf /usr/share/nvidia/nvidia-application-profiles-455.23.04-key-documentation
xorg-x11-drv-nvidia-455.23.04-1.fc34.x86_64

Is there a miss-match between your nvidia-settings package and this one ?

Also using optimus with intel, you are expected to have this as the display is controlled by intel, not nvidia...
Comment 2 Elijah 2020-10-06 14:05:46 CEST
yes:
xorg-x11-drv-nvidia-450.66-2.fc32.x86_64
xorg-x11-drv-nvidia-450.66-2.fc32.x86_64
nvidia-settings-450.66-1.fc32.x86_64
Comment 3 Nicolas Chauvet 2020-10-06 14:25:09 CEST
Are you sure that you haven't installed via the .run ? 
Can you attach the archive generated by nvidia-bug-report.sh ?

I can reproduce the ERROR which seems unrelated, but at least I have the Thermal Settings and PowerMizer tabs which are only relevant to optimus case where GPU doesn't driver the display.


Or what is the expected output ?
Comment 4 Elijah 2020-10-06 14:32:07 CEST
Created attachment 2238 [details]
nvidia-bug-report
Comment 5 Elijah 2020-10-06 14:33:55 CEST
Of course I'm sure.
How I installed: dnf install gcc kernel-headers kernel-devel akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia-libs.i686
I have a laptop with hybrid graphics (nvidia gtx 1050 + intel 630)
Comment 6 Elijah 2020-10-06 14:35:53 CEST
I want to see the Thermal Settings and PowerMizer tabs.
Everything worked in the previous version.
Comment 7 Nicolas Chauvet 2020-10-06 14:58:00 CEST
(In reply to Elijah from comment #6)
> I want to see the Thermal Settings and PowerMizer tabs.
> Everything worked in the previous version.

Yep I confirm that it worksforme with same driver version, same distro, same build. (I have Thermal Settings and PowerMizer) on optimus setup
Comment 8 Elijah 2020-10-12 15:57:32 CEST
So it works there is a file /etc/X11/xorg.conf.d/nvidia.conf with option 'Option "PrimaryGPU" "yes"'.
Comment 9 Nicolas Chauvet 2020-10-12 16:19:28 CEST
(In reply to Elijah from comment #8)
> So it works there is a file /etc/X11/xorg.conf.d/nvidia.conf with option
> 'Option "PrimaryGPU" "yes"'.

Looks something tight to your setup because I don't need this option myself.
This setting is for allowing the nvidia GPU to drive the display by default over the intel interface.


Can you copy an output of nvidia-settings panel ?
Comment 10 Elijah 2020-10-12 16:21:34 CEST
output in the first comment
Comment 11 Nicolas Chauvet 2020-10-12 16:26:22 CEST
(In reply to Elijah from comment #10)
> output in the first comment

I meant an output with the fixed behavior.
Comment 12 Elijah 2020-10-12 16:29:04 CEST
But this is not a fix. I'm not interested in the option when the video card set as primary.
Comment 13 Nicolas Chauvet 2020-10-12 16:34:02 CEST
(In reply to Elijah from comment #12)
> But this is not a fix. I'm not interested in the option when the video card
> set as primary.

We both agree.


So I think you need to report that to nvidia and specially mentioning that this is a device specific behaviour that cannot be  reproduced with normal package


Also worth to mention if you have made any tweak to enable wayland support ? (since this isn't mentioned in this thread).
Because if using wayland, it's possible that the thermal tabs aren't usable the same as with Xorg...
Comment 14 Elijah 2020-10-12 16:38:10 CEST
I'm using Xorg of course and Secure Boot is disabled.
Comment 15 Nicolas Chauvet 2020-12-01 13:52:05 CET
Feel free to add any upstream report in this tracker.
Closing here as there is nothing we can to do debug as this is a device specific behavior.
Comment 16 Elijah 2021-02-10 13:45:35 CET
Problems persist in Fedora 33 and nvidia-settings version 460.39.
$ nvidia-settings  -V

WARNING: NV-CONTROL extension not present on screen 0 of this Display.
WARNING: Unable to determine number of NVIDIA GPUs on ':1'.
WARNING: Unable to determine number of NVIDIA Frame Lock Devices on ':1'.
WARNING: Unable to determine number of NVIDIA Fans on ':1'.
WARNING: Unable to determine number of NVIDIA Thermal Sensors on ':1'.
WARNING: Unable to determine number of NVIDIA 3D Vision Pro Transceivers on ':1'.
WARNING: Unable to determine number of NVIDIA Display Devices on ':1'.
WARNING: Unable to determine number of NVIDIA X Screens on ':1'.
(nvidia-settings:19010): GLib-GObject-CRITICAL **: 15:47:12.071: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** (nvidia-settings:19010): CRITICAL **: 15:47:12.073: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed
Comment 17 Elijah 2021-02-10 13:48:06 CET
Created attachment 2270 [details]
nvidia_setting_window
Comment 18 Elijah 2021-02-10 13:51:57 CET
sorry, it looks like this is another issue with displaying the settings window.