Debian + GTX860M - driver installation problems

Hi,

I’ve installed Debian Wheezy on my laptop and I am trying to make my GTX860M work on it. I’ve downloaded the newest driver: NVIDIA-Linux-x86_64-340.46.run and installed it - got a message installation complete.
but my /etc/X11/xorg.conf - is empty

However when I am doing: lspci -nn | grep VGA I am getting:

00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell Integrated Graphics Controller [8086:0416] (rev 06)

I am using KDE, so I am trying to launch: “NVIDIA X Server Settings” from Applicattion -> Settings

I am getting this error:

You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig as root), and restart the X server.

so I am executing:

nvidia-xconfig

my xorg.conf is changing, re-booting system. KDE didnt start, when I am trying to run:

startx I am getting:

“No screens found” and “No devices Detected”.

so I need to roll-back to my old empty xorg.conf to be able to start KDE…

this is the content of xorg.conf which causes X to failed when I am executing startx:

nvidia-xconfig: X configuration file generated by nvidia-xconfig

nvidia-xconfig: version 340.46 (buildmeister@swio-display-x86-rhel47-03) Wed Sep 24 14:38:35 PDT 2014

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
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

I’d be highly thankfull for any help

Cheers,
Krzysiek

Use a searchengine and put “debian optimus” to it.