You are not logged in.

#1 2020-10-19 18:44:04

orbarq
Member
Registered: 2017-02-11
Posts: 13

[SOLVED][X11 config] (EE) no screens found(EE)

I tried to my own X11 configuration file. I have an Nvidia card on which are connected three monitors (a VGA, a DVI and a HDMI). For now, I just consider the monitor connected to VGA. So I created /etc/X11/xorg.conf.d/50-video.conf:

Section "Monitor"
        Identifier "VGA"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device "Device0"
        Monitor "VGA"
EndSection

Section "Device"
        Identifier "Device0"
        Option "VGA-1" "VGA"
        Driver "nouveau"
EndSection

However, when I try to start X (with startx) it fails with `(EE) no screens found(EE)`. The logs are:

[    15.763] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[    15.764] 
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[    15.764] Build Operating System: Linux Arch Linux
[    15.764] Current Operating System: Linux archlinux 5.9.1-arch1-1 #1 SMP PREEMPT Sat, 17 Oct 2020 13:30:37 +0000 x86_64
[    15.764] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=348069a2-1590-4af2-be44-d963819ba908 rw loglevel=3 quiet
[    15.764] Build Date: 02 September 2020  06:17:44AM
[    15.764]  
[    15.764] Current version of pixman: 0.40.0
[    15.764]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    15.764] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    15.764] (==) Log file: "/home/seb/.local/share/xorg/Xorg.0.log", Time: Mon Oct 19 22:19:00 2020
[    15.772] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    15.772] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    15.773] (==) No Layout section.  Using the first Screen section.
[    15.773] (**) |-->Screen "Screen0" (0)
[    15.773] (**) |   |-->Monitor "VGA"
[    15.773] (**) |   |-->Device "Device0"
[    15.773] (==) Automatically adding devices
[    15.773] (==) Automatically enabling devices
[    15.773] (==) Automatically adding GPU devices
[    15.773] (==) Automatically binding GPU devices
[    15.773] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    15.778] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    15.778]    Entry deleted from font path.
[    15.778] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[    15.778]    Entry deleted from font path.
[    15.778]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[    15.779] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
[    15.779]    Entry deleted from font path.
[    15.779]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi").
[    15.779] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF
[    15.779] (==) ModulePath set to "/usr/lib/xorg/modules"
[    15.779] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    15.779] (II) Module ABI versions:
[    15.779]    X.Org ANSI C Emulation: 0.4
[    15.779]    X.Org Video Driver: 24.1
[    15.779]    X.Org XInput driver : 24.1
[    15.779]    X.Org Server Extension : 10.0
[    15.780] (++) using VT number 1

[    15.783] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    15.784] (II) xfree86: Adding drm device (/dev/dri/card0)
[    15.784] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
[    15.785] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[    15.788] (--) PCI:*(1@0:0:0) 10de:1380:1043:84bb rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    15.788] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    15.788] (II) LoadModule: "glx"
[    15.789] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    15.800] (II) Module glx: vendor="X.Org Foundation"
[    15.800]    compiled for 1.20.9, module version = 1.0.0
[    15.800]    ABI class: X.Org Server Extension, version 10.0
[    15.801] (II) LoadModule: "nouveau"
[    15.802] (WW) Warning, couldn't open module nouveau
[    15.802] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    15.802] (EE) No drivers available.
[    15.802] (EE) 
Fatal server error:
[    15.802] (EE) no screens found(EE) 
[    15.802] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[    15.802] (EE) Please also check the log file at "/home/seb/.local/share/xorg/Xorg.0.log" for additional information.
[    15.802] (EE) 
[    15.805] (EE) Server terminated with error (1). Closing log file.

I defined a screen section so what is my mistake?

Last edited by orbarq (2020-10-21 09:10:12)

Offline

#2 2020-10-19 18:47:50

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

Re: [SOLVED][X11 config] (EE) no screens found(EE)

Why do you need an xorg.conf?


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

#3 2020-10-19 19:52:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: [SOLVED][X11 config] (EE) no screens found(EE)

As for why it fails, look at the first error message in the log.
But a static server config is rarely needed or a good idea.

Offline

#4 2020-10-19 21:07:35

orbarq
Member
Registered: 2017-02-11
Posts: 13

Re: [SOLVED][X11 config] (EE) no screens found(EE)

xorg seems to start with Driver "modesetting".

EDIT: I forgot to install xf86-video-nouveau. Now, I have the same behaviour than with "modesetting" driver:

Actually, each time I start X, I need to fix where my screens are:

xrandr --output HDMI-1 --left-of VGA-1
xrandr --output DVI-D-1 --right-of VGA-1

So I would like to have this configuration permanently and this is the reason I try to make a xorg.conf (and also to learn how it works).

Now I tried this:

Section "Monitor"
        Identifier "VGA"
EndSection

Section "Monitor"
        Identifier "HDMI"
        Option "LeftOf" "VGA"
EndSection

Section "Monitor"
        Identifier "DVI"
        Option "RightOf" "VGA"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device "Device0"
EndSection

Section "Device"
        Identifier "Device0"
        Option "VGA-1" "VGA"
        Option "HDMI-1" "HDMI"
        Option "DVI-D-1" "DVI"
        Driver "modesetting"
EndSection

But it doesn't work. I got things like

[  9726.403] (WW) modeset(0): Option "VGA-1" is not used
[  9726.403] (WW) modeset(0): Option "HDMI-1" is not used
[  9726.403] (WW) modeset(0): Option "DVI-D-1" is not used

so I guess it is related to my problem (probably not an option of the driver)

Last edited by orbarq (2020-10-19 21:17:56)

Offline

#5 2020-10-19 23:21:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,386

Re: [SOLVED][X11 config] (EE) no screens found(EE)

Monitor assignments are dynamic and can hange when monitors are plugged in,  powered on/off etc.
You can't deal with dynamic assignments in a static conf-file .

The solution is to execute the xrandr commands in an xinit or xprofile startup file.
See https://wiki.archlinux.org/index.php/Au … rg_startup

Last edited by Lone_Wolf (2020-10-19 23:22:49)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2020-10-20 06:27:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: [SOLVED][X11 config] (EE) no screens found(EE)

https://wiki.archlinux.org/index.php/Mu … _xorg.conf
eg. /etc/X11/xorg.conf.d/11-monitor.conf

Section "Monitor"
        Identifier "VGA-1"
        Option "Primary" "True"
EndSection

Section "Monitor"
        Identifier "HDMI-1"
        Option "LeftOf" "VGA-1"
EndSection

Section "Monitor"
        Identifier "DVI-D-1 "
        Option "RightOf" "VGA-1"
EndSection

Remove the static config and nb. that the output names will usually be different between the modesetting and nouveau driver. The configured ones *must* match those printed by "xrandr -q" for the configlet to work.

Offline

#7 2020-10-20 16:13:58

orbarq
Member
Registered: 2017-02-11
Posts: 13

Re: [SOLVED][X11 config] (EE) no screens found(EE)

@Lone_Wolf Yes using xinit or xprofile is a solution but for my aim, I prefer the solution of @seth (I guess that both solutions are good). I believed that the identifier name can be freely chosen but it is a bad guess. This solves my problem. Thank you all.

Offline

#8 2020-10-20 16:40:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: [SOLVED][X11 config] (EE) no screens found(EE)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB