FG
💻 Software

Is there any way to execute something when closing the laptop's lid?

Fresh5 days ago
Mar 15, 202613275 views
Confidence Score0%
0%

Problem

I'm wondering if there is any way to execute a program, run some command or anything else when closing the laptop's lid. My question aims to be generic, both for Windows and Linux. Something useful should be locking the laptop when closing the lid (Win + L in windows), or running expensive processe…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there any way to execute something when closing the laptop's lid?

Low Risk

In Windows 7, the only options you have for performing actions when you close the lid are in Power Options in the Control Panel. Available actions are: Do nothing Sleep Hibernate Shut down You cannot create custom actions here to assign to the lid c…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment