Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] permission problems with xorg-server-1.20.8-r1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
oneone
n00b
n00b


Joined: 20 Sep 2017
Posts: 65

PostPosted: Wed Jul 22, 2020 11:49 am    Post subject: [solved] permission problems with xorg-server-1.20.8-r1 Reply with quote

Hi!

I have trouble starting the xserver with
Code:
xinit /usr/bin/ratpoison
as I was used to do, since I updated from x11-base/xorg-server-1.20.8 to x11-base/xorg-server-1.20.8-r1.

The following useflags are set:
Old version:
Code:
x11-base/xorg-server-1.20.8:0/1.20.8::gentoo  USE="elogind ipv6 suid udev xorg xvfb -debug -dmx -doc -kdrive -libglvnd -libressl -minimal (-selinux) -static-libs -systemd -unwind -wayland -xcsecurity -xephyr -xnest"

New version:
Code:
x11-base/xorg-server-1.20.8-r1:0/1.20.8::gentoo  USE="elogind ipv6 suid udev xorg xvfb -debug -dmx -doc -kdrive -libglvnd -libressl -minimal (-selinux) -static-libs -systemd -unwind -wayland -xcsecurity -xephyr -xnest"


The new version didn't have the suid useflag set by default, so I set it - just to be sure that that is not the issue.

The VIDEO_CARDS variable in /etc/portage/make.conf is set to:
Code:
VIDEO_CARDS="intel i965"


And according to "lspci -knn" I have the following videocard:
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 6000 [8086:1626] (rev 09)
        Subsystem: Apple Inc. HD Graphics 6000 [106b:011b]
        Kernel driver in use: i915
        Kernel modules: i915


When I tried to start the new xserver, the following was reported in /home/MYUSER/.local/share/xorg/Xorg.0.log:
Code:
[ 12150.365]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 12150.369] Build Operating System: Linux 5.4.48-gentoo x86_64 Gentoo
[ 12150.370] Current Operating System: Linux maccy 5.4.48-gentoo #1 SMP Sat Jun 27 12:55:33 SAST 2020 x86_64
[ 12150.370] Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.48-gentoo root=/dev/sda8 ro
[ 12150.372] Build Date: 22 July 2020  12:30:16PM
[ 12150.374] 
[ 12150.375] Current version of pixman: 0.40.0
[ 12150.378]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[ 12150.378] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 12150.383] (==) Log file: "/home/x/.local/share/xorg/Xorg.0.log", Time: Wed Jul 22 12:33:10 2020
[ 12150.384] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 12150.385] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 12150.385] (==) No Layout section.  Using the first Screen section.
[ 12150.385] (==) No screen section available. Using defaults.
[ 12150.385] (**) |-->Screen "Default Screen Section" (0)
[ 12150.385] (**) |   |-->Monitor "<default monitor>"
[ 12150.385] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[ 12150.385] (==) Automatically adding devices
[ 12150.385] (==) Automatically enabling devices
[ 12150.385] (==) Automatically adding GPU devices
[ 12150.385] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 12150.385] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/OTF/,
   /usr/share/fonts/Type1/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[ 12150.385] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 12150.385] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 12150.385] (II) Loader magic: 0x55b1b5844ce0
[ 12150.385] (II) Module ABI versions:
[ 12150.385]    X.Org ANSI C Emulation: 0.4
[ 12150.385]    X.Org Video Driver: 24.1
[ 12150.385]    X.Org XInput driver : 24.1
[ 12150.385]    X.Org Server Extension : 10.0
[ 12150.387] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_39
[ 12150.388] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 12150.388] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[ 12150.391] (--) PCI:*(0@0:2:0) 8086:1626:106b:011b rev 9, Mem @ 0xc0000000/16777216, 0xb0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[ 12150.391] (II) LoadModule: "glx"
[ 12150.391] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 12150.392] (II) Module glx: vendor="X.Org Foundation"
[ 12150.392]    compiled for 1.20.8, module version = 1.0.0
[ 12150.392]    ABI class: X.Org Server Extension, version 10.0
[ 12150.392] (==) Matched intel as autoconfigured driver 0
[ 12150.392] (==) Matched modesetting as autoconfigured driver 1
[ 12150.392] (==) Matched fbdev as autoconfigured driver 2
[ 12150.392] (==) Matched vesa as autoconfigured driver 3
[ 12150.392] (==) Assigned the driver to the xf86ConfigLayout
[ 12150.392] (II) LoadModule: "intel"
[ 12150.392] (WW) Warning, couldn't open module intel
[ 12150.392] (EE) Failed to load module "intel" (module does not exist, 0)
[ 12150.392] (II) LoadModule: "modesetting"
[ 12150.392] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 12150.392] (II) Module modesetting: vendor="X.Org Foundation"
[ 12150.392]    compiled for 1.20.8, module version = 1.20.8
[ 12150.392]    Module class: X.Org Video Driver
[ 12150.392]    ABI class: X.Org Video Driver, version 24.1
[ 12150.392] (II) LoadModule: "fbdev"
[ 12150.393] (WW) Warning, couldn't open module fbdev
[ 12150.393] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 12150.393] (II) LoadModule: "vesa"
[ 12150.393] (WW) Warning, couldn't open module vesa
[ 12150.393] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 12150.393] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 12150.393] (EE)
Fatal server error:
[ 12150.393] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 12150.393] (EE)
[ 12150.393] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[ 12150.393] (EE) Please also check the log file at "/home/x/.local/share/xorg/Xorg.0.log" for additional information.
[ 12150.393] (EE)
[ 12150.393] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 12150.393] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 12150.434] (EE) Server terminated with error (1). Closing log file.


