You are not logged in.

#1 2017-02-27 04:43:09

m33b0
Member
Registered: 2017-02-27
Posts: 10

[SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

Hello everyone, and thank you for taking the time to help me. When I delete /etc/X11/xorg.conf then Xorg starts normally. But if I run nvidia-xconfig and it creates a /etc/X11/xorg.conf file then Xorg won't boot and I get this log file instead. So do I really need the file1 /etc/X11/xorg.conf at all?

[  9768.914] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  9768.915] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c3
[  9768.916] (II) xfree86: Adding drm device (/dev/dri/card0)
[  9768.916] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[  9768.916] (II) xfree86: Adding drm device (/dev/dri/card1)
[  9768.916] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 12 paused 0
[  9768.917] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[  9768.917] (--) PCI:*(0:0:2:0) 8086:0a16:17aa:3800 rev 11, Mem @ 0xb5000000/4194304, 0xc0000000/268435456, I/O @ 0x00006000/64, BIOS @ 0x????????/131072
[  9768.917] (--) PCI: (0:9:0:0) 10de:1290:17aa:3800 rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128
[  9768.917] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  9768.917] (II) LoadModule: "glx"
[  9768.918] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[  9768.921] (II) Module glx: vendor="NVIDIA Corporation"
[  9768.921]    compiled for 4.0.2, module version = 1.0.0
[  9768.921]    Module class: X.Org Server Extension
[  9768.921] (II) NVIDIA GLX Module  378.13  Tue Feb  7 18:25:34 PST 2017
[  9768.921] (II) LoadModule: "nvidia"
[  9768.921] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  9768.921] (II) Module nvidia: vendor="NVIDIA Corporation"
[  9768.921]    compiled for 4.0.2, module version = 1.0.0
[  9768.921]    Module class: X.Org Video Driver
[  9768.921] (II) NVIDIA dlloader X Driver  378.13  Tue Feb  7 18:01:51 PST 2017
[  9768.921] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  9768.921] (II) systemd-logind: releasing fd for 226:1
[  9768.922] (EE) No devices detected.
[  9768.922] (EE) 
Fatal server error:
[  9768.922] (EE) no screens found(EE) 
[  9768.922] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[  9768.922] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  9768.922] (EE) 
[  9768.941] (EE) Server terminated with error (1). Closing log file.

When I start Xorg with "startx" and everyting works fine like it normally does without the xorg.conf file, then how do I know that Nvidia drivers are actually loaded? This is what "lsmod" returned:

[root@archlinux ~]# lsmod | grep nvidia
nvidia_drm             49152  0
nvidia_modeset        794624  1 nvidia_drm
nvidia              12197888  1 nvidia_modeset
drm_kms_helper        126976  2 i915,nvidia_drm
drm                   294912  6 i915,nvidia_drm,drm_kms_helper

Just for reference glxgears returns this also when I don't have a xorg.conf file:

[root@archlinux ~]# glxgears
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual

Thanks for any help anyone is willing to provide!!!

Last edited by m33b0 (2017-02-27 18:41:11)

Offline

#2 2017-02-27 04:49:50

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

Generally speaking, no, you do not need an xorg.conf.  xorg is pretty good about autodetecting hardware and setting everything up, so unless you have a very unique system it should just work.  Not sure about the glx because I do not use nvidia.

Offline

#3 2017-02-27 04:56:15

m33b0
Member
Registered: 2017-02-27
Posts: 10

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

circleface wrote:

Generally speaking, no, you do not need an xorg.conf.  xorg is pretty good about autodetecting hardware and setting everything up, so unless you have a very unique system it should just work.  Not sure about the glx because I do not use nvidia.

Thanks, looking for someone who uses Nvidia because I know Xorg works fine without it. Just wondering if the xorg.conf file which Nvidia created is actually necessary or not because of the errors it's giving.

Offline

#4 2017-02-27 05:36:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

nvidia-xconfig is horrible, as you have learned.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-02-27 06:44:09

m33b0
Member
Registered: 2017-02-27
Posts: 10

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

jasonwryan wrote:

nvidia-xconfig is horrible, as you have learned.

Indeed it is. So how do I go about detecting which "device" and "screen" or display or whatever is in use so I can edit the xorg.conf file accordingly to use those instead?

Offline

#6 2017-02-27 06:56:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

Your xorg log will contain most of the information.

The real question is why you want to create a conf file if it is working fine without one? What problem are you trying to solve?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-02-27 07:40:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,447

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

You have an Optimus system. If you don't want to use the intel card to save power and only use the nvidia card exclusively read: https://wiki.archlinux.org/index.php/NVIDIA_Optimus

If you intend to use the intel card for power saving purposes and only use the Nvidia card for specific applications read: https://wiki.archlinux.org/index.php/Bumblebee

Offline

#8 2017-02-27 18:40:04

m33b0
Member
Registered: 2017-02-27
Posts: 10

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

V1del wrote:

You have an Optimus system. If you don't want to use the intel card to save power and only use the nvidia card exclusively read: https://wiki.archlinux.org/index.php/NVIDIA_Optimus

Thank you for my solution! Now I can "startx" and gives the same output as before I had an xorg.conf file created by "nvidia-xconfig", which means it starts perfectly normal and without errors! Thanks for pointing me to the right direction. I've been struggling with this for 2 days now. All I had to do was add

/etc/X11/xorg.conf

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "(BusID for NVIDIA device here)"
    Option "AllowEmptyInitialConfiguration"
EndSection

And then I just added these 2 xrandr lines at the top of my ~/.xinitrc file:

~/.xinitrc

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

I did a reboot just to make sure everything loaded properly, and now everything starts perfectly normal when I "startx" finally! Even "glxinfo" and "glxgears" are actually giving me output!
Here is glxinfo:

[root@archlinux ~]# glxinfo | grep "direct rendering"
direct rendering: Yes

And here is glxgears:

[root@archlinux ~]# glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
35210 frames in 5.0 seconds = 7042.000 FPS
39185 frames in 5.0 seconds = 7836.938 FPS
39428 frames in 5.0 seconds = 7885.523 FPS
39127 frames in 5.0 seconds = 7825.384 FPS
39462 frames in 5.0 seconds = 7892.290 FPS

Thanks for the help!!!

Offline

#9 2017-02-27 19:15:12

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

with nvidia-utils-378.13-5 currently in testing your xorg.conf file should be useless, see https://git.archlinux.org/svntogit/pack … idia-utils

Offline

#10 2017-03-01 01:24:21

m33b0
Member
Registered: 2017-02-27
Posts: 10

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

lordheavy wrote:

with nvidia-utils-378.13-5 currently in testing your xorg.conf file should be useless, see https://git.archlinux.org/svntogit/pack … idia-utils

The /etc/X11/xorg.conf created by the Nvidia util "xorg-xconfig" was absolutely useless. All it did was allow me to not start X because of the errors shown in the log in the OP. But when I deleted the xorg.conf file created by "nvidia-xconfig" and wrote my own xorg.conf file like so:

/etc/X11/xorg.conf

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "(BusID for NVIDIA device here)"
    Option "AllowEmptyInitialConfiguration"
EndSection

And then also added 2 lines to my ~/.xinitrc file like so:

~/.xinitrc

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

Now everything works flawlessly with loading Nvidia drivers and also with their performance. Actually better than I had 1 year ago when I had Nvidia working previously before I broke things (use error).

Offline

#11 2022-05-11 02:09:32

barresoft
Member
Registered: 2022-05-11
Posts: 1

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

hi everyone!!

i registered only for this post !!!

my simple & nooby solution:


mv /etc/X11/xorg.conf /etc/X11/xorg.conf.org
init 6


DONE !!!

Offline

#12 2022-05-11 02:28:19

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Xorg.conf (EE) No devices detected (EE) no screens found (EE)

Please pay attention to the age of the posts you are replying to.

You've just answered a solved post with information that it already contains.

https://wiki.archlinux.org/title/Genera … bumping%22
https://wiki.archlinux.org/title/Genera … mpty_posts

Closing...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB