When switching vt terminals from X, keyboard partially locks up

When switching between vt terminals from X using Ctrl-Alt-F#, the keyboard partially locks up. Ctrl-Alt-F# and arrow keys still work, but terminal console input can't be typed in, unless, I switch from another terminal console first with Ctrl-Alt-F#. This has been an issue since from previous FreeBSD versions for a few years. PR 288337 is the bug report for this.

Thread keyboard-does-not-work-after-resume-in-hp-pavilion-notebook-15.87967 from about 2 years ago has a similar issue: it was caused by a different means, but has the same result of the keyboard partially locking up and behaving in the same way.
 
It turns out, learned from the bug report, that pressing the Left Alt key fixes the keyboard on the terminal console, so input can be made. That explains why switching from another terminal console made it work most of the time, because the Left Alt key was used to do that when it caused the terminal console to work. Still a bug, but this information makes it much better.
 
Someone clever discovered in PR 288337 that if you set sysctl kern.vt.enable_altgr=0 this problem goes away. It fixed it for me in one instance, now I just need to see if this fixes the mysterious issue of no keyboard input after my laptop wakes
 
I'm encountering like this, too, but not 100% reproducible.

As I cannot provide enough info for certain developers, and also my issue dissappears when switching to another non-X vty and back, not filed PR.
Even if the first attempt doesn't help, 2nd or 3rd attempt helped.

And tried the sysctl, but not always helped for me, unfortunately (reproduced once when it is set to 0). But switching between non-X vty and back still helped.
 
Back
Top