Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: cannot start X server manually as non-root user (Read 3605 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

cannot start X server manually as non-root user

Hi, first of all, im new to artix and enthusiastic about starting to use the distro.

First I converted my arch installation and had a problem, so instead i nuked the partition and made a fresh install of artix. However it seems the problem didn't change.

I can run startx as root no problem, and X obviously uses the default configuration in /etc/X11/xinit/xinitrc, and starts
As a normal user, i get this log, i tried reading the errors and finding what to do, but no success.

I tried installing the packages xf86-video-intel and xf86-video-fbdev just in case, and it removed the corresponding errors, but still didn't work.

Code: [Select]
[  5872.569] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[  5872.580] X Protocol Version 11, Revision 0
[  5872.580] Build Operating System: Linux 4.9.72-1-lts x86_64
[  5872.580] Current Operating System: Linux localhost 4.9.75-1-lts #1 SMP Sat Jan 6 00:32:45 UTC 2018 x86_64
[  5872.580] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=49dda227-a367-47e2-a801-d04898af341f rw quiet
[  5872.580] Build Date: 29 December 2017  01:32:09PM
[  5872.580] 
[  5872.580] Current version of pixman: 0.34.0
[  5872.580] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[  5872.580] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  5872.580] (==) Log file: "/home/pierre/.local/share/xorg/Xorg.0.log", Time: Sat Jan  6 20:48:14 2018
[  5872.580] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  5872.580] (==) No Layout section.  Using the first Screen section.
[  5872.580] (==) No screen section available. Using defaults.
[  5872.580] (**) |-->Screen "Default Screen Section" (0)
[  5872.580] (**) |   |-->Monitor "<default monitor>"
[  5872.580] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[  5872.580] (==) Automatically adding devices
[  5872.580] (==) Automatically enabling devices
[  5872.580] (==) Automatically adding GPU devices
[  5872.580] (==) Automatically binding GPU devices
[  5872.580] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  5872.580] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  5872.580] Entry deleted from font path.
[  5872.580] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[  5872.580] (==) ModulePath set to "/usr/lib/xorg/modules"
[  5872.580] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[  5872.580] (II) Loader magic: 0x55cf344e0d40
[  5872.580] (II) Module ABI versions:
[  5872.580] X.Org ANSI C Emulation: 0.4
[  5872.580] X.Org Video Driver: 23.0
[  5872.580] X.Org XInput driver : 24.1
[  5872.580] X.Org Server Extension : 10.0
[  5872.580] (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)
[  5872.580] (++) using VT number 2

