Failed to assign any connected display devices to X screen 0 #182

Closed
RJHsiao opened this Issue Jun 18, 2012 · 33 comments

Projects

None yet

8 participants

@RJHsiao
RJHsiao commented Jun 18, 2012

Hello:

I have a trouble about running application with optirun, It looks like:

$ optirun -vv glxspheres
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[INFO]Configured driver: nvidia
[DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[DEBUG]Process /sbin/modinfo started, PID 5154.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: proxy
[DEBUG]optirun version 3.0 starting...
[INFO]Response: No - error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0

[DEBUG]Socket closed.
[ERROR]Aborting because fallback start is disabled.
[DEBUG]Killing all remaining processes.

I'm using Thinkpad T420s 4171-A18 with ubuntu 12.04 LST x64 Desktop Edition, NVidia NVS 4200M,
and the Drive version is 302.17 from ppa:ubuntu-x-swat/x-updates.
I already upload conf and log files, so everyone can watch them from this gist.

Oh, of course the Bumblebee is the newest form ppa:bumblebee/stable

@ArchangeGabriel
Member

Please do the followings :
sudo rm /usr/share/X11/xorg.conf.d/10-nvidia-current-thinkpad-t420s.conf

And reboot.

@RJHsiao
RJHsiao commented Jun 18, 2012

Wow! It effective!
Thank you, @ArchangeGabriel
It looks like the same problem with issue #127, I should trying remove the file before I create this issue...(doh)

@RJHsiao RJHsiao closed this Jun 18, 2012
@xrobin
xrobin commented Jul 7, 2012

Hi there!
Worked wonderfully here on a dell latitude e6530 with a NVS 5200M, (just had to replace the file name accordingly).
Thanks a lot!

@ArchangeGabriel
Member

Yes, these are the two models with a quirk in the driver installation, which IMO is stupid.

@zer01ne
zer01ne commented Jul 12, 2012

I have the same problem, however that file doesn't exist for me. I have the Sony Vaio S Series wtih Intel 4000/nVidia 640M LE.

[roberts@banshee ~]$ optirun -vv firefox
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[INFO]Configured driver: nvidia
[DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[DEBUG]Process modinfo started, PID 1890.
[DEBUG]Hiding stderr for execution of modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: proxy
[DEBUG]optirun version 3.0 starting...
[INFO]Response: No - error: XORG NVIDIA(0): Failed to assign any connected display devices to X screen 0

[ERROR]Cannot access secondary GPU - error: XORG NVIDIA(0): Failed to assign any connected display devices to X screen 0

[DEBUG]Socket closed.
[ERROR]Aborting because fallback start is disabled.
[DEBUG]Killing all remaining processes.

Running Arch Linux latest...
bumblebee
dkms-nvidia
dkms-bbswitch

@ArchangeGabriel
Member

What does ls /usr/share/X11/xorg.conf.d/ return ?

@henrytm
henrytm commented Jul 27, 2012

hi,
I have the same issue...
My laptop has a gt 650m i always get this error:
[ERROR]Cannot access secondary GPU - error: XORG NVIDIA(0): Failed to assign any connected display devices to X screen 0
The output of ls is:

henrik@henrik-P6815:~$ ls /usr/share/X11/xorg.conf.d
10-evdev.conf             50-synaptics.conf  51-synaptics-quirks.conf
11-evdev-quirks.conf      50-vmmouse.conf
11-evdev-trackpoint.conf  50-wacom.conf

I tryed many things but I don' get this stuff working
Best regards Henry

@ArchangeGabriel
Member

Have you tried Bumblebee 3.0.1 with nVidia driver 304.22 and xorg.conf.nvidia changed to set "UseDisplayDevice" "none" instead of "ConnectedMonitor" "DFP" ?

@henrytm
henrytm commented Jul 27, 2012

Hi
I updated it, I even reinstalled my ubuntu before I'm always getting this error. Should I replace "ConnectedMonitor" by UseDisplayDevice?
Henry

@ArchangeGabriel
Member

If you're using the 304.22 driver, then yes, try this option. Else, install it before. If you're using Ubuntu, you have to edit /etc/bumblebee/bumblebee.conf and change Driver= to Driver=nvidia and KernelDriver=nvidia-current by KernelDriver=nvidia.

@henrytm
henrytm commented Jul 27, 2012

Should I restart or just relogin?
I hope it was the problem with the kernel driver
here the output:

[    53.537] 
X.Org X Server 1.11.3
Release Date: 2011-12-16
[    53.537] X Protocol Version 11, Revision 0
[    53.537] Build Operating System: Linux 2.6.42-26-generic x86_64 Ubuntu
[    53.537] Current Operating System: Linux henrik-P6815 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64
[    53.537] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-27-generic root=UUID=65ce2a66-eb65-4957-bd0d-bd0514656724 ro quiet splash vt.handoff=7
[    53.537] Build Date: 16 July 2012  08:06:31PM
[    53.537] xorg-server 2:1.11.4-0ubuntu10.6 (For technical support please see http://www.ubuntu.com/support) 
[    53.537] Current version of pixman: 0.24.4
[    53.537]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    53.537] Markers: (--) probed, (*_) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    53.537](==) Log file: "/var/log/Xorg.8.log", Time: Sat Jul 28 00:51:24 2012
[    53.537](++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[    53.537](==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    53.555](==) ServerLayout "Layout0"
[    53.555](==) No screen section available. Using defaults.
[    53.555](**) |-->Screen "Default Screen Section" (0)
[    53.555](**) |   |-->Monitor "<default monitor>"
[    53.555](==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[    53.555](**) |   |-->Device "Device1"
[    53.555](==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    53.555](**) Option "AutoAddDevices" "false"
[    53.555](**) Not automatically adding devices
[    53.555](==) Automatically enabling devices
[    53.555](WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    53.555]    Entry deleted from font path.
[    53.555](WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    53.555]    Entry deleted from font path.
[    53.555](WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    53.555]    Entry deleted from font path.
[    53.555](WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    53.555]    Entry deleted from font path.
[    53.555](WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    53.555]    Entry deleted from font path.
[    53.555](WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[    53.555]    Entry deleted from font path.
[    53.555](==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
[    53.555](++) ModulePath set to "/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules"
[    53.555](==) |-->Input Device "<default pointer>"
[    53.555](==) |-->Input Device "<default keyboard>"
[    53.555](==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
[    53.555](==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
[    53.555](II) Loader magic: 0x7f4ecf294b00
[    53.555](II) Module ABI versions:
[    53.555]    X.Org ANSI C Emulation: 0.4
[    53.555]    X.Org Video Driver: 11.0
[    53.555]    X.Org XInput driver : 16.0
[    53.555]    X.Org Server Extension : 6.0
[    53.556](--) PCI:_(0:1:0:0) 10de:0fd1:1b0a:20dd rev 161, Mem @ 0xf5000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    53.556](II) Open ACPI successful (/var/run/acpid.socket)
[    53.556](II) LoadModule: "extmod"
[    53.556](II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[    53.556](II) Module extmod: vendor="X.Org Foundation"
[    53.556]    compiled for 1.11.3, module version = 1.0.0
[    53.556]    Module class: X.Org Server Extension
[    53.556]    ABI class: X.Org Server Extension, version 6.0
[    53.556](II) Loading extension MIT-SCREEN-SAVER
[    53.556](II) Loading extension XFree86-VidModeExtension
[    53.556](II) Loading extension XFree86-DGA
[    53.556](II) Loading extension DPMS
[    53.556](II) Loading extension XVideo
[    53.556](II) Loading extension XVideo-MotionCompensation
[    53.556](II) Loading extension X-Resource
[    53.556](II) LoadModule: "dbe"
[    53.557](II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[    53.557](II) Module dbe: vendor="X.Org Foundation"
[    53.557]    compiled for 1.11.3, module version = 1.0.0
[    53.557]    Module class: X.Org Server Extension
[    53.557]    ABI class: X.Org Server Extension, version 6.0
[    53.557](II) Loading extension DOUBLE-BUFFER
[    53.557](II) LoadModule: "glx"
[    53.557](II) Loading /usr/lib/nvidia-current/xorg/libglx.so
[    55.438](II) Module glx: vendor="NVIDIA Corporation"
[    55.438]    compiled for 4.0.2, module version = 1.0.0
[    55.438]    Module class: X.Org Server Extension
[    55.438](II) NVIDIA GLX Module  302.17  Tue Jun 12 16:22:45 PDT 2012
[    55.438](II) Loading extension GLX
[    55.438](II) LoadModule: "record"
[    55.438](II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[    55.438](II) Module record: vendor="X.Org Foundation"
[    55.438]    compiled for 1.11.3, module version = 1.13.0
[    55.438]    Module class: X.Org Server Extension
[    55.438]    ABI class: X.Org Server Extension, version 6.0
[    55.438](II) Loading extension RECORD
[    55.438](II) LoadModule: "dri"
[    55.439](II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[    55.439](II) Module dri: vendor="X.Org Foundation"
[    55.439]    compiled for 1.11.3, module version = 1.0.0
[    55.439]    ABI class: X.Org Server Extension, version 6.0
[    55.439](II) Loading extension XFree86-DRI
[    55.439](II) LoadModule: "dri2"
[    55.439](II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[    55.439](II) Module dri2: vendor="X.Org Foundation"
[    55.439]    compiled for 1.11.3, module version = 1.2.0
[    55.439]    ABI class: X.Org Server Extension, version 6.0
[    55.439](II) Loading extension DRI2
[    55.439](II) LoadModule: "nvidia"
[    55.439](II) Loading /usr/lib/nvidia-current/xorg/nvidia_drv.so
[    55.936](II) Module nvidia: vendor="NVIDIA Corporation"
[    55.937]    compiled for 4.0.2, module version = 1.0.0
[    55.937]    Module class: X.Org Video Driver
[    56.143](II) LoadModule: "mouse"
[    56.143](II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[    56.275](II) Module mouse: vendor="X.Org Foundation"
[    56.275]    compiled for 1.11.3, module version = 1.7.1
[    56.275]    Module class: X.Org XInput Driver
[    56.275]    ABI class: X.Org XInput driver, version 16.0
[    56.275](II) LoadModule: "kbd"
[    56.275](WW) Warning, couldn't open module kbd
[    56.275](II) UnloadModule: "kbd"
[    56.275](II) Unloading kbd
[    56.275](EE) Failed to load module "kbd" (module does not exist, 0)
[    56.275](II) NVIDIA dlloader X Driver  302.17  Tue Jun 12 16:04:53 PDT 2012
[    56.275](II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    56.347](--) using VT number 7

[    56.393](II) Loading sub module "fb"
[    56.393](II) LoadModule: "fb"
[    56.393](II) Loading /usr/lib/xorg/modules/libfb.so
[    56.393](II) Module fb: vendor="X.Org Foundation"
[    56.393]    compiled for 1.11.3, module version = 1.0.0
[    56.393]    ABI class: X.Org ANSI C Emulation, version 0.4
[    56.393](II) Loading sub module "wfb"
[    56.393](II) LoadModule: "wfb"
[    56.393](II) Loading /usr/lib/xorg/modules/libwfb.so
[    56.491](II) Module wfb: vendor="X.Org Foundation"
[    56.491]    compiled for 1.11.3, module version = 1.0.0
[    56.491]    ABI class: X.Org ANSI C Emulation, version 0.4
[    56.491](II) Loading sub module "ramdac"
[    56.491](II) LoadModule: "ramdac"
[    56.491](II) Module "ramdac" already built-in
[    56.504](II) Loading /usr/lib/nvidia-current/xorg/nvidia_drv.so
[    56.504](II) Loading /usr/lib/xorg/modules/libwfb.so
[    56.504](II) Loading /usr/lib/xorg/modules/libfb.so
[    56.568](II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    56.568](==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    56.568](==) NVIDIA(0): RGB weight 888
[    56.568](==) NVIDIA(0): Default visual is TrueColor
[    56.568](==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    56.568](**) NVIDIA(0): Option "NoLogo" "true"
[    56.568](**) NVIDIA(0): Option "UseEDID" "false"
[    56.568](**) NVIDIA(0): Option "UseDisplayDevice" "none"
[    56.568](**) NVIDIA(0): Enabling 2D acceleration
[    56.568](**) NVIDIA(0): Ignoring EDIDs
[    56.569](**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[    56.569](**) NVIDIA(0):     mode
[    57.248](WW) NVIDIA(0): NoScanout is only supported on Tesla or Quadro hardware. 
[    57.248](WW) NVIDIA(0):     Disabling NoScanout.
[    57.248](WW) NVIDIA(0): Failed to enable display hotplug notification
[    57.281](II) NVIDIA(0): NVIDIA GPU GeForce GT 650M (GK107) at PCI:1:0:0 (GPU-0)
[    57.282](--) NVIDIA(0): Memory: 2097152 kBytes
[    57.282](--) NVIDIA(0): VideoBIOS: 80.07.15.00.0c
[    57.282](II) NVIDIA(0): Detected PCI Express Link width: 16X
[    57.282](--) NVIDIA(0): Interlaced video modes are supported on this GPU
[    57.285](--) NVIDIA(0): Valid display device(s) on GeForce GT 650M at PCI:1:0:0
[    57.285](--) NVIDIA(0):     none
[    57.285](EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0
[    57.287](EE) NVIDIA(0): Failing initialization of X screen 0
[    57.305](II) UnloadModule: "nvidia"
[    57.305](II) Unloading nvidia
[    57.305](II) UnloadModule: "wfb"
[    57.305](II) Unloading wfb
[    57.305](II) UnloadModule: "fb"
[    57.305](II) Unloading fb
[    57.305](EE) Screen(s) found, but none have a usable configuration.
[    57.305] 
Fatal server error:
[    57.305] no screens found
[    57.305] 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[    57.305] Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[    57.305] 
[    57.305]  ddxSigGiveUp: Closing log
[    57.305] Server terminated with error (1). Closing log file.

@henrytm
henrytm commented Jul 27, 2012

No now after editing & restart it says
[ 36.970789] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect. [ 36.970809] [ERROR]Could not connect to bumblebee daemon - is it running?
how can i check the nvidia version?

@ArchangeGabriel
Member

Hum, you have to use 304.22 driver. As you're on ubuntu, only two solutions. First one, use the xorg-edgers PPA and do not forget changes to made to bumblebee.conf. Second one, wait for a new driver to be available in ubuntu-x-swat, which should happen during next month I think.

@henrytm
henrytm commented Jul 27, 2012

i will take the first one. How can I update to it? I added the repo & which package should I use& how can I uninstall the old?

@ArchangeGabriel
Member

It is not advised to use it if you're not able to answer these questions yourself. This repo brings packages compiled directly from git for all the graphic stack. If you add it to your system, you just have to run a normal update (through update manager or apt-get upgrade), and it should normally bring you the latest nvidia driver, but also kernel (3.5), X.org, ...

@henrytm
henrytm commented Jul 27, 2012

I did itvia apt-get upgrade It didn't updated the kernel as far as I can see.

@ArchangeGabriel
Member

Ok, but that's not a problem, it should be optional. So, if you have the latest nvidia, you should edit bumblebee.conf accordingly to my above post and reboot.

@henrytm
henrytm commented Jul 27, 2012

i installed them and reboot it gave my the error above that it didn't started up. after update looked via dpkg -l and found
nvidia-current 302.17-0ubuntu NVIDIA binary Xorg driver, kernel module and
ii nvidia-setting 304.22-0ubuntu Tool of configuring the NVIDIA graphics driv

The different numbers are strange

@ArchangeGabriel
Member

Indeed, please ensure to upgrade nvidia-current.

@henrytm
henrytm commented Jul 27, 2012

yes now i did. do I have to edit the files again, because I edited them before updating the driver

@ArchangeGabriel
Member

No, normally they shouldn't have changed, you can check that fastly anyway. ;)

@henrytm
henrytm commented Jul 27, 2012

Yes now it seems to work, just running firefox with optirun. Thanks for the quick help.

@ArchangeGabriel
Member

Np, nice to see it working. ;)

@skindix
skindix commented Jul 27, 2012

Hi guys, just found this issue. Having another error with my Bumblebee 3.0.1 and nvidia 304.22

[ 59.667156] [ERROR]Cannot access secondary GPU - error: XORG NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please

[ 59.667186] [ERROR]Aborting because fallback start is disabled.

TRied to follow your instructions here - no effect. BTW after installing 304.22 from edgers unity disappeared (it is interactive but not showing, only free space at the edge of screen and pointers to the active apps). Using Ubuntu 12.04 on Lenovo ideapad y480 - NVIDIA 640m LE + HD4000.

@ArchangeGabriel
Member

xorg-edgers is unstable packages, and if you read the instructions on their homepage, it has indeed some issues with Unity.

For Lenovo Y480, ask @TheSiege, he has the same model, and I think you should compile bbswitch from git using the hack branch, please read this : Bumblebee-Project/bbswitch#2

@skindix
skindix commented Jul 27, 2012

OK, seems like lenovo-hack branch fixed issues for TheSiege, will try in a sec, what should I do with Unity? Didnt see warning on their site. Downgrade to ubuntu-x repo versions?

@ArchangeGabriel
Member

Yes, ppa-purge xorg-edgers and you should be fine.

@skindix
skindix commented Jul 28, 2012

indarian@indarian-lenovo:~$ optirun glxgears
7084 frames in 5.0 seconds = 1416.632 FPS

I'm your fan from now on =)) Thank you very much! Really glad to see that Linux community is so helpful =)

@henrytm
henrytm commented Aug 4, 2012

you also could use repository ppa:upubuntu-com/nvidia-unstable ,if you don't want kernel updates, etc..

@LiamDawe
LiamDawe commented Aug 4, 2012

Thanks for that didn't know about that PPA.

@marvin-42

I've lenovo y580. After installation lenovo hack I still have a problem

[ 5639.447846] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 5639.448503] [INFO]Configured driver: nvidia
[ 5639.568963] [DEBUG]optirun version 3.0.1 starting...
[ 5639.569044] [DEBUG]Active configuration:
[ 5639.569090] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 5639.569112] [DEBUG] X display: :8
[ 5639.569151] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[ 5639.569180] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 5639.569201] [DEBUG] VGL Compression: proxy
[ 5639.911029] [INFO]Response: No - error: XORG NVIDIA(0): Failed to assign any connected display devices to X screen 0

[ 5639.911087] [ERROR]Cannot access secondary GPU - error: XORG NVIDIA(0): Failed to assign any connected display devices to X screen 0

[ 5639.911127] [DEBUG]Socket closed.
[ 5639.911162] [ERROR]Aborting because fallback start is disabled.
[ 5639.911200] [DEBUG]Killing all remaining processes.

My xorg.conf.d

filip@filip-Lenovo-IdeaPad-Y580:~$ ls /usr/share/X11/xorg.conf.d
10-evdev.conf 50-synaptics.conf 51-synaptics-quirks.conf
11-evdev-quirks.conf 50-vmmouse.conf
11-evdev-trackpoint.conf 50-wacom.conf

@ArchangeGabriel
Member

Did you change /etc/bumblebe/xorg.conf.nvidia by replacing "ConnectedMonitor" "DFP" with "UseDisplayDevice" "none" ?

@marvin-42

Ok now it works. Previously I changed only ConnectedMonitor DFP to none :) When I changed ConnectedMonitor to UseDisplayDevice everythink is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment