Hello I have been tring to install the Cuda toolkit

I have followed the instructions of blacklisting Nouveau I downloaded CUDA form the NVIDiA website and when I rebooted and pressed ctrl alt F1 it said it installed correctly. So I rebooted. My problem is that I cant get the Xorg.conf file to work. When ever I run nvidia-xconfig I get

xorg.conf does not exist and directory has been created. I look at it using the txt editor and it seems in line with everything. After I reboot tho the gui does not appear just the command prompt version.

In order to get the Gui to work I need to issue "
rm /etc/X11/xorg.conf
Only after I remove this file I can boot with gui



When ever I
Code:
lspci -vnn | grep VGA -A 12
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:3801]
	Flags: bus master, fast devsel, latency 0, IRQ 47
	Memory at c2000000 (64-bit, non-prefetchable) [size=4M]
	Memory at b0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915

00:03.0 Audio device [0403]: Intel Corporation Haswell HD Audio Controller [8086:0c0c] (rev 06)
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:0fcd] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:3801]
	Flags: bus master, fast devsel, latency 0, IRQ 7
	Memory at c0000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 90000000 (64-bit, prefetchable) [size=256M]
	Memory at a0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [disabled] [size=128]
	Expansion ROM at a2000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Capabilities: [100] Virtual Channel
Code:
glxinfo | grep OpenGL
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".

I have a laptop and I have to chipsets an intel and an nvidia one. So wither they are conflicting or nouveu and cuda are conflicting How can I verify any of these and fix? Thank you!