Windows disconnects idle devices if power-saving options are enabled. This could be the reason why your mouse or keyboard keeps disconnecting. Here is how you can turn off power-saving options: ...
These are the things you can do to fix the situation where your Windows 11/10 computer does not recognize the Monitor, Keyboard, or Mouse: If you are setting up your computer but your CPU cannot ...