I recently bought a new laptop that comes with a 650M GPU.
It comes packed with the infamous Optimus technology.
I tried installing the cuda 4.2 drivers but X fails to start saying: No devices detected. no screens found
the complete /var/log/Xorg.0.log file:
[ 8352.446]
X.Org X Server 1.12.1.902 (1.12.2 RC 2)
Release Date: 2012-05-19
[ 8352.446] X Protocol Version 11, Revision 0
[ 8352.446] Build Operating System: Linux 3.2.0-2-amd64 x86_64 Debian
[ 8352.446] Current Operating System: Linux wasteland 3.2.0-2-amd64 #1 SMP Mon Jun 11 17:24:18 UTC 2012 x86_64
[ 8352.446] Kernel command line: BOOT_IMAGE=/vmlinuz-3.2.0-2-amd64 root=/dev/mapper/sda6_crypt ro quiet
[ 8352.446] Build Date: 20 May 2012 08:57:17AM
[ 8352.446] xorg-server 2:1.12.1.902-1 (Cyril Brulebois <kibi@debian.org>)
[ 8352.446] Current version of pixman: 0.24.4
[ 8352.446] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 8352.446] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 8352.447] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jun 25 19:14:37 2012
[ 8352.447] (==) Using config file: "/etc/X11/xorg.conf"
[ 8352.447] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 8352.447] (==) No Layout section. Using the first Screen section.
[ 8352.447] (==) No screen section available. Using defaults.
[ 8352.447] (**) |-->Screen "Default Screen Section" (0)
[ 8352.447] (**) | |-->Monitor "<default monitor>"
[ 8352.447] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 8352.447] (**) | |-->Device "Device0"
[ 8352.447] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 8352.447] (==) Automatically adding devices
[ 8352.447] (==) Automatically enabling devices
[ 8352.447] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 8352.447] Entry deleted from font path.
[ 8352.447] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[ 8352.447] Entry deleted from font path.
[ 8352.447] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 8352.447] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 8352.447] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 8352.447] (II) Loader magic: 0x7f6022945ae0
[ 8352.447] (II) Module ABI versions:
[ 8352.447] X.Org ANSI C Emulation: 0.4
[ 8352.447] X.Org Video Driver: 12.0
[ 8352.447] X.Org XInput driver : 16.0
[ 8352.447] X.Org Server Extension : 6.0
[ 8352.448] (--) PCI:*(0:0:2:0) 8086:0166:1043:2103 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[ 8352.448] (--) PCI: (0:1:0:0) 10de:0fd1:1043:2103 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 8352.448] (II) Open ACPI successful (/var/run/acpid.socket)
[ 8352.448] (II) "extmod" will be loaded by default.
[ 8352.448] (II) "dbe" will be loaded by default.
[ 8352.448] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 8352.448] (II) "record" will be loaded by default.
[ 8352.448] (II) "dri" will be loaded by default.
[ 8352.448] (II) "dri2" will be loaded by default.
[ 8352.448] (II) LoadModule: "glx"
[ 8352.448] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 8352.455] (II) Module glx: vendor="NVIDIA Corporation"
[ 8352.455] compiled for 4.0.2, module version = 1.0.0
[ 8352.455] Module class: X.Org Server Extension
[ 8352.455] (II) NVIDIA GLX Module 295.41 Fri Apr 6 23:40:23 PDT 2012
[ 8352.455] (II) Loading extension GLX
[ 8352.455] (II) LoadModule: "extmod"
[ 8352.456] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 8352.456] (II) Module extmod: vendor="X.Org Foundation"
[ 8352.456] compiled for 1.12.1.902, module version = 1.0.0
[ 8352.456] Module class: X.Org Server Extension
[ 8352.456] ABI class: X.Org Server Extension, version 6.0
[ 8352.456] (II) Loading extension SELinux
[ 8352.456] (II) Loading extension MIT-SCREEN-SAVER
[ 8352.456] (II) Loading extension XFree86-VidModeExtension
[ 8352.456] (II) Loading extension XFree86-DGA
[ 8352.456] (II) Loading extension DPMS
[ 8352.456] (II) Loading extension XVideo
[ 8352.456] (II) Loading extension XVideo-MotionCompensation
[ 8352.456] (II) Loading extension X-Resource
[ 8352.456] (II) LoadModule: "dbe"
[ 8352.456] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 8352.456] (II) Module dbe: vendor="X.Org Foundation"
[ 8352.456] compiled for 1.12.1.902, module version = 1.0.0
[ 8352.456] Module class: X.Org Server Extension
[ 8352.456] ABI class: X.Org Server Extension, version 6.0
[ 8352.456] (II) Loading extension DOUBLE-BUFFER
[ 8352.456] (II) LoadModule: "record"
[ 8352.456] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 8352.456] (II) Module record: vendor="X.Org Foundation"
[ 8352.456] compiled for 1.12.1.902, module version = 1.13.0
[ 8352.456] Module class: X.Org Server Extension
[ 8352.456] ABI class: X.Org Server Extension, version 6.0
[ 8352.456] (II) Loading extension RECORD
[ 8352.457] (II) LoadModule: "dri"
[ 8352.457] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[ 8352.457] (II) Module dri: vendor="X.Org Foundation"
[ 8352.457] compiled for 1.12.1.902, module version = 1.0.0
[ 8352.457] ABI class: X.Org Server Extension, version 6.0
[ 8352.457] (II) Loading extension XFree86-DRI
[ 8352.457] (II) LoadModule: "dri2"
[ 8352.457] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 8352.457] (II) Module dri2: vendor="X.Org Foundation"
[ 8352.457] compiled for 1.12.1.902, module version = 1.2.0
[ 8352.457] ABI class: X.Org Server Extension, version 6.0
[ 8352.457] (II) Loading extension DRI2
[ 8352.457] (II) LoadModule: "nvidia"
[ 8352.457] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 8352.557] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 8352.557] compiled for 4.0.2, module version = 1.0.0
[ 8352.557] Module class: X.Org Video Driver
[ 8352.576] (II) NVIDIA dlloader X Driver 295.41 Fri Apr 6 23:20:52 PDT 2012
[ 8352.576] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 8352.578] (++) using VT number 7
[ 8352.585] (EE) No devices detected.
[ 8352.585]
Fatal server error:
[ 8352.585] no screens found
[ 8352.585]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 8352.585] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 8352.585]
I’m using the nvidia generated xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 295.41 (buildmeister@swio-display-x86-rhel47-07.nvidia.com) Sat Apr 7 00:25:09 PDT 2012
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
lspci -v
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 2103
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at f7400000 (64-bit, non-prefetchable)
Memory at d0000000 (64-bit, prefetchable)
I/O ports at f000
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
01:00.0 VGA compatible controller: NVIDIA Corporation Device 0fd1 (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 2103
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f6000000 (32-bit, non-prefetchable)
Memory at e0000000 (64-bit, prefetchable)
Memory at f0000000 (64-bit, prefetchable)
I/O ports at e000
Expansion ROM at f7000000 [disabled]
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
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] #19
Kernel driver in use: nvidia
My system is running Debian wheezy. Kernel 3.2.0-2-amd64
On my previous (3 year old?) laptop that has now died I was able to install nvidia cuda drivers without problems.
What can I do to be able to do some cuda programming on my laptop?
Will cuda 5 fix it all?
Is there hope?!