You are not logged in.

#1 2017-04-22 12:23:41

tnek
Member
Registered: 2008-06-10
Posts: 40

[SOLVED] Errors when startx to get an Xorg session

When installing and getting Xorg to work I experience two problems (without and with Firefox) which I suspect are both related to user privileges, as their symptoms are similar:

  • After I got a command line system working I created a normal user account which is allowed to use sudo

  • I then installed Xorg and related packages and can startx an X session with correct resolution and xterms and xclock. However, it prints one error (twice) which says: xauth:  file /home/kent/.Xauthority does not exist (disregard this one, it's only shown the first time and I think it's normal)

  • If I continue from there and install Firefox (90 packages in total) I just get a blank black screen when doing startx which stays for four minutes. Then it exits and I get the error: xinit: server error

I suspect that it is some kind of user privileges problem, but I am not sure. Some empty files are created.

I go into details below on all the above. Let me know if additional information is needed to be able to help me out.

Details follow

How I created the normal user account and allowed it to use sudo

I created a user account (kent) which I let be part of the wheel group

root$ useradd -m -G wheel kent
root$ passwd kent # set the password of the new user, required to be able to login

After a reboot I logged in as kent and checked that I was able to create files as it and root, as well as my home directory permissions

$ pwd
/home/kent
$ touch somefile
$ su
Password:
root$ touch otherfile
root$ exit
exit
$ ls -l # to see the two files and their permissions
total 0
-rw-r--r-- 1 root root 0 Apr 22 10:45 otherfile
-rw-r--r-- 1 kent kent 0 Apr 22 10:45 somefile
$ cd ..
$ ls -l # to see the home directory permissions
total 4
drwx------ 2 kent kent 4096 Apr 22 10:45 kent

I then installed sudo, made sure the user account is part of the wheel group and used visudo to give "%wheel ALL=(ALL) ALL" and made sure I can use sudo by

$ sudo bash -c "echo content>fromsudo"
$ ls -l
total 4
-rw-r--r-- 1 root root 8 Apr 22 10:52 fromsudo
-rw-r--r-- 1 root root 0 Apr 22 10:45 otherfile
-rw-r--r-- 1 kent kent 0 Apr 22 10:45 somefile

How I installed Xorg and related packages

$ sudo pacman -S xorg-server xorg-xinit xterm xorg-xclock xorg-twm
resolving dependencies...
:: There are 3 providers available for libgl:
:: Repository extra
   1) libglvnd  2) nvidia-304xx-utils  3) nvidia-340xx-utils

Enter a number (default=1): 1
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency

Packages (57) fontconfig-2.12.1-4  fontsproto-2.1.3-1  freetype2-2.7.1-1  graphite-1:1.3.9-1  harfbuzz-1.4.5-1  libdrm-2.4.80-1
              libepoxy-1.4.1-1  libevdev-1.5.6-1  libfontenc-1.1.3-1  libglvnd-0.2.999+g4ba53457-2  libgudev-231-1  libinput-1.7.0-1
              libomxil-bellagio-0.9.3-1  libpciaccess-0.13.5-1  libpng-1.6.29-1  libtxc_dxtn-1.0.1-6  libunwind-1.1-3  libutempter-1.1.6-2
              libwacom-0.24-1  libxaw-1.0.13-1  libxfont-1.5.2-1  libxfont2-2.0.1-1  libxft-2.3.2-1  libxkbfile-1.0.9-1
              libxml2-2.9.4+12+ge905f081-5  libxpm-3.5.12-1  libxshmfence-1.2-1  libxxf86vm-1.1.4-1  llvm-libs-4.0.0-1  mesa-17.0.4-2
              mtdev-1.1.5-1  pixman-0.34.0-1  wayland-1.13.0-1  xbitmaps-1.1.1-3  xf86-input-libinput-0.25.0-1  xf86vidmodeproto-2.3.1-3
              xkeyboard-config-2.20-1  xorg-bdftopcf-1.0.5-1  xorg-font-util-1.3.1-1  xorg-font-utils-7.6-4  xorg-fonts-alias-1.0.3-1
              xorg-fonts-encodings-1.0.4-4  xorg-fonts-misc-1.0.3-5  xorg-luit-1.1.1-2  xorg-mkfontdir-1.0.7-8  xorg-mkfontscale-1.1.2-1
              xorg-server-common-1.19.3-2  xorg-setxkbmap-1.3.1-1  xorg-xauth-1.0.10-1  xorg-xkbcomp-1.3.1-1  xorg-xmodmap-1.0.9-1
              xorg-xrdb-1.1.0-2  xorg-server-1.19.3-2  xorg-twm-1.0.9-1  xorg-xclock-1.0.7-1  xorg-xinit-1.3.4-4  xterm-327-1

Total Download Size:    39.02 MiB
Total Installed Size:  150.41 MiB

:: Proceed with installation? [Y/n]

The only output I got which might look a bit suspicious is

>>> xorg-server has now the ability to run without root rights with
    the help of systemd-logind. xserver will fail to run if not launched
    from the same virtual terminal as was used to log in.
    Without root rights, log files will be in ~/.local/share/xorg/ directory.

    Old behavior can be restored through Xorg.wrap config file.
    See Xorg.wrap man page (man xorg.wrap).

But I guess it just means that Xorg runs as my normal user account? Which I guess the fact that the log file exists in $HOME/.local/... also indicates.

The error output I get when running startx after installing Xorg and related packages

When I run startx twm does start, with the correct resolution and xterm and xclock running, but after exiting I see that I got this error (twice):

xauth:  file /home/kent/.Xauthority does not exist
xauth:  file /home/kent/.Xauthority does not exist

I got this log file contents:

$ cat /home/kent/.local/share/xorg/Xorg.0.log
[  1439.831]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[  1439.831] X Protocol Version 11, Revision 0
[  1439.831] Build Operating System: Linux 4.9.11-1-ARCH x86_64
[  1439.831] Current Operating System: Linux klavarch 4.10.11-1-ARCH #1 SMP PREEMPT Tue Apr 18 08:39:42 CEST 2017 x86_64
[  1439.831] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img luks.uuid=edffb3cc-c44e-4c08-934f-960d0ffdc858 luks.name=slash root=UUID=73a00555-e4fe-4659-b8c6-9a61d441b9f8 rw resume=UUID=73a00555-e4fe-4659-b8c6-9a61d441b9f8 resume_offset=231424 fbcon=scrollback:100k
[  1439.832] Build Date: 07 April 2017  05:42:48PM
[  1439.832]
[  1439.832] Current version of pixman: 0.34.0
[  1439.832]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  1439.832] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1439.833] (==) Log file: "/home/kent/.local/share/xorg/Xorg.0.log", Time: Sat Apr 22 10:56:59 2017
[  1439.834] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1439.834] (==) No Layout section.  Using the first Screen section.
[  1439.834] (==) No screen section available. Using defaults.
[  1439.834] (**) |-->Screen "Default Screen Section" (0)
[  1439.834] (**) |   |-->Monitor "<default monitor>"
[  1439.834] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[  1439.834] (==) Automatically adding devices
[  1439.834] (==) Automatically enabling devices
[  1439.834] (==) Automatically adding GPU devices
[  1439.834] (==) Automatically binding GPU devices
[  1439.834] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1439.834] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1439.834]    Entry deleted from font path.
[  1439.834] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  1439.834]    Entry deleted from font path.
[  1439.834]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  1439.834] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  1439.834]    Entry deleted from font path.
[  1439.834]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  1439.834] (==) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/OTF/
[  1439.834] (==) ModulePath set to "/usr/lib/xorg/modules"
[  1439.834] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1439.834] (II) Loader magic: 0x822d60
[  1439.834] (II) Module ABI versions:
[  1439.834]    X.Org ANSI C Emulation: 0.4
[  1439.834]    X.Org Video Driver: 23.0
[  1439.834]    X.Org XInput driver : 24.1
[  1439.834]    X.Org Server Extension : 10.0
[  1439.835] (++) using VT number 1

[  1439.835] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  1439.837] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[  1439.837] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1439.838] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[  1439.839] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0x80000000/134217728, BIOS @ 0x????????/131072
[  1439.839] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1439.839] (II) LoadModule: "glx"
[  1439.839] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1439.840] (II) Module glx: vendor="X.Org Foundation"
[  1439.840]    compiled for 1.19.3, module version = 1.0.0
[  1439.840]    ABI class: X.Org Server Extension, version 10.0
[  1439.840] (==) Matched vboxvideo as autoconfigured driver 0
[  1439.840] (==) Matched vboxvideo as autoconfigured driver 1
[  1439.840] (==) Matched modesetting as autoconfigured driver 2
[  1439.840] (==) Matched fbdev as autoconfigured driver 3
[  1439.840] (==) Matched vesa as autoconfigured driver 4
[  1439.840] (==) Assigned the driver to the xf86ConfigLayout
[  1439.840] (II) LoadModule: "vboxvideo"
[  1439.841] (WW) Warning, couldn't open module vboxvideo
[  1439.841] (II) UnloadModule: "vboxvideo"
[  1439.841] (II) Unloading vboxvideo
[  1439.841] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[  1439.841] (II) LoadModule: "modesetting"
[  1439.841] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  1439.841] (II) Module modesetting: vendor="X.Org Foundation"
[  1439.841]    compiled for 1.19.3, module version = 1.19.3
[  1439.841]    Module class: X.Org Video Driver
[  1439.841]    ABI class: X.Org Video Driver, version 23.0
[  1439.841] (II) LoadModule: "fbdev"
[  1439.841] (WW) Warning, couldn't open module fbdev
[  1439.841] (II) UnloadModule: "fbdev"
[  1439.841] (II) Unloading fbdev
[  1439.841] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  1439.841] (II) LoadModule: "vesa"
[  1439.841] (WW) Warning, couldn't open module vesa
[  1439.841] (II) UnloadModule: "vesa"
[  1439.841] (II) Unloading vesa
[  1439.841] (EE) Failed to load module "vesa" (module does not exist, 0)
[  1439.841] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1439.841] (II) modeset(0): using drv /dev/dri/card0
[  1439.841] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1439.841] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[  1439.841] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[  1439.841] (==) modeset(0): RGB weight 888
[  1439.841] (==) modeset(0): Default visual is TrueColor
[  1439.841] (II) Loading sub module "glamoregl"
[  1439.841] (II) LoadModule: "glamoregl"
[  1439.841] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[  1439.865] (II) Module glamoregl: vendor="X.Org Foundation"
[  1439.865]    compiled for 1.19.3, module version = 1.0.0
[  1439.865]    ABI class: X.Org ANSI C Emulation, version 0.4
[  1439.865] (II) glamor: OpenGL accelerated X.org driver based.
[  1439.977] (II) glamor: EGL version 1.4 (DRI2):
[  1439.977] EGL_MESA_drm_image required.
[  1439.977] (EE) modeset(0): glamor initialization failed
[  1439.977] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[  1439.982] (II) modeset(0): Output VGA-1 has no monitor section
[  1439.982] (II) modeset(0): EDID for output VGA-1
[  1439.982] (II) modeset(0): Manufacturer: VBX  Model: 0  Serial#: 65537904
[  1439.982] (II) modeset(0): Year: 1990  Week: 1
[  1439.982] (II) modeset(0): EDID Version: 1.3
[  1439.982] (II) modeset(0): Digital Display Input
[  1439.982] (II) modeset(0): Indeterminate output size
[  1439.982] (II) modeset(0): Gamma: 2.20
[  1439.982] (II) modeset(0): DPMS capabilities: StandBy Suspend Off
[  1439.982] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[  1439.982] (II) modeset(0): Default color space is primary color space
[  1439.982] (II) modeset(0): First detailed timing is preferred mode
[  1439.982] (II) modeset(0): redX: 0.640 redY: 0.330   greenX: 0.300 greenY: 0.600
[  1439.982] (II) modeset(0): blueX: 0.150 blueY: 0.060   whiteX: 0.312 whiteY: 0.329
[  1439.982] (II) modeset(0): Manufacturer's mask: 0
[  1439.982] (II) modeset(0): Supported detailed timing:
[  1439.982] (II) modeset(0): clock: 115.3 MHz   Image Size:  0 x 0 mm
[  1439.982] (II) modeset(0): h_active: 1904  h_sync: 1906  h_sync_end 1908 h_blank_end 1910 h_border: 0
[  1439.982] (II) modeset(0): v_active: 1000  v_sync: 1000  v_sync_end 1034 v_blanking: 1006 v_border: 0
[  1439.982] (II) modeset(0): Ranges: V min: 0 V max: 200 Hz, H min: 0 H max: 200 kHz, PixClock max 1005 MHz
[  1439.982] (II) modeset(0): Monitor name: VBOX monitor
[  1439.982] (II) modeset(0): EDID (in hex):
[  1439.982] (II) modeset(0):   00ffffffffffff00585800007007e803
[  1439.982] (II) modeset(0):   0100010380000078eeee91a3544c9926
[  1439.982] (II) modeset(0):   0f505400000001010101010101010101
[  1439.982] (II) modeset(0):   010101010101082d700670e806300202
[  1439.982] (II) modeset(0):   0202000000000000000000fd0000c800
[  1439.982] (II) modeset(0):   c864000a202020202020000000fc0056
[  1439.982] (II) modeset(0):   424f58206d6f6e69746f720a00000010
[  1439.982] (II) modeset(0):   000a20202020202020202020202000c2
[  1439.982] (II) modeset(0): Printing probed modes for output VGA-1
[  1439.982] (II) modeset(0): Modeline "1904x1000"x60.0  158.33  1904 2024 2224 2544  1000 1003 1013 1038 -hsync +vsync (62.2 kHz P)
[  1439.982] (II) modeset(0): Modeline "2560x1600"x60.0  348.50  2560 2752 3032 3504  1600 1603 1609 1658 -hsync +vsync (99.5 kHz e)
[  1439.982] (II) modeset(0): Modeline "2560x1600"x60.0  268.50  2560 2608 2640 2720  1600 1603 1609 1646 +hsync -vsync (98.7 kHz e)
[  1439.982] (II) modeset(0): Modeline "1920x1440"x60.0  234.00  1920 2048 2256 2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1856x1392"x60.0  218.25  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.3 kHz e)
[  1439.982] (II) modeset(0): Modeline "1792x1344"x60.0  204.75  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.6 kHz e)
[  1439.982] (II) modeset(0): Modeline "2048x1152"x60.0  162.00  2048 2074 2154 2250  1152 1153 1156 1200 +hsync +vsync (72.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz e)
[  1439.982] (II) modeset(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 -hsync -vsync (67.5 kHz e)
[  1439.982] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[  1439.982] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[  1439.982] (II) modeset(0): Modeline "1400x1050"x60.0  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync (65.3 kHz e)
[  1439.982] (II) modeset(0): Modeline "1400x1050"x59.9  101.00  1400 1448 1480 1560  1050 1053 1057 1080 +hsync -vsync (64.7 kHz e)
[  1439.982] (II) modeset(0): Modeline "1600x900"x60.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
[  1439.982] (II) modeset(0): Modeline "1440x900"x59.9   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[  1439.982] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1366x768"x59.8   85.50  1366 1436 1579 1792  768 771 774 798 +hsync +vsync (47.7 kHz e)
[  1439.982] (II) modeset(0): Modeline "1366x768"x60.0   72.00  1366 1380 1436 1500  768 769 772 800 +hsync +vsync (48.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1360x768"x60.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[  1439.982] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz e)
[  1439.982] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[  1439.982] (II) modeset(0): Modeline "1280x768"x59.9   79.50  1280 1344 1472 1664  768 771 778 798 -hsync +vsync (47.8 kHz e)
[  1439.982] (II) modeset(0): Modeline "1280x768"x60.0   68.25  1280 1328 1360 1440  768 771 778 790 +hsync -vsync (47.4 kHz e)
[  1439.982] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[  1439.982] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[  1439.982] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[  1439.982] (II) modeset(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[  1439.982] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[  1439.982] (II) modeset(0): Output VGA-1 connected
[  1439.982] (II) modeset(0): Using exact sizes for initial modes
[  1439.982] (II) modeset(0): Output VGA-1 using initial mode 1904x1000 +0+0
[  1439.982] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[  1439.982] (==) modeset(0): DPI set to (96, 96)
[  1439.982] (II) Loading sub module "fb"
[  1439.982] (II) LoadModule: "fb"
[  1439.983] (II) Loading /usr/lib/xorg/modules/libfb.so
[  1439.983] (II) Module fb: vendor="X.Org Foundation"
[  1439.983]    compiled for 1.19.3, module version = 1.0.0
[  1439.983]    ABI class: X.Org ANSI C Emulation, version 0.4
[  1439.983] (==) Depth 24 pixmap format is 32 bpp
[  1439.983] (==) modeset(0): Backing store enabled
[  1439.983] (==) modeset(0): Silken mouse enabled
[  1439.983] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  1439.983] (==) modeset(0): DPMS enabled
[  1439.983] (--) RandR disabled
[  1439.986] (II) AIGLX: Screen 0 is not DRI2 capable
[  1439.986] (EE) AIGLX: reverting to software rendering
[  1439.987] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[  1439.988] (II) IGLX: Loaded and initialized swrast
[  1439.988] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  1439.988] (II) modeset(0): Damage tracking initialized
[  1439.988] (II) modeset(0): Setting screen physical size to 503 x 264
[  1440.027] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[  1440.027] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[  1440.027] (II) LoadModule: "libinput"
[  1440.027] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[  1440.059] (II) Module libinput: vendor="X.Org Foundation"
[  1440.059]    compiled for 1.19.2, module version = 0.25.0
[  1440.059]    Module class: X.Org XInput Driver
[  1440.059]    ABI class: X.Org XInput driver, version 24.1
[  1440.059] (II) Using input driver 'libinput' for 'Power Button'
[  1440.059] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 19 paused 0
[  1440.059] (**) Power Button: always reports core events
[  1440.059] (**) Option "Device" "/dev/input/event3"
[  1440.060] (**) Option "_source" "server/udev"
[  1440.060] (II) event3  - (II) Power Button: (II) is tagged by udev as: Keyboard
[  1440.060] (II) event3  - (II) Power Button: (II) device is a keyboard
[  1440.060] (II) event3  - (II) Power Button: (II) device removed
[  1440.060] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4/event3"
[  1440.060] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[  1440.060] (II) event3  - (II) Power Button: (II) is tagged by udev as: Keyboard
[  1440.060] (II) event3  - (II) Power Button: (II) device is a keyboard
[  1440.060] (II) config/udev: Adding input device Sleep Button (/dev/input/event4)
[  1440.060] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[  1440.060] (II) Using input driver 'libinput' for 'Sleep Button'
[  1440.061] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 22 paused 0
[  1440.061] (**) Sleep Button: always reports core events
[  1440.061] (**) Option "Device" "/dev/input/event4"
[  1440.061] (**) Option "_source" "server/udev"
[  1440.061] (II) event4  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[  1440.061] (II) event4  - (II) Sleep Button: (II) device is a keyboard
[  1440.061] (II) event4  - (II) Sleep Button: (II) device removed
[  1440.061] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSLPBN:00/input/input5/event4"
[  1440.061] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 7)
[  1440.061] (II) event4  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[  1440.061] (II) event4  - (II) Sleep Button: (II) device is a keyboard
[  1440.062] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[  1440.062] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[  1440.062] (II) Using input driver 'libinput' for 'Video Bus'
[  1440.062] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 23 paused 0
[  1440.062] (**) Video Bus: always reports core events
[  1440.062] (**) Option "Device" "/dev/input/event5"
[  1440.062] (**) Option "_source" "server/udev"
[  1440.062] (II) event5  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[  1440.062] (II) event5  - (II) Video Bus: (II) device is a keyboard
[  1440.062] (II) event5  - (II) Video Bus: (II) device removed
[  1440.062] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/LNXVIDEO:00/input/input6/event5"
[  1440.062] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[  1440.062] (II) event5  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[  1440.062] (II) event5  - (II) Video Bus: (II) device is a keyboard
[  1440.063] (II) config/udev: Adding input device VirtualBox mouse integration (/dev/input/event2)
[  1440.063] (**) VirtualBox mouse integration: Applying InputClass "libinput pointer catchall"
[  1440.063] (II) Using input driver 'libinput' for 'VirtualBox mouse integration'
[  1440.063] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 24 paused 0
[  1440.063] (**) VirtualBox mouse integration: always reports core events
[  1440.063] (**) Option "Device" "/dev/input/event2"
[  1440.063] (**) Option "_source" "server/udev"
[  1440.063] (II) event2  - (II) VirtualBox mouse integration: (II) is tagged by udev as: Mouse
[  1440.063] (II) event2  - (II) VirtualBox mouse integration: (II) device is a pointer
[  1440.063] (II) event2  - (II) VirtualBox mouse integration: (II) device removed
[  1440.063] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:04.0/input/input3/event2"
[  1440.063] (II) XINPUT: Adding extended input device "VirtualBox mouse integration" (type: MOUSE, id 9)
[  1440.064] (**) Option "AccelerationScheme" "none"
[  1440.064] (**) VirtualBox mouse integration: (accel) selected scheme none/0
[  1440.064] (**) VirtualBox mouse integration: (accel) acceleration factor: 2.000
[  1440.064] (**) VirtualBox mouse integration: (accel) acceleration threshold: 4
[  1440.064] (II) event2  - (II) VirtualBox mouse integration: (II) is tagged by udev as: Mouse
[  1440.064] (II) event2  - (II) VirtualBox mouse integration: (II) device is a pointer
[  1440.064] (II) config/udev: Adding input device VirtualBox mouse integration (/dev/input/js1)
[  1440.064] (II) No input driver specified, ignoring this device.
[  1440.064] (II) This device may have been added with another device file.
[  1440.064] (II) config/udev: Adding input device VirtualBox mouse integration (/dev/input/mouse1)
[  1440.064] (II) No input driver specified, ignoring this device.
[  1440.064] (II) This device may have been added with another device file.
[  1440.064] (II) config/udev: Adding input device VirtualBox USB Tablet (/dev/input/event1)
[  1440.064] (**) VirtualBox USB Tablet: Applying InputClass "libinput pointer catchall"
[  1440.064] (II) Using input driver 'libinput' for 'VirtualBox USB Tablet'
[  1440.120] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 25 paused 0
[  1440.120] (**) VirtualBox USB Tablet: always reports core events
[  1440.120] (**) Option "Device" "/dev/input/event1"
[  1440.120] (**) Option "_source" "server/udev"
[  1440.121] (II) event1  - (II) VirtualBox USB Tablet: (II) is tagged by udev as: Mouse
[  1440.121] (II) event1  - (II) VirtualBox USB Tablet: (II) device is a pointer
[  1440.121] (II) event1  - (II) VirtualBox USB Tablet: (II) device removed
[  1440.121] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:06.0/usb1/1-1/1-1:1.0/0003:80EE:0021.0002/input/input9/event1"
[  1440.121] (II) XINPUT: Adding extended input device "VirtualBox USB Tablet" (type: MOUSE, id 10)
[  1440.122] (**) Option "AccelerationScheme" "none"
[  1440.122] (**) VirtualBox USB Tablet: (accel) selected scheme none/0
[  1440.122] (**) VirtualBox USB Tablet: (accel) acceleration factor: 2.000
[  1440.122] (**) VirtualBox USB Tablet: (accel) acceleration threshold: 4
[  1440.123] (II) event1  - (II) VirtualBox USB Tablet: (II) is tagged by udev as: Mouse
[  1440.123] (II) event1  - (II) VirtualBox USB Tablet: (II) device is a pointer
[  1440.124] (II) config/udev: Adding input device VirtualBox USB Tablet (/dev/input/js0)
[  1440.124] (II) No input driver specified, ignoring this device.
[  1440.124] (II) This device may have been added with another device file.
[  1440.125] (II) config/udev: Adding input device VirtualBox USB Tablet (/dev/input/mouse0)
[  1440.125] (II) No input driver specified, ignoring this device.
[  1440.125] (II) This device may have been added with another device file.
[  1440.126] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[  1440.126] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[  1440.126] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[  1440.127] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 26 paused 0
[  1440.127] (**) AT Translated Set 2 keyboard: always reports core events
[  1440.127] (**) Option "Device" "/dev/input/event0"
[  1440.127] (**) Option "_source" "server/udev"
[  1440.128] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[  1440.128] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[  1440.128] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[  1440.128] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[  1440.128] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[  1440.129] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[  1440.129] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[  1440.130] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/event7)
[  1440.130] (**) ImExPS/2 Generic Explorer Mouse: Applying InputClass "libinput pointer catchall"
[  1440.130] (II) Using input driver 'libinput' for 'ImExPS/2 Generic Explorer Mouse'
[  1440.132] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 27 paused 0
[  1440.132] (**) ImExPS/2 Generic Explorer Mouse: always reports core events
[  1440.132] (**) Option "Device" "/dev/input/event7"
[  1440.132] (**) Option "_source" "server/udev"
[  1440.133] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) is tagged by udev as: Mouse
[  1440.133] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device is a pointer
[  1440.133] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device removed
[  1440.133] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input8/event7"
[  1440.133] (II) XINPUT: Adding extended input device "ImExPS/2 Generic Explorer Mouse" (type: MOUSE, id 12)
[  1440.133] (**) Option "AccelerationScheme" "none"
[  1440.133] (**) ImExPS/2 Generic Explorer Mouse: (accel) selected scheme none/0
[  1440.133] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration factor: 2.000
[  1440.133] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration threshold: 4
[  1440.134] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) is tagged by udev as: Mouse
[  1440.134] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device is a pointer
[  1440.135] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/mouse2)
[  1440.135] (II) No input driver specified, ignoring this device.
[  1440.135] (II) This device may have been added with another device file.
[  1440.136] (II) config/udev: Adding input device PC Speaker (/dev/input/event6)
[  1440.136] (II) No input driver specified, ignoring this device.
[  1440.136] (II) This device may have been added with another device file.
[  1450.592] (**) Option "fd" "19"
[  1450.592] (II) event3  - (II) Power Button: (II) device removed
[  1450.592] (**) Option "fd" "22"
[  1450.592] (II) event4  - (II) Sleep Button: (II) device removed
[  1450.592] (**) Option "fd" "23"
[  1450.592] (II) event5  - (II) Video Bus: (II) device removed
[  1450.593] (**) Option "fd" "24"
[  1450.593] (II) event2  - (II) VirtualBox mouse integration: (II) device removed
[  1450.593] (**) Option "fd" "25"
[  1450.593] (II) event1  - (II) VirtualBox USB Tablet: (II) device removed
[  1450.593] (**) Option "fd" "26"
[  1450.593] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[  1450.604] (**) Option "fd" "27"
[  1450.605] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device removed
[  1450.606] (II) UnloadModule: "libinput"
[  1450.606] (II) systemd-logind: releasing fd for 13:71
[  1450.626] (II) UnloadModule: "libinput"
[  1450.626] (II) systemd-logind: releasing fd for 13:64
[  1450.646] (II) UnloadModule: "libinput"
[  1450.646] (II) systemd-logind: releasing fd for 13:65
[  1450.666] (II) UnloadModule: "libinput"
[  1450.666] (II) systemd-logind: releasing fd for 13:66
[  1450.686] (II) UnloadModule: "libinput"
[  1450.686] (II) systemd-logind: releasing fd for 13:69
[  1450.696] (II) UnloadModule: "libinput"
[  1450.696] (II) systemd-logind: releasing fd for 13:68
[  1450.706] (II) UnloadModule: "libinput"
[  1450.707] (II) systemd-logind: releasing fd for 13:67
[  1450.723] (II) Server terminated successfully (0). Closing log file.
$
$ ls -la
total 36
drwx------ 4 kent kent 4096 Apr 22 10:57 .
drwxr-xr-x 3 root root 4096 Mar  8 23:47 ..
-rw------- 1 kent kent  759 Apr 22 10:57 .bash_history
-rw-r--r-- 1 kent kent   21 Jan 30 08:40 .bash_logout
-rw-r--r-- 1 kent kent   57 Jan 30 08:40 .bash_profile
-rw-r--r-- 1 kent kent  141 Jan 30 08:40 .bashrc
drwxr-xr-x 3 kent kent 4096 Apr 22 10:57 .cache
-rw-r--r-- 1 root root    8 Apr 22 10:52 fromsudo
drwxr-xr-x 3 kent kent 4096 Apr 22 10:56 .local
-rw-r--r-- 1 root root    0 Apr 22 10:45 otherfile
-rw-r--r-- 1 kent kent    0 Apr 22 10:45 somefile
-rw------- 1 kent kent    0 Apr 22 10:57 .Xauthority

As can be seen the .Xauthority file exists now, but it's empty.

The more severe error I get if I install firefox as well

sudo pacman -S firefox

I use the defaults for libx264.se=148-64 and ttf-font which results in 90 packages (total 417 MB) being installed.

startx gives a blank screen for 4 minutes and then I get the output

xinit: server error

And in this case the Xorg.0.log file is empty

$ ls -l .local/share/xorg/Xorg.0.log
-rw-r--r-- 1 kent kent 0 Apr 22 11:17 .local/share/xorg/Xorg.0.log

Last edited by tnek (2017-04-24 15:33:19)

Offline

#2 2017-04-22 12:39:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: [SOLVED] Errors when startx to get an Xorg session

Hostname issues are one possible explanation.  Can you post the output of the following:

hostname
hostnamectl
cat /etc/hosts

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-04-22 19:17:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Errors when startx to get an Xorg session

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2017-04-22 19:32:47

tnek
Member
Registered: 2008-06-10
Posts: 40

Re: [SOLVED] Errors when startx to get an Xorg session

Disregard the first error about "xauth:  file /home/kent/.Xauthority does not exist". I think it is expected behavior the first time I run startx, as that file isn't created by then. I was a bit confused, but noticed I don't get it any more.

The other error is still there though. If I install firefox (which in turn installs a lot of stuff like gtk2 and alsa-lib) I get a black screen (but it seems to have the correct resolution) and it halts there for 4 minutes. Then I get xinit: server error as my only clue and an empty (but existing) .local/share/xorg/Xorg.0.log log file.

Trilby wrote:

Hostname issues are one possible explanation.  Can you post the output of the following:

hostname
hostnamectl
cat /etc/hosts

I named my host klavarch, it looks ok right?

$ hostname
klavarch
$ hostnamectl
   Static hostname: klavarch
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 9d88260bcbf64fb5964f435fae7ee5a0
           Boot ID: 7214bacd54da41a99449f9135f1c21db
    Virtualization: oracle
  Operating System: Arch Linux
            Kernel: Linux 4.10.11-1-ARCH
      Architecture: x86-64
$ cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost
::1             localhost.localdomain   localhost

127.0.0.1 klavarch.localdomain klavarch
# End of file

Last edited by tnek (2017-04-22 19:35:10)

Offline

#5 2017-04-22 20:37:38

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Errors when startx to get an Xorg session

You semi-forgot to mention that this is a virtual machine ;-)

The effective result are dri/glx issues (you're on software rendering) and since you startx, your ~/.xinitrc would be quite interesting ;-)
Also startx should print more to the console than just a final "xinit: server error"?
Can you startx as root?

Offline

#6 2017-04-22 21:11:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: [SOLVED] Errors when startx to get an Xorg session

Thanks, "klavarch" could also be in /etc/hosts but the absence of it should not cause any problems like this.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2017-04-24 15:26:16

tnek
Member
Registered: 2008-06-10
Posts: 40

Re: [SOLVED] Errors when startx to get an Xorg session

seth wrote:

You semi-forgot to mention that this is a virtual machine ;-)

The effective result are dri/glx issues (you're on software rendering) and since you startx, your ~/.xinitrc would be quite interesting ;-)
Also startx should print more to the console than just a final "xinit: server error"?
Can you startx as root?

I did check before installing the firefox package that I had hardware acceleration working, which it was. That kind of made me dismiss VirtualBox as a source of problems, so I guess I jumped over it mentally and neglected to mention it, sorry. I don't have any ~/.xinitrc yet, so I am defaulting to use /etc/X11/xinit/xinitrc.

Offline

#8 2017-04-24 15:32:37

tnek
Member
Registered: 2008-06-10
Posts: 40

Re: [SOLVED] Errors when startx to get an Xorg session

Thanks for being so helpful! As it turns out the source of the second problem was embarrassingly easy.

Summary:

  • The "xauth:  file /home/kent/.Xauthority." output seems to be perfectly normal the first time you start your X session. The file does not exist yet, and the message did not turn up the second time for me.

  • The "xinit: server error" after installing firefox was because my root file system was full. firefox brings in a lot of new packages and I was too conservative with my root file system size.

Offline

Board footer

Powered by FluxBB