You are not logged in.

#1 2014-05-06 11:21:38

sepul
Member
Registered: 2014-05-06
Posts: 3

NVIDIA Optimus: Can't init X11

I'm trying to install official drivers on Arch and run X11, but no luck so far...
Graphic card is Nvidia740M (with intel on-chip gpu)

followed the instructions here:
https://wiki.archlinux.org/index.php/NVIDIA_Optimus

But when starting X11 , I get the error: Screen(s) found, but none have a usable configuration. error, with the actual problem being related to Failed to assign any connected display devices to X screen 0.
Been playing with this a day, and really getting frustrated, I also don't care about the intel driver, power-saving and switchable graphics like bumblebee
I can only get it to work by installing open-source intel drivers (xf86-video-intel), nouveau also brings up the same error.

.xinitrc

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startxfce4

/etc/X11/xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 337.12  (buildmeister@swio-display-x64-rhel04-11)  Fri Apr  4 15:17:56 PDT 2014

Section "ServerLayout"
    Identifier     "layout"
    Screen      0  "nvidia" 0 0
    Inactive       "intel"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "modesetting"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "intel"
    Device         "intel"
    Monitor        "Monitor0"
EndSection

Xorg.0.log

[   119.012] 
X.Org X Server 1.15.1
Release Date: 2014-04-13
[   119.020] X Protocol Version 11, Revision 0
[   119.023] Build Operating System: Linux 3.14.0-4-ARCH x86_64 
[   119.025] Current Operating System: Linux sepul-desktop 3.14.2-1-ARCH #1 SMP PREEMPT Sun Apr 27 11:28:44 CEST 2014 x86_64
[   119.025] Kernel command line: initrd=\initramfs-linux.img root=/dev/sda8 rw
[   119.030] Build Date: 14 April 2014  08:39:09AM
[   119.032]  
[   119.035] Current version of pixman: 0.32.4
[   119.039] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   119.039] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   119.048] (==) Log file: "/var/log/Xorg.0.log", Time: Tue May  6 07:10:00 2014
[   119.050] (==) Using config file: "/etc/X11/xorg.conf"
[   119.052] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   119.052] (==) ServerLayout "layout"
[   119.052] (**) |-->Screen "nvidia" (0)
[   119.052] (**) |   |-->Monitor "Monitor0"
[   119.052] (**) |   |-->Device "nvidia"
[   119.052] (**) |-->Inactive Device "intel"
[   119.052] (**) |-->Input Device "Keyboard0"
[   119.052] (**) |-->Input Device "Mouse0"
[   119.053] (==) Automatically adding devices
[   119.053] (==) Automatically enabling devices
[   119.053] (==) Automatically adding GPU devices
[   119.053] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   119.053] 	Entry deleted from font path.
[   119.053] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   119.053] 	Entry deleted from font path.
[   119.053] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   119.053] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   119.053] 	Entry deleted from font path.
[   119.053] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   119.053] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/Type1/
[   119.053] (==) ModulePath set to "/usr/lib/xorg/modules"
[   119.053] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   119.053] (WW) Disabling Keyboard0
[   119.053] (WW) Disabling Mouse0
[   119.053] (II) Loader magic: 0x804c80
[   119.053] (II) Module ABI versions:
[   119.053] 	X.Org ANSI C Emulation: 0.4
[   119.053] 	X.Org Video Driver: 15.0
[   119.053] 	X.Org XInput driver : 20.0
[   119.053] 	X.Org Server Extension : 8.0
[   119.053] (II) xfree86: Adding drm device (/dev/dri/card0)
[   119.054] (--) PCI:*(0:0:2:0) 8086:0412:1043:8534 rev 6, Mem @ 0xde400000/4194304, 0xb0000000/268435456, I/O @ 0x0000f000/64
[   119.054] (--) PCI: (0:1:0:0) 10de:1292:1043:85a1 rev 161, Mem @ 0xdd000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   119.054] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   119.057] Initializing built-in extension Generic Event Extension
[   119.058] Initializing built-in extension SHAPE
[   119.060] Initializing built-in extension MIT-SHM
[   119.062] Initializing built-in extension XInputExtension
[   119.064] Initializing built-in extension XTEST
[   119.066] Initializing built-in extension BIG-REQUESTS
[   119.067] Initializing built-in extension SYNC
[   119.069] Initializing built-in extension XKEYBOARD
[   119.070] Initializing built-in extension XC-MISC
[   119.072] Initializing built-in extension SECURITY
[   119.074] Initializing built-in extension XINERAMA
[   119.075] Initializing built-in extension XFIXES
[   119.077] Initializing built-in extension RENDER
[   119.078] Initializing built-in extension RANDR
[   119.079] Initializing built-in extension COMPOSITE
[   119.081] Initializing built-in extension DAMAGE
[   119.082] Initializing built-in extension MIT-SCREEN-SAVER
[   119.083] Initializing built-in extension DOUBLE-BUFFER
[   119.085] Initializing built-in extension RECORD
[   119.086] Initializing built-in extension DPMS
[   119.087] Initializing built-in extension Present
[   119.089] Initializing built-in extension DRI3
[   119.090] Initializing built-in extension X-Resource
[   119.091] Initializing built-in extension XVideo
[   119.092] Initializing built-in extension XVideo-MotionCompensation
[   119.093] Initializing built-in extension XFree86-VidModeExtension
[   119.095] Initializing built-in extension XFree86-DGA
[   119.096] Initializing built-in extension XFree86-DRI
[   119.097] Initializing built-in extension DRI2
[   119.097] (II) LoadModule: "glx"
[   119.097] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   119.109] (II) Module glx: vendor="NVIDIA Corporation"
[   119.109] 	compiled for 4.0.2, module version = 1.0.0
[   119.109] 	Module class: X.Org Server Extension
[   119.109] (II) NVIDIA GLX Module  337.12  Fri Apr  4 14:34:00 PDT 2014
[   119.110] Loading extension GLX
[   119.110] (II) LoadModule: "nvidia"
[   119.111] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   119.111] (II) Module nvidia: vendor="NVIDIA Corporation"
[   119.111] 	compiled for 4.0.2, module version = 1.0.0
[   119.111] 	Module class: X.Org Video Driver
[   119.111] (II) LoadModule: "modesetting"
[   119.111] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   119.111] (II) Module modesetting: vendor="X.Org Foundation"
[   119.111] 	compiled for 1.15.0, module version = 0.8.1
[   119.111] 	Module class: X.Org Video Driver
[   119.111] 	ABI class: X.Org Video Driver, version 15.0
[   119.111] (II) NVIDIA dlloader X Driver  337.12  Fri Apr  4 14:13:45 PDT 2014
[   119.111] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   119.111] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   119.111] (++) using VT number 1

