ERROR: Unable to query GPU information for Nvidia GTX970M Graphics Card

I will have to try all of this out this weekend. I am a bit swamped with school at the moment. I appreciate all of the work you have been putting into this and I will definitely let you know if it works for me as soon as I can find the time lol!

Yes I do have the nvidia repo installed from the community repositories.

Before I try this, this weekend or whenever I get time, I just want to make sure I am understanding this correctly. I am going to create a file with Kate to put into the /etc/X11/xorg.conf.d folder that contains the following information?


cat /etc/X11/xorg.conf.d/49-device.conf

Section "ServerLayout"
        Identifier "layout"
        Option "AllowNVIDIAGPUScreens"
EndSection

Then I should use xrandr --listproviders to see if I can see my graphics card?

The last part confuses me a bit more, but I will keep up on the forum to make sure I get this **** figured out. Thanks for all of the help thus far!

Hi
Only from the Section part, call the file 49-nvidia.conf for clarity.

When trying to call, this is what I recieve:

cat /etc/X11/xorg.conf.d/49-device.conf

cat: /etc/X11/xorg.conf.d/49-device.conf: No such file or directory


I used ls to see what is in my /etc/X11/xorg.conf.d and I do not have that 49-nvidia.conf.

00-keyboard.conf  11-evdev.conf     50-elotouch.conf    50-screen.conf
10-evdev.conf     40-libinput.conf  50-extensions.conf  70-wacom.conf
10-quirks.conf    50-device.conf    50-monitor.conf     90-intel.conf


Maybe this is where the problem lies?

Hi
Yes, you need to create the file :wink: Then type or copy/paste the content in and save…

Sorry, school has me all worn out and I haven’t had enough coffee this morning lol.

So, I created the file, put it in the xorg.conf.d folder, and can now call it. When I use xrandr --listproviders I still recieve this

Providers: number : 1
Provider 0: id: 0x47; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offloa
d); crtcs: 3; outputs: 5; associated providers: 0; name: modesetting
    output eDP-1
    output DP-1
    output HDMI-1
    output DP-2
    output HDMI-2


I then tried the following code you had and recieved this:

__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo|egrep "OpenGL vendor|OpenGL renderer"
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  37
  Current serial number in output stream:  38

Hi
Did you reboot? Can you run the following commands again;


/sbin/**lspci** -nnk | egrep -A3 "VGA|Display|3D"
nvidia-smi

I rebooted and ran the commands. I am still receiving this:

00:02.0 **VGA** compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b]
 (rev 06)
        Subsystem: Dell Device [1028:0708]
        Kernel driver in use: i915
        Kernel modules: i915
--
01:00.0 **3D** controller [0302]: NVIDIA Corporation GM204M [GeForce GTX 970M] [10de:13d8] 
(rev a1)
        Subsystem: Dell Device [1028:0708]
        Kernel modules: nouveau
3b:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E2400 Gigabit Ethernet Cont
roller [1969:e0a1] (rev 10)


and

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure
 that the latest NVIDIA driver is installed and running.



I uninstalled all nouveau except for the two you said to save and have blacklisted all of them, but for some reason it is still showing up.

The libdrm_nouveau2 and libvdpau_nouveau are actually showing up as Protected – Do Not Modify. Is this alright or do these need to be uninstalled/blacklisted?

Hi
So you don’t have the nvidia driver installed, nouveau blacklisted and initrd rebuilt…

There should be a file in /etc/modprobe.d to blacklist the nouveau driver, but need to ensure the nvidia rpms are installed first…

https://en.opensuse.org/SDB:NVIDIA_drivers

I do have the nvidia rpms installed though. /home/d2r/Documents/nvidia drivers.png

Hi
If so, the should show up in the lspci output as available…

For example;


 /sbin/lspci -nnk |egrep -A3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller [8086:0152] (rev 09)
    Subsystem: Intel Corporation Device [8086:2035]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1)
    Subsystem: ZOTAC International (MCO) Ltd. Device [19da:6326]
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia

Alright, so I am guessing I have not properly blacklisted nouveau despite it all supposedly being blacklisted. It just seems to keep loading. This is what I get when I do that commangd

00:02.0 **VGA** compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b]
 (rev 06)
        Subsystem: Dell Device [1028:0708]
        Kernel driver in use: i915
        Kernel modules: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GM204M [GeForce GTX 970M] [10de:1[b]3d8] 
(rev a1)
        Subsystem: Dell Device [1028:0708]
        Kernel modules: nouveau
3b:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E2400 Gigabit Ethernet Cont
roller [1969:e0a1] (rev 10)
--
**3d**:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Ca
rd Reader [10ec:5227] (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader [10e
c:5227]
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci


Hi
Do you see the following output from;


fgrep "nouveau" /etc/modprobe.d/*
{you should see something similar}

/etc/modprobe.d/50-nvidia.conf:blacklist nouveau

If not create the file then run the command as root user;


mkinitrd

Can you confirm what is installed?


zypper se -si *nvidia*

when I run the fgrep “nouveau” /etc/modprobe.d/* I get

/etc/modprobe.d/nvidia-default.conf:blacklist **nouveau**


Here is what I get after running zypper se -si nvidia

Loading repository data...
Reading installed packages...

S  | Name                      | Type    | Version                               | Arch
   | Repository
---+---------------------------+---------+---------------------------------------+-----
---+------------------------
i  | nvidia-computeG05         | package | 460.73.01-lp152.37.1                  | x86_
64 | NVIDIA
i  | nvidia-computeG05         | package | 460.73.01-lp152.37.1                  | x86_
64 | nVidia Graphics Drivers
i  | nvidia-gfxG05-kmp-default | package | 460.73.01_k5.3.18_lp152.19-lp152.37.1 | x86_
64 | NVIDIA
i  | nvidia-gfxG05-kmp-default | package | 460.73.01_k5.3.18_lp152.19-lp152.37.1 | x86_
64 | nVidia Graphics Drivers
i  | nvidia-glG05              | package | 460.73.01-lp152.37.1                  | x86_
64 | NVIDIA
i  | nvidia-glG05              | package | 460.73.01-lp152.37.1                  | x86_
64 | nVidia Graphics Drivers
i+ | x11-video-nvidiaG05       | package | 460.73.01-lp152.37.1                  | x86_
64 | NVIDIA
i+ | x11-video-nvidiaG05       | package | 460.73.01-lp152.37.1                  | x86_
64 | nVidia Graphics Drivers


Hi
So did you run the mkinitrd command?

Again, as root user, does the following appear in the output of;


lsinitrd | grep nvidia

etc/modprobe.d/nvidia-default.conf

Yes, I previously ran the mkinitrd command and have since rebooted. After running lsinitrd | grep nvidia as root I received several outputs like this:

-rw-r--r--   1 root     root          192 Mar 13 09:57 lib/firmware/**nvidia**/gv100/gr/gpc
cs_sig.bin
-rw-r--r--   1 root     root         7664 Mar 13 09:57 lib/firmware/**nvidia**/gv100/gr/sw_
bundle_init.bin
-rw-r--r--   1 root     root         9756 Mar 13 09:57 lib/firmware/**nvidia**/gv100/gr/sw_
ctx.bin
-rw-r--r--   1 root     root        12296 Mar 13 09:57 lib/firmware/**nvidia**/gv100/gr/sw_
method_init.bin
-rw-r--r--   1 root     root         2728 Mar 13 09:57 lib/firmware/**nvidia**/gv100/gr/sw_
nonctx.bin
drwxr-xr-x   1 root     root            0 Mar 13 10:02 lib/firmware/**nvidia**/gv100/nvdec
-rw-r--r--   1 root     root         4352 Mar 13 09:57 lib/firmware/**nvidia**/gv100/nvdec/
scrubber.bin
drwxr-xr-x   1 root     root            0 Mar 13 10:02 lib/firmware/**nvidia**/gv100/sec2
-rw-r--r--   1 root     root          656 Mar 13 09:57 lib/firmware/**nvidia**/gv100/sec2/d
esc.bin
-rw-r--r--   1 root     root        91136 Mar 13 09:57 lib/firmware/**nvidia**/gv100/sec2/i
mage.bin
-rw-r--r--   1 root     root          192 Mar 13 09:57 lib/firmware/**nvidia**/gv100/sec2/s
ig.bin


However, after running etc/modprobe.d/nvidia-default.conf it is also now telling me

bash: etc/modprobe.d/nvidia-default.conf: No such file or directory

etc/modprobe.d/nvidia-default.conf shows

blacklist nouveau