I too have this problem on multiple computers. Laptops behave the worst.
I tried a temporary work around:
in .bashrc I added:
alias text='systemctl isolate multi-user.target'
alias graphical='systemctl isolate graphical.target'
I then can type text to get to the virtual terminals and
type graphical to get back to the graphical screen.
I do not do alt-F1 to return and that still messes up.
I too have this problem on multiple computers. Laptops behave the worst. 'systemctl isolate graphical.target'
I tried a temporary work around:
in .bashrc I added:
alias text='systemctl isolate multi-user.target'
alias graphical=
I then can type text to get to the virtual terminals and
type graphical to get back to the graphical screen.
I do not do alt-F1 to return and that still messes up.