Created attachment 106353 [details] Error log When starting plasmashell 5.10.3 (also earlier versions) on Gentoo via: > export $(dbus-launch) > export QT_QPA_PLATFORM=wayland > startplasmacompositor keyboard input does not work for me. While the system reacts to shortcuts (such as pressing a) the Meta key to open the startup window; b) Ctrl-Alt-Delete to present the logout dialogue; c) Alt-Space d) Volume control keys; ...), pressing normal keys (letters, numbers, enter key etc.) does not produce any reaction. Note that I do not experience such problems when using a X session and run a nested KWin. Note that the problem also does not occur in Weston. Nor do experience this problem when using Weston. I am attaching a log and error file collected by running startplasmacompositor under a newly created user. Please let me know if there is any information I can provide to help resolving this problem.
Created attachment 106354 [details] Log
Is this restricted to the Plasma shell, or are other applications also affected?
Created attachment 106367 [details] attachment-29345-0.html Sorry for not being clear about this. Any application is affected. (So perhaps the bug should be reported against kwin_wayland instead?)
I have no idea if all input in wayland is routed through KWin, or if applications directly receive keyboard input. Adding KWin maintainer to check.
your Qt is compiled without xkbcommon support.
The xcb useflag is enabled globally on my system (i.e. it is present in the output of emerge --info). So as far as I see qtgui is built with xkbcommon support. USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emacs emboss encode exif fam firefox flac fontconfig fortran gdbm gif glamor gles gpm gtk iconv icu inotify ipv6 ja jemalloc jpeg kde kipi ko kwallet lcms ldap libnotify lm_sensors lzma mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session sound spell sqlite ssl startup-notification svg systemd tcpd tiff touch touchscreen truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf 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" 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev libinput" 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" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel 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"
Please use WAYLAND_DEBUG env variable for an app and paste the output here when using keyboard.
Created attachment 106690 [details] Output of startplasmacompositor with WAYLAND_DEBUG when pressing keys
Created attachment 106691 [details] Output of startplasmacompositor with WAYLAND_DEBUG when NOT pressing keys
Created attachment 106692 [details] Output of kwin_wayland --xwayland --exit-with-session=kwrite with WAYLAND_DEBUG
I attached the outputs of running startplasmacompositor and kwinwayland --xwayland --exit-with-session=kwrite with WAYLAND_DEBUG. Please let me know if you had something different in mind.
according to the output you typed at least asdf in the kwrite
Indeed I have pressed these keys, but the output did not appear in the kwrite window.
(In reply to Leonard Lausen from comment #13) > Indeed I have pressed these keys, but the output did not appear in the > kwrite window. which Qt version are you using
I was using QT 5.9.0. Realizing that I should update to 5.9.1 I saw that there was a bug in the qtwayland-5.9.0 ebuild which was fixed recently by kensington for the qtwayland-5.9.1 ebuild: https://github.com/gentoo/qt/commit/648d83e691da9a49cd4f76ade3c8466a377ac0b8 I.e. qtgui was not built with libinput support. So that should resolve the issue.