On 1/8/24 18:30, the...@sys-concept.com wrote:
> When I try to "startx" on a new system I get an error.
>
> X.Org X Server 1.21.1.10
> X Protocol Version 11, Revision 0
> Current Operating System: Linux i5_old 6.1.67-gentoo #1 SMP
> PREEMPT_DYNAMIC Fri Dec 29 22:33:45 MST 2023 x86_64
> Kernel command line: root=UUID=f72ce2ef-55c4-45eb-8bf7-14b2c7b45838
> initrd=intel-uc.img initrd=initramfs-6.1.67-gentoo.img
>
> Current version of pixman: 0.42.2
> Before reporting problems, check http://wiki.x.org
> to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/home/fd/.local/share/xorg/Xorg.0.log", Time: Mon Jan 8
> 19:22:18 2024
> (==) Using system config directory "/usr/share/X11/xorg.conf.d"
> (EE)
> Fatal server error:
> (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)
> (EE)
> (EE)
> Please consult the The X.Org Foundation support
> at http://wiki.x.org
> for help.
> (EE) Please also check the log file at
> "/home/fd/.local/share/xorg/Xorg.0.log" for additional information.
> (EE)
> (EE) Server terminated with error (1). Closing log file.
> xinit: giving up
> xinit: unable to connect to X server: Connection refused
> xinit: server error
>
>
> cat /home/fd/.local/share/xorg/Xorg.0.log
> [ 55.385]
> X.Org X Server 1.21.1.10
> X Protocol Version 11, Revision 0
> [ 55.385] Current Operating System: Linux i5_old 6.1.67-gentoo #1 SMP
> PREEMPT_DYNAMIC Fri Dec 29 22:33:45 MST 2023 x86_64
> [ 55.385] Kernel command line:
> root=UUID=f72ce2ef-55c4-45eb-8bf7-14b2c7b45838 initrd=intel-uc.img
> initrd=initramfs-6.1.67-gentoo.img
> [ 55.385]
> [ 55.385] Current version of pixman: 0.42.2
> [ 55.385] Before reporting problems, check http://wiki.x.org
> to make sure that you have the latest version.
> [ 55.385] Markers: (--) probed, (**) from config file, (==) default
> setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> [ 55.385] (==) Log file: "/home/fd/.local/share/xorg/Xorg.0.log",
> Time: Mon Jan 8 19:22:18 2024
> [ 55.385] (==) Using system config directory
> "/usr/share/X11/xorg.conf.d"
> [ 55.385] (==) No Layout section. Using the first Screen section.
> [ 55.385] (==) No screen section available. Using defaults.
> [ 55.385] (**) |-->Screen "Default Screen Section" (0)
> [ 55.385] (**) | |-->Monitor "<default monitor>"
> [ 55.385] (==) No monitor specified for screen "Default Screen Section".
> Using a default monitor configuration.
> [ 55.385] (==) Automatically adding devices
> [ 55.385] (==) Automatically enabling devices
> [ 55.385] (==) Automatically adding GPU devices
> [ 55.385] (==) Automatically binding GPU devices
> [ 55.385] (==) Max clients allowed: 256, resource mask: 0x1fffff
> [ 55.385] (WW) The directory "/usr/share/fonts/misc" does not exist.
> [ 55.385] Entry deleted from font path.
> [ 55.385] (WW) The directory "/usr/share/fonts/TTF" does not exist.
> [ 55.385] Entry deleted from font path.
> [ 55.385] (WW) The directory "/usr/share/fonts/OTF" does not exist.
> [ 55.385] Entry deleted from font path.
> [ 55.385] (WW) The directory "/usr/share/fonts/Type1" does not exist.
> [ 55.385] Entry deleted from font path.
> [ 55.385] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
> [ 55.385] Entry deleted from font path.
> [ 55.385] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
> [ 55.385] Entry deleted from font path.
> [ 55.385] (==) FontPath set to:
>
> [ 55.385] (==) ModulePath set to "/usr/lib64/xorg/modules"
> [ 55.385] (II) The server relies on udev to provide the list of input
> devices.
> If no devices become available, reconfigure udev or disable
> AutoAddDevices.
> [ 55.385] (II) Module ABI versions:
> [ 55.385] X.Org ANSI C Emulation: 0.4
> [ 55.385] X.Org Video Driver: 25.2
> [ 55.385] X.Org XInput driver : 24.4
> [ 55.385] X.Org Server Extension : 10.0
> [ 55.385] (EE) dbus-core: error connecting to system bus:
> org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket
> /run/dbus/system_bus_socket: No such file or directory)
> [ 55.385] (--) using VT number 7
>
> [ 55.385] (II) systemd-logind: logind integration requires -keeptty
> and -keeptty was not provided, disabling logind integration
> [ 55.386] (II) xfree86: Adding drm device (/dev/dri/card0)
> [ 55.386] (II) Platform probe for
> /sys/devices/pci0000:00/0000:00:02.0/drm/card0
> [ 55.398] (--) PCI:*(0@0:2:0) 8086:4692:1043:8694 rev 12, Mem @
> 0x6002000000/16777216, 0x4000000000/268435456, I/O @ 0x00004000/64, BIOS
> @ 0x????????/131072
> [ 55.398] (II) LoadModule: "glx"
> [ 55.398] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
> [ 55.399] (II) Module glx: vendor="X.Org Foundation"
> [ 55.400] compiled for 1.21.1.10, module version = 1.0.0
> [ 55.400] ABI class: X.Org Server Extension, version 10.0
> [ 55.400] (==) Matched intel as autoconfigured driver 0
> [ 55.400] (==) Matched modesetting as autoconfigured driver 1
> [ 55.400] (==) Matched fbdev as autoconfigured driver 2
> [ 55.400] (==) Matched vesa as autoconfigured driver 3
> [ 55.400] (==) Assigned the driver to the xf86ConfigLayout
> [ 55.400] (II) LoadModule: "intel"
> [ 55.400] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
> [ 55.400] (II) Module intel: vendor="X.Org Foundation"
> [ 55.400] compiled for 1.21.1.10, module version = 2.99.917
> [ 55.400] Module class: X.Org Video Driver
> [ 55.400] ABI class: X.Org Video Driver, version 25.2
> [ 55.400] (II) LoadModule: "modesetting"
> [ 55.400] (II) Loading
> /usr/lib64/xorg/modules/drivers/modesetting_drv.so
> [ 55.400] (II) Module modesetting: vendor="X.Org Foundation"
> [ 55.400] compiled for 1.21.1.10, module version = 1.21.1
> [ 55.400] Module class: X.Org Video Driver
> [ 55.400] ABI class: X.Org Video Driver, version 25.2
> [ 55.400] (II) LoadModule: "fbdev"
> [ 55.401] (WW) Warning, couldn't open module fbdev
> [ 55.401] (EE) Failed to load module "fbdev" (module does not exist, 0)
> [ 55.401] (II) LoadModule: "vesa"
> [ 55.401] (WW) Warning, couldn't open module vesa
> [ 55.401] (EE) Failed to load module "vesa" (module does not exist, 0)
> [ 55.401] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
> i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
> 915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
> Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
> GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
> [ 55.401] (II) intel: Driver for Intel(R) HD Graphics
> [ 55.401] (II) intel: Driver for Intel(R) Iris(TM) Graphics
> [ 55.401] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
> [ 55.401] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
> [ 55.401] (EE)
> Fatal server error:
> [ 55.401] (EE) xf86OpenConsole: Cannot open virtual console 7
> (Permission denied)
> [ 55.401] (EE)
> [ 55.401] (EE)
> Please consult the The X.Org Foundation support
> at http://wiki.x.org
> for help.
> [ 55.401] (EE) Please also check the log file at
> "/home/fd/.local/share/xorg/Xorg.0.log" for additional information.
> [ 55.401] (EE)
> [ 55.401] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
> [ 55.401] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
> [ 55.401] (EE) Server terminated with error (1). Closing log file.
>
> What am I missing?
>
Have you tried following the steps on
https://wiki.gentoo.org/wiki/Non_root_Xorg already?