Nvidia-settings error


I installed nvidia driver 418 on my ubuntu 18.04.

  1. Running nvidia-smi gives this result:
    | NVIDIA-SMI 418.56 Driver Version: 418.56 CUDA Version: 10.1 |
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    | 0 GeForce GTX 950M Off | 00000000:01:00.0 Off | N/A |
    | N/A 46C P5 N/A / N/A | 135MiB / 2004MiB | 0% Default |

| Processes: GPU Memory |
| GPU PID Type Process name Usage |
| 0 1258 G /usr/lib/xorg/Xorg 76MiB |
| 0 1434 G /usr/bin/gnome-shell 57MiB |

  1. Running nvidia-settings allow me to open the Nviddia x server settings but at the same time this error appears:

(nvidia-settings:2490): GLib-GObject-CRITICAL **: 04:02:38.021: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 04:02:38.728: PRIME: Requires offloading
** Message: 04:02:38.728: PRIME: is it supported? yes

  1. Added to that while running nvidia-xconfig this appears:

WARNING: Unable to locate/open X configuration file.

WARNING: Unable to parse X.Org version string.

Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘xorg-server’ found

ERROR: Unable to write to directory ‘/etc/X11’.

  1. I also changed GRUB_CMDLINE_LINUX_DEFAULT value of /etc/default/grub to nouveau.modeset=0.

I need help.

nvidia-bug-report.log.gz (1.16 MB)
nvidia-bug-report.log (2.05 MB)

1 Like
  1. looks good.
  2. harmless.
  3. don’t run nvidia-xconfig, you have an Optimus (hybrid graphics) system, doing this would break your system. Everything is already set up by Ubuntu.
  4. ok, but should not be necessary, see 3)
    Any problems beyond that, your logs look fine?


We also have this error; BUT nvidia-settings will not launch, even with sudo…

Installed drivers and CUDA as per the nVIDIA instructions here: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

Please open a new thread, run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.