You are not logged in.
Pages: 1
Hello.
Very fresh to Arch and ran into a weird issue today. My install is only a couple days old and everything has been working completely fine so far. Today I booted the machine and after logging in all I could see was my background (I assume nitrogen loaded just fine). Out of the blue, my window manager dwm and terminal st don't seem to work. Between this and the boot before, I don't really recall installing much or anything too weird. The only thing that stands out (or is more unusual) to me is I used the following command to try and fix a screen tearing issue (which it did):
$ nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"I ctrl + alt + f2'd and tried to startx from there, but now I get weird errors. I tried to find how to fix this, but to no avail. Here's my .xinitrc and the .log startx gives me. I received slightly more errors before, some mentioning nouveau drivers and NVIDIA. I gathered it was perhaps using wrong video drivers and something was wrong with my NVIDIA setup. So I fiddled with that a bit and those errors seem to be gone. There's still some sort of X server issue? I don't really know anymore if those things are related. I'm also not entirely sure if the xrandrs in .xinitrc are needed, but they were suggested somewhere for the previous errors.
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# Start some nice programs
#
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Keyboard Layout
setxkbmap fi &
# Compositor
picom -f &
# Wallpaper
nitrogen --restore &
# Execute dwm
exec dwm[ 53.245] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 53.246]
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[ 53.246] Build Operating System: Linux Archlinux
[ 53.246] Current Operating System: Linux censored 5.13.6-arch1-1 #1 SMP PREEMPT Thu, 29 Jul 2021 00:21:06 +0000 x86_64
[ 53.246] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=53a7da1b-54d9-47ef-ab5a-568493f5c97c rw loglevel=3 quiet
[ 53.246] Build Date: 29 July 2021 07:43:01PM
[ 53.246]
[ 53.246] Current version of pixman: 0.40.0
[ 53.246] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 53.246] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 53.246] (==) Log file: "/home/censoredusername/.local/share/xorg/Xorg.1.log", Time: Tue Aug 3 16:38:50 2021
[ 53.247] (==) Using config file: "/etc/X11/xorg.conf"
[ 53.247] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 53.247] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 53.247] (==) ServerLayout "Layout0"
[ 53.247] (**) |-->Screen "Screen0" (0)
[ 53.247] (**) | |-->Monitor "Monitor0"
[ 53.247] (**) | |-->Device "Device0"
[ 53.247] (**) | |-->GPUDevice "Device0"
[ 53.247] (**) |-->Input Device "Keyboard0"
[ 53.247] (**) |-->Input Device "Mouse0"
[ 53.247] (==) Automatically adding devices
[ 53.247] (==) Automatically enabling devices
[ 53.247] (==) Automatically adding GPU devices
[ 53.247] (==) Automatically binding GPU devices
[ 53.247] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 53.247] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 53.247] Entry deleted from font path.
[ 53.247] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 53.247] Entry deleted from font path.
[ 53.247] (==) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/TTF,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 53.247] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 53.247] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 53.247] (WW) Disabling Keyboard0
[ 53.247] (WW) Disabling Mouse0
[ 53.247] (II) Module ABI versions:
[ 53.247] X.Org ANSI C Emulation: 0.4
[ 53.247] X.Org Video Driver: 24.1
[ 53.247] X.Org XInput driver : 24.1
[ 53.247] X.Org Server Extension : 10.0
[ 53.248] (++) using VT number 2
[ 53.248] (EE) systemd-logind: TakeControl failed: Only owner of session may take control
[ 53.248] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 53.250] (--) PCI:*(1@0:0:0) 10de:13c2:1043:8508 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[ 53.250] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 53.250] (II) LoadModule: "glx"
[ 53.251] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 53.252] (II) Module glx: vendor="X.Org Foundation"
[ 53.252] compiled for 1.20.13, module version = 1.0.0
[ 53.252] ABI class: X.Org Server Extension, version 10.0
[ 53.252] (II) LoadModule: "nvidia"
[ 53.252] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 53.252] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 53.252] compiled for 1.6.99.901, module version = 1.0.0
[ 53.252] Module class: X.Org Video Driver
[ 53.252] (II) NVIDIA dlloader X Driver 470.57.02 Tue Jul 13 16:13:51 UTC 2021
[ 53.252] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 53.252] (EE)
Fatal server error:
[ 53.252] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
[ 53.252] (EE)
[ 53.252] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 53.252] (EE) Please also check the log file at "/home/censoredusername/.local/share/xorg/Xorg.1.log" for additional information.
[ 53.252] (EE)
[ 53.252] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 53.252] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 53.252] (EE) Server terminated with error (1). Closing log fileLast edited by inravtmj (2021-08-03 23:14:05)
Offline
Have you updated system?, meaning installed something, like xorg, nvidia driver or window manager of your choice. Sometimes happened for me that most recent update have problems. In this case solution is downgrade package(s). Usually the problem is fixed soon, so after couple of days can try updating again.
Offline
My whole install is quite fresh and most (if not all) of my packages are the newest versions. dwm, st, nvidia, and I think xorg, haven't changed. I've installed couple new things between the boots and did the screen tearing fix, but nothing else has really changed. This is why I'm having hard time understanding why something would suddenly break between boots. I guess logically it must be something new that I installed recently, unless it could be something else I'm not aware of.
Offline
My whole install is quite fresh and most (if not all) of my packages are the newest versions.
pacman -Syu means *all* your packages are up to date. Is this a partial upgrade?
Last edited by flyingscorpio (2021-08-03 18:20:01)
Offline
inravtmj wrote:My whole install is quite fresh and most (if not all) of my packages are the newest versions.
pacman -Syu means *all* your packages are up to date. Is this a partial upgrade?
pacman -Syu says everything is up to date, if that's the question.
Offline
What is the output of the following
lspci -nnk
lsmod
dmesgPlease also post an updated xorg.log from running startx with /etc/X11/xorg.conf disabled / removed.
Offline
Remove the /etc/X11/xorg.conf you created again.
[ 53.252] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)See https://wiki.archlinux.org/title/Xinit#xserverrc to re-use the terminal.
Then post an updated xorg log.
If it remains a problem, remove/comment picom and try to start xterm (dwm and st might require rebuilds after an update of system libraries)
Offline
Okay. Maybe this is of some help to someone some day. I managed to fix this somehow. I fiddled with xterm and added exec xterm to .xinitrc to try and see if that works. At first it didn't, yet then it did. Go figure.
Remove the /etc/X11/xorg.conf you created again.
[ 53.252] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)See https://wiki.archlinux.org/title/Xinit#xserverrc to re-use the terminal.
Then post an updated xorg log.
If it remains a problem, remove/comment picom and try to start xterm (dwm and st might require rebuilds after an update of system libraries)
Between this I read the ^Xinit#xserverrc stuff in the link there. Killed all the xorg stuff, window manager, played in xterm. I don't know what I was doing, but I was doing something. At some point I figured since exec xterm in .xinitrc works, I guess xserver now works. dwm still didn't run through it. I somehow stumbled upon people talking about .Xauthority and started playing with that. I re-checked my /home/user/ rights and deleted old .Xauthority, tried recreating it, etc. After quite a few tries it finally seemed to create it correctly and with the right privileges. Swapped back to exec dwm in .xinitrc and everything works. I don't know what exactly was the issue, but all this fixed it.
Thanks for the help.
Last edited by inravtmj (2021-08-03 23:14:37)
Offline
Did you attempt a sudo-notfix inbetween?
If you auto-startx, also see https://wiki.archlinux.org/title/NVIDIA … de_setting (parameter and early loading)
Offline
Did you attempt a sudo-notfix inbetween?
If you auto-startx, also see https://wiki.archlinux.org/title/NVIDIA … de_setting (parameter and early loading)
Sorry no clue what a sudo-notfix is or means, but I'd guess that's a no.
Offline
startx # doesn't work
sudo startx # now you've bad permissionsOffline
That's definitely possible to have happened during my amateur fix hours. I don't entirely understand how it stopped working in the first place as I don't start startx manually.
Offline
The typical cause for an autostarting X11 failure is currently late KMS (ie. systemd starts the graphical.target before the GPU is initialized) - see the link I posted in #9
Offline
Pages: 1