A monitor, keyboard and mouse can make a docked laptop feel like a desktop until closing the lid suspends the whole machine. On Windows, the lid is a power event. A working display cable cannot keep the session awake if the selected lid action sends the computer to sleep.

Change the desk condition only

Begin with the lid open, the charger attached and the external desktop visible. Check that the external keyboard and mouse both work. In Windows Power Options, open the settings for what closing the lid does. Read the two columns carefully. The plugged-in choice applies at the desk and the on-battery choice applies after you unplug. Dell’s closed-lid docking instructions walk through this setup. Microsoft explains the available power states.

For a desk where the computer should continue running, choose the appropriate plugged-in lid action, such as Do nothing, if your device and workplace settings allow it. Leave the on-battery choice suited to travel. Save any work and test with an empty document. Close the lid, wait briefly, and type a few characters on the external keyboard. Check that the monitor still shows the session.

Test the handoff to the bag

When you leave, explicitly put the laptop to sleep, hibernate or shut it down as appropriate. Unplugging a closed laptop that you deliberately kept awake at the desk is a different action from closing an open laptop while it is already on battery. Check its state before packing.

If the external picture disappears while the computer itself stays awake, investigate the selected display mode and dock connection. The lid-policy adjustment solves a sleep transition. It cannot add external display support to a port or dock.