LinuxCommandLibrary

lid

Display hardware identification information

TLDR

View documentation for the libuser tool

$ tldr lid.libuser
copy

View documentation for the idutils tool
$ tldr lid.idutils
copy

SYNOPSIS


No standard 'lid' command syntax exists.

DESCRIPTION

The command 'lid' is not recognized as a standard Linux command-line utility in typical distributions.

While there isn't a standalone 'lid' command, the term 'lid' in Linux contexts commonly refers to laptop lid events. These events (opening or closing the lid) are primarily handled by the system's ACPI (Advanced Configuration and Power Interface) daemon, such as acpid, or by modern init systems like systemd-logind.

These services detect hardware events and can trigger predefined actions, like suspending the system, locking the screen, or turning off the display, depending on system configuration.
Users interact with these lid-related behaviors through system settings or by configuring event handlers for acpid.

CAVEATS

The 'lid' command does not exist as a built-in utility or common package. Any script or alias named 'lid' would be custom to a specific system.
Information about laptop lid events and their handling should be sought through documentation for acpid, systemd-logind, or desktop environment power management settings.

LID EVENT HANDLING

Linux systems manage laptop lid events via ACPI (Advanced Configuration and Power Interface). When a lid state changes, an ACPI event is generated. This event is then processed by a daemon like acpid or by systemd-logind, which takes appropriate action based on system policies or user configurations. Common actions include suspending the system, turning off the display, or locking the session.

HISTORY

The concept of handling laptop lid events has been integral to Linux power management since the widespread adoption of ACPI. However, a dedicated 'lid' command was never developed, with functionality instead integrated into daemons and system services like acpid (early 2000s) and later systemd-logind (from around 2010 onwards) for robust and centralized power management.

SEE ALSO

acpid(8), systemd-logind(8), pm-suspend(8)

Copied to clipboard