To install Nvidia Graphic Card driver with DKMS support, install DKMS first.
$ sudo apt-get install dkmsThen install the driver, take NVIDIA-Linux-x86_64-367.35.run for example
$ chmod +x NVIDIA-Linux-x86_64-367.35.runWhen the installation finish
$ sudo sh NVIDIA-Linux-x86_64-367.35.run --dkms
$ dkms statusYou can find "nvidia, 367.35, 3.19.0-64-generic, x86_64: installed".
And you can build all modules for current kernel by
$ dkms autoinstallAnd for a specifi kernel by
$ dkms autoinstall -k 4.4.15Or install a module for all kernels
$ dkms install -m nvidia -v 367.35 --all
Reference https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support