GeForce GT 540M : (EE) No devices detected

I installed 340.32 on a Acer Aspire TimelineX 5830TG
with Mandriva 2011 x86_64 installed. To install first
make sure the old graphics driver is not activated :

  1. cd /etc/systemd/system
    ln -sf /lib/systemd/system/multi-user.target default.target
  2. next reboot in `failsafe’ mode.

The installation of NVIDIA-Linux-x86_64-340.32.run went without
any errors or warnings … it created the following /etc/X11/xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 340.32  (buildmeister@swio-display-x64-rhel04-01)  Tue Aug  5 21:15:33 PDT 2014

# File generated by XFdrake (rev 262502)
# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerLayout"
    Identifier     "layout1"
    Screen         "screen1" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Module"
    Load           "v4l" # Video for Linux
    Load           "glx"
EndSection

Section "ServerFlags"

 # allows the server to start up even if the mouse does not work
    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
    Option         "DontZap" "False" # disable <Ctrl><Alt><BS> (server abort)
    Option         "allowmouseopenfail"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
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 "Monitor"

    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    Identifier     "monitor1"
    VendorName     "Generic"
    ModelName      "Flat Panel 1024x768"
    HorizSync       31.5 - 48.0
    VertRefresh     56.0 - 65.0
    ModeLine       "768x576" 50.00 768 832 846 1000 576 590 595 630
    ModeLine       "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
    Identifier     "device1"
    Driver         "intel"
    VendorName     "Intel Corporation"
    BoardName      "Intel 810 and later"
EndSection

Section "Screen"
    Identifier     "screen1"
    Device         "device1"
    Monitor        "monitor1"
    DefaultDepth    24
    Option         "DPMS"
    SubSection     "Display"
        Depth       8
        Modes      "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubSection
EndSection

I tested the configuration above and a second time with Driver “intel” changed
into “nvidia” . Here’s the logging inside /var/log/Xorg.0.log :

[   281.774] _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
[   281.774] _XSERVTransOpen: transport open failed for inet6/acer30.stokkie.net:0
[   281.774] _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[   281.794] 
X.Org X Server 1.10.3
Release Date: 2011-07-08
[   281.795] X Protocol Version 11, Revision 0
[   281.795] Build Operating System: Linux_2.6.33.7-server-2mnb Mandriva
[   281.795] Current Operating System: Linux acer30.stokkie.net 2.6.39.4-4.2-desktop #1 SMP Fri Jan 13 15:29:31 CET 2017 x86_64
[   281.795] Kernel command line: BOOT_IMAGE=/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=92e466c1-6a5c-4f0c-920c-ec96fd8c1902 failsafe
[   281.795] Build Date: 26 July 2011  01:51:30AM
[   281.796]  
[   281.796] Current version of pixman: 0.22.0
[   281.796] 	Before reporting problems, check http://qa.mandriva.com
	to make sure that you have the latest version.
[   281.796] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   281.797] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Sep 11 16:48:13 2017
[   281.855] (==) Using config file: "/etc/X11/xorg.conf"
[   281.855] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   281.871] (==) ServerLayout "layout1"
[   281.871] (**) |-->Screen "screen1" (0)
[   281.871] (**) |   |-->Monitor "monitor1"
[   281.871] (**) |   |-->Device "device1"
[   281.871] (**) |-->Input Device "Keyboard0"
[   281.871] (**) |-->Input Device "Mouse0"
[   281.871] (**) Option "DontZap" "False"
[   281.871] (**) Option "AllowMouseOpenFail"
[   281.871] (==) Automatically adding devices
[   281.871] (==) Automatically enabling devices
[   281.888] (==) FontPath set to:
	catalogue:/etc/X11/fontpath.d
[   281.888] (==) ModulePath set to "/usr/lib64/xorg/extra-modules,/usr/lib64/xorg/modules"
[   281.888] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   281.888] (WW) Disabling Keyboard0
[   281.888] (WW) Disabling Mouse0
[   281.888] (II) Loader magic: 0x7d61a0
[   281.888] (II) Module ABI versions:
[   281.888] 	X.Org ANSI C Emulation: 0.4
[   281.888] 	X.Org Video Driver: 10.0
[   281.888] 	X.Org XInput driver : 12.2
[   281.888] 	X.Org Server Extension : 5.0
[   281.888] (--) PCI:*(0:0:2:0) 8086:0116:1025:055b rev 9, Mem @ 0xd1400000/4194304, 0xc0000000/268435456, I/O @ 0x00004000/64
[   281.888] (--) PCI: (0:1:0:0) 10de:0df4:1025:055c rev 161, Mem @ 0xd0000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[   281.888] (II) Open ACPI successful (/var/run/acpid.socket)
[   281.888] (II) "extmod" will be loaded by default.
[   281.888] (II) "dbe" will be loaded by default.
[   281.888] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   281.888] (II) "record" will be loaded by default.
[   281.888] (II) "dri" will be loaded by default.
[   281.888] (II) "dri2" will be loaded by default.
[   281.888] (II) LoadModule: "v4l"
[   281.950] (II) Loading /usr/lib64/xorg/modules/drivers/v4l_drv.so
[   281.958] (II) Module v4l: vendor="X.Org Foundation"
[   281.958] 	compiled for 1.10.2, module version = 0.1.1
[   281.958] 	ABI class: X.Org Video Driver, version 10.0
[   281.958] (II) LoadModule: "glx"
[   282.018] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   282.828] (II) Module glx: vendor="NVIDIA Corporation"
[   282.837] 	compiled for 4.0.2, module version = 1.0.0
[   282.837] 	Module class: X.Org Server Extension
[   282.846] (II) NVIDIA GLX Module  340.32  Tue Aug  5 20:32:43 PDT 2014
[   282.860] (II) Loading extension GLX
[   282.860] (II) LoadModule: "extmod"
[   282.860] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[   282.874] (II) Module extmod: vendor="X.Org Foundation"
[   282.874] 	compiled for 1.10.3, module version = 1.0.0
[   282.874] 	Module class: X.Org Server Extension
[   282.874] 	ABI class: X.Org Server Extension, version 5.0
[   282.874] (II) Loading extension MIT-SCREEN-SAVER
[   282.874] (II) Loading extension XFree86-VidModeExtension
[   282.874] (II) Loading extension XFree86-DGA
[   282.874] (II) Loading extension DPMS
[   282.874] (II) Loading extension XVideo
[   282.874] (II) Loading extension XVideo-MotionCompensation
[   282.874] (II) Loading extension X-Resource
[   282.874] (II) LoadModule: "dbe"
[   282.874] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[   282.882] (II) Module dbe: vendor="X.Org Foundation"
[   282.882] 	compiled for 1.10.3, module version = 1.0.0
[   282.882] 	Module class: X.Org Server Extension
[   282.882] 	ABI class: X.Org Server Extension, version 5.0
[   282.882] (II) Loading extension DOUBLE-BUFFER
[   282.882] (II) LoadModule: "record"
[   282.883] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[   282.891] (II) Module record: vendor="X.Org Foundation"
[   282.891] 	compiled for 1.10.3, module version = 1.13.0
[   282.891] 	Module class: X.Org Server Extension
[   282.891] 	ABI class: X.Org Server Extension, version 5.0
[   282.891] (II) Loading extension RECORD
[   282.891] (II) LoadModule: "dri"
[   282.891] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
[   282.902] (II) Module dri: vendor="X.Org Foundation"
[   282.902] 	compiled for 1.10.3, module version = 1.0.0
[   282.902] 	ABI class: X.Org Server Extension, version 5.0
[   282.902] (II) Loading extension XFree86-DRI
[   282.902] (II) LoadModule: "dri2"
[   282.902] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[   282.902] (II) Module dri2: vendor="X.Org Foundation"
[   282.902] 	compiled for 1.10.3, module version = 1.2.0
[   282.902] 	ABI class: X.Org Server Extension, version 5.0
[   282.902] (II) Loading extension DRI2
[   282.903] (II) LoadModule: "nvidia"
[   282.903] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   282.965] (II) Module nvidia: vendor="NVIDIA Corporation"
[   282.978] 	compiled for 4.0.2, module version = 1.0.0
[   282.978] 	Module class: X.Org Video Driver
[   282.990] (II) v4l driver for Video4Linux
[   282.990] (II) NVIDIA dlloader X Driver  340.32  Tue Aug  5 20:13:04 PDT 2014
[   282.990] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   282.991] (--) using VT number 8

[   282.992] (WW) Falling back to old probe method for v4l
[   282.992] (EE) No devices detected.
[   282.992] 
Fatal server error:
[   282.992] no screens found
[   282.992] 
Please consult the The X.Org Foundation support 
	 at http://qa.mandriva.com
 for help. 
[   282.992] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   282.992]

I thought it was very strange that although the kernel driver module nvidia.ko
had loaded error free :

Module                  Size  Used by
ipt_MASQUERADE          2384  1 
ipt_LOG                 8009  1 
xt_state                1410  1 
iptable_nat             5127  1 
iptable_filter          1802  1 
nf_nat_ftp              2274  0 
nf_nat                 21663  3 ipt_MASQUERADE,iptable_nat,nf_nat_ftp
nf_conntrack_ipv4      14734  4 iptable_nat,nf_nat
nf_defrag_ipv4          1657  1 nf_conntrack_ipv4
nf_conntrack_irc        5128  0 
nf_conntrack_ftp       11326  1 nf_nat_ftp
nf_conntrack           83961  8 ipt_MASQUERADE,xt_state,iptable_nat,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_irc,nf_conntrack_ftp
ip_tables              19124  2 iptable_nat,iptable_filter
x_tables               24804  6 ipt_MASQUERADE,ipt_LOG,xt_state,iptable_nat,iptable_filter,ip_tables
nfs                   320983  0 
lockd                  79366  1 nfs
fscache                44887  1 nfs
auth_rpcgss            44731  1 nfs
nfs_acl                 2725  1 nfs
sunrpc                225015  5 nfs,lockd,auth_rpcgss,nfs_acl
af_packet              21604  2 
bnep                   15827  2 
bluetooth             213982  7 bnep
pci_stub                1646  1 
vboxpci                15312  0 
vboxnetadp             18678  0 
vboxnetflt             18087  0 
vboxdrv               330789  3 vboxpci,vboxnetadp,vboxnetflt
coretemp                6103  0 
nvidia              10533918  0 
uvcvideo               63774  0 
videodev               90721  1 uvcvideo
media                  13608  1 videodev
snd_hda_codec_hdmi     25618  1 
v4l2_compat_ioctl32     9044  1 videodev
i2c_i801                9922  0 
sparse_keymap           4322  0 
snd_hda_codec_conexant    55236  1 
i2c_core               30664  3 nvidia,videodev,i2c_i801
xhci_hcd              118038  0 
rfkill                 18699  2 bluetooth
battery                11618  0 
iTCO_wdt               13412  0 
iTCO_vendor_support     3070  1 iTCO_wdt
sg                     30212  0 
snd_hda_intel          26102  1 
snd_hda_codec         100363  3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
wmi                    10182  0 
snd_hwdep               7020  1 snd_hda_codec
evdev                  10209  11 
snd_pcm_oss            46424  0 
snd_pcm                95259  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              23276  1 snd_pcm
snd_page_alloc          8612  2 snd_hda_intel,snd_pcm
snd_mixer_oss          16133  1 snd_pcm_oss
snd                    74624  11 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               7751  1 snd
autofs4                24308  6 
ext4                  401007  1 
jbd2                   79652  1 ext4
crc16                   1731  2 bluetooth,ext4
usbhid                 43861  0 
hid                    84987  1 usbhid
sd_mod                 35801  4 
sr_mod                 15423  0 
crc_t10dif              1587  1 sd_mod
ahci                   21638  3 
libahci                23027  1 ahci
libata                210234  2 ahci,libahci
rts_pstor             409943  1 
ehci_hcd               53153  0 
usbcore               195459  5 uvcvideo,xhci_hcd,usbhid,ehci_hcd
scsi_mod              212079  5 sg,sd_mod,sr_mod,rts_pstor,libata
atl1c                  35725  0 
video                  12689  0 
loop                   18830  0 
dm_mod                 74522  0

I still get the error : [ 282.992] (EE) No devices detected.
I started looking and the found the following :

[acer30:root]:(~)# cd /proc/driver/nvidia/
[acer30:root]:(/proc/driver/nvidia)# ll
total 0
dr-xr-xr-x 3 root root 0 Sep 11 20:24 gpus/
-r--r--r-- 1 root root 0 Sep 11 21:14 params
dr-xr-xr-x 2 root root 0 Sep 11 21:14 patches/
-rw-r--r-- 1 root root 0 Sep 11 21:14 registry
-r--r--r-- 1 root root 0 Sep 11 21:14 version
dr-xr-xr-x 2 root root 0 Sep 11 21:14 warnings/
[acer30:root]:(/proc/driver/nvidia)# cd gpus
[acer30:root]:(/proc/driver/nvidia/gpus)# ll
total 0
dr-xr-xr-x 2 root root 0 Sep 11 20:24 0000:01:00.0/
[acer30:root]:(/proc/driver/nvidia/gpus)# cd 0000\:01\:00.0/
[acer30:root]:(/proc/driver/nvidia/gpus/0000:01:00.0)# ll
total 0
-r--r--r-- 1 root root 0 Sep 11 21:14 information
-rw-r--r-- 1 root root 0 Sep 11 21:14 registry
[acer30:root]:(/proc/driver/nvidia/gpus/0000:01:00.0)# cat information 
Model:           GeForce GT 540M
IRQ:             16
GPU UUID:        GPU-????????-????-????-????-????????????
Video BIOS:      ??.??.??.??.??
Bus Type:        PCIe
DMA Size:        32 bits
DMA Mask:        0xffffffff
Bus Location:    0000:01:00.0
[acer30:root]:(/proc/driver/nvidia/gpus/0000:01:00.0)# cat registry 
Binary: ""
[acer30:root]:(/proc/driver/nvidia/gpus/0000:01:00.0)#

So on my laptop both the GPU UUID and Video BIOS have been wiped out ?
Hence any NVidia driver will of course fail to detect the onboard GeForce GT 540M …

Any advise what to do next ?

It’s an Optimus System, see:
https://devtalk.nvidia.com/default/topic/1022670/linux/official-driver-384-59-with-geforce-1050m-doesn-t-work-on-opensuse-tumbleweed-kde/post/5203910/#5203910