You are not logged in.

#1 2021-03-08 08:10:22

gginer89
Member
Registered: 2021-03-08
Posts: 4

[SOLVED] Auto startx not working while manually writing it works

Hello,

I have been following the wiki and trying out many different combinations of script to startx and nothing seems to work. I have auto login working and if i write manually startx on logged in tty1 it starts my WM perfectly but when I try to have auto startx, it brings an error (pasted below), that lasts around 10 seconds BUT it finally ends up starting the WM.

I have an AMD Radeon graphic card, with xf86-video-amdgpu and mesa installed.

Here is my .xinitrc

#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec xmonad

Here is my .bash_profile

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  exec startx
fi

Here is my Xorg log

X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[     2.475] Build Operating System: Linux Arch Linux
[     2.475] Current Operating System: Linux archlinux 5.11.2-arch1-1 #1 SMP PREEMPT Fri, 26 Feb 2021 18:26:41 +0000 x86_64
[     2.475] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=5eb29fa0-5075-46c9-860c-6070025a40af rw loglevel=3 quiet snd_hda_intel.dmic_detect=0
[     2.475] Build Date: 14 December 2020  12:10:29PM
[     2.475] 
[     2.475] Current version of pixman: 0.40.0
[     2.475]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[     2.475] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     2.475] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar  8 08:52:47 2021
[     2.475] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     2.475] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     2.476] (==) No Layout section.  Using the first Screen section.
[     2.476] (==) No screen section available. Using defaults.
[     2.476] (**) |-->Screen "Default Screen Section" (0)
[     2.476] (**) |   |-->Monitor "<default monitor>"
[     2.476] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[     2.476] (==) Automatically adding devices
[     2.476] (==) Automatically enabling devices
[     2.476] (==) Automatically adding GPU devices
[     2.476] (==) Automatically binding GPU devices
[     2.476] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     2.477] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     2.477]     Entry deleted from font path.
[     2.477] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     2.477]     Entry deleted from font path.
[     2.477] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     2.477]     Entry deleted from font path.
[     2.477] (==) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/TTF,
    /usr/share/fonts/OTF
[     2.477] (==) ModulePath set to "/usr/lib/xorg/modules"
[     2.477] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[     2.477] (II) Module ABI versions:
[     2.477]     X.Org ANSI C Emulation: 0.4
[     2.477]     X.Org Video Driver: 24.1
[     2.477]     X.Org XInput driver : 24.1
[     2.477]     X.Org Server Extension : 10.0
[     2.478] (++) using VT number 1

[     2.480] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[     2.485] (--) PCI:*(7@0:0:0) 1002:1636:17aa:5099 rev 209, Mem @ 0x460000000/268435456, 0x470000000/2097152, 0xfd300000/524288, I/O @ 0x00001000/256
[     2.485] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     2.485] (II) LoadModule: "glx"
[     2.485] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     2.489] (II) Module glx: vendor="X.Org Foundation"
[     2.489]     compiled for 1.20.10, module version = 1.0.0
[     2.489]     ABI class: X.Org Server Extension, version 10.0
[     2.489] (==) Matched ati as autoconfigured driver 0
[     2.489] (==) Matched modesetting as autoconfigured driver 1
[     2.489] (==) Matched fbdev as autoconfigured driver 2
[     2.489] (==) Matched vesa as autoconfigured driver 3
[     2.489] (==) Assigned the driver to the xf86ConfigLayout
[     2.489] (II) LoadModule: "ati"
[     2.489] (WW) Warning, couldn't open module ati
[     2.489] (EE) Failed to load module "ati" (module does not exist, 0)
[     2.489] (II) LoadModule: "modesetting"
[     2.489] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     2.491] (II) Module modesetting: vendor="X.Org Foundation"
[     2.491]     compiled for 1.20.10, module version = 1.20.10
[     2.491]     Module class: X.Org Video Driver
[     2.491]     ABI class: X.Org Video Driver, version 24.1
[     2.491] (II) LoadModule: "fbdev"
[     2.491] (WW) Warning, couldn't open module fbdev
[     2.491] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     2.491] (II) LoadModule: "vesa"
[     2.491] (WW) Warning, couldn't open module vesa
[     2.491] (EE) Failed to load module "vesa" (module does not exist, 0)
[     2.491] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     2.491] (EE) open /dev/dri/card0: No such file or directory
[     2.491] (WW) Falling back to old probe method for modesetting
[     2.491] (EE) open /dev/dri/card0: No such file or directory
[     2.491] (EE) Screen 0 deleted because of no matching config section.
[     2.491] (II) UnloadModule: "modesetting"
[     2.491] (EE) Device(s) detected, but none match those in the config file.
[     2.491] (EE)
Fatal server error:
[     2.491] (EE) no screens found(EE)
[     2.491] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[     2.491] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     2.491] (EE)
[     2.492] (EE) Server terminated with error (1). Closing log file.

Do you have any idea what could be the problem?

Thank you in advance,
Gabriel

Last edited by gginer89 (2021-04-20 13:45:18)

Offline

#2 2021-03-08 13:42:19

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

Re: [SOLVED] Auto startx not working while manually writing it works

[     2.491] (EE) open /dev/dri/card0: No such file or directory

Errors like those suggest you're bitten by the infamous race bug where systemd / udev initialise the videocard too late.


Try configuring https://wiki.archlinux.org/index.php/Ke … _KMS_start


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

Board footer

Powered by FluxBB