In my window manager I use keybindings with Alt which call
xdotool command with
--clearmodifiers flag. I set
--delay 4 flag, which is low enough, but the problem is that sometimes I release Alt key too rarely, before the chain of commands finishes. In this case,
--clearmodifiers flag calls
keydown on Alt, and Alt gets stuck, and I cannot perform any command in display mode. It happens rarely but I wonder what’d be the pill for it when it does?
I can log into the terminal mode by
Crtl+Alt+F2, but I have no idea on what to do next. Tried to reload my keyboard by
rmmod atkbd ; modprobe atkbd reset=1
And it changes nothing.
Tried to reload my wm, and the terminal says:
Can't access display mode
(or something like that)
Same with trying to invoke xdotool in terminal mode.
The solution seems to be creating a specific keybinding that sends
xdotool keydown command on Alt in display mode, but this seems ugly.
I’d like to know, is there any way to reset such failed xdotool command result from the terminal mode without rebooting?