On my wife's laptop, when it was on Ubuntu 22.04 on XFCE if the laptop lid was closed to put the laptop to sleep sometimes it wouldn't resume correctly and the mouse would not register clicks and the keyboard wouldn't type unless you did Control-Alt-F1 then back to X with Control-Alt-F8.

After some more digging I discovered both TLP and ACPI were trying to suspend the laptop when you closed the lid so I disabled the suspend in TLP. Then I think I found either ConsoleKit or Upower was trying the same thing.

Anyway, her laptop had to get a minor repair (power pin became loose from the board) when it came back I reformatted it, put Void Linux on it with Mate and only the services needed and it never, ever had that suspend/resume buggy input device problem again.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/pertho/statuses/114191399155482985 on your instance and quote it. (Note that quoting is not supported in Mastodon.)