Created attachment 456910 [details] emerge --info xorg-server sddm systemd xorg-server logs to /var/log/Xorg.0.log: systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration x11-base/xorg-server-1.19.0::gentoo and x11-misc/sddm-0.14.0-r1::gentoo were built with USE=systemd.
I get the same message in Xorg.0.log with 1.19.5-r1, but it seems to have no consequence...
Please try https://github.com/gentoo/gentoo/pull/7423
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d68e491c96541f7cbf3d5766597906561bbf512 commit 9d68e491c96541f7cbf3d5766597906561bbf512 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2018-03-11 15:32:43 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2018-11-27 22:43:15 +0000 x11-apps/xinit: xserverrc: pass -keeptty for systemd-logind support Closes: https://github.com/gentoo/gentoo/pull/7423 Closes: https://bugs.gentoo.org/603294 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-apps/xinit/files/xserverrc.2 | 6 ++++ x11-apps/xinit/xinit-1.4.0-r1.ebuild | 67 ++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+)
I still see this with: * x11-misc/sddm-0.18.1-r1 * x11-apps/xinit-1.4.1 * x11-base/xorg-server-1.20.5 * sys-apps/systemd-243 Portage 2.3.76 (python 2.7.13-final-42, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r5, 5.3.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.3.1-gentoo-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.6 KiB Mem: 14134988 total, 2576824 free KiB Swap: 16776188 total, 16700156 free Timestamp of repository gentoo: Thu, 03 Oct 2019 10:15:01 +0000 Head commit of repository gentoo: 8785e6b3769e56880c2afd8f1708d8c23108eb5b Head commit of repository flatpak-overlay: dba2292fa92fbe7f51a437ff89d27cbab6105b67 Head commit of repository local: e424b7ef8ad29c0df79529b533af8feb6a71c046 sh bash 5.0_p11 ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16 ccache version 3.7.4 [disabled] app-shells/bash: 5.0_p11::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.0::gentoo dev-lang/python: 2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7.4-r1::gentoo dev-util/ccache: 3.7.4::gentoo dev-util/cmake: 3.15.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.1.0::gentoo, 9.2.0-r1::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r5::gentoo Repositories: gentoo location: /var/cache/portage/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes flatpak-overlay location: /var/db/repos/flatpak-overlay sync-type: git sync-uri: https://github.com/fosero/flatpak-overlay.git masters: gentoo local location: /var/cache/portage/local sync-type: git sync-uri: https://github.com/devurandom/gentoo-overlay.git masters: gentoo priority: 1000 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -O2 -march=znver1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-pipe -O2 -march=znver1" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going --nospinner --verbose-conflicts" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j6 -l4" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/tmp" USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bash-completion bdplus berkdb bluetooth bluray branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups cxx d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub exif fam faudio fax fbcon ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gbm gdal gdbm geoclue geolocation gif git glamor gles gmp gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms ldap libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nls nptl office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman plasma png policykit postscript ppds prison pulseaudio python qml qrcode qt5 raw readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telepathy tga theora threads tiff timezone tmux truetype tslib udev udisks unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webkit webp widgets wmf wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xz yaml zeroconf zeromq zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= x11-misc/sddm-0.18.1-r1::gentoo was built with the following: USE="pam systemd (-consolekit) (-elogind) -test" ABI_X86="(64)" CFLAGS="-pipe -O2 -march=znver1 -g" CXXFLAGS="-pipe -O2 -march=znver1 -g" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" x11-apps/xinit-1.4.1::gentoo was built with the following: USE="-twm" ABI_X86="(64)" x11-base/xorg-server-1.20.5::gentoo was built with the following: USE="glamor ipv6 libglvnd systemd udev unwind wayland xorg xvfb -debug -dmx -doc (-elogind) -kdrive -libressl -minimal (-selinux) -static-libs -suid -xcsecurity -xephyr -xnest" ABI_X86="(64)" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-z,lazy" sys-apps/systemd-243::gentoo was built with the following: USE="acl audit cgroup-hybrid elfutils gcrypt gnuefi idn kmod lz4 lzma pam pcre (policykit) qrcode resolvconf seccomp sysv-utils xkb -apparmor -build -cryptsetup -curl -dns-over-tls -http -importd -nat (-selinux) -split-usr -test -vanilla" ABI_X86="32 (64) (-x32)" CFLAGS="-pipe -O2 -march=znver1 -g" CXXFLAGS="-pipe -O2 -march=znver1 -g" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
Please provide 'Xorg.0.log' as well as results of strings /proc/`pidof X`/cmdline and strings /proc/`pidof X`/environ and ls -ld /proc/`pidof X`/ While Xorg is running. Before pasting the environmental variables here, just double check if you do not have any secrets or other non public variables there.
Created attachment 591906 [details] Xorg.0.log
# strings /proc/`pidof X`/cmdline /usr/bin/X -nolisten -auth /var/run/sddm/{98e34081-7773-4c15-b772-cd9e4c4e092f} -background none -noreset -displayfd -seat seat0 # strings /proc/`pidof X`/environ INVOCATION_ID=9804c99bfc5547dd8e7e2425e9a88682 JOURNAL_STREAM=9:17946 LANG=en_GB.utf8 PATH=/usr/local/bin:/usr/bin XCURSOR_THEME=breeze_cursors # ls -ld /proc/`pidof X`/ dr-xr-xr-x 9 root root 0 Oct 5 18:54 /proc/280495/ # pstree -apST [...] ├─sddm,1136 │ ├─X,280495 -nolisten tcp -auth /var/run/sddm/{98e34081-7773-4c15-b772-cd9e4c4e092f} -background none -noreset -displayfd 18 -seat seat0 vt1 │ └─sddm-helper,542317 --socket /tmp/sddm-auth5dfeecb4-8a1d-4fa6-9f1f-55dd46a9a565 --id 3 --start /usr/bin/startkde --user <...> │ └─startkde,542329 /usr/bin/startkde │ └─kwrapper5,542403 /usr/bin/ksmserver [...]
The changes to xserverrc does not apply to sddm because it does not uses xinit as it seems, but starts X server by itself and not via xinit that would use those switches. It also starts X server as root for that matter. On one hand you could edit the /usr/share/sddm/sddm.conf.d/00default.conf and add '-keeptty' to ServerArguments= list. however the code of sddm have also // start display server QStringList args = mainConfig.X11.ServerArguments.get().split(QLatin1Char(' '), QString::SkipEmptyParts); args << QStringLiteral("-auth") << m_authPath << QStringLiteral("-background") << QStringLiteral("none") << QStringLiteral("-noreset") << QStringLiteral("-displayfd") << QString::number(pipeFds[1]) << QStringLiteral("-seat") << displayPtr()->seat()->name(); So it does add a handful of switches anyway. Given that -seat have use only with logind interface, that is either provided systemd or elogind I would recommend to first check if adding -keeptty to /usr/share/sddm/sddm.conf.d/00default.conf fixes your issue, and then reporting that to upstream of sddm that logind/systemd support may require additional flag. Depending on what's your result with testing and then upstream, we may either wait for new sddm release, or patch it locally.
Created attachment 591934 [details] Xorg.0.log with -keeptty (In reply to Piotr Karbowski from comment #8) > The changes to xserverrc does not apply to sddm because it does not uses > xinit as it seems, but starts X server by itself and not via xinit that > would use those switches. It also starts X server as root for that matter. > > On one hand you could edit the /usr/share/sddm/sddm.conf.d/00default.conf > and add '-keeptty' to ServerArguments= list. I added the flag in /etc/sddm.conf, because that seems to override /usr/share/sddm/sddm.conf.d/00default.conf (changing the latter has no effect; the former is probably created by kde-plasma/sddm-kcm-5.16.5). The X server is now started with -keeptty, but Xorg.0.log says: [ 16.032] (EE) systemd-logind: failed to get session: PID 1139 does not belong to any known session
My understanding is that as long as you do not start X as regular user, that got a seat from pam_elogind.so/pam_systemd.so upon logging in, this part will just not work. A quick google resulted in: > systemd-logind will refuse any requests to do so unless Xorg is started from a properly registered login session. Currently all display managers such as gdm, xdm, etc. do not set up a proper login session in which to start X, leading to this error. This error can be safely ignored, as Xorg is still capable of opening the devices itself. As well as open feature with some pull request https://github.com/sddm/sddm/issues/246 In that case it's the sddm issue and nothing that we can address at the Gentoo level.
Or, we actually have two problems, one is keeptty, another is the lack of logind user sesisons support. From your perspective, after adding the -keeptty everything is working as expected?
(In reply to Piotr Karbowski from comment #11) > Or, we actually have two problems, one is keeptty, another is the lack of > logind user sesisons support. From your perspective, after adding the > -keeptty everything is working as expected? It appears we currently cannot do anything about it.