[   119.111] (II) Loading sub module "fb"
[   119.111] (II) LoadModule: "fb"
[   119.111] (II) Loading /usr/lib/xorg/modules/libfb.so
[   119.111] (II) Module fb: vendor="X.Org Foundation"
[   119.112] 	compiled for 1.15.1, module version = 1.0.0
[   119.112] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   119.112] (WW) Unresolved symbol: fbGetGCPrivateKey
[   119.112] (II) Loading sub module "wfb"
[   119.112] (II) LoadModule: "wfb"
[   119.112] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   119.112] (II) Module wfb: vendor="X.Org Foundation"
[   119.112] 	compiled for 1.15.1, module version = 1.0.0
[   119.112] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   119.112] (II) Loading sub module "ramdac"
[   119.112] (II) LoadModule: "ramdac"
[   119.112] (II) Module "ramdac" already built-in
[   119.113] (WW) Falling back to old probe method for modesetting
[   119.113] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[   119.113] (==) NVIDIA(0): RGB weight 888
[   119.113] (==) NVIDIA(0): Default visual is TrueColor
[   119.113] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   119.113] (**) NVIDIA(0): Enabling 2D acceleration
[   119.426] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[   119.427] (II) NVIDIA(0): NVIDIA GPU GeForce GT 740M (GK208) at PCI:1:0:0 (GPU-0)
[   119.427] (--) NVIDIA(0): Memory: 2097152 kBytes
[   119.427] (--) NVIDIA(0): VideoBIOS: 80.28.2a.00.20
[   119.427] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   119.432] (--) NVIDIA(0): Valid display device(s) on GeForce GT 740M at PCI:1:0:0
[   119.432] (--) NVIDIA(0):     DFP-0
[   119.432] (--) NVIDIA(0):     DFP-1
[   119.432] (--) NVIDIA(0):     DFP-2
[   119.432] (--) NVIDIA(0):     DFP-3
[   119.432] (--) NVIDIA(0): DFP-0: Internal TMDS
[   119.432] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[   119.432] (--) NVIDIA(0): DFP-1: Internal TMDS
[   119.432] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   119.432] (--) NVIDIA(0): DFP-2: Internal DisplayPort
[   119.432] (--) NVIDIA(GPU-0): DFP-2: 480.0 MHz maximum pixel clock
[   119.432] (--) NVIDIA(0): DFP-3: Internal DisplayPort
[   119.432] (--) NVIDIA(GPU-0): DFP-3: 480.0 MHz maximum pixel clock
[   119.432] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0. 
[   119.432] (EE) NVIDIA(0):     Set AllowEmptyInitialConfiguration if you want the server
[   119.432] (EE) NVIDIA(0):     to start anyway
[   119.449] (EE) NVIDIA(0): Failing initialization of X screen 0
[   119.449] (II) UnloadModule: "nvidia"
[   119.449] (II) UnloadSubModule: "wfb"
[   119.449] (II) UnloadSubModule: "fb"
[   119.449] (EE) Screen(s) found, but none have a usable configuration.
[   119.449] (EE) 
Fatal server error:
[   119.449] (EE) no screens found(EE) 
[   119.449] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   119.449] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   119.449] (EE) 
[   119.452] (EE) Server terminated with error (1). Closing log file.

lsmod | grep nvidia

nvidia              10784100  0 
drm                   242043  1 nvidia
i2c_core               25400  4 drm,i2c_i801,nvidia,videodev

I also added nouveau to blacklist, and nvidia to mkinitcpio.conf
Also tried added resolutions to xorg.conf, but still get the same error

some stuff I'm curious about :
- I installed xrandr after nvidia drivers, as the guide said, but xrandr doesn't work in terminal, brings up "no screens" error, is this normal ?
- I also noticed that when I initialize X11 with intel (xf86-video-intel) drivers, xrandr shows VGA1, HDMI1, HDMI2, VIRTUAL as valid displays, but in the Xorg.log (nvidia) I don't any any of these enumerated.

any hints or help ?

thanks

Offline

#2 2014-05-06 12:11:18

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: NVIDIA Optimus: Can't init X11

sepul wrote:

Been playing with this a day, and really getting frustrated, I also don't care about the intel driver, power-saving and switchable graphics like bumblebee
I can only get it to work by installing open-source intel drivers (xf86-video-intel), nouveau also brings up the same error.

Why? it's the best way to get it to work.

Offline

#3 2014-05-06 12:35:03

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: NVIDIA Optimus: Can't init X11

Check the xorg example on this page https://wiki.archlinux.org/index.php/NVIDIA_Optimus (this if you only want to use nvidia and disable intel).
Don't forget to get the busID and add it to the xorg. Then try again.

Offline

#4 2014-05-06 13:05:30

sepul
Member
Registered: 2014-05-06
Posts: 3

Re: NVIDIA Optimus: Can't init X11

Why? it's the best way to get it to work.

Tried bumblebee too, still get the same error, wanted to get things more simple and also try official nvidia (optimus)

Check the xorg example on this page https://wiki.archlinux.org/index.php/NVIDIA_Optimus (this if you only want to use nvidia and disable intel).
Don't forget to get the busID and add it to the xorg. Then try again.

Yes, I have tried the xorg.conf written there. If you also see the current xorg.conf, it has BusID too. I don't get device not found error (which is the case for missing BusID)

Does Intel device also need BusID too ?

Offline

#5 2014-05-06 13:11:48

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: NVIDIA Optimus: Can't init X11

Nope, I have the same graphic and I'm using the nvidia only (and that xorg file example also)
Maybe is because of this line at begin in your xorg

Screen      0  "nvidia" 0 0

Those two last zero's should be there? Because in the xorg example they aren't

Offline

#6 2014-05-06 23:27:54

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: NVIDIA Optimus: Can't init X11

Also, what is the output of "sudo pacman -Qs libgl"?


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB