Score:0

Ubuntu 20.04 won't suspend

ph flag

I always suspend ubuntu with systemctl suspend, however since installing an nvidia cuda toolkit 11.3 with another nvidia driver, and installing cuDNN 8.1, I've had issues. When I try to suspend ubuntu, it dims the screen, then an underscore at the top left corenr of the screen, redirects me to a login screen, and when I login, all my previous work is gone, like I had just booted the laptop. Ubuntu has also become slower to boot, usually it booted for 15-20 seconds, now well over a minute. Any ideas on what the issue is?

EDIT:

On the advice of @ChanganAuto in the comments, my specs are:

CPU: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz

GPU: Nvidia GeForce GTX 1050

GPU Driver: Driver Version: 465.19.01 CUDA Version: 11.3 (from nvidia-smi)

Also, I got my nvidia-cuda-toolkit from here

ChanganAuto avatar
us flag
You can and should install both the Nvidia driver and CUDA from the repositories. What you're experiencing now is likely related to a incorrect driver. If you care to edit the question an add the hardware specifications someone may suggest the best driver version (it can be easily check at Nvdia's website BUT drivers shouldn't be installed from Nvidia binaries).
ptushev avatar
ph flag
@ChanganAuto I've added the site where I got the nvidia cuda toolkit and my driver version. Also, should I delete the cuda toolkit and install the previous driver and see what happens?
ChanganAuto avatar
us flag
That you installed it from Nvidia's binaries was a given :) and that's exactly the problem I mentioned in the beginning. Not only this tends to install less than optimal versions it'll also break everything (literally) each time there's a kernel update. Again, always install drivers and CUDA from the repositories and the recommend driver version is 470.xx and that one should have been automatically installed if that option was selected at the OS installation.
ptushev avatar
ph flag
@ChanganAuto so I'll need to uninstall the nvidia binaries. On another note, my previous driver version was 470.82.xx, where did you find the recommended driver list for my gpu? I found an advanced search page on the nvidia website that lets you input a few criteria, but all the recommended drivers are 382-391.
ChanganAuto avatar
us flag
I found it exactly at the Nvidia website > drivers, of course.
ptushev avatar
ph flag
@ChanganAuto I uninstalled the driver and the toolkit and ubuntu suspends properly :) I'd upvote your comments but I don't have the reputation. Thanks a lot.
ChanganAuto avatar
us flag
You're welcome. I don't think this deserves an answer as is that you could latter upvote/accept and certainly there must be dozens of similar ones already to mark this one as a duplicate of some other, but I won't be chasing them right know. I'm just glad you got it working as expected.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.