Prevent screen turning off when lid is closed

35,984

Solution 1

Go to gpedit.msc and setting the Select the lid switch action options for both "on battery" and "plugged in" to "Enabled" and then restart the PC.

Navigate via gpedit.msc | Computer Configuration | Administrative Templates | System | Power Management | Button Settings | set both the "Select the lid switch action" options to Enabled. Be sure to set the Lid switch action to a value of Take no action as well.

Be sure to fully power cycle and reboot the machine once you apply these settings

enter image description here enter image description here

Solution 2

Replacing the ACPI Lid device's driver as described in this answer is the only thing that has ever solved this problem for me. It's so worth the drawbacks if you're using external displays, being able to close and open the lid without fullscreen apps crashing (e.g. old games) or messing up all the windows that you've carefully laid out on multiple monitors.

Solution 3

Since your operating system is saying "Do Nothing", the issue is not likely settings within the operating system. Check your system's firmware configuration. In other words, go into BIOS setup or (U)EFI setup.

Details may vary between different computers, but look for options related to screen, power, sleep, performance, or hibernate.

Solution 4

What's the use case for this? - answers kind of depend on that.

If this is to stop the "desktop shuffle" cause by closing the lid with an external then setting the external display as the primary helps - until you unplug it while the machine is on.

If it's the actual display You need on it might be harder as this is controlled by a hardware switch (old laptops used to have a little button at the top) possibly inside the hinge on more modern machines.

Depending on model it might be in setup menu, but equally it might be a physical power supply that disconnects as well.

I don't know how but setting up an emulated external display could well provide you with some functionality as the machine will believe it still has an active display.

Share:
35,984

Related videos on Youtube

ispiro
Author by

ispiro

Updated on September 18, 2022

Comments

  • ispiro
    ispiro over 1 year

    Is there a way to prevent the screen from being turned off when a laptop's lid is closed? The power-action for closing the lid is already "do nothing".

    • Alexandr Kovalchuk
      Alexandr Kovalchuk almost 8 years
      More info please. Firstly, why do you need that. Maybe there's smoe other possibilities to do what ou want. Secondly, what's the videosystem. Intel? ATI+Intel? GTX+Intel?
    • LPChip
      LPChip almost 8 years
      That setting should be enough. If you open the lid directly after closing it, is the screen still on? You may be looking at the if you do nothing, turn off the screen setting too.
    • ispiro
      ispiro almost 8 years
      @AlexandrKovalchuk It's just Intel. I think it's built in.
    • THE JOATMON
      THE JOATMON over 7 years
      I have this same problem and it's really pissing me off. ASUS ROG Strix, NVidia 980m. It is set to "Do Nothing" but the display clearly goes off when the lid gets a couple inches from the keyboard. When you open it again, you can see the entire screen do a weird refresh. This is causing me to be unable to gamestream while lid is closed which is inconvenient.
    • THE JOATMON
      THE JOATMON over 7 years
      Windows 10 x64.
    • THE JOATMON
      THE JOATMON over 7 years
      I have disabled G-Sync, because that was my best guess. It didn't help.
    • tvdo
      tvdo over 7 years
      @Scott Sometimes, it's a hardware switch - in which case, there might not be anything you can do about it short of physically removing the sensor responsible for it. If you want to make sure it's not the OS, try while in the firmware config menu - if the screen still turns off there, it's not the OS. Or try while booting from CD/USB.
    • Thalys
      Thalys over 7 years
      In theory, you might be able to locate it and shield the magnet its picking up with an appropriate material.
    • shrmn
      shrmn over 7 years
      A laptop model would help. We can attempt to find if a hardware solution exists
  • THE JOATMON
    THE JOATMON over 7 years
    Not the OP, but placed a bounty. No related settings in the BIOS on my ASUS. :(
  • THE JOATMON
    THE JOATMON over 7 years
    Does not apply to Home versions of Windows.
  • THE JOATMON
    THE JOATMON over 7 years
    Thanks, but I'm not sure I want to install group policy editor from DeviantArt... actually, I am sure. I don't want to. :)
  • Vomit IT - Chunky Mess Style
    Vomit IT - Chunky Mess Style over 7 years
    @Scott I'm sure there's an equivalent registry setting that the above GP settings do thru the GUI then...
  • THE JOATMON
    THE JOATMON over 7 years
    Yeah, I've been digging for it.
  • Vomit IT - Chunky Mess Style
    Vomit IT - Chunky Mess Style over 7 years
    @Scott You may have already found them but Poweshell and/or WMIC command line may be useful: stackoverflow.com/questions/15455864/….... Look here too... superuser.com/questions/874849/…
  • THE JOATMON
    THE JOATMON over 7 years
    Not OP, bounty provider, but for me this is related to Gamestream. I stream to my shield from my laptop but if the lid is closed it constantly drops frames and loses connections. If I have my laptop open on the table next to me everything works fine, as soon as I close the lid it starts getting choppy and eventually disconnects. Even if I start the session with the lid closed it is still sketchy.
  • DeerSpotter
    DeerSpotter about 7 years
    how did you do the comments like that in your screenshots?
  • Vomit IT - Chunky Mess Style
    Vomit IT - Chunky Mess Style about 7 years
    @Scott I was curious if you every found a solution to this such as the regedit settings that correlate the GP setting, etc.?
  • Andreas
    Andreas about 6 years
    It's not clear to me how this is different from selecting lid action through the control panel, which I assume the OP already did? The options in the screenshot seem to just mirror those in control panel. I know I've disabled the lid completely before, by replacing the ACPI Lid device's driver with a magic arbitrary built-in Microsoft driver. Can't remember which driver it was though.
  • Vomit IT - Chunky Mess Style
    Vomit IT - Chunky Mess Style about 6 years
    Yes that is correct, sometimes there is more than one way to solve the same problem so I agree that it could be not applicable to some system but maybe it is for others but I cannot emulate every system, version, etc. of the OS to confirm but at the time this was answered for the person that asked, I assume this was the answer they liked or at least for the bounty portion I was awarded if that's why you ask. I answer and just forget all the details sometimes and just don't dwell on it. I'm not sure what driver it could be but very interesting indeed sip sipping on some si-syrup [ @Sirap ]
  • Andreas
    Andreas about 6 years
    Thanks. Since the bounty was set by @ScottBeeson and the OP didn't accept this answer, as well as explicitly stated that "do nothing" had been set already, I had to assume that it didn't answer OP's question. Still, had to ask, hoping there was something I had overlooked.
  • Andreas
    Andreas about 6 years
    Had it saved as a favorite. Here's the only method that has worked for me: superuser.com/a/380038/36197
  • Vomit IT - Chunky Mess Style
    Vomit IT - Chunky Mess Style about 6 years
    @Sirap True and very nice, I just gave that 1 for yet another approach. As long as we all continue to share detail we'll keep it moving as fast as things change.
  • Ben N
    Ben N almost 6 years
    My open-source application Policy Plus has an Element Inspector tool that shows the affected Registry values for a given policy setting (cc @ScottBeeson). It can run and work on Home editions too, assuming that those editions respect the Registry setting, which is true for most but not all policies.
  • qasdfdsaq
    qasdfdsaq almost 6 years
    I've always thought this was functionality controlled by the BIOS, given that lid close => screen off also happens before Windows is booted. But I guess it makes sense Windows can override it via ACPI seeing as ACPI allows it to do the same thing with the power button etc. TIL...
  • Vomit IT - Chunky Mess Style
    Vomit IT - Chunky Mess Style almost 6 years
    @BenN I never looked that over before... very interesting. I scanned via virustotal.com and it appears safe there. I'm going to test this on a VM at some point and test out the functionality; thanks for sharing your project.
  • G-Man Says 'Reinstate Monica'
    G-Man Says 'Reinstate Monica' almost 6 years
    So is this an answer to the actual question? It looks like you are responding to a comment.
  • Nate
    Nate over 3 years
    re reading this now I'd guess this is because of antennae in the monitor surround so it's the physical position of the lid