Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650698 - x11-drivers/nvidia-drivers-390.42 - Cannot login with lightdm, xfce4
Summary: x11-drivers/nvidia-drivers-390.42 - Cannot login with lightdm, xfce4
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 10:54 UTC by thomas
Modified: 2021-03-02 20:55 UTC (History)
2 users (show)

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


Attachments
Xorg.0.log (Xorg.0.log,24.15 KB, text/plain)
2018-03-17 23:06 UTC, thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thomas 2018-03-17 10:54:43 UTC
After upgrading from nvidia-drivers-387.22 to nvidia-drivers-390.42, I could not login anymore using lightdm and xfce4.

After entering password, the user/password boxes go aways and that's it.

I cannot find any related errors in Xorg.0.log and lightdm.log.

After downgrading to nvidia-drivers-387.34, everything works again.

Reproducible: Always

Steps to Reproduce:
1. Install xfce4, lightdm, nvidia-drivers-390.42
2. Try to login
3.
Actual Results:  
No login possible.

Expected Results:  
Xfce4 desktop should appear after login.

# emerge --info
Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.4.1
KiB Mem:    16409700 total,  11888784 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 16 Mar 2018 10:30:02 +0000
Head commit of repository gentoo: f05b02c57d0282b587d4a9b3d8ac7c00d0efc075
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r5::gentoo, 1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

roslin
    location: /var/lib/layman/roslin
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /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/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de 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="X a52 aac acl acpi activities alsa amd64 apache2 asf berkdb bluray branding bzip2 cairo cdda cdr cli consolekit crypt css cups cxx dbus declarative dga divx dri dts dvb dvd dvdr emboss encode exif expat fam fame fax ffmpeg fftw flac foomaticdb fortran gdbm gif glamor glitz gpm gstreamer gtk iconv imagemagick infinality ipv6 java jpeg jpeg2k kde kwallet lcd lcms ldap libc-omitfp libnotify lirc lm_sensors lzo mad mjpeg mmx mng modules mp3 mp4 mpeg mplayer multilib mysql mysqli ncurses nls nptl nsplugin nvidia ogg opengl openmp openssh pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt5 readline real rtsp scanner sdl seccomp smp spell sse sse2 ssl startup-notification svg tcpd theora tiff transcode truetype udev udisks unicode upower ups usb v4l v4l2 vaapi vcd vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xine xinerama xml xulrunner 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias unixd slotmem_shm authn_core authz_core socache_shmcb access_compat" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext 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="keyboard mouse evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="cfontz ncurses text hd44780" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-17 13:07:10 UTC
No problems using x11-misc/slim.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-17 13:08:32 UTC
It would really help if you attached a relevant[1] Xorg*.log that might shed light on the problem.


[1] I.e. not the one lightdm uses. The one after that.
Comment 3 thomas 2018-03-17 23:06:16 UTC
Created attachment 524228 [details]
Xorg.0.log

I don't know what you mean by the relevant one. I know only of one Xorg.0.log.
Comment 4 corax 2018-04-13 02:47:27 UTC
It may be I'm experiencing the same issue, using slim and xfce4.

Like thomas says, after entering the password, the login manager disappears, "and that's it". I'm greeted with what looks like a grey undecorated window, and a mouse cursor.

However, I found that switching to a text console (eg. CTRL-ALT-F1) and back to the X terminal, "the environment gets reset" for lack of a better phrase, and my usual desktop session appears as I would have expected it to in the first place.

This started happening with >=nvidia-drivers-390 and persists through to the latest 396.18-r1. It does not happen with <=384.130.

$ emerge --info 
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r11, 4.15.15-gentoo x86_64)
=================================================================
System uname: Linux-4.15.15-gentoo-x86_64-AMD_Ryzen_7_1800X_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    32941312 total,  18649788 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 13 Apr 2018 01:30:01 +0000
Head commit of repository gentoo: 804a0d7244a06736d01c353b45c20daf324f0722
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::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
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Comment 5 thomas 2018-06-16 14:32:02 UTC
Same with 390.48. But the CTRL-ALT-F1 workaround helps.

I cannot try >=391.0.0, because those won't work with my gfx card.
Comment 6 hkBst 2018-06-22 07:53:07 UTC
The errors from the attached Xorg log:

[    16.872] (EE) NVIDIA(GPU-0): Unable to add conservative default mode "nvidia-auto-select".
[    16.872] (EE) NVIDIA(GPU-0): Unable to add "nvidia-auto-select" mode to ModePool.
Comment 7 thomas 2018-07-07 05:51:59 UTC
OK, so it is a bug in the Nvidia driver. ForceCompositionPipeline in xorg.conf (which gets rid of tearing in Xfce4) is the problem.

Removing that option makes login work again.

Never versions of the driver are supposed to fix that but they don't.

Workaround is to enable ForceCompositionPipeline AFTER login, so for example as Autostart entry with the command:
sh -c "sleep 5 && nvidia-settings --assign CurrentMetaMode=\"nvidia-auto-select +0+0 { ForceCompositionPipeline = On }\""

The sleep was necessary for me.

You can read more here: https://forum.manjaro.org/t/nvidia-390-25-xfce-login-problem-workaround/42070
Comment 8 Ionen Wolkens gentoo-dev 2021-03-02 20:55:12 UTC
I use ForceCompositionPipeline and xfce4, so I assume this is obsolete.

Please open a new bug if believe there's still something.

I do remember having a similar sounding issue with xfce4 before though, reverting xfce4's display monitor settings to default had fixed it.