Ive tried several linux distros and whenever I log out or when the computer sleeps cuda support disappeares leading to super long cycles renders. Is this a bug in blender, motherboard or linux? Id love to fix it.
Hard to know since not many people have that kind of problem. If you installed the driver from the distro packages repository, you should report this first to your specific Linux distro bug tracker.
Have you tried Pop!_OS or Ubuntu?
What is your GPU and what is the nvidia driver version?
Posted at manjaro but no response. I have the latest driver and an nvidia 2700 super.
Latest stable (510.73.05) or beta (515.43.04)?
If you are using stable drivers, you see what is explained here for Ubuntu:
Not sure if this would be useful for Manjaro.
You remember the changes you make to the files so that you can revert the changes if it doesn’t work.
Last beta drivers have had some changes to suspend/resume services, so I’m not sure if you are using those drivers.
Its 510.68.02
and how would you do something like this
What if cuda does not work after laptop wake up from sleep:
Put following 2 lines in your /etc/rc.local
:
/usr/bin/nvidia-smi -pm ENABLED
/usr/bin/nvidia-smi -c EXCLUSIVE_PROCESS
i dont' think manjaro has an rc local
I edited what I had posted before.
You should ask on the Manjaro forum which file to add those lines to so that they are executed on every login with root permissions (an Ubuntu equivalent of “/etc/rc.local”)
And you show them that thread with the solution for Ubuntu so they can tell you if it could be useful in Manjaro
The guy said to write a systemd unit
In “sudo gedit /etc/systemd/system/rc-local.service” I’m not sure which text editor you have. Where it says “gedit” it could be “kate” or “kwrite” or your system’s text editor.
They recommended this fix. https://bbs.archlinux.org/viewtopic.php?pid=1900449#p1900449
But having trouble with cat command. MHWD.gpu.conf is the only file in the folder too.
With “cat” he/she is simply showing you the content that you should copy and paste into that file. I still don’t know what is the default text editor on your OS. Suppose this is “kate”, then you from the terminal:
kate /etc/modprobe.d/nvidia.conf
(replace “kate” with “kwrite” or whatever your OS’s text editor is)
And you copy and paste these lines inside:
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia NVreg_TemporaryFilePath=/run
Now you “Save” the changes to the text file. This should prompt you for the super user password.
But I recommend you insist on reporting problems and asking in the manjaro forum. The fixes proposed for one distro do not always work later on in another distro, because the configuration files are not always the same between distros.
It was nano. Its working pretty good now, but blender viewport sometimes bugs out so a simple restart of blender fixes it. Thanks for all the help!