After a couple of days of debugging I was able to make a small progress with this issue. I recreated the setup from the beginning using the following steps.
- Install Arch (only the mandatory files from the guide)
- Install Xen hypervisor with xen-grub. (xl list return the dom0 domain)
- Install xorg-server, xorg-xinit, nvidia, i3-wm and i3status. (Nvidia driver install completed and prepare .xinitrc)
- StartX -> will finally start the X server with I3
- Reboot
- StartX -> X server refuses to start again.
I don’t understand why X is working immediately after install and after reboot it doesn’t. Any ideas what is changing at reboot?
Latest Xorg.0.log:
[ 147.996] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 147.997]
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[ 147.997] Build Operating System: Linux Arch Linux
[ 147.997] Current Operating System: Linux archlinux-xen 5.8.13-arch1-1 #1 SMP PREEMPT Thu, 01 Oct 2020 20:40:35 +0000 x86_64
[ 147.997] Kernel command line: placeholder root=/dev/mapper/arch_vg_wd-root rw earlyprintk=xen loglevel=3 quiet
[ 147.997] Build Date: 02 September 2020 06:17:44AM
[ 147.997]
[ 147.997] Current version of pixman: 0.40.0
[ 147.998] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 147.998] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 147.998] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 6 09:51:43 2020
[ 147.999] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 147.999] (==) No Layout section. Using the first Screen section.
[ 147.999] (==) No screen section available. Using defaults.
[ 147.999] (**) |-->Screen "Default Screen Section" (0)
[ 147.999] (**) | |-->Monitor "<default monitor>"
[ 147.999] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 147.999] (==) Automatically adding devices
[ 147.999] (==) Automatically enabling devices
[ 147.999] (==) Automatically adding GPU devices
[ 147.999] (==) Automatically binding GPU devices
[ 147.999] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 148.000] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[ 148.000] Entry deleted from font path.
[ 148.000] (Run 'mkfontdir' on "/usr/share/fonts/misc").
[ 148.001] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[ 148.001] Entry deleted from font path.
[ 148.001] (Run 'mkfontdir' on "/usr/share/fonts/TTF").
[ 148.001] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 148.001] Entry deleted from font path.
[ 148.001] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 148.001] Entry deleted from font path.
[ 148.001] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 148.001] Entry deleted from font path.
[ 148.001] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 148.001] Entry deleted from font path.
[ 148.001] (==) FontPath set to:
[ 148.001] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 148.001] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 148.001] (II) Module ABI versions:
[ 148.001] X.Org ANSI C Emulation: 0.4
[ 148.001] X.Org Video Driver: 24.1
[ 148.001] X.Org XInput driver : 24.1
[ 148.001] X.Org Server Extension : 10.0
[ 148.001] (++) using VT number 1
[ 148.003] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 148.003] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 148.003] (II) Platform probe for /sys/devices/pci0000:00/0000:00:03.1/0000:0c:00.0/drm/card0
[ 148.004] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[ 148.007] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[ 148.011] (--) PCI:*(12@0:0:0) 10de:1c03:1458:3716 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[ 148.011] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 148.011] (II) LoadModule: "glx"
[ 148.013] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 148.020] (II) Module glx: vendor="X.Org Foundation"
[ 148.020] compiled for 1.20.9, module version = 1.0.0
[ 148.020] ABI class: X.Org Server Extension, version 10.0
[ 148.020] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[ 148.020] loading driver: nvidia
[ 148.020] (==) Matched nvidia as autoconfigured driver 0
[ 148.020] (==) Matched nouveau as autoconfigured driver 1
[ 148.020] (==) Matched nv as autoconfigured driver 2
[ 148.020] (==) Matched modesetting as autoconfigured driver 3
[ 148.020] (==) Matched fbdev as autoconfigured driver 4
[ 148.020] (==) Matched vesa as autoconfigured driver 5
[ 148.020] (==) Assigned the driver to the xf86ConfigLayout
[ 148.020] (II) LoadModule: "nvidia"
[ 148.020] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 148.025] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 148.025] compiled for 1.6.99.901, module version = 1.0.0
[ 148.025] Module class: X.Org Video Driver
[ 148.026] (II) LoadModule: "nouveau"
[ 148.026] (WW) Warning, couldn't open module nouveau
[ 148.026] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 148.026] (II) LoadModule: "nv"
[ 148.027] (WW) Warning, couldn't open module nv
[ 148.027] (EE) Failed to load module "nv" (module does not exist, 0)
[ 148.027] (II) LoadModule: "modesetting"
[ 148.027] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 148.029] (II) Module modesetting: vendor="X.Org Foundation"
[ 148.029] compiled for 1.20.9, module version = 1.20.9
[ 148.029] Module class: X.Org Video Driver
[ 148.029] ABI class: X.Org Video Driver, version 24.1
[ 148.029] (II) LoadModule: "fbdev"
[ 148.029] (WW) Warning, couldn't open module fbdev
[ 148.030] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 148.030] (II) LoadModule: "vesa"
[ 148.030] (WW) Warning, couldn't open module vesa
[ 148.030] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 148.030] (II) NVIDIA dlloader X Driver 455.23.04 Sun Sep 13 23:15:36 UTC 2020
[ 148.030] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 148.031] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 148.031] (II) systemd-logind: releasing fd for 226:0
[ 148.032] (II) Loading sub module "fb"
[ 148.032] (II) LoadModule: "fb"
[ 148.032] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 148.033] (II) Module fb: vendor="X.Org Foundation"
[ 148.033] compiled for 1.20.9, module version = 1.0.0
[ 148.033] ABI class: X.Org ANSI C Emulation, version 0.4
[ 148.033] (II) Loading sub module "wfb"
[ 148.033] (II) LoadModule: "wfb"
[ 148.033] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 148.034] (II) Module wfb: vendor="X.Org Foundation"
[ 148.034] compiled for 1.20.9, module version = 1.0.0
[ 148.034] ABI class: X.Org ANSI C Emulation, version 0.4
[ 148.034] (II) Loading sub module "ramdac"
[ 148.034] (II) LoadModule: "ramdac"
[ 148.034] (II) Module "ramdac" already built-in
[ 148.035] (WW) Falling back to old probe method for modesetting
[ 148.035] (II) NVIDIA(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 148.035] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 148.035] (==) NVIDIA(0): RGB weight 888
[ 148.035] (==) NVIDIA(0): Default visual is TrueColor
[ 148.035] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 148.035] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[ 148.035] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[ 148.035] (**) NVIDIA(0): Enabling 2D acceleration
[ 148.035] (II) Loading sub module "glxserver_nvidia"
[ 148.035] (II) LoadModule: "glxserver_nvidia"
[ 148.036] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[ 148.108] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 148.108] compiled for 1.6.99.901, module version = 1.0.0
[ 148.108] Module class: X.Org Server Extension
[ 148.108] (II) NVIDIA GLX Module 455.23.04 Sun Sep 13 23:19:00 UTC 2020
[ 148.110] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 148.809] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:12:0:0
[ 148.809] (--) NVIDIA(0): DFP-0
[ 148.809] (--) NVIDIA(0): DFP-1 (boot)
[ 148.809] (--) NVIDIA(0): DFP-2
[ 148.809] (--) NVIDIA(0): DFP-3
[ 148.809] (--) NVIDIA(0): DFP-4
[ 148.810] (--) NVIDIA(0): DFP-5
[ 148.810] (--) NVIDIA(0): DFP-6
[ 148.810] (--) NVIDIA(0): DFP-7
[ 148.810] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1060 6GB (GP106-A) at PCI:12:0:0
[ 148.810] (II) NVIDIA(0): (GPU-0)
[ 148.810] (--) NVIDIA(0): Memory: 6291456 kBytes
[ 148.810] (--) NVIDIA(0): VideoBIOS: 86.06.0e.00.07
[ 148.810] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 148.810] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 148.810] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 148.810] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 148.810] (--) NVIDIA(GPU-0):
[ 148.847] (--) NVIDIA(GPU-0): DELL S2721DGF (DFP-1): connected
[ 148.847] (--) NVIDIA(GPU-0): DELL S2721DGF (DFP-1): Internal TMDS
[ 148.847] (--) NVIDIA(GPU-0): DELL S2721DGF (DFP-1): 600.0 MHz maximum pixel clock
[ 148.847] (--) NVIDIA(GPU-0):
[ 148.847] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 148.847] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[ 148.847] (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
[ 148.847] (--) NVIDIA(GPU-0):
[ 148.847] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 148.847] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[ 148.847] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[ 148.847] (--) NVIDIA(GPU-0):
[ 148.847] (--) NVIDIA(GPU-0): DFP-4: disconnected
[ 148.847] (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
[ 148.847] (--) NVIDIA(GPU-0): DFP-4: 1440.0 MHz maximum pixel clock
[ 148.847] (--) NVIDIA(GPU-0):
[ 148.847] (--) NVIDIA(GPU-0): DFP-5: disconnected
[ 148.847] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[ 148.847] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[ 148.847] (--) NVIDIA(GPU-0):
[ 148.847] (--) NVIDIA(GPU-0): DFP-6: disconnected
[ 148.847] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[ 148.847] (--) NVIDIA(GPU-0): DFP-6: 1440.0 MHz maximum pixel clock
[ 148.847] (--) NVIDIA(GPU-0):
[ 148.847] (--) NVIDIA(GPU-0): DFP-7: disconnected
[ 148.847] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[ 148.847] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[ 148.847] (--) NVIDIA(GPU-0):
[ 148.853] (==) NVIDIA(0):
[ 148.853] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[ 148.853] (==) NVIDIA(0): will be used as the requested mode.
[ 148.853] (==) NVIDIA(0):
[ 148.853] (II) NVIDIA(0): Validated MetaModes:
[ 148.853] (II) NVIDIA(0): "DFP-1:nvidia-auto-select"
[ 148.853] (II) NVIDIA(0): Virtual screen size determined to be 2560 x 1440
[ 148.859] (--) NVIDIA(0): DPI set to (108, 107); computed from "UseEdidDpi" X config
[ 148.859] (--) NVIDIA(0): option
[ 148.859] (II) UnloadModule: "modesetting"
[ 148.859] (II) Unloading modesetting
[ 148.860] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[ 148.860] (II) NVIDIA: access.
[ 148.861] (EE) NVIDIA(0): Failed to allocate shared surface
[ 148.935] (EE)
Fatal server error:
[ 148.935] (EE) AddScreen/ScreenInit failed for driver 0
[ 148.935] (EE)
[ 148.935] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 148.935] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 148.935] (EE)
[ 148.938] (EE) Server terminated with error (1). Closing log file.