Advanced search

Message boards : Number crunching : Can't get nvidia drivers to work on ubuntu 18.04

Author Message
PappaLitto
Send message
Joined: 21 Mar 16
Posts: 511
Credit: 4,672,242,755
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 50194 - Posted: 4 Aug 2018 | 1:50:55 UTC

I can install nvidia driver 390 and 396 (open source) on Ubuntu 18.04 but no application actually sees or can use my 1080ti. On 16.04 there were slightly older drivers that were labeled proprietary rather than open source. Does this have something to do with it and how do I fix it?

mmonnin
Send message
Joined: 2 Jul 16
Posts: 337
Credit: 7,765,428,051
RAC: 3,476,355
Level
Tyr
Scientific publications
watwatwatwatwat
Message 50195 - Posted: 4 Aug 2018 | 4:11:58 UTC

I had issues too from the NV drives available with 18.04 but I thought it was with OpenCL. I still have one card I haven't updated the driver and can only run CUDA. I don't think thats the same issue here.

If I recall 396 became available after adding the nvidia PPA. Did you add it or maybe its available now?

If not this will add the NV PPA:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update


Then it will be available in Additional Drivers. Plus a reboot of course.

I just did this on Mint 19, which is based on 18.04, this week and on 2 18.04 machines.

For OC and fan control.
sudo nvidia-xconfig --enable-all-gpus --allow-empty-initial-configuration --cool-bits=28

PappaLitto
Send message
Joined: 21 Mar 16
Posts: 511
Credit: 4,672,242,755
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 50200 - Posted: 4 Aug 2018 | 17:44:21 UTC

Hello, I did

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

but before this step I already had 390 and 396 (open source) in the "additional drivers" menu. In 16.04 the driver is labeled nvidia binary driver (proprietary) rather than open source. BOINC and every other application does not recognize any GPU with both 396 and 390 installed

mmonnin
Send message
Joined: 2 Jul 16
Posts: 337
Credit: 7,765,428,051
RAC: 3,476,355
Level
Tyr
Scientific publications
watwatwatwatwat
Message 50204 - Posted: 4 Aug 2018 | 22:24:22 UTC

The ones by default available with 18.04 w/o the PPA update are not complete.

What does clinfo return to see what the OS can detect? In some cases BOINC can load too early before the drivers.

Keith Myers
Send message
Joined: 13 Dec 17
Posts: 1354
Credit: 7,875,512,546
RAC: 7,898,770
Level
Tyr
Scientific publications
watwatwatwatwat
Message 50206 - Posted: 5 Aug 2018 | 0:13:28 UTC - in response to Message 50200.

Hello, I did

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

but before this step I already had 390 and 396 (open source) in the "additional drivers" menu. In 16.04 the driver is labeled nvidia binary driver (proprietary) rather than open source. BOINC and every other application does not recognize any GPU with both 396 and 390 installed

When you add the ppa repository, the packages get labeled as a metapackage. In my experience that nets you the whole kit 'n kaboodle with the CUDA and OpenCL libraries plus all the utilities.

When you just add the Nvidia drivers by the sudo apt install nvidia-396 you just get the main graphic drivers and not the compute packages.

You might want to start fresh and do the purge nvidia* and then add in the ppa repository, update and then get them from the Additional Drivers tab.

PappaLitto
Send message
Joined: 21 Mar 16
Posts: 511
Credit: 4,672,242,755
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 50207 - Posted: 5 Aug 2018 | 1:50:19 UTC

I think I might have found the issue "Your system has UEFI Secure boot enabled. If you proceed but do not confirm the password upon reboot, Ubuntu will still be able to boot on your system but any hardware that requires third-party drivers to work correctly may not be usable."

I have found that it never asks me this password and therefore never lets me use my "3rd party graphics device."

Hopefully just disabling this in the bios will fix it.

PappaLitto
Send message
Joined: 21 Mar 16
Posts: 511
Credit: 4,672,242,755
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 50208 - Posted: 5 Aug 2018 | 1:58:22 UTC

I went into the bios and found "secure boot." It was default in "windows OS" so I changed it to "other OS" and it works just fine now.

Keith Myers
Send message
Joined: 13 Dec 17
Posts: 1354
Credit: 7,875,512,546
RAC: 7,898,770
Level
Tyr
Scientific publications
watwatwatwatwat
Message 50212 - Posted: 5 Aug 2018 | 22:22:12 UTC - in response to Message 50208.

I went into the bios and found "secure boot." It was default in "windows OS" so I changed it to "other OS" and it works just fine now.

Good to hear you got it working. I've always had Secure Boot set to "Other OS" so it is interesting to find out what happens when you have it set wrong.

Post to thread

Message boards : Number crunching : Can't get nvidia drivers to work on ubuntu 18.04

//