Day: July 17, 2015

How to discover what video card and video driver your laptop is using

$ lshw -c video
WARNING: you should run this program as super-user.
*-display UNCLAIMED
description: VGA compatible controller
product: GF108M [GeForce GT 630M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list
configuration: latency=0
resources: memory:f0000000-f0ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:f1000000-f107ffff
*-display
description: VGA compatible controller
product: 3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:44 memory:f1400000-f17fffff memory:e0000000-efffffff ioport:4000(size=64)
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

$ lsmod | grep i915
i915 784116 3
drm_kms_helper 55071 1 i915
drm 303102 4 i915,drm_kms_helper
i2c_algo_bit 13413 1 i915
video 19476 1 i915

BUT, if your laptop has Nvidia driver, you can check it:

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00000DE9sv00001028sd0000055Ebc03sc00i00
vendor : NVIDIA Corporation
model : GF108M [GeForce GT 620M/630M/635M/640M LE]
driver : nvidia-340 – distro non-free
driver : nvidia-driver-390 – distro non-free recommended
driver : xserver-xorg-video-nouveau – distro free builtin

And install the driver:

$ sudo apt install nvidia-driver-390

And install glxinfo tool from mesa-utils package:

$ sudo apt install mesa-utils

Finally you can confirm you are using the NVIDIA driver:

$ glxinfo | grep renderer

OpenGL renderer string: GeForce GT 630M/PCIe/SSE2