My computer:
- Debian 8.3
- Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
- Dell Latitude 5420
I'm using XMonad window manager, some applets (in stalonetray) from mate desktop (nm-applet, power-manager applet) and i3lock for locking the screen.
Problem:
Usually everything works fine when resuming from sleep/hibernation/suspend, but sometimes after resuming from sleep, I enter the password which unlock the screen (i3lock), desktop content appears and I can move the mouse (both external USB and internal touchpad and trackpoint) - but keyboard (both laptop's builtin and external USB) doesn't work.
When this happens:
- the keyboard itself works - the CAPSLOCK/NUMLOCK leds reacts to pressing CapsLock or NumLock keys
- I can switch to console (CTRL-ALT-F1) and keyboard works in console and I can go back to X11 using (ALT-F7)
- but in X11, nothing reacts to keypresses
- pulling keyboard's USB connector out and back in doesn't help
- when I suspend the laptop again (from console) and resume, the
mate's screen locker appears but the keyboard still doesn't work.
What I tried:
My only solution is to manually kill mate-session, mate-power-manager or mate-screensaver from console and then the keyboard works in X11 again.
I think that perhaps mate-power-manager tries to lock the screen after I unlock it with i3lock, but somehow doesn't display itself..
The question:
What can I do to prevent mate-* components from locking the screen or blocking the keyboard (assuming I'm correct)?
DISPLAY=:0 xinput list, is the output different in normal operation and when you have the problem? Still from a text console, runDISPLAY=:0 xevand switch back to X then type a few keys, doesxevreportKeyPressevents?mate-power-manager- which is not the best solution, but I can live without it. I do not think it's a i8042 problem - but if it will happen again, I could try it. Thanks.