(nvidia-settings:3676): GLib-GObject-CRITICAL **: 22:16:27.395: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

I get an error message when I run “nvidia-setting”

(nvidia-settings:3676): GLib-GObject-CRITICAL **: 22:16:27.395: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed

nvidia-bug-report.log.gz (311.1 KB)

That’s normal, just ignore.

How can I switch to Nvidia GPU? it doesn’t have “Prime Profile” in “Nvidia Settings”.

prime-select etc. is Ubuntu specific. With debian, please check:
https://forums.developer.nvidia.com/t/can-not-select-the-default-gpu-in-mxlinux/208891/4?u=generix

When I set Nvidia as primary GPU
and add script in rc.local file
xrandr --setprovideroutputsource modesetting NVIDIA-G0 && xrandr --auto

It shows black screen.

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:modesetting
Provider 1: id: 0x230 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0

10-nvidia-primary.conf :

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "PrimaryGpu" "yes"
    Option "AllowEmptyInitialConfiguration" "true"
EndSection

Running the commands in a rc script doesn’t work, the DM has to run them:
https://wiki.archlinux.org/title/NVIDIA_Optimus#Display_managers

It works, thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.