I've completed X.org building on my LFS distro the other day - however now I cannot start x as a normal user. Starting X as root seems to work. This is my Xorg.0.log:
Code:
[ 220.388]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 220.388] X Protocol Version 11, Revision 0
[ 220.388] Build Operating System: Linux 4.7.2 x86_64
[ 220.388] Current Operating System: Linux lfs 4.7.2 #4 SMP Sat Nov 12 18:14:49 EST 2016 x86_64
[ 220.389] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.7.2-lfs-7.10-systemd root=/dev/sdc2 rootdelay=10 ro
[ 220.389] Build Date: 12 November 2016 08:49:46PM
[ 220.389]
[ 220.389] Current version of pixman: 0.34.0
[ 220.389] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 220.389] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 220.389] (==) Log file: "/home/jacob/.local/share/xorg/Xorg.0.log", Time: Mon Nov 14 08:55:47 2016
[ 220.400] (==) Using config file: "/etc/X11/xorg.conf"
[ 220.400] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 220.441] (==) ServerLayout "Layout0"
[ 220.441] (**) |-->Screen "Screen0" (0)
[ 220.441] (**) | |-->Monitor "Monitor0"
[ 220.441] (**) | |-->Device "Device0"
[ 220.441] (**) |-->Input Device "Keyboard0"
[ 220.441] (**) |-->Input Device "Mouse0"
[ 220.441] (==) Automatically adding devices
[ 220.441] (==) Automatically enabling devices
[ 220.441] (==) Automatically adding GPU devices
[ 220.441] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 220.481] (==) FontPath set to:
/usr/share/fonts/X11/misc/,
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/,
/usr/share/fonts/X11/100dpi/,
/usr/share/fonts/X11/75dpi/
[ 220.481] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 220.481] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 220.481] (WW) Disabling Keyboard0
[ 220.481] (WW) Disabling Mouse0
[ 220.481] (II) Loader magic: 0x816ce0
[ 220.481] (II) Module ABI versions:
[ 220.481] X.Org ANSI C Emulation: 0.4
[ 220.481] X.Org Video Driver: 20.0
[ 220.481] X.Org XInput driver : 22.1
[ 220.481] X.Org Server Extension : 9.0
[ 220.496] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 220.497] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 220.498] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[ 220.500] (--) PCI:*(0:1:0:0) 10de:1b80:3842:6386 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[ 220.500] (II) Open ACPI successful (/var/run/acpid.socket)
[ 220.500] (II) LoadModule: "glx"
[ 220.502] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 220.590] (II) Module glx: vendor="X.Org Foundation"
[ 220.590] compiled for 1.18.4, module version = 1.0.0
[ 220.590] ABI class: X.Org Server Extension, version 9.0
[ 220.590] (==) AIGLX enabled
[ 220.590] (II) LoadModule: "nvidia"
[ 220.591] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 220.708] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 220.708] compiled for 4.0.2, module version = 1.0.0
[ 220.708] Module class: X.Org Video Driver
[ 220.714] (II) NVIDIA dlloader X Driver 375.10 Fri Oct 14 09:38:17 PDT 2016
[ 220.714] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 220.715] (EE)
Fatal server error:
[ 220.715] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 220.715] (EE)
[ 220.715] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 220.715] (EE) Please also check the log file at "/home/jacob/.local/share/xorg/Xorg.0.log" for additional information.
[ 220.715] (EE)
I also have /etc/X11/Xwrapper.config with the following:
Code:
allowed_users=anybody
needs_root_rights=yes
and /dev/tty0 has the following permissions:
crw--w---- 1 root tty 4, 0 Nov 14 08:52 /dev/tty0
Edit: After looking at
https://bbs.archlinux.org/viewtopic.php?id=184496&p=2 the following has worked for now:
Code:
alias startx="startx -- vt1 -keeptty > ~/.xorg.log 2>&1"
but I'm wondering if there's a proper fix for this to continue simply using startx?