This is a solution if the PC, local or remote console, or both, have power-management capabilities.
If the PC, local or remote console, or both, have power-management capabilities, disable this function. Most PCs, and especially notebooks, reset the communications ports when invoking power management after the specified time. This can potentially disconnect the established connection. Therefore, a local console that goes into power saver mode might disconnect the server and disconnect an active remote console.