My various attempts at machine learning in python
- Determine the current video driver. In this case it is
nouveau
# lshw -c video
*-display
description: 3D controller
product: GK107M [GeForce GT 750M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: irq:51 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff
*-display
description: VGA compatible controller
product: 4th Gen Core Processor Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:49 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64)
- Disable the nouveau driver by creating a
nvidia-installer-disable-nouveau.conf
in the/etc/modprobe.d/
directory. The contents should look like this:
# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0
-
Reboot system using the
init 2
command which is single user mode with network capabilities. You don't want X windows running. -
Run the
ubuntu-drivers devices
command to determine the available drivers.
# ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C20sv00001025sd0000118Bbc03sc00i00
vendor : NVIDIA Corporation
model : GP106M [GeForce GTX 1060 Mobile]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-396 - third-party non-free
driver : nvidia-410 - third-party non-free
driver : nvidia-390 - third-party non-free
driver : nvidia-387 - third-party non-free
driver : nvidia-driver-410 - third-party free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
- Run either the
ubuntu-drivers autoinstall
orapt-get install nvidia-VERSION
commands to install the preferred driver. It's best to install the preferred driver.