Ubuntu – Can’t detect the graphics card (Nvidia GT 620M) on Xubuntu 11.10 & 12.04

cudadriversgraphicsnvidia

The title pretty much sums it up.
I recently purchased a new laptop with a Nvidia GT 620M, in order to use CUDA.
I also have an Intel integrated graphics card.

I first proceeded to install the developer drivers as I'm accustomed to, and tested the setup with a cudaGetDeviceCount – which returned 0.
A quick glance at lspci also gave this:

00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4)
00:1c.3 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Panther Point 6 port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04)
01:00.0 3D controller: NVIDIA Corporation Device 1140 (rev a1)
02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

Which confirmed that linux does not detect the graphics card (while Windows does).

Overall, I attempted installing the following drivers :

  • the CUDA developer ones (295.41) and the 295.59 ones
  • either manually or using a package from a repository (namely ppa:ubuntu-x-swat/x-updates and ppa:upubuntu-com/nvidia)

I also tried reinstalling Xubuntu 11.10 aswell as the above drivers, in vain.
Browsing through other related threads didn't help much either.

Would any of you kind sirs help me out of this predicament?

Thank you.

Best Answer

This is nvidia-optimus enabled laptop and this isn't supported in linux by nvidia.

Please see discussion over here with same problem.

The laptops with optimus won't work with nvidia drivers. It requires bumblebee to disble nvidia card and use it to some extent via virtualgl

bumblebee isn't a real solution (like when you are using the device for development). see here Can't use nvidia card/driver on optimus notebook.

If your laptop has BIOS option to disable integrated GPU and use only nvidia one then only you can fully use the device.

Or

If the device is wired to HDMI port you can use the device in an external monitor. For external monitor setup see here → https://github.com/Bumblebee-Project/Bumblebee/wiki/Multi-monitor-setup

Related Question