Just for debugging purposes I temporarily granted my user read and write permissions to /dev/tty0 and /dev/tty7. Trying to start the xserver again resulted in the following log:

Code:
[ 14537.382]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 14537.387] Build Operating System: Linux 5.4.48-gentoo x86_64 Gentoo
[ 14537.389] Current Operating System: Linux maccy 5.4.48-gentoo #1 SMP Sat Jun 27 12:55:33 SAST 2020 x86_64
[ 14537.389] Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.48-gentoo root=/dev/sda8 ro
[ 14537.392] Build Date: 22 July 2020  01:04:59PM
[ 14537.394] 
[ 14537.395] Current version of pixman: 0.40.0
[ 14537.397]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[ 14537.397] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 14537.402] (==) Log file: "/home/x/.local/share/xorg/Xorg.0.log", Time: Wed Jul 22 13:12:57 2020
[ 14537.403] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 14537.405] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 14537.405] (==) No Layout section.  Using the first Screen section.
[ 14537.405] (==) No screen section available. Using defaults.
[ 14537.405] (**) |-->Screen "Default Screen Section" (0)
[ 14537.405] (**) |   |-->Monitor "<default monitor>"
[ 14537.405] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[ 14537.405] (==) Automatically adding devices
[ 14537.405] (==) Automatically enabling devices
[ 14537.405] (==) Automatically adding GPU devices
[ 14537.405] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 14537.405] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/OTF/,
   /usr/share/fonts/Type1/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[ 14537.405] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 14537.405] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 14537.405] (II) Loader magic: 0x55acbae92ce0
[ 14537.405] (II) Module ABI versions:
[ 14537.405]    X.Org ANSI C Emulation: 0.4
[ 14537.405]    X.Org Video Driver: 24.1
[ 14537.405]    X.Org XInput driver : 24.1
[ 14537.405]    X.Org Server Extension : 10.0
[ 14537.406] (--) using VT number 7

[ 14537.406] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 14537.406] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 14537.413] (--) PCI:*(0@0:2:0) 8086:1626:106b:011b rev 9, Mem @ 0xc0000000/16777216, 0xb0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[ 14537.413] (II) LoadModule: "glx"
[ 14537.413] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 14537.414] (II) Module glx: vendor="X.Org Foundation"
[ 14537.414]    compiled for 1.20.8, module version = 1.0.0
[ 14537.414]    ABI class: X.Org Server Extension, version 10.0
[ 14537.414] (==) Matched intel as autoconfigured driver 0
[ 14537.414] (==) Matched modesetting as autoconfigured driver 1
[ 14537.414] (==) Matched fbdev as autoconfigured driver 2
[ 14537.414] (==) Matched vesa as autoconfigured driver 3
[ 14537.414] (==) Assigned the driver to the xf86ConfigLayout
[ 14537.414] (II) LoadModule: "intel"
[ 14537.414] (WW) Warning, couldn't open module intel
[ 14537.414] (EE) Failed to load module "intel" (module does not exist, 0)
[ 14537.414] (II) LoadModule: "modesetting"
[ 14537.414] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 14537.414] (II) Module modesetting: vendor="X.Org Foundation"
[ 14537.414]    compiled for 1.20.8, module version = 1.20.8
[ 14537.414]    Module class: X.Org Video Driver
[ 14537.414]    ABI class: X.Org Video Driver, version 24.1
[ 14537.414] (II) LoadModule: "fbdev"
[ 14537.415] (WW) Warning, couldn't open module fbdev
[ 14537.415] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 14537.415] (II) LoadModule: "vesa"
[ 14537.415] (WW) Warning, couldn't open module vesa
[ 14537.415] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 14537.415] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 14537.444] (II) modeset(0): using drv /dev/dri/card0
[ 14537.444] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 14537.444] (II) modeset(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[ 14537.444] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 14537.444] (==) modeset(0): RGB weight 888
[ 14537.444] (==) modeset(0): Default visual is TrueColor
[ 14537.444] (II) Loading sub module "glamoregl"
[ 14537.444] (II) LoadModule: "glamoregl"
[ 14537.444] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 14537.450] (II) Module glamoregl: vendor="X.Org Foundation"
[ 14537.450]    compiled for 1.20.8, module version = 1.0.1
[ 14537.450]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 14537.465] (II) modeset(0): glamor X acceleration enabled on Mesa DRI Intel(R) HD Graphics 6000 (BDW GT3)
[ 14537.465] (II) modeset(0): glamor initialized
[ 14537.465] (II) modeset(0): Output eDP-1 has no monitor section
[ 14537.465] (II) modeset(0): Output DP-1 has no monitor section
[ 14537.616] (II) modeset(0): Output HDMI-1 has no monitor section
[ 14537.616] (II) modeset(0): Output DP-2 has no monitor section
[ 14537.765] (II) modeset(0): Output HDMI-2 has no monitor section
[ 14537.765] (II) modeset(0): EDID for output eDP-1
[ 14537.765] (II) modeset(0): Manufacturer: APP  Model: a01b  Serial#: 0
[ 14537.765] (II) modeset(0): Year: 2015  Week: 26
[ 14537.765] (II) modeset(0): EDID Version: 1.4
[ 14537.765] (II) modeset(0): Digital Display Input
[ 14537.765] (II) modeset(0): 6 bits per channel
[ 14537.765] (II) modeset(0): Digital interface is DisplayPort
[ 14537.765] (II) modeset(0): Max Image Size [cm]: horiz.: 29  vert.: 18
[ 14537.765] (II) modeset(0): Gamma: 2.20
[ 14537.765] (II) modeset(0): No DPMS capabilities specified
[ 14537.765] (II) modeset(0): Supported color encodings: RGB 4:4:4
[ 14537.765] (II) modeset(0): First detailed timing is preferred mode
[ 14537.765] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[ 14537.765] (II) modeset(0): redX: 0.593 redY: 0.342   greenX: 0.331 greenY: 0.573
[ 14537.765] (II) modeset(0): blueX: 0.152 blueY: 0.133   whiteX: 0.313 whiteY: 0.329
[ 14537.765] (II) modeset(0): Manufacturer's mask: 0
[ 14537.765] (II) modeset(0): Supported detailed timing:
[ 14537.765] (II) modeset(0): clock: 88.9 MHz   Image Size:  286 x 179 mm
[ 14537.765] (II) modeset(0): h_active: 1440  h_sync: 1488  h_sync_end 1520 h_blank_end 1600 h_border: 0
[ 14537.765] (II) modeset(0): v_active: 900  v_sync: 903  v_sync_end 909 v_blanking: 926 v_border: 0
[ 14537.765] (II) modeset(0):  NT133WGB-N81
[ 14537.765] (II) modeset(0): Monitor name: Color LCD
[ 14537.765] (II) modeset(0): EDID (in hex):
[ 14537.765] (II) modeset(0):    00ffffffffffff0006101ba000000000
[ 14537.765] (II) modeset(0):    1a190104951d127802ef059757549227
[ 14537.765] (II) modeset(0):    22505400000001010101010101010101
[ 14537.765] (II) modeset(0):    010101010101b922a0a050841a303020
[ 14537.765] (II) modeset(0):    36001eb3100000180000001000000000
[ 14537.765] (II) modeset(0):    00000000000000000000000000fe004e
[ 14537.765] (II) modeset(0):    543133335747422d4e383120000000fc
[ 14537.765] (II) modeset(0):    00436f6c6f72204c43440a20202000bf
[ 14537.765] (II) modeset(0): Printing probed modes for output eDP-1
[ 14537.765] (II) modeset(0): Modeline "1440x900"x60.0   88.89  1440 1488 1520 1600  900 903 909 926 -hsync -vsync (55.6 kHz eP)
[ 14537.765] (II) modeset(0): Modeline "1400x900"x60.0  103.50  1400 1480 1624 1848  900 903 913 934 -hsync +vsync (56.0 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1400x900"x59.9   86.50  1400 1448 1480 1560  900 903 913 926 +hsync -vsync (55.4 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1440x810"x120.0  198.12  1440 1548 1704 1968  810 811 814 839 doublescan -hsync +vsync (100.7 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1440x810"x119.9  151.88  1440 1464 1480 1520  810 811 814 833 doublescan +hsync -vsync (99.9 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1368x768"x59.9   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync (47.8 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1368x768"x59.9   72.25  1368 1416 1448 1528  768 771 781 790 +hsync -vsync (47.3 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x800"x120.0  174.25  1280 1380 1516 1752  800 801 804 829 doublescan -hsync +vsync (99.5 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x800"x119.9  134.25  1280 1304 1320 1360  800 801 804 823 doublescan +hsync -vsync (98.7 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x720"x120.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x720"x120.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[ 14537.765] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[ 14537.765] (II) modeset(0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[ 14537.765] (II) modeset(0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[ 14537.766] (II) modeset(0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[ 14537.766] (II) modeset(0): Modeline "1024x576"x119.9   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[ 14537.766] (II) modeset(0): Modeline "1024x576"x119.9   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[ 14537.766] (II) modeset(0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[ 14537.766] (II) modeset(0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "960x600"x119.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[ 14537.766] (II) modeset(0): Modeline "960x600"x120.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[ 14537.766] (II) modeset(0): Modeline "960x540"x119.9   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[ 14537.766] (II) modeset(0): Modeline "960x540"x120.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[ 14537.766] (II) modeset(0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[ 14537.766] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[ 14537.766] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 14537.766] (II) modeset(0): Modeline "840x525"x120.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "840x525"x119.8   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[ 14537.766] (II) modeset(0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[ 14537.766] (II) modeset(0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[ 14537.766] (II) modeset(0): Modeline "800x450"x119.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[ 14537.766] (II) modeset(0): Modeline "800x450"x119.6   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[ 14537.766] (II) modeset(0): Modeline "700x450"x119.9   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[ 14537.766] (II) modeset(0): Modeline "700x450"x119.8   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[ 14537.766] (II) modeset(0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[ 14537.766] (II) modeset(0): Modeline "684x384"x119.8   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[ 14537.766] (II) modeset(0): Modeline "684x384"x119.7   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x400"x119.8   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x400"x120.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x360"x119.7   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x360"x119.7   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[ 14537.766] (II) modeset(0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[ 14537.766] (II) modeset(0): Modeline "512x288"x120.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[ 14537.766] (II) modeset(0): Modeline "512x288"x119.8   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "480x270"x119.3   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "480x270"x119.6   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[ 14537.766] (II) modeset(0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[ 14537.766] (II) modeset(0): Modeline "432x243"x119.8   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[ 14537.766] (II) modeset(0): Modeline "432x243"x119.1   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[ 14537.766] (II) modeset(0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "360x202"x119.0   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[ 14537.766] (II) modeset(0): Modeline "360x202"x118.3   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[ 14537.766] (II) modeset(0): Modeline "320x180"x119.7    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[ 14537.766] (II) modeset(0): Modeline "320x180"x118.6    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[ 14537.766] (II) modeset(0): EDID for output DP-1
[ 14537.917] (II) modeset(0): EDID for output HDMI-1
[ 14537.917] (II) modeset(0): EDID for output DP-2
[ 14538.067] (II) modeset(0): EDID for output HDMI-2
[ 14538.067] (II) modeset(0): Output eDP-1 connected
[ 14538.067] (II) modeset(0): Output DP-1 disconnected
[ 14538.067] (II) modeset(0): Output HDMI-1 disconnected
[ 14538.067] (II) modeset(0): Output DP-2 disconnected
[ 14538.067] (II) modeset(0): Output HDMI-2 disconnected
[ 14538.067] (II) modeset(0): Using exact sizes for initial modes
[ 14538.067] (II) modeset(0): Output eDP-1 using initial mode 1440x900 +0+0
[ 14538.067] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 14538.067] (==) modeset(0): DPI set to (96, 96)
[ 14538.067] (II) Loading sub module "fb"
[ 14538.067] (II) LoadModule: "fb"
[ 14538.067] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 14538.067] (II) Module fb: vendor="X.Org Foundation"
[ 14538.067]    compiled for 1.20.8, module version = 1.0.0
[ 14538.067]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 14538.067] (EE) modeset(0): drmSetMaster failed: Permission denied
[ 14538.067] (EE)
Fatal server error:
[ 14538.067] (EE) AddScreen/ScreenInit failed for driver 0
[ 14538.067] (EE)
[ 14538.067] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[ 14538.067] (EE) Please also check the log file at "/home/x/.local/share/xorg/Xorg.0.log" for additional information.
[ 14538.067] (EE)
[ 14538.083] (EE) Server terminated with error (1). Closing log file.


Again I do not have sufficient permissions. I'm sure there must be a proper way of doing this, e.g. adding my user to some group, but I am a bit lost at this point. Does anybody know, how I should proceed from here?

EDIT: Downgrading to the old version lets the xserver start as before, but I guess the new version fixed some permission related vulnerabilities, so it would be good to use that one.


Last edited by oneone on Wed Jul 22, 2020 1:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4892
Location: Dallas area

PostPosted: Wed Jul 22, 2020 12:03 pm    Post subject: Reply with quote

Quit trying to use both "elogind" and "suid" use flags at the same time.

Edit to add: Geez, the logic in the ebuild for systemd/elogind/suid/suid-wrapper is still screwed up.

If you enable elogind AND suid then you get elogind path in xorg-server and suid-wrapper (don't know if it automatically uses this or the user has to change the way they do things)

ETA2: check the man pages for Xwrap/xwrapper (unsure of the correct title), it seems you need to modify one file for the permissions.
_________________
PRIME x570-pro, 3700x, RX 550 - 5.8 zen kernel
Acer E5-575 (laptop), i3-7100u - i965 - 5.5 zen kernel
---both---
gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon


Last edited by Anon-E-moose on Wed Jul 22, 2020 12:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
oneone
n00b
n00b


Joined: 20 Sep 2017
Posts: 65

PostPosted: Wed Jul 22, 2020 12:18 pm    Post subject: Reply with quote

:D Thank you so much! Since I'm using openRC I recompiled it without elogind and voila it's working again.
I reckon it would make sense to allow only one to be set in the ebuild, so that the user is informed about this before compiling. Should I file a bug report for this?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4892
Location: Dallas area

PostPosted: Wed Jul 22, 2020 12:26 pm    Post subject: Reply with quote

It's not really a bug, though I disagree with how they handle the multiple "possibly" conflicting useflags.
_________________
PRIME x570-pro, 3700x, RX 550 - 5.8 zen kernel
Acer E5-575 (laptop), i3-7100u - i965 - 5.5 zen kernel
---both---
gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
oneone
n00b
n00b


Joined: 20 Sep 2017
Posts: 65

PostPosted: Wed Jul 22, 2020 1:15 pm    Post subject: Reply with quote

I just thought a possibly faulty ebuild would be something the package maintainers might be interested in, but I won't file a bug report then.
Back to top
View user's profile Send private message
GDH-gentoo
Guru
Guru


Joined: 20 Jul 2019
Posts: 495
Location: South America

PostPosted: Wed Jul 22, 2020 1:30 pm    Post subject: Re: permission problems with x11-base/xorg-server-1.20.8-r1 Reply with quote

oneone wrote:
Code:
x11-base/xorg-server-1.20.8-r1:0/1.20.8::gentoo  USE="elogind ipv6 suid udev xorg xvfb -debug -dmx -doc -kdrive -libglvnd -libressl -minimal (-selinux) -static-libs -systemd -unwind -wayland -xcsecurity -xephyr -xnest"


The new version didn't have the suid useflag set by default, so I set it - just to be sure that that is not the issue.
The USE flag combination elogind + suid does not make Xorg suid, it installs the Xorg wrapper. Which drops privileges before running the real Xorg, if it thinks it can.

oneone wrote:
Just for debugging purposes I temporarily granted my user read and write permissions to /dev/tty0 and /dev/tty7. Trying to start the xserver again resulted in the following log:

Code:

[...]
[ 14537.397] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[...]
[ 14537.406] (--) using VT number 7

[ 14537.406] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
Yeah...

oneone wrote:
I have trouble starting the xserver with
Code:
xinit /usr/bin/ratpoison
You are going to need X server options to make unprivileged Xorg + elogind work. I think the easiest way would be creating this file in your home directory, making it executable:

~/.xinitrc
Code:
#!/bin/sh
exec /usr/bin/ratpoison
and just using startx, so that xinit will pick up Gentoo's /etc/X11/xinit/xserverrc. I'm assuming, based on the content of your first Xorg.0.log file, that the XDG_VTNR environment variable is set. Is it?

Last edited by GDH-gentoo on Wed Jul 22, 2020 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
oneone
n00b
n00b


Joined: 20 Sep 2017
Posts: 65

PostPosted: Wed Jul 22, 2020 1:56 pm    Post subject: Reply with quote

Since I am not using Gnome or KDE, I don't need elogind anyway, do I? I mean, would I benefit in any way from using it?

XDG_VTNR is set to 1
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7968
Location: Austria

PostPosted: Wed Jul 22, 2020 2:06 pm    Post subject: Reply with quote

Yes you do. https://www.gentoo.org/support/news-items/2020-06-24-xorg-server-dropping-default-suid.html
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
GDH-gentoo
Guru
Guru


Joined: 20 Jul 2019
Posts: 495
Location: South America

PostPosted: Wed Jul 22, 2020 2:36 pm    Post subject: Reply with quote

To give a slightly extended answer: yes, you need elogind if you want to run Xorg as an unprivileged process in the way upstream supports, and that is what will happen by default starting with x11-base/xorg-server-1.20.8-r1, as you discovered in your latest upgrade. You can, however, opt out by unsetting the elogind USE flag and setting the suid USE flag for x11-base/xorg-server. This will make things work the way they used to for x11-base/xorg-server-1.20.8 and earlier versions.
Back to top
View user's profile Send private message
oneone
n00b
n00b


Joined: 20 Sep 2017
Posts: 65

PostPosted: Wed Jul 22, 2020 2:52 pm    Post subject: Reply with quote

Quote:
Yes you do. https://www.gentoo.org/support/news-items/2020-06-24-xorg-server-dropping-default-suid.html


I have read that, but I ignored it since I have desktop profiles activated.

Quote:
yes, you need elogind if you want to run Xorg as an unprivileged process in the way upstream supports, and that is what will happen by default starting with x11-base/xorg-server-1.20.8-r1, as you discovered in your latest upgrade.


That makes sense. So I will try to switch to elogind then :)
Thanks for this input!
Back to top
View user's profile Send private message
oneone
n00b
n00b


Joined: 20 Sep 2017
Posts: 65

PostPosted: Wed Jul 22, 2020 3:22 pm    Post subject: Reply with quote

Just another question before I recompile the xorg-server with the elogind useflag. I had the setting +elogind -suid before and it didn't work. So are there any other steps I need to take, when switching to elogind?
I know that elogind can conflict with other login managers. For testing purposes will it be sufficient to simply remove consolekit (which I am using currently) from the default runlevel?
Back to top
View user's profile Send private message
GDH-gentoo
Guru
Guru


Joined: 20 Jul 2019
Posts: 495
Location: South America

PostPosted: Wed Jul 22, 2020 4:44 pm    Post subject: Reply with quote

oneone wrote:
Just another question before I recompile the xorg-server with the elogind useflag. I had the setting +elogind -suid before and it didn't work. So are there any other steps I need to take, when switching to elogind?
Yes, Xorg needs the --keeptty option and a suitable vtn option to work with elogind. Otherwise you'll see the "(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)" message from your first post.

I think the easiest way to do that would be using an .xinitrc file that launches Ratpoison when you use startx, see my first post.

oneone wrote:
I know that elogind can conflict with other login managers. For testing purposes will it be sufficient to simply remove consolekit (which I am using currently) from the default runlevel?
Yes, they will conflict. Removing the consolekit service from OpenRC runlevels might not suffice: ConsoleKit2's /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service file can make D-Bus auto-start console-kit-daemon if some other program wants to contact it.

What you'd need to do depends on what is using ConsoleKit2 on your system. emerge -pcv consolekit should tell.
Back to top
View user's profile Send private message
oneone
n00b
n00b


Joined: 20 Sep 2017
Posts: 65

PostPosted: Wed Jul 22, 2020 6:14 pm    Post subject: Reply with quote

Ok, awesome! Now it is set up properly I think. consolekit wasn't used by anything else so I just removed it from the default runlevel (will unmerge it later). In the default xserverrc the --keeptty and vtn option were already set. I call my window-manager from the .xinitrc and recompiled everything with new global USE-flags +elogind -consolekit -systemd (just xorg-server seems to be affected by that) and now everything is working as it should when starting with startx :D :D :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum