Video corrpution issues

Ok, I keep having weird issues with OpenSuse 42.2 I have an Nvidia 750ti video card. When I’m minimizing and maximizing apps in KDE, the video often is corrputed and only part of the app is visible. I tried following the instructions

zypper addrepo --refresh http://http.download.nvidia.com/opensuse/leap/42.2 NVIDIA
zypper install-new-recommends

Thinking if I installed the nvidia drivers it would maybe fix my issue. After doing the steps above, my OS didn’t boot. It just booted me to a recovery mode. I logged in and used yast to uninstall all nvidia related packages. Rebooted and I’m back into KDE. I still wonder if I got Nvidia drivers to work if it would fix my issue. Or maybe it’s something else.

Here’s a link of a picture of what my screen does often.

https://www.dropbox.com/s/7r9hy65d38llb8y/IMG_20170219_193153.jpg?dl=0

Firefox was showing my gmail inbox but then the whole center of the screen went gray. If I were to start moving my mouse around, it would start making blocks where I can see parts of the screen of what’s there. If I do it enough, then the whole screen will come back. Or minimize and maximize.

I assume you are running a standard workstation/pc with a single GPU
In which case your GPU driver OOTB will be nouveau.
Typically I would install / select the nvidia packages manually, though once the repos is added and enabled, once you open software manager they will often show as ready to install without your direct input. So I just wonder if it is pre-selecting the correct one
Which I think should be
nvidia-computeG04-375.26-19.1.x86_64.rpm
nvidia-gfxG04-kmp-default-375.26_k4.4.27_2-19.1.x86_64.rpm
x11-video-nvidiaG04-375.26-19.1.x86_64.rpm

Some reason, I thought I posted an update last night… but I guess not. My last attempt at installing nvidia failed as usual. But then I went into software manager uninstalled nvidia like I’ve done so many times and installed the nouvea drivers. My pc is running far from acceptable. Only my left monitor is turned on. And the graphics are pathetic and extremely choppy. Any idea how to get it to back just working on the nouvea driver the way it was when I first installed?

Sounds like you actually don’t use nouveau at all. Likely there’s some blacklist left, or you added “nomodeset” to the boot options, or you didn’t install the correct nouveau package(s).

Please post /var/log/Xorg.0.log for further diagnosis.
It would likely also be helpful to see it in case the nvidia driver is installed and does not work.

And please post a list of all (possibly) installed nvidia/nouveau packages:

rpm -qa | egrep "nvidia|nouveau"

Btw, what exactly do you mean with “It just booted me to a recovery mode” in your first post?

And a side-note: there is no point in uninstalling nouveau in the first place. The only thing that can cause problems when installing nvidia is the nouveau kernel module, but the nvidia packages should take care of that. And you cannot uninstall that anyway, as it is part of the standard kernel package.

I mean it booted to a CLI only.

Is there a way to reconfigure the graphics from scratch using some kind of wizard that would just put the graphics exactly how it was right after the install?

Here’s the output.

linux-11fn:/etc/X11/xorg.conf.d # rpm -qa | egrep “nvidia|nouveau”
xf86-video-nouveau-1.0.12-1.5.x86_64
libdrm_nouveau2-2.4.68-1.4.x86_64
nvidia-compute-340.101-31.1.x86_64
Mesa-dri-nouveau-11.2.2-166.1.x86_64
libvdpau_nouveau-11.2.2-166.1.x86_64
dkms-nvidia-340.101-29.1.x86_64

Well, that’s not “some kind of recovery mode”.
That means that Xorg failed to start.

Either because it couldn’t load the graphics driver, or because something crashed. (e.g. the sddm login manager, which is default in 42.2, requires working OpenGL support, i.e. it won’t run with a broken nvidia installation)

No.
If you didn’t change anything manually, the graphics should be “exactly how it was right after the install” anyway.

Here’s the output.

linux-11fn:/etc/X11/xorg.conf.d # rpm -qa | egrep “nvidia|nouveau”
xf86-video-nouveau-1.0.12-1.5.x86_64
libdrm_nouveau2-2.4.68-1.4.x86_64
nvidia-compute-340.101-31.1.x86_64
Mesa-dri-nouveau-11.2.2-166.1.x86_64
libvdpau_nouveau-11.2.2-166.1.x86_64
dkms-nvidia-340.101-29.1.x86_64

I suppose that last package broke your nvidia installation.
Uninstall it!
And also uninstall nvidia-compute.

Both are version 340.101, i.e. from the G03 driver.
(nvidia-compute should not really matter, but dkms-nvidia contains the nvidia kernel module and will likely break the G04 driver)

If you install the nvidia G04 driver afterwards, it should work I suppose.

Your other packages look ok.
But without the Xorg.0.log it’s impossible to tell what happens.

Uninstalling dkms-nvidia may already be enough to get nouveau working though, as it may blacklist nouveau (needed to get nvidia working).

Here’s a link to the log.

https://www.dropbox.com/s/rld8724h0yftbg6/Xorg.0.log?dl=0

According to that log, you use an xorg.conf that only tries to load vboxvideo, vmware, modesetting, fbdev, and vesa.
It ends up using fbdev, which explains why your second monitor is not working.

Delete the file /etc/X11/xorg.conf, and you should be using nouveau again.
An explicit config file is not necessary since years.

I don’t think deleting xorg.conf in itself will fix it. I created this. The problem still existed before I copied xorg.conf.original to xorg.conf.

You should of course also uninstall the two nvidia packages I mentioned.

And again, delete that xorg.conf.
It would also prevent the usage of the nvidia driver.

And please post your repo list too:

zypper lr -d

Those two nvidia packages you have installed are neither part of the standard repos nor the nvidia repo.

