OpenSUSE suddenly only launches into IceWM

@IMIAD Then zypper in libnvidia-egl-wayland1 libnvidia-egl-gbm1 I only use the run files here but did see the same issue on one of my test systems…

Okay, I reverted to an older snapshot I created for something else so I’m not too far back and Gnome is back now. But it’s still a mystery to me, what exactly happened ^^"

tried to run it, there seem to be problems with libnvidia-egl-gbm1-1.1.2-7.7.x86_64 right now. Can’t reinstall steam either due to an RPM error, so maybe something’s broken right now

@IMIAD maybe :slightly_frowning_face: So what was the exact errors?

well, it’s mostly in german:

error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Read-only file system)
(1/2) Installieren: libnvidia-egl-gbm1-1.1.2-7.7.x86_64 ................[Fehler]
Installation von libnvidia-egl-gbm1-1.1.2-7.7.x86_64 fehlgeschlagen:
Fehler: Subprocess failed. Error: RPM fehlgeschlagen: Kommando mit Status 1 beendet.

The german part reads: RPM failed. Command ended with status 1

@IMIAD Your rolled back snapshot is read only… Have a read here https://en.opensuse.org/openSUSE:Snapper_Tutorial

You booted a read-only snapshot but didn’t really complete the roll-back?

Ah, I see! Alright, I rolled back now and the installation worked without a problem. Rebooted as well and everything is still fine, still booting into Gnome.

The Nvidia drivers are now back to Nouveau however, and if I try to use nvidia-smi after installing nvidia-compute-utils-G06 it says it can’t communicate with the Nvidia driver

Aand after restarting I’m back into IceWM. Well, at least now we know the origin of the error!

Is there any way to switch from ‘Nouveau’ to proprietary? Nouvea doesn’t seem to work with switcheroo and steam, my games keep using the integrated GPU instead of the Nvidia one.

Your GPU is supported by the Nvidia open driver, so you may follow the instructions in this blog post.
Make sure to install the video drivers in addition to the nvidia-open-driver-G06-signed-kmp-default package.
Or you may still use the closed source ones following the instructions on the SDB Wiki.

Maybe I’m misunderstanding something in the blog, but I followed the steps for Tumbleweed and still only IceWM. I can of course roll back, but if I want to use Nvidia-smi, I break my Gnome again. Is there a step to switching drivers I’m missing here?

To use nvidia-smi you need the proprietary nvidia drivers. There are other means to install nvidia drivers, but firts look if you really are using them. You should see something like:

bruno@LT-B:~> sudo lsmod |grep nvidia
[sudo] password for root: 
nvidia_drm            135168  7
nvidia_modeset       1830912  4 nvidia_drm
nvidia_uvm           3776512  0
nvidia              97103872  56 nvidia_uvm,nvidia_modeset
drm_ttm_helper         16384  1 nvidia_drm
video                  81920  4 asus_wmi,asus_nb_wmi,i915,nvidia_modeset
bruno@LT-B:~> switcherooctl glxinfo |grep renderer
OpenGL renderer string: NVIDIA GeForce GTX 960M/PCIe/SSE2
bruno@LT-B:~>

Hey, sorry for the late answer! I ran the console commands, here is the output:

IMIAD@linux:~> sudo lsmod |grep nvidia
[sudo] Passwort für root: 
nvidia_drm            135168  2
nvidia_modeset       2150400  2 nvidia_drm
nvidia              13119488  35 nvidia_modeset
drm_ttm_helper         16384  2 nvidia_drm,xe
video                  81920  3 xe,i915,nvidia_modeset
IMIAD@linux:~> switcherooctl glxinfo |grep renderer
OpenGL renderer string: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2

The Nvidia driver seems ok, but you have both xe and i915 engaged? Do you have more than one Intel GPUs on the system?
Maybe showing:

lspci -nnk |grep -EA3 "VGA|3D|Video"
switcherooctl list

might help us understand better?

@OrsoBruno That’s normal for newer intel hardware, when the switch comes to xe it should just happen…

@IMIAD and did libnvidia-egl-wayland1 libnvidia-egl-gbm1 packages get installed?

@malcolmlewis yes, the packages did get installed:

S  | Name                         | Summary                                       | Type
---+------------------------------+-----------------------------------------------+------
   | libnvidia-egl-gbm-devel      | Development package for libnvidia-egl-gbm     | Paket
i+ | libnvidia-egl-gbm1           | The GBM EGL external platform library         | Paket
i  | libnvidia-egl-gbm1-32bit     | The GBM EGL external platform library         | Paket
   | libnvidia-egl-wayland-devel  | Development package for libnvidia-egl-wayland | Paket
i+ | libnvidia-egl-wayland1       | The EGLStream-based Wayland external platform | Paket
i  | libnvidia-egl-wayland1-32bit | The EGLStream-based Wayland external platform | Paket
   | libnvidia-egl-x11-devel      | Development package for libnvidia-egl-x11     | Paket
i  | libnvidia-egl-x111           | NVIDIA XLib and XCB EGL Platform Library      | Paket
i  | libnvidia-egl-x111-32bit     | NVIDIA XLib and XCB EGL Platform Library      | Paket

@OrsoBruno I only have the one Intel GPU. Just to be safe, here’s the output of the commands:

IMIAD@linux:~> lspci -nnk |grep -EA3 "VGA|3D|Video"
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)
	Subsystem: Hewlett-Packard Company Device [103c:88e7]
	Kernel driver in use: i915
	Kernel modules: i915, xe
--
0000:01:00.0 3D controller [0302]: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] [10de:25a0] (rev a1)
	Subsystem: Hewlett-Packard Company Device [103c:88e7]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia
IMIAD@linux:~> switcherooctl list
Device: 0
  Name:        Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]
  Default:     yes
  Environment: DRI_PRIME=pci-0000_00_02_0

Device: 1
  Name:        NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile]
  Default:     no
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only
IMIAD@linux:~> zypper se libnvidia-egl
1 Like

@IMIAD Lets skip the gdm checks by, as root user running ln -s /dev/null /etc/udev/rules.d/61-gdm.rules then see if can get to GNOME…

This got me back Gnome! I had to reboot, but then, once I logged out, I could pick Gnome again on Log-In.

Unfortunately, switcheroo-ctl still doesn’t seem to work. I can now check with nvidia-smi, but when I start the text editor with the “dedicated GPU”-option, the app doesn’t show up in the list. :frowning: But at least the desktop is back!

Please note that the OP does not have gnome-session-xsession installed, so if one of the gdm udev rules matches GOTO="gdm_disable_wayland" the result is only ICEwm is shown.

That is “normal”, I mean I don’t know if it is intended but text editors show up that way.
Maybe there is nothing to gain from 3D GPU on text editing…
Open LibreOffice Calc and see if a “Compute” line shows up in nvidia-smi.