Bug 381755 - Keyboard input not working on wayland (only shortcuts work)
Summary: Keyboard input not working on wayland (only shortcuts work)
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-wayland (show other bugs)
Version: 5.10.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-28 12:02 UTC by Leonard Lausen
Modified: 2017-07-19 02:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Error log (5.91 KB, text/plain)
2017-06-28 12:02 UTC, Leonard Lausen
Details
Log (780 bytes, text/x-log)
2017-06-28 12:03 UTC, Leonard Lausen
Details
attachment-29345-0.html (137 bytes, text/html)
2017-06-28 23:45 UTC, Leonard Lausen
Details
Output of startplasmacompositor with WAYLAND_DEBUG when pressing keys (808.98 KB, text/plain)
2017-07-18 05:18 UTC, Leonard Lausen
Details
Output of startplasmacompositor with WAYLAND_DEBUG when NOT pressing keys (657.71 KB, text/plain)
2017-07-18 05:19 UTC, Leonard Lausen
Details
Output of kwin_wayland --xwayland --exit-with-session=kwrite with WAYLAND_DEBUG (125.50 KB, text/plain)
2017-07-18 05:23 UTC, Leonard Lausen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonard Lausen 2017-06-28 12:02:37 UTC
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.
Comment 1 Leonard Lausen 2017-06-28 12:03:00 UTC
Created attachment 106354 [details]
Log
Comment 2 Christoph Feck 2017-06-28 22:28:41 UTC
Is this restricted to the Plasma shell, or are other applications also affected?
Comment 3 Leonard Lausen 2017-06-28 23:45:26 UTC
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?)
Comment 4 Christoph Feck 2017-07-17 17:02:20 UTC
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.
Comment 5 Martin Flöser 2017-07-17 19:22:35 UTC
your Qt is compiled without xkbcommon support.
Comment 6 Leonard Lausen 2017-07-17 22:28:50 UTC
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"
Comment 7 Martin Flöser 2017-07-18 04:12:56 UTC
Please use WAYLAND_DEBUG env variable for an app and paste the output here when using keyboard.
Comment 8 Leonard Lausen 2017-07-18 05:18:01 UTC
Created attachment 106690 [details]
Output of startplasmacompositor with WAYLAND_DEBUG when pressing keys
Comment 9 Leonard Lausen 2017-07-18 05:19:38 UTC
Created attachment 106691 [details]
Output of startplasmacompositor with WAYLAND_DEBUG when NOT pressing keys
Comment 10 Leonard Lausen 2017-07-18 05:23:14 UTC
Created attachment 106692 [details]
Output of kwin_wayland --xwayland --exit-with-session=kwrite with WAYLAND_DEBUG
Comment 11 Leonard Lausen 2017-07-18 05:25:05 UTC
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.
Comment 12 Martin Flöser 2017-07-18 15:10:01 UTC
according to the output you typed at least asdf in the kwrite
Comment 13 Leonard Lausen 2017-07-18 16:43:07 UTC
Indeed I have pressed these keys, but the output did not appear in the kwrite window.
Comment 14 Martin Flöser 2017-07-18 17:16:11 UTC
(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
Comment 15 Leonard Lausen 2017-07-19 02:02:46 UTC
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.