edit: As can be seen from the answer, this actually had nothing to do with standby or hibernation, but rather that it correlated with me often closing the app window (which triggered the bug) before going into standby most of the time.
I have seen multiple people report this in various places on the net, without any solution, but thought I would add mine in any case:
Very often, after returning to the computer after some time (when it has gone into standby), I notice that some shortcuts have stopped working. This does not only happen in the terminal, but also in Chrome (Ctrl-L, Ctrl-R, F5 all stops working). It also does not affect all ctrl-shortcuts: Ctrl-C is still working for instance (thank God!).
Is there any way of debugging this? Trying out xev
earlier hasn't gotten me anywhere, but perhaps there is some way of finding out what is preventing my keypresses from reaching the programs?
edit: I can see something weird happening with Ctrl-R
Something is grabbing the keyboard shortcut!
Output captured from xev
KeyPress event, serial 37, synthetic NO, window 0x5200001,
root 0xee, subw 0x0, time 24547557, (-130,529), root:(0,633),
state 0x10, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 37, synthetic NO, window 0x5200001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x5200001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967278 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
KeyRelease event, serial 37, synthetic NO, window 0x5200001,
root 0xee, subw 0x0, time 24548550, (-130,529), root:(0,633),
state 0x14, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Compare this to Ctrl-C
we can easily see four logical events happening here
KeyPress event, serial 37, synthetic NO, window 0x5200001,
root 0xee, subw 0x0, time 24724066, (572,852), root:(702,956),
state 0x10, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x5200001,
root 0xee, subw 0x0, time 24724818, (572,852), root:(702,956),
state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
XLookupString gives 1 bytes: (03) ""
XmbLookupString gives 1 bytes: (03) ""
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x5200001,
root 0xee, subw 0x0, time 24724966, (572,852), root:(702,956),
state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
XLookupString gives 1 bytes: (03) ""
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x5200001,
root 0xee, subw 0x0, time 24725339, (572,852), root:(702,956),
state 0x14, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
man pm-action
. "pm" stands for Power Management. The scripts described inman pm-action
run every time your system does a Freeze, Suspend, Thaw or Resume. – waltinator Jun 15 '17 at 14:22And that is just to find the culprit ...
– oligofren Jun 16 '17 at 09:50