namesnonames
September 9th, 2016, 08:36 AM
So I've been trying to get Ubuntu 14.04 to recognize my Nvidia card and use it. My end goal is to use the cuda capabilities for tensorflow and other ML libs and the like. First issue would be getting Nvidia to play nice though so I tried following previous forum posts for 2 days now, nothing has really worked, so I am making this post. If I missed a post somewhere that you believe will be helpful please link. This feels like an awkward post because there are so many other posts about the same type of thing, but I have been trying and nothing has been working, as such in this post I will be trying to balance between keeping the information to just what I think is necessary, while also highlighting previous approaches that I have taken.
System Setup:
Machine: Dell Inspiron 15 7000 series
Dual boot: Windows 8.1 / Ubuntu 14.04
Processor: i7-4510U CPU @ 2.00GHz × 4
RAM: 16GB
Integrated Graphics: Intel Haswell Mobile
Discrete Graphics Card: Nvidia 750M
Current State:
After chasing different methods of installation and encountering different issues I've decided to re-install Ubuntu 14.04 (again) but this time post all information I have found to be relevant based on other similar posts. Below is a list of everything I have done since the install.
- The Software Updater program wanted to install updates so I let it do that.
- I ran a few commands to get what I have understood to be relevant. ( see output below )
$ lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
Subsystem: Dell Device 05fa
Kernel driver in use: i915
--
04:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
Subsystem: Dell Device 05fa
Kernel driver in use: nouveau
$ sudo dpkg -l | grep -i nvidia
$ sudo lshw -C display
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:44 memory:e3000000-e33fffff memory:c0000000-cfffffff ioport:5000(size=64)
*-display
description: 3D controller
product: GK107M [GeForce GT 750M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:04:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nouveau latency=0
resources: irq:49 memory:e2000000-e2ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:3000(size=128)
Notice how the dpkg -l doesn't show anything but then my Additional Drivers tab does.I'm not sure if that's normal or if that is indicative of an issue.
Here is what the Additional Drivers Menu looked like directly after first login on a clean install.
http://i.imgur.com/PaFeQFw.png
- Because the dpkg command wasn't showing anything I decided to try installing them using these commands in tty1 (using these based on http://goo.gl/M7ZRxg ):
sudo service lightdm stop
sudo apt-get install nvidia-current nvidia-settings
sudo nvidia-xconfig
sudo reboot
- After the reboot I tried to see if Ubuntu was using the nvidia card based on http://goo.gl/WovfFu:
$ nvidia-settings
** (nvidia-settings:2426): WARNING **: PRIME: Failed to execute child process "/usr/bin/prime-supported" (No such file or directory)
** Message: PRIME: is it supported? no
Some warnings seen above are displayed, but the window launches. It doesn't look right though, as seen in the image below it only has the two items in the list on the left.
There are no profiles or rules in "Application Profiles". In a previous installation I had a third option in the list that let me switch between Intel and Nvidia for the graphics device but that never worked for me, giving various errors.
If that information seems relevant let me know and I can post it.
http://i.imgur.com/r3Xc0wt.png
Since having ran the nvidia installation above the output from the same set of commands as earlier is as follows:
$ lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
Subsystem: Dell Device 05fa
Kernel driver in use: i915
--
04:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
Subsystem: Dell Device 05fa
Kernel driver in use: nvidia
$ sudo dpkg -l | grep -i nvidia
ii libcuda1-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA CUDA runtime library
ii nvidia-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA legacy binary driver - version 304.131
ii nvidia-current 304.131-0ubuntu0.14.04.2 amd64 Transitional package for nvidia-current
ii nvidia-libopencl1-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA OpenCL Driver and ICD Loader library
ii nvidia-opencl-icd-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA OpenCL ICD
ii nvidia-settings 331.20-0ubuntu8 amd64 Tool for configuring the NVIDIA graphics driver
$ sudo lshw -C display
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:45 memory:e3000000-e33fffff memory:c0000000-cfffffff ioport:5000(size=64)
*-display
description: 3D controller
product: GK107M [GeForce GT 750M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:04:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nvidia latency=0
resources: irq:16 memory:e2000000-e2ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:3000(size=128)
Notes:
- The dpkg command is now showing several items. However it is showing 304 but the original settings showed in additional drivers was 340 and 352. It also feels odd that the 'current' installation gave me 304 when I believe the newest drivers are in the 370's.
- The Additional Drivers tab does not show 304 and still has the nouvea option selected.
- Both the lspci and lshw commands now show nvidia instead of nouvea for the driver.
It would seem from the lshw and lspci commands that it is installed correctly, but the nvidia-settings doesn't seem to look correct.
I have tried only a small amount here because after having tried any number of things I have decided to just see what input I can get from the forum before proceeding.
I have no objections to re-installing Ubuntu again if need be. I do require though that I stay in 14.04 because of unrelated reasons, though I have not yet installed those programs on this installation and plan on not until this issue is sorted first. I may make a few changes to the installation so I can still do work (mainly just installing a text editor to code in the meantime), hopefully none of that will interfere debugging. Just in case I will keep a log of changes I've made in-case they become relevant.
Thank you in advance for any time or effort sent my way I really appreciate it. Any progress would just make my day. =)
System Setup:
Machine: Dell Inspiron 15 7000 series
Dual boot: Windows 8.1 / Ubuntu 14.04
Processor: i7-4510U CPU @ 2.00GHz × 4
RAM: 16GB
Integrated Graphics: Intel Haswell Mobile
Discrete Graphics Card: Nvidia 750M
Current State:
After chasing different methods of installation and encountering different issues I've decided to re-install Ubuntu 14.04 (again) but this time post all information I have found to be relevant based on other similar posts. Below is a list of everything I have done since the install.
- The Software Updater program wanted to install updates so I let it do that.
- I ran a few commands to get what I have understood to be relevant. ( see output below )
$ lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
Subsystem: Dell Device 05fa
Kernel driver in use: i915
--
04:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
Subsystem: Dell Device 05fa
Kernel driver in use: nouveau
$ sudo dpkg -l | grep -i nvidia
$ sudo lshw -C display
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:44 memory:e3000000-e33fffff memory:c0000000-cfffffff ioport:5000(size=64)
*-display
description: 3D controller
product: GK107M [GeForce GT 750M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:04:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nouveau latency=0
resources: irq:49 memory:e2000000-e2ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:3000(size=128)
Notice how the dpkg -l doesn't show anything but then my Additional Drivers tab does.I'm not sure if that's normal or if that is indicative of an issue.
Here is what the Additional Drivers Menu looked like directly after first login on a clean install.
http://i.imgur.com/PaFeQFw.png
- Because the dpkg command wasn't showing anything I decided to try installing them using these commands in tty1 (using these based on http://goo.gl/M7ZRxg ):
sudo service lightdm stop
sudo apt-get install nvidia-current nvidia-settings
sudo nvidia-xconfig
sudo reboot
- After the reboot I tried to see if Ubuntu was using the nvidia card based on http://goo.gl/WovfFu:
$ nvidia-settings
** (nvidia-settings:2426): WARNING **: PRIME: Failed to execute child process "/usr/bin/prime-supported" (No such file or directory)
** Message: PRIME: is it supported? no
Some warnings seen above are displayed, but the window launches. It doesn't look right though, as seen in the image below it only has the two items in the list on the left.
There are no profiles or rules in "Application Profiles". In a previous installation I had a third option in the list that let me switch between Intel and Nvidia for the graphics device but that never worked for me, giving various errors.
If that information seems relevant let me know and I can post it.
http://i.imgur.com/r3Xc0wt.png
Since having ran the nvidia installation above the output from the same set of commands as earlier is as follows:
$ lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
Subsystem: Dell Device 05fa
Kernel driver in use: i915
--
04:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
Subsystem: Dell Device 05fa
Kernel driver in use: nvidia
$ sudo dpkg -l | grep -i nvidia
ii libcuda1-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA CUDA runtime library
ii nvidia-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA legacy binary driver - version 304.131
ii nvidia-current 304.131-0ubuntu0.14.04.2 amd64 Transitional package for nvidia-current
ii nvidia-libopencl1-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA OpenCL Driver and ICD Loader library
ii nvidia-opencl-icd-304 304.131-0ubuntu0.14.04.2 amd64 NVIDIA OpenCL ICD
ii nvidia-settings 331.20-0ubuntu8 amd64 Tool for configuring the NVIDIA graphics driver
$ sudo lshw -C display
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:45 memory:e3000000-e33fffff memory:c0000000-cfffffff ioport:5000(size=64)
*-display
description: 3D controller
product: GK107M [GeForce GT 750M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:04:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nvidia latency=0
resources: irq:16 memory:e2000000-e2ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:3000(size=128)
Notes:
- The dpkg command is now showing several items. However it is showing 304 but the original settings showed in additional drivers was 340 and 352. It also feels odd that the 'current' installation gave me 304 when I believe the newest drivers are in the 370's.
- The Additional Drivers tab does not show 304 and still has the nouvea option selected.
- Both the lspci and lshw commands now show nvidia instead of nouvea for the driver.
It would seem from the lshw and lspci commands that it is installed correctly, but the nvidia-settings doesn't seem to look correct.
I have tried only a small amount here because after having tried any number of things I have decided to just see what input I can get from the forum before proceeding.
I have no objections to re-installing Ubuntu again if need be. I do require though that I stay in 14.04 because of unrelated reasons, though I have not yet installed those programs on this installation and plan on not until this issue is sorted first. I may make a few changes to the installation so I can still do work (mainly just installing a text editor to code in the meantime), hopefully none of that will interfere debugging. Just in case I will keep a log of changes I've made in-case they become relevant.
Thank you in advance for any time or effort sent my way I really appreciate it. Any progress would just make my day. =)