[  5872.580] (--) controlling tty is VT number 2, auto-enabling KeepTty
[  5872.580] (II) xfree86: Adding drm device (/dev/dri/card1)
[  5872.580] (II) xfree86: Adding drm device (/dev/dri/card0)
[  5872.582] (--) PCI:*(0:0:2:0) 8086:0416:1043:11cd rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[  5872.582] (--) PCI: (0:1:0:0) 10de:1391:1043:11cd rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[  5872.582] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  5872.582] (II) LoadModule: "glx"
[  5872.582] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  5872.583] (II) Module glx: vendor="X.Org Foundation"
[  5872.583] compiled for 1.19.6, module version = 1.0.0
[  5872.583] ABI class: X.Org Server Extension, version 10.0
[  5872.583] (==) Matched intel as autoconfigured driver 0
[  5872.583] (==) Matched modesetting as autoconfigured driver 1
[  5872.583] (==) Matched fbdev as autoconfigured driver 2
[  5872.583] (==) Matched vesa as autoconfigured driver 3
[  5872.583] (==) Assigned the driver to the xf86ConfigLayout
[  5872.583] (II) LoadModule: "intel"
[  5872.583] (WW) Warning, couldn't open module intel
[  5872.583] (II) UnloadModule: "intel"
[  5872.583] (II) Unloading intel
[  5872.583] (EE) Failed to load module "intel" (module does not exist, 0)
[  5872.583] (II) LoadModule: "modesetting"
[  5872.583] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  5872.583] (II) Module modesetting: vendor="X.Org Foundation"
[  5872.583] compiled for 1.19.6, module version = 1.19.6
[  5872.583] Module class: X.Org Video Driver
[  5872.583] ABI class: X.Org Video Driver, version 23.0
[  5872.583] (II) LoadModule: "fbdev"
[  5872.583] (WW) Warning, couldn't open module fbdev
[  5872.583] (II) UnloadModule: "fbdev"
[  5872.583] (II) Unloading fbdev
[  5872.583] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  5872.583] (II) LoadModule: "vesa"
[  5872.583] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[  5872.583] (II) Module vesa: vendor="X.Org Foundation"
[  5872.583] compiled for 1.19.5, module version = 2.3.4
[  5872.583] Module class: X.Org Video Driver
[  5872.583] ABI class: X.Org Video Driver, version 23.0
[  5872.583] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  5872.583] (II) VESA: driver for VESA chipsets: vesa
[  5872.594] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[  5872.594] (EE) open /dev/dri/card0: Permission denied
[  5872.594] (WW) Falling back to old probe method for modesetting
[  5872.594] (EE) open /dev/dri/card0: Permission denied
[  5872.594] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  5872.594] (EE) Screen 0 deleted because of no matching config section.
[  5872.594] (II) UnloadModule: "modesetting"
[  5872.594] (II) Loading sub module "vbe"
[  5872.594] (II) LoadModule: "vbe"
[  5872.594] (II) Loading /usr/lib/xorg/modules/libvbe.so
[  5872.594] (II) Module vbe: vendor="X.Org Foundation"
[  5872.594] compiled for 1.19.6, module version = 1.1.0
[  5872.594] ABI class: X.Org Video Driver, version 23.0
[  5872.594] (II) Loading sub module "int10"
[  5872.594] (II) LoadModule: "int10"
[  5872.594] (II) Loading /usr/lib/xorg/modules/libint10.so
[  5872.595] (II) Module int10: vendor="X.Org Foundation"
[  5872.595] compiled for 1.19.6, module version = 1.0.0
[  5872.595] ABI class: X.Org Video Driver, version 23.0
[  5872.595] (II) VESA(0): initializing int10
[  5872.595] (EE) VESA(0): Cannot read int vect
[  5872.595] (II) UnloadModule: "vesa"
[  5872.595] (II) UnloadSubModule: "int10"
[  5872.595] (II) Unloading int10
[  5872.595] (II) UnloadSubModule: "vbe"
[  5872.595] (II) Unloading vbe
[  5872.595] (EE) Screen(s) found, but none have a usable configuration.
[  5872.595] (EE)
Fatal server error:
[  5872.595] (EE) no screens found(EE)
[  5872.595] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
 for help.
[  5872.595] (EE) Please also check the log file at "/home/pierre/.local/share/xorg/Xorg.0.log" for additional information.
[  5872.595] (EE)
[  5872.661] (EE) Server terminated with error (1). Closing log file.

Re: cannot start X server manually as non-root user

Reply #1
Ok, for some reason it started working randomly. So i tried to reproduce it by reinstalling the whole system once again, and never ran into the problem again. I still get this error, but X starts

xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

 

Re: cannot start X server manually as non-root user

Reply #2
i think i found my problem; i wanted to start X without a display manager, so i used the following script from the gentoo wiki and pasted it in my .bash_profile:

Code: [Select]
unset -v HOME # Force bash to obtain its value for HOME from getpwent(3) on first use, so tilde-expansion is sane.
if shopt -q login_shell; then
    [[ -f ~/.bashrc ]] && source ~/.bashrc
    [[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]] && exec startx
else
    exit 1 # Somehow this is a non-bash or non-login shell.
fi

the first line messed something up; i tried to install the emscripten package where getpwent is declared to no avail. After runnin this bash profile once i had to run

Code: [Select]
set -v HOME

in a random shell, and then i commented that line and it seems alright