LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apm_available

Check for Advanced Power Management support

TLDR

Check if APM is available
$ apm_available && echo "APM supported"
copy
Use in script conditionals
$ if apm_available; then apm -l; fi
copy

SYNOPSIS

apm_available

DESCRIPTION

apm_available tests whether Advanced Power Management (APM) support is available on the current system by checking for the /proc/apm file. It returns exit status 0 if APM is supported and 1 if not.This utility is useful in scripts that need to choose between APM and ACPI for power management queries.

PARAMETERS

This command takes no arguments.

CAVEATS

APM is deprecated on modern systems in favor of ACPI. Most modern hardware only supports ACPI. The tool checks for APM BIOS availability, not functionality.

HISTORY

apm_available is part of the apmd package from the 1990s and early 2000s, when APM was the standard power management interface for PCs.

SEE ALSO

apm(1), acpi_available(1), acpi(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid