I followed the instructions in the Debian wiki to install the nvidia proprietary graphics driver on Debian Jessie via backports. Unfortunately, despite my best efforts, the X server will not use the new driver.
The kernel module built and installed correctly:
$ sudo lsmod | grep nvidia
nvidia 8487526 0
drm 249955 5 i915,drm_kms_helper,nvidia
i2c_core 46012 12 drm,i915,i2c_i801,snd_soc_rt5640,i2c_hid,i2c_designware_platform,regmap_i2c,drm_kms_helper,i2c_algo_bit,nvidia,v4l2_common,videodev
With no xorg.conf file, X works fine but does not use the nvidia driver; nvidia-settings reports that I "do not appear to be using the NVIDIA X Driver".
Xorg.log.0: http://pastebin.com/3Anr3FWU (is this the right way to put this in? I hope so)
With the following xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 340.46 (buildd@brahms) Tue Oct 7 08:00:32 UTC 2014
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
(which quotes a version lower than what I expected from the wiki, 352.79 vs 340.46, but is probably nothing), the X server does not start at all (I get a black screen with a blinking cursor, but tty1-6 are available). Same result if I cut out everything but the "Device" section.
Xorg.log.0: http://pastebin.com/cYLSYiUV
This is an MSI laptop with nvidia 940M dedicated graphics (and an intel onboard gfx).
$ lspci | egrep -i "vga|nvidia"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation Device 1347 (rev a2)
So: how can I get X to start up and use the nvidia driver?