Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551726 - gnome-base/gdm-3.16.1.1 opens 2 gnome sessions
Summary: gnome-base/gdm-3.16.1.1 opens 2 gnome sessions
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-3.16
  Show dependency tree
 
Reported: 2015-06-11 07:22 UTC by Graham Murray
Modified: 2015-07-01 21:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2015-06-11 07:22:25 UTC
Since upgrading to gnome 3.16, 'systemctl start gdm' spawns two greeter sessions. One on tty7 and the other on the first unused tty. The 'active' one is the one on the 'free' tty (tty3 in the session I am currently running).

gdm is not in the default run-level and is started using systemctl from the command line.

Starting gnome using kdm only uses tty7 as expected. I am seeing this behaviour on 2 systems running ~amd64.

gmdev ~ # emerge --info =gnome-base/gdm-3.16.1.1
Portage 2.2.20 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.2, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16128264 total,   1797924 free
KiB Swap:   16777212 total,  16715892 free
Timestamp of repository gentoo: Thu, 11 Jun 2015 07:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

scrill
    location: /var/lib/layman/scrill
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -gdwarf-4 -fvar-tracking-assignments"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/spool/munin-async/.ssh"
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 -pipe -march=native -gdwarf-4 -fvar-tracking-assignments"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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"
USE="X acl acpi alsa amd64 apache2 avx avx2 berkdb bzip2 cairo caps cdda cli cracklib crypt cups cxx dbus dri eds emacs evo fam ffmpeg flac fontconfig gdbm git gmp gnome gnome-keyring gnutls gstreamer gtk hardened iconv icu introspection ipv6 java jit jpeg justify kde kerberos libnotify lua mmx mmxext mng modules mp3 multilib ncurses nls nptl ogg opengl openmp pam pax_kernel pcre perl pie png policykit postgres pulseaudio python qt4 readline semantic-desktop session sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg systemd tcpd theora threads truetype udev unicode urandom vala vorbis webkit xattr xml xmp xtpax zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hd-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" APACHE2_MPMS="prefork" 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" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 efi-64 efi-32" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="wiki-publisher presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel ilo i915 i965" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

gnome-base/gdm-3.16.1.1::gentoo was built with the following:
USE="introspection ipv6 systemd tcpd -accessibility -audit -branding -debug -fprint -plymouth (-selinux) -smartcard -test -wayland -xinerama" ABI_X86="64"
Comment 1 Pacho Ramos gentoo-dev 2015-06-11 17:42:23 UTC
Looking to "systemctl status gdm" and journalctl output after starting gdm process could help

Thanks
Comment 2 Rauzi 2015-06-11 19:03:45 UTC
Same problem here. However One on tty7 and the other on the tty2.

helilk rauzi # emerge --info =gnome-base/gdm-3.16.1.1
Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    16361676 total,   7966808 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 11 Jun 2015 13:15:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
ccache version 3.2.2 [enabled]
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.samerica.gentoo.org/gentoo-portage
    priority: -1000

grub2-themes
    location: /var/lib/layman/grub2-themes
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -mtune=intel -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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="-march=haswell -mtune=intel -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask=y --autounmask-write=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ ftp://gentoo.c3sl.ufpr.br/gentoo/ http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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="/tmp"
USE="X a52 aac acpi alsa amd64 apng avx avx2 berkdb bluetooth branding bzip2 cairo caps cdda cdparanoia cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds embedded emboss encode evo exif fam firefox flac fma fontconfig fortran gdbm geoip gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk2 gtk3 gudev gzip hddtemp iconv icu infinality introspection ipv6 jpeg kdrive lame lcdfilter lcms ldap libnotify libsecret lm_sensors lzma lzo mad minizip mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer multilib natspec nautilus ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pda pdf png policykit polkit ppds pulseaudio qt3support qt4 qt5 readline sdl session smp sound spell sqlite sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg symlink syslog systemd tcpd threads tiff tracker truetype udev udisks unicode upnp upower usb vcd vdpau videos vorbis wayland win32codecs wxwidgets x264 xcb xcomposite xinerama xkb xml xscreensaver 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="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt_BR pt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

gnome-base/gdm-3.16.1.1::gentoo was built with the following:
USE="branding introspection ipv6 systemd tcpd wayland xinerama -accessibility -audit -debug -fprint -plymouth (-selinux) -smartcard -test" ABI_X86="64"

helilk rauzi # systemctl status gdm
● gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib64/systemd/system/gdm.service; disabled; vendor preset: enabled)
   Active: active (running) since Qui 2015-06-11 11:02:05 GMT; 5h 1min ago
 Main PID: 2046 (gdm)
   CGroup: /system.slice/gdm.service
           └─2046 /usr/sbin/gdm

Jun 11 11:02:05 helilk systemd[1]: Starting GNOME Display Manager...
Jun 11 11:02:05 helilk systemd[1]: Started GNOME Display Manager.
Jun 11 11:02:06 helilk gdm-launch-environment][2053]: pam_systemd(gdm-launch-environment:session): Unknown parameter 'kill-session-processes=1', ignoring
Jun 11 11:02:24 helilk gdm-password][2430]: pam_unix(gdm-password:session): session opened for user rauzi by (uid=0)
Jun 11 13:48:50 helilk gdm-password][31409]: pam_unix(gdm-password:session): session opened for user rauzi by (uid=0)
Jun 11 14:35:05 helilk gdm-password][22489]: pam_unix(gdm-password:session): session opened for user rauzi by (uid=0)
Jun 11 14:37:04 helilk gdm-password][23014]: pam_unix(gdm-password:session): session opened for user rauzi by (uid=0)
Jun 11 14:46:38 helilk gdm-password][23745]: pam_unix(gdm-password:session): session opened for user rauzi by (uid=0)
Jun 11 14:47:40 helilk gdm-password][24205]: pam_unix(gdm-password:session): session opened for user rauzi by (uid=0)
Jun 11 15:12:41 helilk gdm-password][13125]: pam_unix(gdm-password:session): session opened for user rauzi by (uid=0)
Comment 3 Rauzi 2015-06-11 19:13:09 UTC
helilk rauzi # systemctl status gdm
■ gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib64/systemd/system/gdm.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
Comment 4 Rauzi 2015-06-13 02:35:47 UTC
ok,the display-manager.service link was pointing to kdm an old installation.

# rm -rf /etc/systemd/system/display-manager.service

and

# Systemctl enable gdm - again solved my problem

Sorry my English.
Thanks.
Comment 5 Pacho Ramos gentoo-dev 2015-06-16 15:01:48 UTC
Maybe this is related with:
https://bugzilla.gnome.org/show_bug.cgi?id=747339
Comment 6 Graham Murray 2015-06-16 15:16:22 UTC
(In reply to Pacho Ramos from comment #5)
> Maybe this is related with:
> https://bugzilla.gnome.org/show_bug.cgi?id=747339

So is this saying (or implying) that gdm should be started as the user (who will log in to the greeter) rather than as root?
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-06-16 15:39:51 UTC
(In reply to Graham Murray from comment #6)
> (In reply to Pacho Ramos from comment #5)
> > Maybe this is related with:
> > https://bugzilla.gnome.org/show_bug.cgi?id=747339
> 
> So is this saying (or implying) that gdm should be started as the user (who
> will log in to the greeter) rather than as root?

No. It's saying that gdm now starts the user session on a separate vt with a separate X process (and presumably in theory can start the user's X under the user's own user account instead of root, although at least on my machine that doesn't happen, probably thanks to nvidia-drivers).
Comment 8 Pacho Ramos gentoo-dev 2015-06-17 19:25:03 UTC
I cannot restart now my X session, but maybe this could be tried if you have time:
https://bugzilla.opensuse.org/show_bug.cgi?id=925944#c7
Comment 9 poncho 2015-06-17 21:06:03 UTC
Since the user xsession doesn't run on vt7 any more, it might be less confusing if you drop the
! use plymouth && myconf="${myconf} --with-initial-vt=7
line from the gdm ebuild.
Comment 10 Pacho Ramos gentoo-dev 2015-06-19 18:26:29 UTC
(In reply to poncho from comment #9)
> Since the user xsession doesn't run on vt7 any more, it might be less
> confusing if you drop the
> ! use plymouth && myconf="${myconf} --with-initial-vt=7
> line from the gdm ebuild.

No because the setting is still being honored... but for the INITIAL vt that now, sadly, is only used for the first session (the one for choosing between users). This still lets us to keep tty1 untouched as before... but I don't see any way to make the location of new opened graphical sessions more predictable apart of running:
 systemctl enable getty@tty{2,3,4,5,6}.service

That should reserve ttys from 1 to 6 for text consoles, gdm would still open the FIRST session in tty7 and new sessions would be opened in tty8 and so... That looks the more "predictable" behavior to me
Comment 11 Pacho Ramos gentoo-dev 2015-06-22 20:40:46 UTC
I have added this tip to:
https://wiki.gentoo.org/wiki/Systemd#Graphical_sessions_opened_in_random_places
Comment 12 Pacho Ramos gentoo-dev 2015-06-30 18:55:40 UTC
+  30 Jun 2015; Pacho Ramos <pacho@gentoo.org> -gdm-3.14.1-r1.ebuild,
+  gdm-3.16.1.1.ebuild:
+  Add a warning about new GDM opening new sessions on separate TTYs and point to
+  documentation suggesting how to handle it (#551726), drop old.
+