You are not logged in.
Hello,
I have created recently Arch Linux virtual machine using virt-manager and I can't force Xorg to get working. In order to run Xorg, I need to use login manager or type startx in the terminal. When I try to do autologin on tty7, Xorg doesn't start at boot.
I tried to add virtio-gpu to MODULES section in the /etc/mkinitcpio.conf and whiteman808 user to group video but still Xorg doesn't get up. I'm using virtio graphics with 3d acceleration using opengl with the intel gpu.
Maybe below info will be useful for debugging:
~ ❯ cat ~/.local/share/xorg/Xorg.0.log ✘ INT whiteman808@arch-nonfree 14:49:04
[ 4.063]
X.Org X Server 1.21.1.15
X Protocol Version 11, Revision 0
[ 4.063] Current Operating System: Linux arch-nonfree 6.13.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 02 Feb 2025 01:02:29 +0000 x86_64
[ 4.063] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=6eefa28a-a960-47ad-95e2-de17a1243b81 rw quiet loglevel=3 quiet
[ 4.063]
[ 4.063] Current version of pixman: 0.44.2
[ 4.063] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 4.063] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 4.063] (==) Log file: "/home/whiteman808/.local/share/xorg/Xorg.0.log", Time: Thu Feb 6 14:38:42 2025
[ 4.066] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 4.067] (==) No Layout section. Using the first Screen section.
[ 4.067] (==) No screen section available. Using defaults.
[ 4.067] (**) |-->Screen "Default Screen Section" (0)
[ 4.067] (**) | |-->Monitor "<default monitor>"
[ 4.068] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 4.068] (**) Allowing byte-swapped clients
[ 4.068] (==) Automatically adding devices
[ 4.068] (==) Automatically enabling devices
[ 4.068] (==) Automatically adding GPU devices
[ 4.068] (==) Automatically binding GPU devices
[ 4.068] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 4.071] (==) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/TTF,
/usr/share/fonts/OTF,
/usr/share/fonts/Type1,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 4.071] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 4.071] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 4.071] (II) Module ABI versions:
[ 4.071] X.Org ANSI C Emulation: 0.4
[ 4.071] X.Org Video Driver: 25.2
[ 4.071] X.Org XInput driver : 24.4
[ 4.071] X.Org Server Extension : 10.0
[ 4.071] (++) using VT number 7
[ 4.072] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 4.073] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 4.073] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/drm/card1
[ 4.074] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 13 paused 1
[ 4.074] (EE) Error systemd-logind returned paused fd for drm node
[ 4.074] (II) systemd-logind: releasing fd for 226:1
[ 4.079] (--) PCI:*(0@0:1:0) 1af4:1050:1af4:1100 rev 1, Mem @ 0xfc000000/8388608, 0x70e0000000/16384, 0xfea14000/4096, BIOS @ 0x????????/131072
[ 4.079] (II) Open ACPI successful (/var/run/acpid.socket)
[ 4.079] (II) LoadModule: "glx"
[ 4.079] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 4.087] (II) Module glx: vendor="X.Org Foundation"
[ 4.087] compiled for 1.21.1.15, module version = 1.0.0
[ 4.087] ABI class: X.Org Server Extension, version 10.0
[ 4.087] (==) Matched modesetting as autoconfigured driver 0
[ 4.087] (==) Matched fbdev as autoconfigured driver 1
[ 4.087] (==) Matched vesa as autoconfigured driver 2
[ 4.087] (==) Assigned the driver to the xf86ConfigLayout
[ 4.087] (II) LoadModule: "modesetting"
[ 4.087] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 4.088] (II) Module modesetting: vendor="X.Org Foundation"
[ 4.088] compiled for 1.21.1.15, module version = 1.21.1
[ 4.088] Module class: X.Org Video Driver
[ 4.088] ABI class: X.Org Video Driver, version 25.2
[ 4.088] (II) LoadModule: "fbdev"
[ 4.088] (WW) Warning, couldn't open module fbdev
[ 4.088] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 4.088] (II) LoadModule: "vesa"
[ 4.088] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 4.088] (II) Module vesa: vendor="X.Org Foundation"
[ 4.088] compiled for 1.21.1.11, module version = 2.6.0
[ 4.088] Module class: X.Org Video Driver
[ 4.088] ABI class: X.Org Video Driver, version 25.2
[ 4.088] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 4.088] (II) VESA: driver for VESA chipsets: vesa
[ 4.088] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)
[ 4.088] (EE) open /dev/dri/card0: No such file or directory
[ 4.088] (WW) Falling back to old probe method for modesetting
[ 4.088] (EE) open /dev/dri/card0: No such file or directory
[ 4.089] vesa: Refusing to run, Framebuffer or dri device present
[ 4.089] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 4.089] (EE) Screen 0 deleted because of no matching config section.
[ 4.089] (II) UnloadModule: "modesetting"
[ 4.089] (EE) Device(s) detected, but none match those in the config file.
[ 4.089] (EE)
Fatal server error:
[ 4.089] (EE) no screens found(EE)
[ 4.089] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 4.089] (EE) Please also check the log file at "/home/whiteman808/.local/share/xorg/Xorg.0.log" for additional information.
[ 4.089] (EE)
[ 4.093] (EE) Server terminated with error (1). Closing log file.
~ ❯ ls -la /dev/dri whiteman808@arch-nonfree 14:49:05
total 0
drwxr-xr-x 3 root root 100 Feb 6 14:38 .
drwxr-xr-x 20 root root 3880 Feb 6 14:38 ..
drwxr-xr-x 2 root root 80 Feb 6 14:38 by-path
crw-rw----+ 1 root video 226, 1 Feb 6 14:38 card1
crw-rw-rw- 1 root render 226, 128 Feb 6 14:38 renderD128
~ ❯ cat /etc/systemd/system/x11.service whiteman808@arch-nonfree 14:49:07
[Unit]
After=systemd-user-sessions.service
[Service]
ExecStart=-/sbin/agetty --autologin whiteman808 --noclear tty7 38400 linux
[Install]
WantedBy=multi-user.targetLast edited by whiteman808 (2025-02-08 10:14:44)
Offline
When I try to do autologin on tty7, Xorg doesn't start at boot
You need to run X on the login TTY.
Follow https://wiki.archlinux.org/title/Getty# … al_console instead.
Jin, Jîyan, Azadî
Offline
whiteman808 wrote:When I try to do autologin on tty7, Xorg doesn't start at boot
You need to run X on the login TTY.
Follow https://wiki.archlinux.org/title/Getty# … al_console instead.
Thank you for help
Offline