Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 669146

Summary: gnome-base/gdm- fails to start xorg and login screen
Product: Gentoo Linux Reporter: Anton Gubarkov <anton.gubarkov>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Severity: normal CC: droide
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---

Description Anton Gubarkov 2018-10-20 21:24:49 UTC
my GDM fails to start a graphical login screen. The text console stays. 

the journal is full of :

Oct 21 00:08:12 PF16W6Y2 gdm-launch-environment][4619]: pam_systemd(gdm-launch-environment:session): Unknown parameter 'kill-session-processes=1', ignoring
Oct 21 00:08:12 PF16W6Y2 gdm[4607]: GLib: g_variant_new_string: assertion 'string != NULL' failed
Oct 21 00:08:12 PF16W6Y2 gdm[4607]: Child process -4635 was already dead.
Oct 21 00:08:12 PF16W6Y2 gdm[4607]: Child process 4619 was already dead.
Oct 21 00:08:12 PF16W6Y2 gdm[4607]: Unable to kill session worker process

It is similar to, but that was 3 years ago...
Comment 1 Anton Gubarkov 2018-10-20 21:25:14 UTC
PF16W6Y2 ~ # emerge --info gdm
Portage 2.3.51 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-8.2.0, glibc-2.27-r6, 4.18.16-gentoo-zfs x86_64)
                         System Settings
System uname: Linux-4.18.16-gentoo-zfs-x86_64-Intel-R-_Core-TM-_i7-8850H_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    16077096 total,  10994808 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 20 Oct 2018 16:44:34 +0000
Head commit of repository gentoo: 89162c82301d9ca5b24c7d9dc807c5a3e0f5b280

sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo, 2.31.1-r1::gentoo
sys-devel/gcc:            7.3.0-r5::gentoo, 8.2.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo

    location: /usr/portage
    sync-type: git
    sync-uri: git://
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -mtune=native"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 -pipe -mtune=native"
FCFLAGS="-O2 -pipe -mtune=native"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -mtune=native"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cacert cairo cdda cdr cli client colord crypt cups cxx dbus dri dri3 dts dvd dvdr eds emboss encode evo exif fam flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg jpeg2k lcms ldap libnotify libsecret libtirpc libzfs mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl nvenc ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 raw readline sdl seccomp sna sound spell spice ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb usbredir vaapi vala virgl vorbis wxwidgets x264 xattr xcb xml xv xvid zeroconf zfs 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" 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" INPUT_DEVICES="libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965 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"

                        Package Settings

gnome-base/gdm- was built with the following:
USE="branding introspection ipv6 tcpd -accessibility -audit -fprint -plymouth (-selinux) -smartcard -test -wayland -xinerama" ABI_X86="(64)"
Comment 2 Anton Gubarkov 2018-10-24 08:53:55 UTC
I managed to find out the reason myself. 
I've build a system w/o wayland support. I'm very much disappointed with wayland performance (speed) and certain use cases with virt-viewer (keyboard handling). So I disabled wayland use flag entirely.

gdm seems to attempt to start on wayland by default.

so I edited /dev/gdm/custom.conf and  uncommented

this was enough to force gdm use X. However that was not enough. 
X didn't start failing to write log file to /var/lib/gdm/.local/...

I checked the permissions and found out that /var/lib/gdm was owned by user gdm, but /var/lib/gdm/.local was owned by root.

I chown -R gdm /var/lib/gdm

After that everything works normally.
Comment 3 droide02 2019-01-08 10:33:21 UTC
I have the same problem but without solution ...
Comment 4 Larry the Git Cow gentoo-dev 2019-05-05 11:55:05 UTC
The bug has been closed via the following commit(s):

commit f2394513fd33929540f0fe6c5500b41094038d29
Author:     Mart Raudsepp <>
AuthorDate: 2019-05-05 11:31:53 +0000
Commit:     Mart Raudsepp <>
CommitDate: 2019-05-05 11:53:57 +0000

    gnome-base/gdm: workaround file perm and bluetooth sound issues
    Install a pulseaudio default config file which unloads bluetooth modules,
    to avoid logged in users failing to load these modules upon log-in due to
    device locks. As bluetooth sound may be important for a11y screen reader
    over bluetooth sound, a USE flag is provided to keep loading bluetooth
    modules; as this shouldn't be a common case (especially as normal sound
    still works, it's just about sound over bluetooth), this USE flag is
    default disabled.
    Add back file ownership tweaks, as users still somehow end up with
    wrong permissions. At least if the path where Xorg sessions log file
    gets written has wrong permissions, Xorg fails to start and gdm with it.
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Mart Raudsepp <>

 gnome-base/gdm/files/     |  18 +++
 gnome-base/gdm/gdm-3.30.3-r3.ebuild | 246 ++++++++++++++++++++++++++++++++++++
 gnome-base/gdm/metadata.xml         |   3 +
 3 files changed, 267 insertions(+)
Comment 5 Mart Raudsepp gentoo-dev 2019-05-05 11:56:11 UTC
(In reply to droide02 from comment #3)
> I have the same problem but without solution ...

If this 3.30.3-r3 doesn't fix it for you, please file a separate bug with details.