How can I ensure my computer does not enter sleep mode while using an external monitor with this dock?

To prevent your computer entering sleep mode, open Control Panel, set power settings to no action if the lid is closed and disable sleep after short periods of inactivity (Page 7).

From the official HP Laserjet Pro Mfp M130 manual, page 7

Have a follow-up question?

Answers from the official manual.

Common questions