You are not logged in.

#1 2021-04-22 20:13:22

newdaybreak
Member
Registered: 2019-05-28
Posts: 14

Cannot startx after upgrade

Ran updates last night and now startx won't work as non-root user.

Here is the log

[   150.247] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[   150.247]
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[   150.247] Build Operating System: Linux Archlinux
[   150.247] Current Operating System: Linux galt 5.11.15-arch1-2 #1 SMP PREEMPT Sat, 17 Apr 2021 00:22:30 +0000 x86_64
[   150.247] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/Arch-root rw amdgpu.dc=0 cryptdevice=UUID=1141efaf-7b03-4d3c-b7da-e7c14e0f9736:cryptlvm root=/dev/Arch/root
[   150.247] Build Date: 13 April 2021  03:12:10PM
[   150.247]
[   150.247] Current version of pixman: 0.40.0
[   150.247] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   150.247] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   150.248] (==) Log file: "/home/username/.local/share/xorg/Xorg.0.log", Time: Fri Apr 23 07:54:18 2021
[   150.248] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   150.248] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   150.248] (==) No Layout section.  Using the first Screen section.
[   150.248] (==) No screen section available. Using defaults.
[   150.248] (**) |-->Screen "Default Screen Section" (0)
[   150.248] (**) |   |-->Monitor "<default monitor>"
[   150.248] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[   150.248] (**) |   |-->Device "AMD"
[   150.248] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   150.248] (==) Automatically adding devices
[   150.248] (==) Automatically enabling devices
[   150.248] (==) Automatically adding GPU devices
[   150.248] (==) Automatically binding GPU devices
[   150.248] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   150.248] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   150.248] 	Entry deleted from font path.
[   150.248] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   150.248] 	Entry deleted from font path.
[   150.248] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[   150.248] (==) ModulePath set to "/usr/lib/xorg/modules"
[   150.248] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   150.248] (II) Module ABI versions:
[   150.248] 	X.Org ANSI C Emulation: 0.4
[   150.248] 	X.Org Video Driver: 24.1
[   150.248] 	X.Org XInput driver : 24.1
[   150.248] 	X.Org Server Extension : 10.0
[   150.252] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   150.253] (II) xfree86: Adding drm device (/dev/dri/card0)
[   150.254] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   150.261] (--) PCI:*(3@0:0:0) 1002:699f:1da2:e367 rev 199, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xf7dc0000/262144, I/O @ 0x0000dc00/256, BIOS @ 0x????????/131072
[   150.261] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   150.261] (II) LoadModule: "glx"
[   150.261] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   150.263] (II) Module glx: vendor="X.Org Foundation"
[   150.263] 	compiled for 1.20.11, module version = 1.0.0
[   150.263] 	ABI class: X.Org Server Extension, version 10.0
[   150.263] (II) LoadModule: "amdgpu"
[   150.263] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[   150.264] (II) Module amdgpu: vendor="X.Org Foundation"
[   150.264] 	compiled for 1.20.8, module version = 19.1.0
[   150.264] 	Module class: X.Org Video Driver
[   150.264] 	ABI class: X.Org Video Driver, version 24.1
[   150.264] (II) AMDGPU: Driver for AMD Radeon:
	All GPUs supported by the amdgpu kernel driver
[   150.264] (EE)
Fatal server error:
[   150.264] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[   150.264] (EE)
[   150.264] (EE)
Please consult the The X.Org Foundation support
	 at http://wiki.x.org
 for help.
[   150.264] (EE) Please also check the log file at "/home/username/.local/share/xorg/Xorg.0.log" for additional information.
[   150.264] (EE)
[   150.264] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[   150.264] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[   150.277] (EE) Server terminated with error (1). Closing log file.

I have searched the error "parse_vt_settings: Cannot open /dev/tty0 (Permission denied)" and nothing I have found there seems applicable.

I then reverted my last `pacman -Syu`. That didn't fix it so I re-applied the updates thinking I could try solve the problem as it is.

I then tried `sudo chmod u+s /usr/bin/Xorg`, that didn't work either.

Any ideas where I can look to diagnose this?

Offline

#2 2021-04-22 21:02:56

newdaybreak
Member
Registered: 2019-05-28
Posts: 14

Re: Cannot startx after upgrade

Ok I managed to get x started by doing the following. Not a real solution IMHO. But maybe it will give someone a clue as to how help me fix the real issue.

usermod -aG inupt,tty,video username

Then I tried to start X again and got this error:

(EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)

So I then did this and was able to start X:

sudo chown user /dev/tty2

I was using this thread as a guide. The thread suggests that the ownership will revert after reboot and doesn't seem like a real solution. I'd like to figure out what actually caused this issue in the first place and a proper solution.

Offline

Board footer

Powered by FluxBB