istribution/leap/42.2/repo/non-oss/ |
linux-11fn:/var/log # zypper lr -d
Repository priorities are without effect. All enabled repositories share the same priority.

| Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service

—±------------------------------------±----------------------------------------±--------±----------±--------±---------±---------±-------------------------------------------------------------------------------------------------------±-------
1 | My_Repository | My Repository | Yes | ( p) Yes | Yes | 99 | plaindir | dir:///home/david/My_Repository |
2 | PlexRepo | PlexRepo | No | ---- | ---- | 99 | NONE | https://downloads.plex.tv/repo/rpm/x86_64/ |
3 | adobe | adobe | Yes | ( p) Yes | Yes | 99 | rpm-md | http://linuxdownload.adobe.com/linux/x86_64/ |
4 | download.nvidia.com-leap | nVidia Graphics Drivers | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.nvidia.com/opensuse/leap/42.2 |
5 | download.opensuse.org-non-oss | Main Repository (NON-OSS) | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/leap/42.2/repo/non-oss/ |
6 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/42.2/non-oss/ |
7 | download.opensuse.org-oss | Main Repository (OSS) | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/leap/42.2/repo/oss/ |
8 | download.opensuse.org-oss_1 | Main Update Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/42.2/oss |
9 | dvd | dvd | Yes | (r ) Yes | Yes | 99 | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.2/ |
10 | http-download.opensuse.org-21f928f4 | home:Bumblebee-Project:nVidia:340.101 | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/home:/Bumblebee-Project:/nVidia:/340.101/openSUSE_Leap_42.2/ |
11 | nvidia | nvidia | Yes | (r ) Yes | Yes | 99 | rpm-md | ftp://download.nvidia.com/opensuse/leap/42.2/ |
12 | openSUSE-42.2-0 | openSUSE-42.2-0 | No | ---- | ---- | 99 | yast2 | cd:///?devices=/dev/disk/by-id/ata-ASUS_DVD_RAM_GHD1N_K1SG5684323 |
13 | packman | packman | Yes | (r ) Yes | Yes | 99 | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.2/ |
14 | qt5 | qt5 | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_42.1/ |
15 | repo-debug | openSUSE-Leap-42.2-Debug | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/42.2/repo/oss/ |
16 | repo-debug-non-oss | openSUSE-Leap-42.2-Debug-Non-Oss | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/42.2/repo/non-oss/ |
17 | repo-debug-update | openSUSE-Leap-42.2-Update-Debug | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/42.2/oss/ |
18 | repo-debug-update-non-oss | openSUSE-Leap-42.2-Update-Debug-Non-Oss | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/42.2/non-oss/ |
19 | repo-source | openSUSE-Leap-42.2-Source | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/42.2/repo/oss/ |
20 | repo-source-non-oss | openSUSE-Leap-42.2-Source-Non-Oss | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/42.2/repo/non-oss/ |
linux-11fn:/var/log #

You have a 42.1 repo QT5 in a 42.2 OS bound to cause problems

Also both NVIDIA and bumblebee. If optimus only need bumblebee. If not optimus remove bumblebee

Can you highlight or cut out the lines you’re seeing that need to be removed. (Don’t know why I’m not seeing any lines with qt5.)

Remove repo #10 (Bumblebee) and #14 (Qt5 for 42.1).

sudo zypper rr 10 14

Your nvidia packages (nvidia-compute and nvidia-dkms) come from the Bumblebee repo, mixing that with the standard nvidia packages will break things.
Especially with G04, as it is a completely different version.

A mixture of Qt5 packages and/or installing Qt5 from a different distribution may break the graphical system too, as both sddm and Plasma5 are based on Qt5.
Though if that were the cause of your original problem, your system would still not boot to a graphical desktop…

And the nvidia repo is in there twice, you could remove one copy (though that wouldn’t cause problems).

Ok, so I did what you said by removing the one repo and also removing all the bad packages. I rebooted and my video is back good. Thank you! But, now I’m back using the nouveau2 driver. What would be the correct way to use the nvidia driver?

One repo?
I said to remove two:wink:

But, now I’m back using the nouveau2 driver. What would be the correct way to use the nvidia driver?

By installing the appropriate packages from the nvidia repo.

“zypper inr” should pick them automatically, or specify them explicitly:

sudo zypper in x11-video-nvidiaG04 nvidia-gfxG04-kmp-default nvidia-glG04 nvidia-computeG04

If you really have a 750ti card (and not an Optimus system, i.e. hybrid intel+nvidia graphics), the G04 driver should work fine.

As I wrote already, I find it quite likely that your previous problem with the nvidia driver was caused by the mis-matching nvidia-dkms package…

If the system unexpectedly should boot to text mode again, please remove the nvidia packages, reboot, and post the file /var/log/Xorg.0.log.old (which is the log from the previous boot) then to see what went wrong.

I have tried your command to install the packages twice and both times caused my PC not to boot.

<CODE>
sudo zypper in x11-video-nvidiaG04 nvidia-gfxG04-kmp-default nvidia-glG04 nvidia-computeG04

</CODE>

The one time, I found the nvidia and commented it out and was able to get back in. The second time, I couldn’t find anything to fix it. I went into Yast and uninstalled all nvidia and reinstalled the noivea driver.
Then keep following forums (having to browse the web on my phone) and coming up with nothing. I looked through /etc/X11/xorg.conf.d files and couldn’t find nvidia referenced there in any of the files. After many failed
forum reads, I finally gave up and reformatted my hard drive. I’m back up. This time, I created a tar.gz from the X11 directory so I know how it is when I first loaded the OS.

So, any advice on how to load the nvidia drivers correctly?