I've got a weird annoyance on one of my #Linux laptops, and maybe someone knows something I don't... (details continue in self replies)
When I shut the lid, the laptop goes to sleep. Sometimes, when I open it, and it wakes up, the keyboard doesn't work at all. I can fix this by closing the lid, letting it sleep again, and then opening it. Usually that works on the first reopen, occasionally it takes 2 or 3, and on very rare occasion, I have to force restart or ssh in and reboot.
It didn't always do this. I'd say it's been about a year since this started. There seems to be no pattern. I can go a week with my usual habits of closing the lid and coming back without it happening, and another week it might be daily. The only noticable pattern is that closing the lid, unplugging the laptop lid closed, and later plugging it in having not opened it, and then leaving it for hours before finally opening the lid to resume has a much higher chance of unresponsive keyboard.

Model: Lenovo ThinkPad 11e (20D9-0020US).
Distro: Manjaro
Kernel: Linux 6.19.2-1-MANJARO (though several kernel updates have occured with no change)
DE: KDE Plasma
Currently still using X11, but this happens under Wayland as well. However, in Wayland, fixing it is flakier. Then again, this laptop is generally much flakier with Wayland, which is why I stuck to X11.

I can't remember if plugging in an external while the internal KB is unresponsive works, I don't often have one with me.

Touchpad and volume keys continue to work when the keyboard is unresponsive. I don't know if the hotkeys are getting through in that state as they normally don't do their associated functions while the lock screen is up.

It just occured to me I haven't thought to try disabling the lock screen to see if this still happens, but I'm in an environment where I really shouldn't leave a computer unlocked.

Oh, and dropping to tty doesn't work in that state either. However, ssh does, and I can clearly see all the other things the machine is doing continue normally. I just can't unlock it due to the keyboard not responding. I HAVE tried enabling OSK and can unlock by tediously entering the password with the trackpad, but they keyboard remains unresponsive after unlocking. I probably should leave the OSK available, in case it happens when I have stuff I need to save.

I'd say on average, it occurs like 15% of the time, though when it's being crankier, it can happen as often as 50% of the time.

Notably, I haven't yet had it happen away from home. I don't take it out much though, so that could just be coincidence. The only things different would be offline (though I rarely think to actually turn the wifi off), running on battery - which my settings change it to the power save power profile.

Oh, and in case it matters, this laptop is not currently using full disk encryption, but does have an encrypted partition.

The only mods done to this laptop was the RAM was doubled to 8GB, and the HDD was replaced with an SSD. Standard stuff. SSD is a super cheapy, but there are no signs of any issue with the SSD.
(GOD I love super cheap SSD when the data isn't critical!)

@hellomiakoda I am a rank noob, but I did just hear that Manjaro has been getting buggier as the years go by due to internal mismanagement. This *could* be a result of that.

Just a thought.