Good afternoon, I am using Ubuntu 24.04 and when I lock the screen with Ctrl + L, it simply says that my password is incorrect even though it isn’t. I have already updated KDE to the latest version, and it still doesn’t work at all.
If your password is indeed correct, but it is not accepted, there are a number of things you can do, but at first, it's worth double checking the password. Sometimes an inadvertent Caps Lock on the keyboard may be set which could render an incorrect password. That's tripped me up in the past.
Test the password on some other app to see that it is indeed correct. For example, in a terminal you could use the password in a sudo command which will, by default, ask for your password if that hasn't been configured otherwise. For example:
Test the password in a virtual console by switching to one pressing the keys: ctrl+alt+F3, or whichever F function key is available, and logging in with the password to see if it works.
If the password is indeed correct, then one can just kill the kde screen locker. Not having used kde for some time now, I can't give an exact command, but you can find out the process number (PID) with a ps command, something like:
Code:
ps aux | grep kdescreenlock
ps aux | grep kde
Once the pid is identified, you can kill it in a virtual console, or a terminal with something like:
where <PID> is the process ID number, without the pointy brackets. Then check the ps command to see that it no longer runs. If it persists, one can try:
kill -9 <PID>.
If there's a bug in the screenlocker, it can be disabled in the configurations. If the same issue recurs on a full cold reboot, then there may be a bug to simply avoid by using another screenlock or not using one.