Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] KDE Plasma Wayland not logging in
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Draenin
n00b
n00b


Joined: 24 Mar 2016
Posts: 61

PostPosted: Sun Nov 03, 2019 7:09 pm    Post subject: [SOLVED] KDE Plasma Wayland not logging in Reply with quote

Hi,

Maybe someone have an idea why I am not able to log in KDE Plasma with Wayland?

A while ago I was able to successfully login in Plasma (Wayland) without problems, so I assume I had everything setup properly. And I have not changed anything, just the regular updates. Unfortunately, it has been a few months since the last time I logged in with Wayland (I have been logging in with Xorg). So, I am not able to point out to the specific update that maybe caused the problem. Assuming it was an update, maybe it has nothing to do with the updates.

Anyway, I am not able to see any error that could lead me to a possible solution. So, any help will be appreciated.

In the login screen (SDDM), if I select "Plasma (Wayland)", then after introducing my credentials the screen goes blank for a second, it seems it is going to let me in and show the desktop environment but no. Instead, it throws me back to the SDDM login screen without any error message, exceptions, or any clue of just what happened.
I can be doing that in a loop, but if I select "Plasma on Xorg", then I can log in without problems.

Here it is the sddm log of a failed Wayland login:
Code:
[11:24:45.773] (II) DAEMON: Message received from greeter: Login
[11:24:45.773] (II) DAEMON: Reading from "/usr/share/wayland-sessions/plasmawayland.desktop"
[11:24:45.773] (II) DAEMON: Reading from "/usr/share/wayland-sessions/plasmawayland.desktop"
[11:24:45.773] (II) DAEMON: Session "/usr/share/wayland-sessions/plasmawayland.desktop" selected, command: "dbus-run-session /usr/bin/startplasmacompositor"
[11:24:45.786] (II) HELPER: [PAM] Starting...
[11:24:45.786] (II) HELPER: [PAM] Authenticating...
[11:24:45.815] (II) HELPER: [PAM] Preparing to converse...
[11:24:45.815] (II) HELPER: [PAM] Conversation with 1 messages
[11:24:45.902] (II) HELPER: [PAM] returning.
[11:24:45.932] (II) DAEMON: Authenticated successfully
[11:24:45.932] (II) DAEMON: Jumping to VT 8
[11:24:45.932] (II) DAEMON: VT mode didn't need to be fixed
[11:24:46.009] (II) HELPER: Starting: "/usr/share/sddm/scripts/wayland-session dbus-run-session /usr/bin/startplasmacompositor"
[11:24:46.011] (II) DAEMON: Session started
[11:24:46.113] (II) HELPER: [PAM] Closing session
[11:24:46.116] (II) HELPER: [PAM] Ended.
[11:24:46.117] (II) DAEMON: Auth: sddm-helper exited successfully
[11:24:46.117] (II) DAEMON: Greeter stopping...
[11:24:46.117] (II) DAEMON: Socket server stopping...
[11:24:46.117] (II) DAEMON: Socket server stopped.
[11:24:46.117] (II) DAEMON: Display server stopping...
[11:24:46.141] (II) HELPER: [PAM] Closing session
[11:24:46.142] (II) HELPER: [PAM] Ended.
[11:24:46.150] (II) DAEMON: Display server stopped.
[11:24:46.150] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"
[11:24:46.152] (II) DAEMON: Removing display ":0" ...
[11:24:46.153] (II) DAEMON: Adding new display on vt 7 ...
[11:24:46.153] (II) DAEMON: Loading theme configuration from ""
[11:24:46.153] (II) DAEMON: Display server starting...
[11:24:46.153] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{01570fb6-9313-4beb-af2f-609bca843672} -background none -noreset -displayfd 22 -seat seat0 vt7
[11:24:46.676] (II) DAEMON: Setting default cursor
[11:24:46.684] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[11:24:46.687] (II) DAEMON: Display server started.
[11:24:46.687] (II) DAEMON: Socket server starting...
[11:24:46.687] (II) DAEMON: Socket server started.
[11:24:46.687] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze-514-0.2.3/theme.conf"
[11:24:46.688] (II) DAEMON: Greeter starting...
[11:24:46.688] (II) DAEMON: Adding cookie to "/var/run/sddm/{01570fb6-9313-4beb-af2f-609bca843672}"
[11:24:46.692] (II) DAEMON: Greeter stopping...
[11:24:46.693] (WW) DAEMON: QProcess: Destroyed while process ("/usr/libexec/sddm-helper") is still running.
[11:24:46.697] (II) HELPER: [PAM] Starting...
[11:24:46.697] (II) HELPER: [PAM] Authenticating...
[11:24:46.697] (II) HELPER: [PAM] returning.
[11:24:46.706] (II) DAEMON: Greeter session started successfully
[11:24:46.743] (II) DAEMON: Message received from greeter: Connect


And this the sddm log of a successful Xorg login:
Code:
[11:25:43.106] (II) DAEMON: Message received from greeter: Login
[11:25:43.106] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[11:25:43.107] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[11:25:43.107] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startkde"
[11:25:43.119] (II) HELPER: [PAM] Starting...
[11:25:43.119] (II) HELPER: [PAM] Authenticating...
[11:25:43.146] (II) HELPER: [PAM] Preparing to converse...
[11:25:43.146] (II) HELPER: [PAM] Conversation with 1 messages
[11:25:43.230] (II) HELPER: [PAM] returning.
[11:25:43.263] (II) DAEMON: Authenticated successfully
[11:25:43.275] (II) HELPER: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startkde\""
[11:25:43.277] (II) HELPER: Adding cookie to "/home/draenin/.Xauthority"
[11:25:43.283] (II) DAEMON: Session started
[11:25:43.292] (II) HELPER: [PAM] Closing session
[11:25:43.293] (II) HELPER: [PAM] Ended.
[11:25:43.294] (II) DAEMON: Auth: sddm-helper exited successfully
[11:25:43.295] (II) DAEMON: Greeter stopped.


Some more info just in case, emerge --info:
Code:
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.3.0, glibc-2.29-r2, 4.19.57-gentoo-i7-860 x86_64)
=================================================================
System uname: Linux-4.19.57-gentoo-i7-860-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.6
KiB Mem:     8220532 total,   1463804 free
KiB Swap:   11686904 total,  11686904 free
Timestamp of repository gentoo: Sat, 02 Nov 2019 22:30:01 +0000
Head commit of repository gentoo: eb7af0af37b26d9fd4859b055ca0a0aa2247792f
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::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.32-r1::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.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

draenin-repo
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -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="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/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="-march=corei7 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=corei7 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr elogind emboss encode exif fam flac fortran gdbm gif glamor gles gpm iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc lz4 lzo mad matroska mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pcsc-lite pdf phonon plasma png policykit polkit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wayland widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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 sheets words" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Linux enthusiast


Last edited by Draenin on Tue Nov 12, 2019 11:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1707
Location: Poland => Lodz

PostPosted: Sun Nov 03, 2019 8:34 pm    Post subject: Reply with quote

I was using only Plasma on Wayland for the past year, recently it stoped working same as yours. I'm pretty sure it was after the Qt-5.12.5 upgrade. I've rebuild all Qt and KDE packages, but did not help. Then just started using Xorg, because I'm a bit to busy currently.'

This session log pointed me towards some threads and tickets, but those weren't exactly applicable.
Code:
$ cat .local/share/sddm/wayland-session.log
startplasmacompositor: Starting up...
qt.qpa.plugin: Could not load the Qt platform plugin "wayland-org.kde.kwin.qpa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-org.kde.kwin.qpa, minimal, offscreen, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

/usr/bin/startplasmacompositor: linia 242: 31783 Przerwane               /usr/bin/kwin_wayland --xwayland --libinput --exit-with-session=/usr/lib64/libexec/startplasma
startplasmacompositor: Shutting down...
startplasmacompositor: Done.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7847
Location: Austria

PostPosted: Sun Nov 03, 2019 8:58 pm    Post subject: Reply with quote

Impressive that you have been running Wayland sessions (with amd64 KEYWORDS only) for that long already; however still at this point I would recommend no less than latest available Qt (5.13.2) for that.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Draenin
n00b
n00b


Joined: 24 Mar 2016
Posts: 61

PostPosted: Mon Nov 04, 2019 1:42 am    Post subject: Reply with quote

@szczerb
Yep, it seems it is the same error. I didn't check out my .local/share/sddm/wayland-session.log file before, but here it is. Same as yours:
Code:
startplasmacompositor: Starting up...
qt.qpa.plugin: Could not load the Qt platform plugin "wayland-org.kde.kwin.qpa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-org.kde.kwin.qpa, minimal, offscreen, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

/usr/bin/startplasmacompositor: line 242: 23190 Aborted                 /usr/bin/kwin_wayland --xwayland --libinput --exit-with-session=/usr/lib64/libexec/startplasma
startplasmacompositor: Shutting down...
startplasmacompositor: Done.


@asturm
I didn't use it extensively, but the times I did it worked fine.

It had a bug though, when suspending to disk (or was it to RAM? I don't remember), the PC wasn't able to come back up again. It just hung up, and I had to restart the computer. That was the reason I mainly used Xorg.

So, I wanted to see now if that bug was solved to switch to Wayland definitively. But this happens.
_________________
Linux enthusiast
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1707
Location: Poland => Lodz

PostPosted: Mon Nov 04, 2019 3:21 pm    Post subject: Reply with quote

@asturm, actually I'm running stable right now (Qt and Pasma at least, obviously got some ~AMD64 packages). I had plasma 5.14.5 ~AMD64 a while back, but since that version got outdated by stable packages, I'm running on stable.

I'll see if it starts working again after upgrading to Qt 5.13.2 and Plasma 5.17.2 in a free moment, but can't risk anything else getting broken today - it's my work laptop.

On a side note - suspend and hibernation is working fine here, but:
- the whole session (almost?) always crashes when I just unplug external displays while logged in (very few meetings, so not a huge deal, but annoying)
- USB soundcard (or HDMI) not getting picked up on plugin, and somehow also not working when plugged before, don't remember specifics (I'm guessing it has something to do with elogind, pulseaudio and permissions...), but bluetooth audio connection works like a charm
- it's interesting how I can only manually select 1x or 2x screen scaling, but when I plug external displays (2x 1440p) then the internal 4k is scaled to be 1440p as well (looking surprisingly nice and sharp), even though the config dialog shows 4k resolution and 1x scaling
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7847
Location: Austria

PostPosted: Mon Nov 04, 2019 3:31 pm    Post subject: Reply with quote

Scaling should be much better with Qt 5.14 when it finally arrives; if you dynamically use external displays you might want to hold off on doing the upgrade until 5.17.3 as iirc there has been some regression in that area.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1707
Location: Poland => Lodz

PostPosted: Mon Nov 04, 2019 3:45 pm    Post subject: Reply with quote

I might hold back, then. Thank you for the warning!

On the other hand can there really be much regression from the state "the whole session crashes if you unplug and all screen settings are quite wonky after you plug in"? Basically I make sure that all displays make sense in SDDM before I log in. Otherwise I just can't fix the resolutions with screen settings utility.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1707
Location: Poland => Lodz

PostPosted: Tue Nov 05, 2019 1:07 pm    Post subject: Reply with quote

Upgraded Qt to 5.13.2 and Wayland session is working again. Holding off on the Plasma update for now.

Keyworded the following packages (and they forced a few rebuilds from kde/plasma packages):
Code:
=dev-qt/designer-5.13.2
=dev-qt/linguist-tools-5.13.2
=dev-qt/qdbus-5.13.2
=dev-qt/qdbusviewer-5.13.2
=dev-qt/qtbluetooth-5.13.2
=dev-qt/qtconcurrent-5.13.2
=dev-qt/qtcore-5.13.2
=dev-qt/qtdbus-5.13.2
=dev-qt/qtdeclarative-5.13.2
=dev-qt/qtgraphicaleffects-5.13.2
=dev-qt/qtgui-5.13.2
=dev-qt/qtimageformats-5.13.2
=dev-qt/qtmultimedia-5.13.2
=dev-qt/qtnetwork-5.13.2
=dev-qt/qtopengl-5.13.2
=dev-qt/qtpaths-5.13.2
=dev-qt/qtpositioning-5.13.2
=dev-qt/qtprintsupport-5.13.2
=dev-qt/qtquickcontrols-5.13.2
=dev-qt/qtquickcontrols2-5.13.2
=dev-qt/qtscript-5.13.2
=dev-qt/qtsensors-5.13.2
=dev-qt/qtspeech-5.13.2
=dev-qt/qtsql-5.13.2
=dev-qt/qtsvg-5.13.2
=dev-qt/qttest-5.13.2
=dev-qt/qtvirtualkeyboard-5.13.2
=dev-qt/qtwayland-5.13.2
=dev-qt/qtwebchannel-5.13.2
=dev-qt/qtwebengine-5.13.2
=dev-qt/qtwidgets-5.13.2
=dev-qt/qtx11extras-5.13.2
=dev-qt/qtxml-5.13.2
=dev-qt/qtxmlpatterns-5.13.2
Back to top
View user's profile Send private message
JuNix
Apprentice
Apprentice


Joined: 05 Mar 2003
Posts: 221
Location: Sheffield

PostPosted: Thu Nov 07, 2019 10:48 pm    Post subject: Reply with quote

szczerb wrote:

qt.qpa.plugin: Could not load the Qt platform plugin "wayland-org.kde.kwin.qpa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-org.kde.kwin.qpa, minimal, offscreen, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
[/code]


Don’t know if this will help, but I had this exact same problem. After an update, Plasma stopped working with Wayland with the error you posted above. The update forced a removal of virtual/pam which in turn required an update of changed dependencies. I did lots of research, and tracked it down to a broken dependency of kwin - a simple fix. All I needed to do to fix it was an “emerge -1av kwin”.

Hope it helps somebody
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1707
Location: Poland => Lodz

PostPosted: Tue Nov 12, 2019 2:54 pm    Post subject: Reply with quote

@JuNix
I guess I acted in a hurry instead of thinking about it and rebuilt a lot of stuff but somehow omitted kwin...
Back to top
View user's profile Send private message
Draenin
n00b
n00b


Joined: 24 Mar 2016
Posts: 61

PostPosted: Tue Nov 12, 2019 11:19 pm    Post subject: Reply with quote

Ok, I can confirm. Just reemgerging kwin solves the problem:
Code:
emerge --ask --verbose --oneshot kwin

_________________
Linux enthusiast
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum