You can do it in YaST as well.
If you only select x11-video-nvidiaG03 the wrong kmp packages will be selected automatically, because you explicitely uninstalled nvidia-gfxG03-kmp-desktop already, so YaST prefers to install nvidia-gfxG03-kmp-default (or any other). x11-video-nvidiaG03 requires any nvidia-gfxG03-kmp package, otherwise you would have different x11-video-nvidiaG03 packages for each kernel flavor, although it’s actually unrelated to the kernel anyway.
Just select the correct nvidia-gfxG03-kmp-desktop package for installation and all should be well. (the nvidia-gfxG03-kmp-default should be automatically deselected then). But check that the other necessary packages are installed too. Especially nvidia-glG03, this is only recommended (It might make sense to not install it on Optimus systems, as it breaks the intel driver. Without it, you don’t get 3D support, i.e. GL, but you can still use the nvidia GPU for CUDA), so will not be selected automatically if you already uninstalled it once.
Or use the corresponding zypper line:
sudo zypper in nvidia-computeG03 nvidia-gfxG03-kmp-desktop nvidia-glG03 nvidia-uvm-gfxG03-kmp-desktop x11-video-nvidiaG03
(it’s not necessary to specifiy the version numbers)
Well, that’s the point. You suspect that, and mainly because I suggested that it might have been the case, I think.
But, as I noticed in the meantime, the nvidia driver packages do not have any dependency on kernel-default (or any specific kernel-xxx), so this cannot be the reason.
Just have a look at the dependencies in YaST if you don’t believe me.
Or try to mark nvidia-gfxG03-kmp-default for installation in YaST. You’ll see that YaST WILL NOT select kernel-default as well, only kernel-default-devel which is of course required to build the kernel module for kernel-default.
But my point has always been that people that are not geeks like us should not need to worry or even know about this kind of stuff.
I fully agree with that.
That’s why I file bug reports about such problems (and try to find solutions/improvements), and try to explain it again and again.
I caught it at the update so I had no bad experience. But if you don’t pay attention or know what those packages are in update details you could be in a world of hurt. Something is broken and under some condition, yet to be determined, the update pulls in bogus packages.
I wouldn’t really call it “bogus” packages. It’ perfectly fine to use kernel-default if you have all corresponding kmp packages installed.
But the question is what update caused kernel-default to be installed. You originally said it happened with the kernel update, but I didn’t experience this at all on a few systems, including two with the nvidia driver.
As a side-note, any other packages (especially kmp packages) might require a specific kernel. Not just the nvidia driver.
The NVIDA 230 card did not work with 02 drivers which I tried as a test.
Hm. It’s listed as supported by the G02 driver.
Manualy changing the drivers may have triggered the Yast black list thing but I don’t see why that would drag the wrong kernel flavor in but then agian I really don’t understand the rationality for the feature any way.
Well, it’s not that difficult to comprehend.
I’ll try to explain it again:
The nvidia driver requires the nvidia kernel module to work.
The kernel module is split out into a subpackage, a specifc one for each different kernel flavor (nvidia-gfxG03-kmp-default, nvidia-gfxG03-kmp-desktop, and so on). You need to install the matching one for your kernel of course.
Now, x11-video-nvidiaG03 (the actual X driver), does only require any kmp package via package dependencies. There would have to be a different package for each kernel flavor otherwise, which would eradicate the point of splitting out the kmp packages completely.
If you uninstalled nvidia-gfxG03-kmp-desktop (or any other package) manually, YaST/zypper treats it as “unwanted”, so it will not install it automatically any more. In this case of nvidia-gfxG03-kmp packages, there is another one that fulfills the requirement, nvidia-gfxG03-kmp-default. So it will install that instead, because “the user said that he/she doesn’t want nvidia-gfxG03-kmp-desktop on this system”.
Btw, this “SoftLocks” feature is nothing new. It was in there at least in 12.3, I don’t remember exactly when it was introduced though.
BTW does any know where these list are kept maybe I need to purge them.
/var/lib/zypp/SoftLocks
This is a text file, so you can take a look inside. Just remove it, and no packages are treated as unwanted any more.
Note that this might cause some/a lot packages to be installed automatically, when you next enter YaST->Software Management or use “zypper in”.