Is there a way to keep the computer from going to sleep mode so I can technically use it as a desktop? I mean, having the laptop hooked to an external keyboard and monitor but with out the computer going to sleep mode when I bring the laptop's screen down. And can this be accomplished with out a docking station.?

Laptop is an hp G62

Dani AI

Generated

As noted, the OS can be set to keep the machine running with the lid closed, so an HP G62 (or similar) can be used as a desktop without a docking station. Below are practical, OS-specific steps, plus troubleshooting and safety notes that add to the answers already posted.

Windows (7/8/10/11): use the projection shortcut (Win+P) to pick the external screen (or “Second screen only”) and make the external display the primary display in Display settings (right‑click desktop → Display settings → Make this my main display). To stop sleep on lid close, set the lid action in Power Options (Control Panel → Hardware and Sound → Power Options → Choose what closing the lid does) — set “When I close the lid” to “Do nothing” for Plugged in (recommended). If the external monitor goes black after closing the lid: update graphics drivers, try a different video port (HDMI vs VGA), set the external as the main display, and check for any HP/OEM power utilities or BIOS options that might override Windows.

macOS: MacBooks support “clamshell” mode. With the power adapter connected and an external display plus keyboard/mouse attached (USB or paired Bluetooth that can wake the Mac), closing the lid will keep the system running on the external screen.

Linux (systemd): edit /etc/systemd/logind.conf and add/modify:

[Login]
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

then run:

sudo systemctl restart systemd-logind

Also check desktop power-manager settings (GNOME/KDE) which can override systemd.

Notes & cautions: keep “do nothing” only for AC power to avoid battery drain and possible overheating. Closing the lid can reduce airflow on many laptops—monitor CPU temperatures under load and consider a stand or cooling pad. If settings don’t persist, verify BIOS/UEFI and any HP power-management software. For long-term desktop use without a dock, a powered USB hub or simple USB dock can provide extra ports without the expense of a full docking station.

Recommended Answers

All 2 Replies

You can change your power settings so that it doesn't sleep when closing the lid. I usually set it that way for when it is plugged into wall power, but you can do it for when it is on battery as well.

You can change your power settings so that it doesn't sleep when closing the lid. I usually set it that way for when it is plugged into wall power, but you can do it for when it is on battery as well.

Awesome, I wouldn't have thought of the settings.

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.