After upgrading, I can't open FreeCAD and also Blender is very slow

Hi

I just upgraded my system, but now I can’t open FreeCAD, and Blender is very slow, because it can't find any GPU when trying to select one for rendering with Cycle.

Among the upgrades there were kernel upgrades and nvidia-driver upgrades among others.

Im using Zorin OS 18.1 x86_64 with 6.17.0-23-generic.

My GPU is a NVIDIA GeForce GTX 1060 3GB

As mentioned before, when trying to select a GPU for rendering with Cycles in Blender, my GPU is not showing up.

In the terminal, Im able to use nvidia-smi without problems.

I tried changing the NVIDIA driver from 580 to 535 with no luck.

I've tried selecting the previous kernel 6.17.0-22-generic at boot, but the issue persists.

When powering on the PC with the graphics card removed from the PCIe slot and using HDMI from the motherboard, FreeCAD is able open as normal.

I have encountered the same problem before after upgrading, but I really don’t know what I did back then.

And now I have the same problem.

Does anyone have an idea on what could be the problem or suggestions for where to look to solve this?

Hi and welcome.

Have you tried changing the compositor protocol from Wayland to xorg? By default, Zorin uses the Wayland protocol which is known not to play nice with nvidia cards.

At login, choose your username and a cog appears lower right. Click on it and change it from the default of 'Zorin desktop' to 'Zorin desktop on xorg', then login and see if there is any improvement.

Thanks for the answer and the welcoming.

I have tried that, but I can only choose between Zorin Desktop and Zorin Desktop On Wayland as shown in this video: https://drive.google.com/file/d/1Im9j3V0Bfrv7lwSY780GwQJXo2RwDQg3/view?usp=sharing

When removing the graphics card from the PCIe slot and using HDMI from the motherboard instead, I get the option to choose between Zorin Desktop and Xorg. Also FreeCAD works as normal, when the card is removed.

I tried opening FreeCAD from the terminal and got the following message:

user@user-pc:~$ flatpak run org.freecad.FreeCAD
FreeCAD 1.1.1, Libs: 1.1.1R44874 (Git)
(C) 2001-2011 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.

Gtk-Message: 12:20:17.690: Failed to load module "xapp-gtk3-module"
Qt: Session management error: Could not open network socket
(qt.glx) qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(DeprecatedFunctions), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::CompatibilityProfile)
(qt.glx) qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(DeprecatedFunctions), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::CompatibilityProfile)
(qt.glx) qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(DeprecatedFunctions), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::CompatibilityProfile)
Could not initialize GLX

Welcome to the Forum!

In Your Case, the ''Zorin Desktop'' Option is the Xorg Option. I guess You have installed Zorin with Nvidia Drivers? If yes, then it can happen that it switches.

Did You do that on the ''Additional Drivers'' Tab in Software & Updates or via Terminal?

Thanks for the welcoming!

Yes, I installed Zorin with Nvidia Drivers.

I changed the driver in the "Additional Drivers" tab in Software & Updates.

Could the outcome be different when doing it in the terminal?

It could offer additional Notifications or Errors. So, I would suggest the following Way:

First, uninstall the current Nvidia Stuff with

sudo apt purge nvidia* libnvidia*

and then

sudo apt autoremove

to remove File Rests. But please atke a Look at the List ot the to deleted Packages before You remove them. Then to install the Nvidia Driver type

sudo apt install nvidia-driver-580 nvidia-dkms-580

If You want install another Version, simply replace the 580 with the Version Number of the Driver. For Example 550 or 535 and when You want try several Drivers, repeat these Steps.

Okay, great!
Now I have purged all nvidia related and used "autoremove" afterwards.
Then Im able to open FreeCAD even though the GPU is still inserted, and Blender is running much more smooth (nouveau-driver?)

I installed driver version 580 again in the way you described above and the problems appear again.

Now I have removed all nvidia related again, but when trying to replace 580 with ex. 550, it still wants to install 580:

user@user-pc:~$ sudo apt install nvidia-driver-550 nvidia-dkms-550
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
dkms libnvidia-cfg1-580 libnvidia-common-580 libnvidia-compute-580
libnvidia-decode-580 libnvidia-decode-580:i386 libnvidia-egl-wayland1
libnvidia-egl-wayland1:i386 libnvidia-encode-580 libnvidia-encode-580:i386
libnvidia-extra-580 libnvidia-fbc1-580 libnvidia-fbc1-580:i386
libnvidia-gl-580 libnvidia-gl-580:i386 libwayland-server0:i386
nvidia-compute-utils-580 nvidia-dkms-580 nvidia-driver-580
nvidia-firmware-580-580.142 nvidia-kernel-common-580
nvidia-kernel-source-580 nvidia-prime nvidia-settings nvidia-utils-580
screen-resolution-extra xserver-xorg-video-nvidia-580
Suggested packages:
menu
The following NEW packages will be installed
dkms libnvidia-cfg1-580 libnvidia-common-580 libnvidia-compute-580
libnvidia-decode-580 libnvidia-decode-580:i386 libnvidia-egl-wayland1
libnvidia-egl-wayland1:i386 libnvidia-encode-580 libnvidia-encode-580:i386
libnvidia-extra-580 libnvidia-fbc1-580 libnvidia-fbc1-580:i386
libnvidia-gl-580 libnvidia-gl-580:i386 libwayland-server0:i386
nvidia-compute-utils-580 nvidia-dkms-550 nvidia-dkms-580 nvidia-driver-550
nvidia-driver-580 nvidia-firmware-580-580.142 nvidia-kernel-common-580
nvidia-kernel-source-580 nvidia-prime nvidia-settings nvidia-utils-580
screen-resolution-extra xserver-xorg-video-nvidia-580
0 to upgrade, 29 to newly install, 0 to remove and 3 not to upgrade.
Need to get 448 MB/448 MB of archives.
After this operation, 1,358 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

Am I doing something wrong?

Another user had the same problem in Zorin 17:

No. Hmm ... maybe this is an automatic Mechanism to take the 580 Driver ... I would now ask for using the 590 Driver but Your Card wouldn't work with it. Could You try to install the 535 Driver this Way to see if something similar happens?

Yes, when you don't install a Nvidia Driver, the default Nouveau Driver is in Usage. When this Driver works for You, You could theoretically use that, too. But it could cost Performance.

535 will lose support at the end of the month.. then it too will be rerouted to a new version. I wish I could get an AMD GPU for my laptop and just swap it like you could in a desktop. New Nvidia drivers are so bad.

I'm able to install ver. 535, but unfortunately I encounter the same problems as with ver. 580.

If you use 535, then make sure you also use Xorg.

You often write that the support for those nvidia cards (10xx series) has been dropped for driver 590 and slothen92 has a GeForce GTX 1060.

1 Like

Yes, You are right. I oversaw that in the Moment. I deleted it.

@slothen92: Let's try something else. Download manually the Driver Files. I took a Look and it seems that they were changed to transitional Packages. that means that they lead to a different Package. But older Versions don't do that. So, You could download the 550 Driver, but an older one. Look here:

For 2 Packages:

  • nvidia-driver-550_550.67-0ubuntu3_amd64.deb
  • nvidia-dkms-550_550.67-0ubuntu3_amd64.deb
2 Likes

Thanks. I am using "Zorin Desktop", which Ponce-De-Leon told me is Xorg.

Okay, I've tried installing the packages, but I have dependency problems:

user@user-pc:~/Downloads$ sudo dpkg -i nvidia-driver-550_550.67-0ubuntu3_amd64.deb
(Reading database ... 329514 files and directories currently installed.)
Preparing to unpack nvidia-driver-550_550.67-0ubuntu3_amd64.deb ...
Unpacking nvidia-driver-550 (550.67-0ubuntu3) over (550.67-0ubuntu3) ...
dpkg: dependency problems prevent configuration of nvidia-driver-550:
nvidia-driver-550 depends on libnvidia-gl-550 (= 550.67-0ubuntu3); however:
Package libnvidia-gl-550 is not installed.
nvidia-driver-550 depends on nvidia-dkms-550 (<= 550.67-1); however:
Package nvidia-dkms-550 is not configured yet.
nvidia-driver-550 depends on nvidia-dkms-550 (>= 550.67); however:
Package nvidia-dkms-550 is not configured yet.
nvidia-driver-550 depends on nvidia-kernel-common-550 (<= 550.67-1); however:
Package nvidia-kernel-common-550 is not installed.
nvidia-driver-550 depends on nvidia-kernel-common-550 (>= 550.67); however:
Package nvidia-kernel-common-550 is not installed.
nvidia-driver-550 depends on nvidia-kernel-source-550 (= 550.67-0ubuntu3); however:
Package nvidia-kernel-source-550 is not installed.
nvidia-driver-550 depends on libnvidia-compute-550 (= 550.67-0ubuntu3); however:
Package libnvidia-compute-550 is not installed.
nvidia-driver-550 depends on libnvidia-extra-550 (= 550.67-0ubuntu3); however:
Package libnvidia-extra-550 is not installed.
nvidia-driver-550 depends on nvidia-compute-utils-550 (= 550.67-0ubuntu3); however:
Package nvidia-compute-utils-550 is not installed.
nvidia-driver-550 depends on libnvidia-decode-550 (= 550.67-0ubuntu3); however:
Package libnvidia-decode-550 is not installed.
nvidia-driver-550 depends on libnvidia-encode-550 (= 550.67-0ubuntu3); however:
Package libnvidia-encode-550 is not installed.
nvidia-driver-550 depends on nvidia-utils-550 (= 550.67-0ubuntu3); however:
Package nvidia-utils-550 is not installed.
nvidia-driver-550 depends on xserver-xorg-video-nvidia-550 (= 550.67-0ubuntu3); however:
Package xserver-xorg-video-nvidia-550 is not installed.
nvidia-driver-550 depends on libnvidia-cfg1-550 (= 550.67-0ubuntu3); however:
Package libnvidia-cfg1-550 is not installed.
nvidia-driver-550 depends on libnvidia-fbc1-550 (= 550.67-0ubuntu3); however:
Package libnvidia-fbc1-550 is not installed.

dpkg: error processing package nvidia-driver-550 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nvidia-driver-550

I've tried sudo apt-get install -f, but then it wants to install version 580.

Should I manually install all the missing packages which are listed?

Just verifying, because there's a lot of switching around.

If you manually get 550, I think you'll need more than the two (at least I did when I used dpkg-repack). You'll hit dependency problems.

Edit: oh, yeah, just like that.

That said, there are 17 packages (these were for Zorin 17.3 when I used dpkg-repack to conservatively get every possibly related deb file, but should still give you an idea of what you need).

I copied them from a phone picture, so sorry if the OCR messed up any 0s, 1s, or dashes, but I tried to fix them.

Packages

libnvidia-cfg1-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

libnvidia-common-550_550.163.01-0ubuntu0.22.04.1_all.deb

libnvidia-compute-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

libnvidia-decode-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

libnvidia-egl-wayland1_1.1.17-0ubuntu0-gpu22.04.1_amd64.deb

libnvidia-encode-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

libnvidia-extra-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

libnvidia-fbc1-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

libnvidia-gl-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

nvidia-compute-utils-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

nvidia-dkms-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

nvidia-driver-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

nvidia-firmware-550-550.163.01_550.163.01-0ubuntu0.22.04.1_amd64.deb

nvidia-kernel-common-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

nvidia-kernel-source-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

nvidia-utils-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

xserver-xorg-video-nvidia-550_550.163.01-0ubuntu0.22.04.1_amd64.deb

You would then need to install them all at once with dpkg. Tedious, but it works. I moved onto 535 for security updates, but still underwent the process for 550 months ago.

Oh, thank you very much! How do I install all the packages at once?

I think it was just listing them all after the install (-i) parameter of dpkg:
sudo dpkg -i name-of-deb1.deb name-of-deb2.deb name-of-deb3.deb
and so on.

Include the .deb extension during the installation. I know you don't need it to purge the packages if you change your mind, because I wrote that command down.

OCRed Uninstall command for later

sudo dpkg --purge libnvidia-cfg1-550 libnvidia-common-550 libnvidia-compute-550 libnvidia-decode-550 libnvidia-egl-wayland1 libnvidia-encode-550 libnvidia-extra-550 libnvidia-fbc1-550
libnvidia-gl-550 nvidia-compute-utils-550 nvidia-dkms-550 nvidia-driver-550 nvidia-firmware-550-550.163.01 nvidia-kernel-common-550 nvidia-kernel-source-550 nvidia-utils-550
xserver-xorg-video-nvidia-550

It's possible you'll need to mark your packages to make sure they aren't updated into oblivion when you are done installing them.

sudo apt-mark hold nvidia-driver-550

1 Like