At the moment Power Manager is in charge of what happens when the lid gets closed/opened and sometimes when switching displays power gets cut off and the computer gets suspended.
TODO:
Replace Power Manager with a custom script that adds a delay (e.g: 30s or so) to give displays some time to turn on and therefore prevent the laptop to go to sleep.
The problem was the power source of the CalDigit TS3 dock being the main power source of the laptop. The computer should be plugged to the AC even though the dock can provide power.
At the moment Power Manager is in charge of what happens when the lid gets closed/opened and sometimes when switching displays power gets cut off and the computer gets suspended.
TODO:
Docs: