On Ubuntu 16.04 I use kernel 4.4.0-78-generic for compatibility with Cuda 9 but since switching to this kernel my mouse, keyboard, wireless adapter and speakers don't work. I managed to switch to a newer mouse and keyboard temporarily which worked out the box but the speakers don't work still and I'm having to use an ethernet cable to access the internet.
I've tried for many hours to resolve each issue independently to no avail. My sense is it's somehow related to the kernel as when I do certain sudo modprobe
commands I get told things like FATAL: Module snd-hda-intel not found in directory /lib/modules/4.4.0-78-generic
but when I look in the 4.13.0-38-generic folders then the files are consistently there.
Any help appreciated, I'm at my wits end.
Best Answer
This answer is now a duplicate of How do I install NVIDIA and CUDA drivers into Ubuntu?
NOTE: I have only verified this works with 16.04 and 17.10. Just tried 18.04 and it does not work.
Try installing the Cuda by doing the repo installation instead of the
.deb
installation.First, remove any cuda PPAs that may be setup and also remove the
nvidia-cuda-toolkit
if installed:Might also want to remove all nvidia drivers too before installing new drivers:
Then update the system:
Install the key:
Add the repo:
16.04
17.10
Update the system again:
Now you should be able to install the cuda-9-1:
There are CUDA 9.0 and CUDA 9.2 as well, and they are listed at the bottom.
It should be installing the nvidia-396 (396.44) drivers with it as those are what are listed in the repo. See: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/
Verify that Cuda 9.1 was installed:
Now, add the following to your
~/.profile
for thePATH
andLD_LIBRARY
. You can use the commandgedit ~/.profile
for editing:Reboot your system.
Once the system is up, you can verify the installation by typing in the following:
You should see the following:
And you should see the
396.44
drivers installed:EDIT 05/28/2018: The following steps work fine for
Cuda 9.2
as well. Just change the installation toand make sure you change the
.profile
section to:EDIT 07/11/2018: The following steps work fine for
Cuda 9.0
as well. Just change the installation toand make sure you change the
.profile
section to:Hope this helps!