Bug 375000 - Meta-to-open-menu stops working quickly after reboot on specific keyboard model
Summary: Meta-to-open-menu stops working quickly after reboot on specific keyboard model
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-13 10:27 UTC by Roman Gilg
Modified: 2018-03-09 14:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
mgraesslin: X11+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Gilg 2017-01-13 10:27:53 UTC
I have this problem only with my Logitech K360 keyboard. It is connected together with a mouse to one unifying receiver.

After reboot the meta key opens the Application Launcher as intended. But after some time (maybe a minute, maybe more, less than an hour), it stops working. I couldn't yet pinpoint the issue any further.
Comment 1 Roman Gilg 2017-01-13 19:09:05 UTC
OK, I pinpointed it now: The Meta key stops working directly after first time hitting Alt+Tab to open the Window Switcher / Tabbox.
Comment 2 Martin Flöser 2017-01-13 22:06:16 UTC
Interesting, I'm wondering whether alt changes the modifier somehow. What's your keyboard layout?
Comment 3 Martin Flöser 2017-01-13 22:06:59 UTC
Btw X11 or Wayland or both?
Comment 4 Roman Gilg 2017-01-15 11:29:58 UTC
Problem only on X11.
Comment 5 Martin Flöser 2017-01-15 13:48:04 UTC
good, that should make investigation easier.

Try to use xev to see which key events are generated. My theory is that there is a mismatch. That the logitech somehow generates multiple press events which are then not matched by a release. Or that somehow the keygrab steals events, but that wouldn't make any sense.
Comment 6 Roman Gilg 2017-01-16 16:37:46 UTC
There is no difference in the output of xev:

Before Alt+Tab (i.e. Meta works):
KeyPress event, serial 40, synthetic NO, window 0x4600001,
    root 0x4e9, subw 0x0, time 30763207, (961,1097), root:(3189,1138),
    state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4600001,
    root 0x4e9, subw 0x0, time 30763409, (961,1097), root:(3189,1138),
    state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

After Alt+Tab (i.e. Meta works not):
KeyPress event, serial 40, synthetic NO, window 0x4600001,
    root 0x4e9, subw 0x0, time 30773771, (961,1097), root:(3189,1138),
    state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4600001,
    root 0x4e9, subw 0x0, time 30773991, (961,1097), root:(3189,1138),
    state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False


Also when I kill kwin in running session and then start it again, problem is gone until I press the next time Alt+Tab.
Comment 7 Martin Flöser 2017-01-16 16:53:46 UTC
what is xev showing for "Alt+Tab"?
Comment 8 Roman Gilg 2017-01-16 17:46:37 UTC
See https://phabricator.kde.org/D4164 for my latest findings.
Comment 9 Christoph Feck 2017-01-19 17:06:29 UTC
Duplicate of bug 370920?
Comment 10 Roman Gilg 2017-01-20 19:20:07 UTC
Damn, I forgot about that one (although I created it^^). But, nope, they are independent.
Comment 11 Bartek 2017-04-09 15:38:35 UTC
I have a similar issue, Meta key stops working some time after booting, but I have a different keyboard (CM Storm QuickFire Ultimate), and I don't use Alt-Tab. Could this be related?
Comment 12 Martin Flöser 2017-07-22 12:47:15 UTC
What's the state of this? Did we fix it?
Comment 13 Roman Gilg 2017-07-24 09:15:58 UTC
Haven't noticed it for a while. So I close the bug for now.
Comment 14 tuxflo 2017-12-24 06:02:03 UTC
I think this is still relevant on the latest version of the plasmashell (KDE Neon user edition, 5.11.4).
Starting Computer, super key works fine (toggles Menu)
After a while: nothing happens when pressing the super key.
Restart kwin (killall kwin_x11 && kstart5 kwin_x11): Super key is working again.

In my tests it had nothing to do with the Alt+Tab shortcut.
Comment 15 Alexander Mentyu 2018-03-09 14:31:50 UTC
Possibly related bugs https://bugs.kde.org/show_bug.cgi?id=390858 and https://bugs.kde.org/show_bug.cgi?id=370920