Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685432 - gnome-base/gdm-3.30.3-r3 fails to manage display on VT1
Summary: gnome-base/gdm-3.30.3-r3 fails to manage display on VT1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-09 05:21 UTC by nE0sIghT
Modified: 2019-05-13 18:32 UTC (History)
0 users

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


Attachments
journalctl -b -u gdm (journalctl-gdm.log,17.47 KB, text/plain)
2019-05-09 05:22 UTC, nE0sIghT
Details
/var/lib/gdm/.local/share/xorg/Xorg.0.log (Xorg.0.log,281.48 KB, text/plain)
2019-05-09 05:23 UTC, nE0sIghT
Details
journalctl -b | grep -i -E 'gnome|gdm' (journalctl.log,741.36 KB, text/x-log)
2019-05-09 17:13 UTC, nE0sIghT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nE0sIghT 2019-05-09 05:21:49 UTC
I just upgraded stable GNOME 3.24 to 3.30 and GDM stopped to work.

It works according to systemctl, but there is no display. At the PC boot GDM gray background appears, but than disappears.

> emerge --info
Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-8.3.0, glibc-2.28-r6, 4.19.37-gentoo x86_64)
=================================================================
System uname: Linux-4.19.37-gentoo-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.6
KiB Mem:    16380932 total,  10257932 free
KiB Swap:     524284 total,    524284 free
Head commit of repository steam-overlay: 8a7a500b3ac8284c407168589bcb73103e3e3f4d

Head commit of repository vortex: 1693c67658f98668ff7582f7647e24cfaa756492

Timestamp of repository gentoo: Wed, 08 May 2019 17:04:29 +0000
Head commit of repository gentoo: 66915c2ae3bd295e666ba7f6095b38212c044987

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
ccache version 3.6 [disabled]
app-shells/bash:          4.4_p23-r1::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.5::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.9.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: -1

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay/
    masters: gentoo

vortex
    location: /var/db/repos/vortex
    sync-type: git
    sync-uri: https://github.com/nE0sIghT/vortex-overlay.git
    masters: gentoo
    priority: 1000

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: 9999

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
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/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
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 config-protect-if-modified distlocks ebuild-locks fail-clean 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 webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" 	https://mirror.yandex.ru/gentoo-distfiles/ "
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru ru_RU en"
MAKEOPTS="-j5"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X a-like-o a52 aac aacplus aacs aalib acl acpi alsa alsa-plugin amd64 androiddump aosd apng applet archive argyllcms arp artworkextra audacious audiofile autoconf-archive automount avcodec avformat avx bash-completion bazaar berkdb bidi bittorrent bittorrent-external blksha1 bluray branding broadway bsf bzip2 cairo caps ccid chardet chdir cjk cli client colord compiler-rt cover cracklib cron crypt cryptsetup css ctype cuda cue cupsddk curl cxx dbus dconf device-mapper dga dhcp dhcpcd dht diff dirac disk-partition divx djvu dnsretry dos drawing dri driver drm dumpcap dv eap-tls edit elfutils enca encode exceptions exif experimental extensions extra-filters extras facedetect fat fbcondecor ffmpeg fftw filecaps fileinfo filter firmware flac fontconfig fonts fortran fpm frei0r fts3 fuse g-sorcery g3dvl gallium gd gdbm gdm geoip gif glade glib glitz gnome gnome-keyring gnome-online-accounts gnome-shell gnuefi gold gost gpg gphoto2 gpl gpm gptfdisk graphite grp grub gstreamer gtk gtk3 gtkstyle gudev gui gzip haptic harfbuzz hash hddtemp highlight histman hog http http2 hvm hwdb iconsets iconv icu id3tag idle idn imagemagick infinality inifile initramfs inspector intl introspection ioemu iptables ipv6 iso ithreads jabber java javascript jbootstrap jdbc jemalloc jemalloc3 jingle jit joystick jpeg jpeg2k json jumbo-build kate keymap kinetic kmod kms kvm ladspa lame lcms libass libcaca libguess libkms libmount libmpv libnotify libsamplerate libsecret libtiger lights live lm_sensors loop-aes lto lucene lyrics lz4 lzma lzo mad magic matroska mbox melt mercurial mime minizip mmxext mng modemmanager modules mp2 mp3 mp4 mp4live mpeg mpeg2 mpg123 mplayer mpris mpu401 mtp mudflap multilib multimedia musepack mvl mysql mysqli native-extensions nautilus netplay network networkmanager nfsdcld nfsidmap nfsv4 nfsv41 nls nmap-update npm nptl nscd nse nss nss-pem ntfs ntfsprogs nvenc nvidia offensive ofx ogg ogm oodict openal opencore-amr opengl openmp openssl opensslcrypt optimization optimized-qmake orc oscar osmesa ovs pam pango parse-clocks passwordsave pcap pcf pch pcre pcre-jit pcre16 pdf pdo pgo phar php player plugins png policykit portmixer posix postproc postscript ppapi ppds pppd projectm proprietary-codecs psf pulseaudio purple pygments qml qpak quicktime rar readline realmedia realtime regex reiserfs resolvconf romio rpc rtsp ru-dv ru-g ru-i ru-k run-exes s3tc sanitize scale0tilt screen screenshot sdl secure-delete sendto session simplexml skins slang slp smp sndfile socialweb sockets sound sounds sox speex spell split-ucode sqlite sqlite3 sse2_4way sse3 sse4 sse4.1 sse4.2 sse4_1 sse4_2 ssh-agent ssl ssse3 staging startup-notification steamfonts stemmer stream stroke strong-optimization stubby subtitles subversion sunec svc svg swscale sync-plugin-portage syslog system-bootstrap system-icu system-jpeg systemd sysv-utils t1lib taglib tcpd textures theora thin threads thunderbird tiff tinfo tint2conf tk tls tokenizer toolbar tools tracepath trayicon truetype tta tweak-mode twolame uchardet udev udisks unicode unwind unzip upower usb user-session utils uvm v4l2 vaapi vala vdpau vector-icons verse vf-dlopen video vkontakte vorbis vorbis-psy vpx wad warmstarts wav wavpack webgl webkit webp webphoto webstart whiteboarding widevine winbind wma wmf wmp x264 x265 xanim xattr xcb xcomposite xdg xhtml xinetd xkb xml xmlreader xmlrpc xmlwriter xorg xosd xpm xsl xslt xv xvfb xvid xz youtube zip zlib" ABI_X86="64" CAMERAS="ptp2" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="ru ru_RU en" NETBEANS_MODULES="apisupport cnd enterprise harness ide j2ee java nb php profiler webcommon websvccommon xml" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


> systemctl status gdm
● gdm.service - GNOME Display Manager
   Loaded: loaded (/lib/systemd/system/gdm.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-05-09 09:02:24 +04; 14min ago
  Process: 522 ExecStartPre=/usr/libexec/gdm-wait-for-drm (code=exited, status=0/SUCCESS)
 Main PID: 523 (gdm)
    Tasks: 3 (limit: 4915)
   Memory: 4.0M
   CGroup: /system.slice/gdm.service
           └─523 /usr/sbin/gdm

> ps -ef | grep gdm
root       523     1  0 09:02 ?        00:00:00 /usr/sbin/gdm
Comment 1 nE0sIghT 2019-05-09 05:22:18 UTC
Created attachment 575568 [details]
journalctl -b -u gdm
Comment 2 nE0sIghT 2019-05-09 05:23:32 UTC
Created attachment 575570 [details]
/var/lib/gdm/.local/share/xorg/Xorg.0.log
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-09 06:00:18 UTC
(In reply to nE0sIghT from comment #0)
> I just upgraded stable GNOME 3.24 to 3.30 and GDM stopped to work.

Did you upgrade anything else?
Comment 4 nE0sIghT 2019-05-09 06:11:50 UTC
(In reply to Jeroen Roovers from comment #3)
> 
> Did you upgrade anything else?

I did usual @world upgrade
Comment 5 Mart Raudsepp gentoo-dev 2019-05-09 08:45:05 UTC
nvidia... great..

If you log in to console and launch /usr/libexec/gdm-wait-for-drm
does it exit immediately or wait for some seconds? Also what's the return code from it?

/usr/libexec/gdm-wait-for-drm
echo $?


Does it work if you comment out the "ExecStartPre=/usr/libexec/gdm-wait-for-drm" line from /lib/systemd/system/gdm.service temporarily?

I think I'm on the wrong track here, but just my first thoughts on what to check. I can't do any of that myself, as this is probably nvidia specific issue.
Comment 6 nE0sIghT 2019-05-09 15:45:55 UTC
(In reply to Mart Raudsepp from comment #5)
> If you log in to console and launch /usr/libexec/gdm-wait-for-drm
> does it exit immediately or wait for some seconds? Also what's the return
> code from it?

# sudo -u gdm /usr/libexec/gdm-wait-for-drm && echo $?
0

> 
> Does it work if you comment out the
> "ExecStartPre=/usr/libexec/gdm-wait-for-drm" line from
> /lib/systemd/system/gdm.service temporarily?

No. Same result.

> nvidia... great..

For my ~15 years Linux experience I had very few issues with NVidia cards starting from some MX 200 card :-)
Closed sources, but just work well with my setups.
Comment 7 nE0sIghT 2019-05-09 15:46:49 UTC
Sorry for noice, but with startx session I have no issues.
Only GDM stopped to work.
Comment 8 Mart Raudsepp gentoo-dev 2019-05-09 16:21:37 UTC
So with `XSESSION=Gnome startx` you get a working full GNOME session too? Note that ~/.xinitrc presence messes up startx for GNOME needs quite a lot.
Comment 9 nE0sIghT 2019-05-09 16:46:46 UTC
(In reply to Mart Raudsepp from comment #8)
> So with `XSESSION=Gnome startx` you get a working full GNOME session too?
> Note that ~/.xinitrc presence messes up startx for GNOME needs quite a lot.

I have ~/.xinitrc that contains:
export XDG_MENU_PREFIX=gnome-
exec gnome-session

I don't use XSESSION environment variable. With that setup startx give me full GNOME session (except that I need to reenter my password to unlock keyring).
Comment 10 Mart Raudsepp gentoo-dev 2019-05-09 16:51:20 UTC
Please try without .xinitrc and with XSESSION env var instead.
.xinitrc presence makes startx not handle /etc/X11/xinit/xinitrc.d at all, which contains a lot of stuff that people don't replicate in their .xinitrc. Like you are missing a more complete dbus user session, XDG dirs update, GNOME specific XDG dirs setup (for some autostarts for example), cursor setup and potentially more.

Or put otherwise, please try with this full setup, to see the problem isn't something in there, as opposed to gdm itself.
Comment 11 nE0sIghT 2019-05-09 17:13:55 UTC
Created attachment 575608 [details]
journalctl -b | grep -i -E 'gnome|gdm'

Filtered journalctl. GDM debug enabled.
Comment 12 nE0sIghT 2019-05-09 17:16:18 UTC
(In reply to Mart Raudsepp from comment #10)
> Please try without .xinitrc and with XSESSION env var instead.

I removed ~/.xinitrc and `XSESSION=Gnome startx` works fine.
Comment 13 Mart Raudsepp gentoo-dev 2019-05-09 22:57:47 UTC
are there any relevant crash reports in coredumpctl?
Comment 14 nE0sIghT 2019-05-10 04:03:18 UTC
# coredumpctl 
No coredumps found.
Comment 15 nE0sIghT 2019-05-13 14:50:33 UTC
"--with-initial-vt=7" configure options fixes this issue for me.
Also I tested GDM 3.32 with same behavior.
Comment 16 nE0sIghT 2019-05-13 18:32:36 UTC
Finally found misconfiguration of my systemd-logind.
I had "ReserveVT=1" in /etc/systemd/logind.conf, so systemd just guarded VT1 from gdm.
Thanks for help.