Today is the first time I've experienced this issue. I had to close the laptop lid once. When I came back and opened the lid I entered my password and then unlocked my laptop, but I could not see my taskbar and my mouse pointer was missing. After 2 seconds my laptop locked itself and I had to go through the process of entering my password again. But the same thing occurred. The laptop locked itself .My laptop cycled through this process of me unlocking and it locking itself about 5 or 6 times (I am not sure how many times I did this because I did not count). Luckily I was able to unlock it properly after going through that cycle many times this time the taskbar and the mouse pointer was visible. I took my chances and closed the laptop lid again to make sure that this problem was not just a problem that occurs once or rarely. But the second time I did it I only had to cycle through the process about 3 times.
Here is the output of inxi if you need
CPU: Dual Core Intel Core2 Duo T6600 (-MCP-)
speed/min/max: 1197/1200/2200 MHz Kernel: 5.11.0-27-generic x86_64
Up: 4h 03m Mem: 1803.5/3803.7 MiB (47.4%) Storage: 298.09 GiB (4.4% used)
Procs: 203 Shell: bash 5.0.17 inxi: 3.0.38
I will be grateful for any help you give me and sorry if you feel like my English is bad English is not my native language but my school teaches me English. Hope you will have a great day.