2

Is it possible to make a laptop sleep when the lid is closed UNLESS there is an external monitor that is plugged in? Perhaps a registry hack or third party software?

The control panel power settings seem to allow for closing the computer's lid to have different effects when the computer is on battery power vs. plugged in, but there is no option to have the computer sleep when the lid is closed UNLESS it is attached to an external monitor.

When I am at my desk, I use my HDMI monitor and I like to have my laptop shut and tucked away in a corner. Whenever I am not at my desk and I instinctively shut my computer, it's still running.

I imagine this is a reasonably common problem and there is an easy solution, but I've been unable to find it so far.

Any suggestions?

7
  • 1
    I personally don't think it's a "reasonably common problem" being an individual that uses laptop+extra monitor (and having 3+ years of computer repair and coding experience). The main issue being the fact that you prefer/expect the computer to be "tucked" away while still utilizing. The only chance you stand is some crazy custom powercfg settings. >> technet.microsoft.com/en-us/library/cc748940(v=ws.10).aspx << that is, if it's even available. If not, in tandem with some scheduled task? ie:taskschd.msc
    – user431052
    Commented Jun 23, 2015 at 3:15
  • Why not set the power button as sleep? Hit the button, close lid.
    – Papa
    Commented Jun 23, 2015 at 3:16
  • @Papa, the OP wants what you suggest, except if connected to external monitor.
    – user431052
    Commented Jun 23, 2015 at 3:19
  • @BiTinerary: I do think it's a reasonably common problem, and is particularly common in corporations that use laptops with docking stations.
    – qasdfdsaq
    Commented Jun 23, 2015 at 9:54
  • @qasdfdsaq: And you would be wrong. Most corporations use one or the other of the "Big ones". I admit being skewed as a former DELL DCSE, but it's still valid point: you order from supplier who offers you best deal on support. Which includes rollout packages and lots of business functionality and support for docking. For lack of better examples: most big firms were using Precision/Optiplex workstations for desktops, latitude for laptops. Which are good business designs and well equipped as such, but not really good for home use. And business users sign "terms of use" or similar...
    – AcePL
    Commented Jun 23, 2015 at 16:44

2 Answers 2

1

What I'd do in your place:

  1. Use scripts or shortcuts to switch between active power profiles
  2. Create custom power profile which doesn't sleep when lid closed
  3. Use script to detect HDMI state and run switching scripts accordingly.

All is certainly doable. Not easy, but doable.

Personal advice, though - I wouldn't. sleeping with lid closed is not perfect and too many times I pulled out a laptop from a bag fully powered on. And HOT. I set up options so hitting power button sends it to sleep, wait it's off and only then I'm packing. I don't want to fry my machine...

4
  • Absolutely legit concern. It could very easily go from minor convenience too utter disaster. Additionally as you mention, it wouldn't be easy. OP would have to learn specific powercfg flags to designate the power profiles on top of putting together (what I would estimate to be in python) a 75-100 lines of code. So, @qasdfdsaq be my guest if it's in such high demand. Also consider the fact that the "corps" you mention, simply aren't utilizing better alternatives or good technical procedure.
    – user431052
    Commented Jun 23, 2015 at 12:30
  • My solution has so many possible fail points and/or admin privileges requirements that i doubt any company would agree to such mod. So a moot point, IMO.
    – AcePL
    Commented Jun 23, 2015 at 16:49
  • @AcePL I appreciate the idea with the scripts. The bag situation is exactly what happened to me, and I realized that I needed a more responsible solution.
    – Cal
    Commented Jun 29, 2015 at 3:27
  • @CalebC: Unfortunately I can't see one. And there are so many fail points in my solution that I really discourage it. For example: for last two days power saving options were working worse than a lame duck. No screen dimming, no sleep option in power options, windows working weird... All because of some error within Windows Update. Had to reboot and only then all was fine once again. Rest assured script would fail ATP. So again: do you really want to chance it?
    – AcePL
    Commented Jun 30, 2015 at 23:55
0

How to Turn Off Laptop Screen When Using HDMI Windows 8.1: The windows-key (bottom left next to alt key) + p I have an HP pavilion (I think) and a screen pops out with all the options. Not sure what happens at reboot. I'm assuming you would need to repeat after reboot (But I'm not trying to find my way back here after test :)

1
  • 1
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Mar 21, 2022 at 4:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .