Answer the question
In order to leave comments, you need to log in
How to prevent the laptop from falling asleep when the lid is closed if a second monitor is connected?
And if the second monitor is not connected, then it goes into sleep mode.
OS Windows 10
Answer the question
In order to leave comments, you need to log in
We create two power plans - for one and for two monitors, where we configure the behavior of the laptop lid and so on. Then, in the command line, we execute the command:
It will give a list of plans with their GUIDs. Next , download nnCron , set it as an application, add it to autorun. Add the following task to the crontab (indicating the GUID of your plans there):
#( Задача_103415092018
SingleInstance
WINAPI: GetSystemMetrics user32.dll
0 VALUE LastMonitorsCount
Action:
BEGIN
80 GetSystemMetrics
DUP LastMonitorsCount <> IF
DUP 1 = IF
\ Здесь указываем GUID плана для одного монитора
START-APP: powercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e
ELSE
\ Здесь указываем GUID плана для двух и более мониторов
START-APP: powercfg /setactive 238c9fa8-0aad-41ed-83f4-97be242c8f20
THEN
TO LastMonitorsCount
THEN DROP
5000 PAUSE
FALSE UNTIL
)#
That Win10 that Win 7. The essence is the same. Works in terms of power supply the same way.
I'll show you the example of Win 7.
And so:
The action when closing the lid must be disabled in the power settings, in the same place the action when the power button is pressed is configured, in short, the lid is like a power button, ACPI action.
And what the comrade wrote above - it turned off the sleep by timeout.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question