intel_lid
Control laptop lid switch behavior for Intel GPUs
SYNOPSIS
intel_lid [options] [action]
PARAMETERS
-h, --help
Print usage information
-s, --status
Query current lid state (open/closed)
-c, --close
Emit synthetic lid close event
-o, --open
Emit synthetic lid open event
-d SECONDS, --debounce=SECONDS
Configure lid debounce interval
-a ACTION, --action=ACTION
Set lid event action (suspend/hibernate/ignore/lock)
-v, --verbose
Enable detailed output
DESCRIPTION
intel_lid is a niche utility for managing lid switch events on Intel-based laptops in Linux environments. It allows users to query the lid state, simulate open/close events, and customize responses like suspend or hibernate. Primarily used for troubleshooting ACPI lid detection issues common on Intel hardware where BIOS quirks cause unreliable event triggering.
The tool interfaces directly with the kernel's input subsystem (/sys/class/input) and Intel-specific ACPI methods via /proc/acpi/button/lid. This bypasses standard handlers like systemd-logind for precise control, such as setting debounce delays to ignore brief closures from pressure or vibrations. Root privileges are typically required for modifications.
Common scenarios include embedded systems, custom power scripts, or debugging suspend/resume problems. It proves invaluable when default lid handling fails, enabling actions like screen blanking without full suspend. Note that availability varies; it's often part of Intel's power management packages or OEM tools, not core distro utils.
CAVEATS
Intel hardware only; root often required. Not in standard repos—install via OEM/Intel packages. Conflicts possible with systemd-logind. Experimental; test thoroughly to avoid boot loops.
EXAMPLE
sudo intel_lid -s
Lid state: closed
sudo intel_lid -a suspend -d 2
Sets 2-second debounce, suspend on close.
DEBUG TIP
Pair with acpi_listen to verify events: lid close appears as button/lid LID0 0x00.
HISTORY
Developed circa 2015-2018 by Intel engineers for firmware validation and power optimization in Linux. Evolved from ACPI debugging scripts; appeared in Intel NUC tools and select OEM images like Dell/HP Intel laptops.
SEE ALSO
acpi_listen(1), loginctl(1), systemd-logind(8)


