Cuda on Notebook

Hi all.

Three years ago I had a lot of help (for which I’m forever glad) from this forum to make my notebook’ discreet gpu card work properly: it was the " nVidia + Cuda + Bumblebee + Codecs: “Recipe” not working on openSUSE 15.2" topic.

It worked nicely since then (even leading to the introduction of GPU usage at my workplace, however there are no “optimus and likes” issues), but unfortunately 2 weeks ago the HD from that notebook failed.

15.2 days have already passed, so I’m now using the latest version of openSUSE. However, as mentioned in the " Cuda + Nvidia + bumblebee + codecs “safe” way" topic, the path for bumblebee became way too rocky.

As such, I tried the most simple thing to have cuda working: installed the opensuse 15.5 with nomodeset enabled, disabled the nvidia drivers repository and included the official cuda repository for just then install both cuda and the drivers from there, removed nomodeset and finally rebooted.

Unfortunately, it didn’t work, and I’m needing help to make it work. :frowning:

Here follows some commands outputs to better show what is happening:

#> nvidia-settings

(nvidia-settings:18205): Gtk-WARNING **: 23:44:19.780: Theme parsing error: gtk.css:1552:16: '-gtk-icon-size' is not a valid property name

(nvidia-settings:18205): Gtk-WARNING **: 23:44:19.780: Theme parsing error: gtk.css:1555:16: '-gtk-icon-size' is not a valid property name

ERROR: NVIDIA driver is not loaded


(nvidia-settings:18205): GLib-GObject-CRITICAL **: 23:44:19.853: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:18205): CRITICAL **: 23:44:19.854: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. 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.
~> sudo lspci  |grep -i nvidia
[sudo] senha para root: 
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
johannes@localhost:~> sudo lspci  |grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
johannes@localhost:~> glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
~> sudo dmesg |grep -i nvidia
[    0.867089] integrity: Loaded X.509 cert 'Local build for nvidia-gfxG05 460.27.04 on 2020-12-19: 5f561852256111ea49325f56d3536fbc4df207c7'
[    0.867217] integrity: Loaded X.509 cert 'Local build for nvidia-driver-G06 535.113.01 on 2023-10-14: 32bbe269ba024978f081426f683e391d8766de43'
[    0.867344] integrity: Loaded X.509 cert 'Local build for nvidia-gfxG05 470.199.02 on 2023-10-18: b9e5454edc90705ad2a09efccc7ff3958cc13da6'
[   12.120230] audit: type=1400 audit(1697767772.048:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=899 comm="apparmor_parser"
[   12.120233] audit: type=1400 audit(1697767772.048:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=899 comm="apparmor_parser"
~> __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep "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:  47
  Current serial number in output stream:  48
~> __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia nvidia-settings 

(nvidia-settings:2181): Gtk-WARNING **: 14:43:40.622: Theme parsing error: gtk.css:1552:16: '-gtk-icon-size' is not a valid property name

(nvidia-settings:2181): Gtk-WARNING **: 14:43:40.622: Theme parsing error: gtk.css:1555:16: '-gtk-icon-size' is not a valid property name

ERROR: NVIDIA driver is not loaded


(nvidia-settings:2181): GLib-GObject-CRITICAL **: 14:43:40.697: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:2181): CRITICAL **: 14:43:40.699: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. 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.
~> ./deviceQuery
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 100
-> no CUDA-capable device is detected
Result = FAIL

Also, there are no /proc/driver/nvidia/version and /dev/nvi* files… :frowning:

Does anybody have any idea on how to solve this? Thanks a lot in advance! :slight_smile:

@johannesrs Hi, are you running X11? Prime Render Offload is the way to go…

Can you show the output from;

/sbin/lspci -nnk | grep -EA 3 "VGA|Display|3D"
1 Like

Hi @malcolmlewis , how are you?

Thanks for the reply. Of course, the output you requested follows:

sudo /sbin/lspci -nnk | grep -EA 3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
        Subsystem: Acer Incorporated [ALI] Device [1025:1264]
        Kernel driver in use: i915
        Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)
        Subsystem: Acer Incorporated [ALI] Device [1025:1265]
        Kernel modules: nouveau, nvidia_drm, nvidia
06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader [10ec:5287] (rev 01)

I think the output seems a bit odd (as far as I know I don’t have nouveau active, for example): can you guide me through it? Could you notice something specific that might indicate the right direction to solve this issue?

Thanks a lot!

@johannesrs I’m good thanks :smile:

Assuming your running Xorg? Can you check did the system get the likes of suse-prime, bbswitch installed (you should not need)?

Can you show the output from cat /proc/cmdline as well.

I would also consider the G06 version for your card…

Have a read here too: https://download.nvidia.com/XFree86/Linux-x86_64/545.23.06/README/primerenderoffload.html

Hi @malcolmlewis , thanks for the prompt reply (and sorry for my late one… :stuck_out_tongue: )

How could I properly check if I’m using XOrg or Wayland? The best I could think of was to look for what of wayland is installed:

~> zypper se -i wayland
Carregando dados do repositório...
Lendo os pacotes instalados...

S | Name                     | Summary                                                                     | Type
--+--------------------------+-----------------------------------------------------------------------------+-------
i | kwayland                 | KDE Wayland library                                                         | pacote
i | kwayland-integration     | Integration plugins for various KDE frameworks for wayland windowing system | pacote
i | libgstwayland-1_0-0      | GStreamer Streaming-Media Framework Plug-Ins - Wayland backend              | pacote
i | libqt5-qtwayland         | Qt 5 Wayland Addon                                                          | pacote
i | libQt5WaylandClient5     | Qt 5 Wayland Addon                                                          | pacote
i | libQt5WaylandCompositor5 | Qt 5 Wayland Addon                                                          | pacote
i | libva-wayland2           | Wayland backend for the Video Acceleration API                              | pacote
i | libwayland-client0       | Wayland core client library                                                 | pacote
i | libwayland-cursor0       | Wayland cursor library                                                      | pacote
i | libwayland-egl1          | Additional egl functions for wayland                                        | pacote
i | libwayland-server0       | Wayland core server library                                                 | pacote
i | plasma5-session-wayland  | KDE Plasma 5 Wayland Session                                                | pacote
i | wayland-utils            | Wayland diagnostic utilities                                                | pacote
i | xwayland                 | X                                                                           | pacote

From the looks of it, to me it is not actually installed (despite there being several libraries), or the “xwayland” is the culprit here? :wink:

About the other packages mentioned:

~> zypper se prime bbswitch
Carregando dados do repositório...
Lendo os pacotes instalados...

S | Name                      | Summary                                                                       | Type
--+---------------------------+-------------------------------------------------------------------------------+-------------
  | bbswitch                  | Bumblebee ACPI kernel module                                                  | pacote
  | bbswitch                  | Bumblebee ACPI kernel module                                                  | pacote fonte
  | bbswitch-kmp-default      | Bumblebee ACPI kernel module                                                  | pacote
  | courier-prime-fonts       | Monospace font similar to Courier                                             | pacote
  | courier-prime-fonts       | Monospace font similar to Courier                                             | pacote fonte
  | libprimecount-devel       | Development files for the primecount library                                  | pacote
  | libprimecount7            | C/C++ library for counting prime numbers                                      | pacote
  | libprimesieve-devel       | Development files for the primesieve library                                  | pacote
  | libprimesieve11           | C/C++ library for generating prime numbers                                    | pacote
i | plasma5-applet-suse-prime | Plasma 5 applet for controlling SUSE Prime                                    | pacote
  | plasma5-applet-suse-prime | Plasma 5 applet for controlling SUSE Prime                                    | pacote fonte
  | primecount                | Count the number of primes                                                    | pacote
  | primecount                | Count the number of primes                                                    | pacote fonte
  | primesieve                | A prime number generator                                                      | pacote
  | primesieve                | A prime number generator                                                      | pacote fonte
  | python-pyprimes           | Generate and test for prime numbers                                           | pacote fonte
  | python3-pyprimes          | Generate and test for prime numbers                                           | pacote
i | suse-prime                | GPU (nvidia/intel) selection for NVIDIA optimus laptops with bbswitch support | pacote
  | suse-prime                | GPU (nvidia/intel) selection for NVIDIA optimus laptops with bbswitch support | pacote fonte
  | suseprime-appindicator    | SUSE Prime appindicator for switching between GPUs                            | pacote
  | suseprime-appindicator    | SUSE Prime appindicator for switching between GPUs                            | pacote fonte
  | texlive-amslatex-primer   | Getting up and running with AMS-LaTeX                                         | pacote

and finally:

~> cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.31-default root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 splash=silent resume=/dev/disk/by-uuid/f0e0b5b1-4a7c-4309-a967-9304fe72eb39 preempt=full quiet security=apparmor mitigations=auto

About the G06 version, the official nvidia cuda repository (http://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64/) still does not have it (and to avoid any different version issues I preferred to keep only the cuda repository ones.

Finally, the https://download.nvidia.com/XFree86/Linux-x86_64/545.23.06/README/primerenderoffload.html link instructs how to make sure that XOrg is properly configured for the prime offloading. However, while I do have a “/var/log/Xorg.0.log” file it lacks any mention to nvidia. The xandr command also doesn’t return something good:

> xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x42; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 1; associated providers: 0; name: modesetting
    output eDP-1

Any ideas or suggestions on how to proceed?

Thanks a lot!

@johannesrs The 545.23.06 version is there… which is what I’m running here on Tumbleweed.

So, suse-prime is installed which likely is one issue, also running Wayland, I run Xorg, but I’m on GNOME.

To check run echo $XDG_SESSION_TYPE in a terminal to see if wayland or X11.

Is nouveau blacklisted? Check with lsinitrd | grep nouveau as root user and post the output.

Hi @malcolmlewis.

Yes, 545.23.06 version are on the cuda repository, but there is no G06 (really, just checked once again right now)… :frowning:

You mean I should ditch the suse-prime now?

~> echo $XDG_SESSION_TYPE
x11

Good news, it is actually x11 and not wayland. :slight_smile:

However:

> sudo lsinitrd | grep nouveau
drwxr-xr-x   1 root     root            0 Sep 28 07:20 lib/modules/5.14.21-150500.55.31-default/kernel/drivers/gpu/drm/nouveau
-rw-r--r--   1 root     root      1070355 Sep 28 07:20 lib/modules/5.14.21-150500.55.31-default/kernel/drivers/gpu/drm/nouveau/nouveau.ko.zst

Shouldn’t the nvidia drivers, and specially the cuda, installation automagically blacklist nouveau? And in such case shouldn’t it not be loaded even if present? :stuck_out_tongue:

@johannesrs looks like you might need to add one…

Create a /etc/modprobe.d/50-nvidia.conf file containing;

blacklist nouveau
options nouveau modeset=0

Then run mkinitrd, reboot and check the lsinitrd output…

Hi @malcolmlewis .

Ok, created the file, installed dracut-mkinitrd-deprecated and ran mkinitrd:

> sudo mkinitrd
Creating initrd: /boot/initrd-5.14.21-150500.55.31-default
dracut: touch /var/log/YaST2/mkinitrd.log failed.
dracut: Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-5.14.21-150500.55.31-default 5.14.21-150500.55.31-default
dracut: dracut module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command 'networkctl' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command '/usr/lib/systemd/systemd-networkd' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command '/usr/lib/systemd/systemd-networkd-wait-online' could not be found!
dracut: dracut module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'jq' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found!
dracut: dracut module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'jq' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: *** Including module: drm ***
dracut: *** Including module: plymouth ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: suse-btrfs ***
dracut: *** Including module: suse-xfs ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: haveged ***
dracut: *** Including module: ostree ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including module: suse ***
dracut: *** Including module: suse-initrd ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:           real
dracut: Files:          1115
dracut: Linked:         1 files
dracut: Compared:       0 xattrs
dracut: Compared:       173 files
dracut: Saved:          692 B
dracut: Duration:       0.009053 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing GenuineIntel.bin ***
dracut: *** Store current command line parameters ***
dracut: Stored kernel commandline:
dracut: rd.driver.pre=btrfs
dracut:  resume=UUID=f0e0b5b1-4a7c-4309-a967-9304fe72eb39
dracut:  root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 rootfstype=btrfs rootflags=rw,relatime,space_cache,subvolid=256,subvol=/@,subvol=@
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initrd-5.14.21-150500.55.31-default' ***
dracut: *** Creating initramfs image file '/boot/initrd-5.14.21-150500.55.31-default' done ***

Let’s see what happens after reboot after a post edition in a few moments… :stuck_out_tongue:

…And no improvements:

~> sudo lsinitrd | grep nouveau
drwxr-xr-x   1 root     root            0 Sep 28 07:20 lib/modules/5.14.21-150500.55.31-default/kernel/drivers/gpu/drm/nouveau
-rw-r--r--   1 root     root      1070355 Sep 28 07:20 lib/modules/5.14.21-150500.55.31-default/kernel/drivers/gpu/drm/nouveau/nouveau.ko.zst
~> cat /etc/modprobe.d/50-nvidia.conf
blacklist nouveau
options nouveau modeset=0

Despite the blacklisting + mkinitrd, the lsinitrd still finds nouveau… :frowning:

@johannesrs So boot to multi-user target, and remove suse-prime and force the re-install of the nvidia rpms…

systemctl set-default multi-user.target
systemctl reboot

zypper rm suse-prime
zypper in -f <your nvidia rpms>
systemctl set-default graphical.target
systemctl reboot

Now I also run nvidia_drm.modeset=1 as a grub kernel option. But some use nosimplefb=1 one may be needed…

Hi @malcolmlewis .

Just did all commands suggested (and even edited the grub command to include the “drm.modeset=1” in the grub menu), but unexplainably there are no changes:

~> sudo lsinitrd | grep nouveau
drwxr-xr-x   1 root     root            0 Sep 28 07:20 lib/modules/5.14.21-150500.55.31-default/kernel/drivers/gpu/drm/nouveau
-rw-r--r--   1 root     root      1070355 Sep 28 07:20 lib/modules/5.14.21-150500.55.31-default/kernel/drivers/gpu/drm/nouveau/nouveau.ko.zst
~> cat /etc/modprobe.d/50-nvidia.conf
blacklist nouveau
options nouveau modeset=0
~> echo $XDG_SESSION_TYPE
x11
~> xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x42; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 1; associated providers: 0; name: modesetting
    output eDP-1
~> grep -i nvidia /var/log/Xorg.0.log
[    21.463] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.31-default root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 splash=silent resume=/dev/disk/by-uuid/f0e0b5b1-4a7c-4309-a967-9304fe72eb39 preempt=full quiet security=apparmor mitigations=auto nvidia_drm.modeset=1
~> cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.31-default root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 splash=silent resume=/dev/disk/by-uuid/f0e0b5b1-4a7c-4309-a967-9304fe72eb39 preempt=full quiet security=apparmor mitigations=auto nvidia_drm.modeset=1
~> sudo /sbin/lspci -nnk | grep -EA 3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
        Subsystem: Acer Incorporated [ALI] Device [1025:1264]
        Kernel driver in use: i915
        Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)
        Subsystem: Acer Incorporated [ALI] Device [1025:1265]
        Kernel modules: nouveau, nvidia_drm, nvidia
06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader [10ec:5287] (rev 01)
~> sudo dmesg |grep -i nvidia
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.31-default root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 splash=silent resume=/dev/disk/by-uuid/f0e0b5b1-4a7c-4309-a967-9304fe72eb39 preempt=full quiet security=apparmor mitigations=auto nvidia_drm.modeset=1
[    0.017221] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.31-default root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 splash=silent resume=/dev/disk/by-uuid/f0e0b5b1-4a7c-4309-a967-9304fe72eb39 preempt=full quiet security=apparmor mitigations=auto nvidia_drm.modeset=1
[    0.850927] integrity: Loaded X.509 cert 'Local build for nvidia-gfxG05 460.27.04 on 2020-12-19: 5f561852256111ea49325f56d3536fbc4df207c7'
[    0.851059] integrity: Loaded X.509 cert 'Local build for nvidia-driver-G06 535.113.01 on 2023-10-14: 32bbe269ba024978f081426f683e391d8766de43'
[    0.851193] integrity: Loaded X.509 cert 'Local build for nvidia-gfxG05 470.199.02 on 2023-10-18: b9e5454edc90705ad2a09efccc7ff3958cc13da6'
[   12.436192] audit: type=1400 audit(1698028429.364:12): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=787 comm="apparmor_parser"
[   12.436198] audit: type=1400 audit(1698028429.364:13): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=787 comm="apparmor_parser"
~> glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
~> __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep "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:  47
  Current serial number in output stream:  48

:frowning:

Any ideas on what to do next? :frowning:

@johannesrs Very strange… so in the system BIOS, are there any igpu/dgpu options?

In this thread a few reboots helped…
https://forums.opensuse.org/t/sdb-says-nouveau-is-blacklisted-when-nvidia-drivers-installed-not-for-me/150959/

Can you try dracut -f --regenerate-all instead of mkinitrd.

I thought already to look at the bios, but no gpu specific options. Moreover, this is the very same machine and configuration of the previous 15.2+bumblebee installation, except for the new HD and 15.5 (so only the boot order was modified).

type or paste code here~> sudo dracut -f --regenerate-all
[sudo] senha para root: 
dracut: Executing: /usr/bin/dracut --kver=5.14.21-150500.55.31-default -f
dracut: dracut module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command 'networkctl' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command '/usr/lib/systemd/systemd-networkd' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command '/usr/lib/systemd/systemd-networkd-wait-online' could not be found!
dracut: dracut module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'jq' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found!
dracut: dracut module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'jq' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: *** Including module: drm ***
dracut: *** Including module: plymouth ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: suse-btrfs ***
dracut: *** Including module: suse-xfs ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: haveged ***
dracut: *** Including module: ostree ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including module: suse ***
dracut: *** Including module: suse-initrd ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:           real
dracut: Files:          1115
dracut: Linked:         1 files
dracut: Compared:       0 xattrs
dracut: Compared:       173 files
dracut: Saved:          692 B
dracut: Duration:       0.011594 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing GenuineIntel.bin ***
dracut: *** Store current command line parameters ***
dracut: Stored kernel commandline:
dracut: rd.driver.pre=btrfs
dracut:  resume=UUID=f0e0b5b1-4a7c-4309-a967-9304fe72eb39
dracut:  root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 rootfstype=btrfs rootflags=rw,relatime,space_cache,subvolid=256,subvol=/@,subvol=@
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initrd-5.14.21-150500.55.31-default' ***
dracut: *** Creating initramfs image file '/boot/initrd-5.14.21-150500.55.31-default' done ***

In that thread they mentioned a turn off, no reboot: I’ll try that now. They also mentioned a different startup option (initcall_blacklist=nouveau), should I try it out? Or are there issues in using it?

Still failing: I’m really not understanding what can possibly be happening here… :frowning:

@johannesrs Can you post the following output;

zypper se -si nvidia

Are there and Xorg conf files in either /etc/X11 or /etc/X11/xorg.conf.d.

@malcolmlewis , just did, and indeed the xorg conf file available is quite strange:

~> zypper se -si nvidia
Carregando dados do repositório...
Lendo os pacotes instalados...

S  | Name                       | Type   | Version                          | Arch   | Repository
---+----------------------------+--------+----------------------------------+--------+-------------------------------------------------------------
i+ | kernel-firmware-nvidia     | pacote | 20230724-150500.3.6.1            | noarch | update-sle (15.5)
i+ | kernel-firmware-nvidia     | pacote | 20230724-150500.3.6.1            | noarch | Update repository with updates from SUSE Linux Enterprise 15
i+ | nvidia-computeG05          | pacote | 545.23.06-0                      | x86_64 | cuda-opensuse15-x86_64
i+ | nvidia-gfxG05-kmp-default  | pacote | 545.23.06_k4.12.14_lp150.12.82-0 | x86_64 | cuda-opensuse15-x86_64
i+ | nvidia-glG05               | pacote | 545.23.06-0                      | x86_64 | cuda-opensuse15-x86_64
i+ | openSUSE-repos-Leap-NVIDIA | pacote | 20230804.41e41a9-lp155.2.6.1     | x86_64 | update-oss (15.5)
i+ | openSUSE-repos-Leap-NVIDIA | pacote | 20230804.41e41a9-lp155.2.6.1     | x86_64 | Repositório principal de atualização
i+ | x11-video-nvidiaG05        | pacote | 545.23.06-0                      | x86_64 | cuda-opensuse15-x86_64
:~> ll /etc/X11/xorg* /etc/X11/xorg.conf.d/xorg*
ls: não foi possível acessar '/etc/X11/xorg.conf.d/xorg*': Arquivo ou diretório inexistente
-rw-r--r-- 1 root root 1265 out 19 23:33 /etc/X11/xorg.conf
-rw-r--r-- 1 root root  604 out 19 08:06 /etc/X11/xorg.conf.install
-rw-r--r-- 1 root root    0 out 19 23:33 /etc/X11/xorg.conf.nvidia-xconfig-original

/etc/X11/xorg.conf.d:
total 16
-rw-r--r-- 1 root root 406 out 19 08:09 00-keyboard.conf
-rw-r--r-- 1 root root 529 jul  1  2011 50-device.conf
-rw-r--r-- 1 root root 527 jul  1  2011 50-monitor.conf
-rw-r--r-- 1 root root 491 jul  1  2011 50-screen.conf
~> cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 535.104.12

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from data in "/etc/sysconfig/mouse"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "yes"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    VendorName     "NVIDIA Corporation"
    ChipId          0x0
    ChipRev         0x0
    IRQ             0
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Why would it be generated in this way? And more importantly, how can I solve it?

@johannesrs So delete those three files in /etc/X11 directory and reboot. You did delete the suse-prime package, no bbswitch files or the like installed?

@malcolmlewis Yes, I did remove it, but the zypper in -f <your nvidia rpms> command resulted in it being reinstalled. Should I have removed it again before rebooting for the graphical.target?

I’m uninstalling it again (I’ve read so much about this app, shouldn’t it be a great thing to have instead of a source of troubles?) and backing up and removing the xorg files in /etc/x11 for another reboot now.

Ok, still not working, the deleted files or likes were not recreated, the only different output seems to come from Xorg.0.log:

~> grep -i nvidia /var/log/Xorg.0.log
[    23.649] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.31-default root=UUID=95f4e60e-1210-4b32-97e3-6fdd4ef7e963 splash=silent resume=/dev/disk/by-uuid/f0e0b5b1-4a7c-4309-a967-9304fe72eb39 preempt=full quiet security=apparmor nvidia_drm.modeset=1 mitigations=auto
[    28.268] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event13)
[    28.269] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event14)
[    28.270] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event15)
[    28.271] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event16)

But nothing else is changed still… :frowning:

Damn! Specially the nouveau driver, still appearing on the lspci command… I wish all calls for it could be removed from the installation…

@johannesrs can you post the output from /sbin/laspci -nnk | grep -EA3 "VGA|Display|3D".