
Code: Select all
setxkbmap -option terminate:ctrl_alt_bksp
xhost +local:root > /dev/null
/usr/bin/numlockx on
# ck-launch-sesssion in DEPRECATED
# ck-launch-session dbus-launch --sh-syntax --exit-with-session startlxde
# dbus-launch --sh-syntax --exit-with-session startxfce4
# dbus-launch --sh-syntax --exit-with-session startlxde
dbus-launch --sh-syntax --exit-with-session openbox-session
Code: Select all
$ ps -eo pid,args
PID COMMAND
...
412 dbus-daemon --system --nofork --nopidfile
...
450 elogind-daemon
...
688 /bin/sh /usr/bin/startx
705 xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.XXX
...
772 /usr/bin/dbus-launch --exit-with-session /etc/X11/Sessions/openbox
773 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
774 /usr/bin/openbox --startup /usr/libexec/openbox-autostart OPENBOXCode: Select all
$ busctl --user
NAME PID PROCESS USER CONNECTION UNIT SESSION DESCRIPTION
:1.4 863 busctl XXX :1.4 c3 - -
org.freedesktop.DBus - - - - - - - Thanks for those details. That deepens my understanding. From my perspective, elogind and dbus-launch are good things. These help your GUI login behave predictably, as intended, rather than waiting around for something to complain, or worse, fail.GDH-gentoo wrote: ...

I want to understand what things do, before using them or even relying on them. And for now I barely understand dbus/elogind.figueroa wrote:I don't think it's a good use of my time avoid elogind and dbus.
Code: Select all
[ 44.096]
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[ 44.097] Build Operating System: Linux 5.4.80-gentoo-r1-x86_64 x86_64 Gentoo
[ 44.098] Current Operating System: Linux gentoo 5.4.80-gentoo-r1-x86_64 #1 SMP Sat Dec 19 16:36:06 CET 2020 x86_64
[ 44.098] Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.80-gentoo-r1-x86_64 root=/dev/mapper/gentoo-root ro dolvm crypt_root=UUID=fe28b5a9-a9b2-47b4-81ab-878ff62b86c4 root_trim=yes
[ 44.099] Build Date: 21 December 2020 05:15:08PM
[ 44.100]
[ 44.100] Current version of pixman: 0.40.0
[ 44.101] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 44.101] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 44.104] (==) Log file: "/home/user/.local/share/xorg/Xorg.0.log", Time: Mon Dec 21 17:18:58 2020
[ 44.104] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 44.105] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 44.105] (==) No Layout section. Using the first Screen section.
[ 44.105] (==) No screen section available. Using defaults.
[ 44.105] (**) |-->Screen "Default Screen Section" (0)
[ 44.105] (**) | |-->Monitor "<default monitor>"
[ 44.105] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 44.105] (==) Automatically adding devices
[ 44.105] (==) Automatically enabling devices
[ 44.105] (==) Automatically adding GPU devices
[ 44.105] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 44.105] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 44.105] Entry deleted from font path.
[ 44.105] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 44.105] Entry deleted from font path.
[ 44.105] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 44.105] Entry deleted from font path.
[ 44.105] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 44.105] Entry deleted from font path.
[ 44.105] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[ 44.105] Entry deleted from font path.
[ 44.105] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 44.105] Entry deleted from font path.
[ 44.105] (==) FontPath set to:
[ 44.105] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 44.105] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 44.105] (II) Loader magic: 0x5643c9ec8ce0
[ 44.105] (II) Module ABI versions:
[ 44.105] X.Org ANSI C Emulation: 0.4
[ 44.105] X.Org Video Driver: 24.1
[ 44.105] X.Org XInput driver : 24.1
[ 44.105] X.Org Server Extension : 10.0
[ 44.105] (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)
[ 44.106] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 44.107] (--) PCI:*(0@0:2:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xe0000000/134217728, 0xe8c00000/2097152, I/O @ 0x0000c160/16, BIOS @ 0x????????/131072
[ 44.107] (II) LoadModule: "glx"
[ 44.107] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 44.108] (II) Module glx: vendor="X.Org Foundation"
[ 44.108] compiled for 1.20.10, module version = 1.0.0
[ 44.108] ABI class: X.Org Server Extension, version 10.0
[ 44.108] (==) Matched vmware as autoconfigured driver 0
[ 44.108] (==) Matched modesetting as autoconfigured driver 1
[ 44.108] (==) Matched fbdev as autoconfigured driver 2
[ 44.108] (==) Matched vesa as autoconfigured driver 3
[ 44.108] (==) Assigned the driver to the xf86ConfigLayout
[ 44.108] (II) LoadModule: "vmware"
[ 44.108] (II) Loading /usr/lib64/xorg/modules/drivers/vmware_drv.so
[ 44.126] (II) Module vmware: vendor="X.Org Foundation"
[ 44.126] compiled for 1.20.10, module version = 13.3.0
[ 44.126] Module class: X.Org Video Driver
[ 44.126] ABI class: X.Org Video Driver, version 24.1
[ 44.126] (II) LoadModule: "modesetting"
[ 44.126] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 44.126] (II) Module modesetting: vendor="X.Org Foundation"
[ 44.126] compiled for 1.20.10, module version = 1.20.10
[ 44.126] Module class: X.Org Video Driver
[ 44.126] ABI class: X.Org Video Driver, version 24.1
[ 44.126] (II) LoadModule: "fbdev"
[ 44.126] (WW) Warning, couldn't open module fbdev
[ 44.126] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 44.126] (II) LoadModule: "vesa"
[ 44.126] (WW) Warning, couldn't open module vesa
[ 44.126] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 44.126] (II) vmware: driver for VMware SVGA: vmware0405, vmware0710
[ 44.126] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 44.126] (EE)
Fatal server error:
[ 44.127] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 44.127] (EE)
[ 44.128] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 44.129] (EE) Please also check the log file at "/home/user/.local/share/xorg/Xorg.0.log" for additional information.
[ 44.129] (EE)
[ 44.130] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 44.130] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 44.130] (EE) Server terminated with error (1). Closing log file.Code: Select all
eselelec news read new | moreCode: Select all
eselelec news read all | more
djqwzlcsz wrote:I want to understand what things do, before using them or even relying on them. And for now I barely understand dbus/elogind.
Let's try to clarify.djqwzlcsz wrote:well now I'm completely 100% confused.
Yes. Installing x11-base/xorg-server with both USE flags unset should not work: Xorg would complain that it doesn't have enough privileges to open the /dev/dri/card* and /dev/input/* special files. If it is installed with elogind set, the elogind daemon will open those files on Xorg's behalf. If it is installed with suid set, Xorg will have the required privileges to do that itself.djqwzlcsz wrote:So from what I understand I now have to either enable elogind (globally) or suid (for xorg-server) use flag, right?
The ebuild asks users to use the boot runlevel instead: rc-update add elogind boot.Hu wrote:Please run rc-update add elogind default [...]
Code: Select all
~ $ printenv | grep -i XDG
XDG_SESSION_TYPE=tty
XDG_SESSION_CLASS=user
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
Strange, I have more. For a tty login:djqwzlcsz wrote:Code: Select all
~ $ printenv | grep -i XDG XDG_SESSION_TYPE=tty XDG_SESSION_CLASS=user XDG_SESSION_ID=1 XDG_RUNTIME_DIR=/run/user/1000
Code: Select all
$ printenv | grep -i XDG
XDG_SEAT=seat0
XDG_SESSION_TYPE=tty
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_ID=c3
XDG_RUNTIME_DIR=/run/user/1000Code: Select all
$ printenv | grep -i XDG
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=
XDG_SESSION_TYPE=x11
XDG_CURRENT_DESKTOP=
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_VTNR=7
XDG_SESSION_ID=c2
XDG_RUNTIME_DIR=/run/user/1000Code: Select all
$ env | grep XDG
XDG_CONFIG_DIRS=/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session14
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=openbox
XDG_SESSION_TYPE=x11
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/figueroa
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_VTNR=7
XDG_SESSION_ID=86
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/local/share:/usr/shareCode: Select all
XDG_SESSION_TYPE=tty
XDG_SESSION_CLASS=user
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000Code: Select all
XDG_SEAT=seat0
XDG_SESSION_TYPE=tty
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000