IIRC chvt is a privileged command, which makes sense (if an unprivileged user could execute this command they could effectively brick the computer for a local user).
That said, my understanding is that modern DE’s are given a lot of access, so presumably chvt is allowed (and in this case, is required because as others mentioned, password is required). So the only other option is to fail unlocked, which is all kinds of Bad.
If those steps (with no thinking or decision involved) fix the issue, then why the hell won’t the system execute those commands automatically?
I’ve had this happen to me a few times after waking up from sleep, I believe. Those steps did fix the issue for me.
They require you to enter the user’s password, so it still functions as a lock
IIRC
chvt
is a privileged command, which makes sense (if an unprivileged user could execute this command they could effectively brick the computer for a local user).That said, my understanding is that modern DE’s are given a lot of access, so presumably
chvt
is allowed (and in this case, is required because as others mentioned, password is required). So the only other option is to fail unlocked, which is all kinds of Bad.