So I just installed leap 15.3, and then I disabled nouveau and installed all the nvidia drivers from the nvidia repo. I rebooted and everything came up just fine.
Then as I was installing other things I remembered I wanted kernel-source (for later when I setup virtualbox), so I installed it along with switching all my system packages to packman.
Then when I rebooted, it went to what we used to call run level 3 (I can’t remember the right systemd term for it now). I was like, oh no, why. The only thing I could see from journalctl was that nvidia ‘tainted’ the kernel. But then I thought, well, I can’t see anything really wrong and a ton of people run with this nvidia tainted kernel thing, so I just typed ‘startx’ from run level 3, and voila, I have my gui and plasma desktop back.
But I can’t seem to get the system on boot to bring up the display manager, and it always goes to run level 3 now. I can get into plasma by typing ‘startx’, but I shouldn’t have to do that. What might be wrong here?
When that happens to me, I just reinstall the nvidia driver. I normally use zypper to do the install, so in my case I first identify all the nvidia components:
zypper --no-refresh se --installed-only -r NVIDIA
Then user a single zypper install --force on all at the same time, the following line will echo the necessary install command:
I was hoping this would work, but after force reinstalling everything and rebooting, same thing. It only boots to runlevel 3, then I have to login and type startx.
Graphical (kind of like run level 5) comes after multi-user (kind of like run level 3). Maybe the past failure or install attempts has resulted in the default changing down.
This post has instructions for changing the default, including how to switch without rebooting:
You have it backwards. Multi-user is everything except graphical, roughly equivalent to runlevel 3. openSUSE never used runlevel 4. Graphical equates to 5. As long as multi-user is returned from get-default, the GUI won’t start until you run startx, or switch to graphical.target. Switching default to graphical.target, which is what you’re complaining you don’t have is simple:
sudo systemctl set-default graphical.target
Once done, unless something about your greeter is broken, next boot should produce your expected GUI login greeter.
Before committing, you can test if graphical.target is broken by appending 5 to the linux line using the E key at the Grub menu.