Yesterday I tried for several hours to nail down a problem with my multiseat setup on Gentoo stable. I did not succeed so I try to collect all information here. The first seat is connected to Intel GPU, the second one to a 17e9:0378 DisplayLink Plugable UGA-2K-A. I use the udl kernel driver and modesetting xorg driver. I used loginctl attach seat1 [...] for connecting displaylink output, keyboard and mouse to second seat and everything seems to work perfectly, GDM spawns on both seats. The first seat (seat0) works as normal but when I try to login on the second seat, the process seems to stuck. GNOME is not started. Also, there are no suspicious messages in any of my logs (systemd journal, dmesg, xorg.log, gdm.log, .xsession-errors). I use Gentoo stable, more precise the following configuration: sys-apps/systemd-208-r2 was built with the following: USE="acl filecaps firmware-loader gudev introspection kmod pam policykit tcpd -audit -cryptsetup -doc -gcrypt -http -lzma -python -qrcode (-selinux) -test -vanilla -xattr" ABI_X86="64 -32 -x32" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" x11-base/xorg-server-1.14.3-r2 was built with the following: USE="ipv6 kdrive nptl suid udev xorg -dmx -doc -minimal (-selinux) -static-libs -tslib -xnest -xvfb" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy" gnome-base/gdm-3.8.4-r3 was built with the following: USE="branding gnome-shell introspection ipv6 systemd tcpd -accessibility -audit -debug -fallback -fprint -plymouth (-selinux) -test -xinerama" gnome-base/gnome-session-3.8.4-r1 was built with the following: USE="ipv6 systemd -debug -doc -gconf" sys-auth/pambase-20120417-r3 was built with the following: USE="cracklib gnome-keyring sha512 systemd (-consolekit) -debug -minimal -mktemp -pam_krb5 -pam_ssh -passwdqc (-selinux)" I am not sure in whis packages this bug is contained so I assign it to GNOME as a start. Looking into systemd's journal the last lines of the stuck login are: Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: Gck: gck_module_new: assertion `funcs != NULL' failed Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: module_instances: assertion `module' failed Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: egg_error_message: assertion `error' failed Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: couldn't find secret store module: (unknown) Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: lookup_login_keyring: assertion `GCK_IS_SESSION (session)' failed Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: create_credential: assertion `GCK_IS_SESSION (session)' failed Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: egg_error_message: assertion `error' failed Jan 17 20:56:31 leonardo gnome-keyring-daemon[3418]: couldn't create login credential: (unknown) Jan 17 20:56:31 leonardo gdm-password][3410]: gkr-pam: the password for the login keyring was invalid. But this does not seem to be the problem, on first seat with successful login it says Jan 17 20:50:03 leonardo systemd-logind[2799]: Linked /tmp/.X11-unix/X0 to /run/user/1000/X11-display. Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: Gck: gck_module_new: assertion `funcs != NULL' failed Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: module_instances: assertion `module' failed Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: egg_error_message: assertion `error' failed Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: couldn't find secret store module: (unknown) Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: lookup_login_keyring: assertion `GCK_IS_SESSION (session)' failed Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: create_credential: assertion `GCK_IS_SESSION (session)' failed Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: egg_error_message: assertion `error' failed Jan 17 20:50:03 leonardo gnome-keyring-daemon[3159]: couldn't create login credential: (unknown) Jan 17 20:50:03 leonardo gdm-password][3138]: gkr-pam: the password for the login keyring was invalid. Jan 17 20:50:03 leonardo gnome-session[2897]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting. Jan 17 20:50:03 leonardo gnome-session[2897]: (gnome-settings-daemon:2984): GLib-GIO-WARNING **: Error releasing name org.gnome.SettingsDaemon: Verbindung ist geschlossen Jan 17 20:50:03 leonardo gnome-session[2897]: (gnome-settings-daemon:2984): GLib-GIO-WARNING **: Error releasing name org.gnome.SettingsDaemon.Power: Verbindung ist geschlossen Jan 17 20:50:03 leonardo gnome-session[2897]: (gnome-settings-daemon:2984): GLib-GIO-WARNING **: Error releasing name org.gnome.SettingsDaemon.XRANDR: Verbindung ist geschlossen Jan 17 20:50:03 leonardo gnome-session[2897]: (gnome-settings-daemon:2984): GLib-GIO-WARNING **: Error releasing name org.gnome.SettingsDaemon.Keyboard: Verbindung ist geschlossen Jan 17 20:50:03 leonardo gnome-session[2897]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting. Jan 17 20:50:03 leonardo colord[2997]: device removed: xrandr-Dell Inc.-DELL U2412M-0FFXD32G7C3L Jan 17 20:50:03 leonardo gdm[2805]: Failed to remove slave program access to the display. Trying to proceed. Jan 17 20:50:03 leonardo /etc/gdm/Xsession[3162]: /etc/gdm/Xsession: Beginning session setup... Jan 17 20:50:03 leonardo polkitd[2838]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.44, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.utf8) (disconnected from bus) Jan 17 20:50:03 leonardo /etc/gdm/Xsession[3162]: localuser:fabian being added to access control list Jan 17 20:50:03 leonardo /etc/gdm/Xsession[3162]: /etc/gdm/Xsession: Setup done, will execute: /usr/bin/dbus-launch --exit-with-session gnome-session Any suggestions or ideas how to further debug this? Reproducible: Always Steps to Reproduce: 1. Install Multiseat setup with systemd, GNOME, GDM as explained above with second seat DisplayLink. 2. Try to login on second seat Actual Results: Login process seems to be stuck Expected Results: GNOME session should start. Portage 2.2.7 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64) ================================================================= System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-2.2 KiB Mem: 1908084 total, 1129916 free KiB Swap: 4194300 total, 4194300 free Timestamp of tree: Thu, 16 Jan 2014 13:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r3, 3.3.2-r2 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE freedist as-is CC-Sampling-Plus-1.0" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch 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-stud.hs-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv idn introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 sse4_1 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel modesetting" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 368076 [details] /var/log/gdm/:1.log
Created attachment 368078 [details] /var/log/Xorg.1.log
Created attachment 368080 [details] journalctl -xb -p debug --no-pager
leonardo fabian # loginctl list-seats SEAT seat0 seat1 2 seats listed. leonardo fabian # loginctl show-seat seat1 Id=seat1 ActiveSession=c2 CanMultiSession=no CanTTY=no CanGraphical=yes Sessions=7 c2 IdleHint=no IdleSinceHint=0 IdleSinceHintMonotonic=0 leonardo fabian # loginctl seat-status seat1 seat1 Sessions: 7 *c2 Devices: ├─/sys/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/input/input0 │ input:input0 "Microsoft Microsoft® Digital Media Keyboard" ├─/sys/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.1/input/input1 │ input:input1 "Microsoft Microsoft® Digital Media Keyboard" ├─/sys/devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.0/input/input4 │ input:input4 "Logitech USB-PS/2 Optical Mouse" ├─/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/drm/card1 │ drm:card1 └─/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/graphics/fb1 [MASTER] graphics:fb1 "udldrmfb" leonardo fabian # loginctl list-sessions SESSION UID USER SEAT c1 104 gdm seat0 c2 104 gdm seat1 1 0 root 7 1000 fabian seat1 4 sessions listed. leonardo fabian # loginctl show-session 7 Id=7 Timestamp=Sa 2014-01-18 10:35:43 CET TimestampMonotonic=2386239381 VTNr=0 Display=:1 Remote=no Service=gdm-password Scope=session-7.scope Leader=3369 Audit=7 Type=x11 Class=user Active=no State=online IdleHint=no IdleSinceHint=0 IdleSinceHintMonotonic=0 Name=fabian
x11-drivers/xf86-video-modesetting-0.8.0 was built with the following: USE="" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"
This problem also occurred on RHEL 7 Beta 1, but as far as I remember not on Fedora 19.
Will CC systemd team too as I am not familiar with multiseat support :S Did you try to login from gdm using a simpler desktop like icewm? Does it start? (to try to allocate the problem a bit)
(In reply to Pacho Ramos from comment #7) > Will CC systemd team too as I am not familiar with multiseat support :S Good idea. > Did you try to login from gdm using a simpler desktop like icewm? Does it > start? (to try to allocate the problem a bit) Yes, I tried GNOME, GNOME Classic, XSession and IceWM but it makes no difference.
I think the process is stuck before it executes the desktop's session script.
I will install Fedora 19 on a second hdd to see if the problem really does not occur there.
(In reply to Fabian Köster from comment #10) > I will install Fedora 19 on a second hdd to see if the problem really does > not occur there. So, I verified it works with Fedora 19 out-of-the-box (without any updates installed). Fedora 19 uses systemd-204 GNOME 3.8.2 GDM 3.8.3
I will also try Fedora 20 later.
Yeah, better try a version running systemd-208
Ok, on Fedora 20 it only works when the displaylink device is not already connected at boot. I remember to have seen a bug-report about a race-condition which causes this. But nevertheless, afterwards the login works perfectly and this bug does not occur. systemd 208 GNOME 3.10.2 gdm 3.10.0.1
As I do not have permanent access to the machine with this bug, I setup the same Gentoo installation on an external harddrive booted by my laptop. Surprisingly, the bug does not occur there, although it is the same set of software and the identical DisplayLink adapter. Also, the primary seat is connected to an Intel GPU. So I now need to find out what the determinant difference between the two systems for this behavior. Any hints on debugging are very welcome!
After upgrade to GNOME 3.10 it works now.