ACPITOOL(1)
β¨ ACPITOOL(1) β User Commands β¨
Hiii bestie π¦ okay so today we're talking about acpitool, the manual page for it, and this one is a whole vibe. Let's get into it π
β¨ NAME β¨
okay so the name is acpitool π and it's a Linux ACPI client that lets you query or set ACPI values. literally the main character of laptop power stuff π
β¨ SYNOPSIS β¨
acpitool [ -aAbBcefFhjlmnosStTvVwWz ]
bestie this is the whole list of single-letter flags you can slap on. we'll go through each one below π«Ά
β¨ DESCRIPTION β¨
okay so acpitool is a Linux ACPI client π it just reads from /proc/acpi or /sys/class entries and then shows you the info in a format humans can actually read. no cap, it's giving clarity πΈ
it gives you info on stuff like battery status, AC adapter presence, thermal readings, and more π this is most useful on laptops with an ACPI compliant BIOS and a Linux kernel, preferably from the 2.6 series, with ACPI enabled β¨
it can also put the machine into standby, if your laptop supports it π€
if you've got a Toshiba laptop, you can set the LCD brightness level and toggle the fan on or off π
if you've got an Asus laptop, it can set the LCD brightness level, switch the LCD panel on or off, and control the mail led and wireless led π
if you've got an IBM Thinkpad laptop, it can set the LCD brightness level again, and also eject the ultrabay device π§
β¨ OPTIONS β¨
-a,--ac_adapterβ shows whether the AC adapter is plugged in π-Aβ shows the supported Asus ACPI extensions (LCD brightness level, video out routing DSDT/acpi4asus info) πΈ-bβ shows battery status info, but only for batteries that are actually available π-B,--batteryβ shows detailed battery status info for every battery entry it finds π-c,--cpuβ shows CPU info (type, speed, PM capabilities, throttling states, c-state usage, frequency scaling) β-eβ shows just about everything: more battery info, ACPI version, kernel version, CPU, . . . π-f,--fanβ shows fan status (fan info specific to Toshiba or IBM Thinkpad, if applicable) π-F xβ forces the fan on (x=1) or switches it back to auto mode (x=0). Only works on Toshiba laptops π₯. The fan gets switched off ONLY if it was forced on first, not if it was switched on automatically. Needs write access to/proc/acpi/toshiba/fanπ-h,--helpβ shows the help text π«Ά-jβ ejects the Thinkpad ultrabay device. Needs write access to/proc/acpi/ibm/bayπ§-l xβ sets the LCD brightness level tox, wherexis in the range0..7. Only works on Toshiba and IBM Thinkpad laptops. Needs write access to/proc/acpi/toshiba/lcdor/proc/acpi/ibm/brightness. Illegal values forxwill result in the value being set to either0or7π-m xβ switches the mail led on (x=1) or off (x=0). Only works on Asus laptops. Needs write access to/proc/acpi/asus/mledπ-n xβ switches the wireless led on (x=1) or off (x=0). Only works on Asus laptops. Needs write access to/proc/acpi/asus/wledπ‘-o xβ switches the LCD panel on (x=1) or off (x=0). Only works on Asus laptops. Needs write access to/proc/acpi/asus/lcdπ₯οΈ-s,--suspend to memoryβ puts the machine into sleep state S3, if possible. Needs write access to/proc/acpi/sleep(kernel 2.4.x) or/sys/power/state(kernel 2.6.x) π€-S,--suspend to disk ?β puts the machine into sleep state S4, if possible. Needs write access to/proc/acpi/sleep(kernel 2.4.x) or/sys/power/state(kernel 2.6.x) π-t,--thermalβ shows thermal zone(s) info, including trip_points π‘οΈ-T,--Toshibaβ shows supported Toshiba ACPI extensions: LCD brightness level, video out routing (which display the video chip is sending to), and fan status (on/off, forced or not) π-vβ shows more verbose output when something isn't found. Only makes sense when used together with other options π-V,--versionβ shows the acpitool version number and release date, then exits π·οΈ-wβ shows the wakeup capable devices. (Available since ACPI 20040715, so check your version!) β°-W xβ enables or disables wakeup capable devicex. Runacpitool -wto see valid numbers forx. Needs write access to/proc/acpi/wakeupπ¦-z xβ sets the Asus LCD brightness level tox, wherexis0..15. Only works on Asus laptops. Needs write access to/proc/acpi/asus/brnβ¨
β¨ REMARKS β¨
bestie, this one's serious π¨ this program absolutely requires a Linux kernel with ACPI support enabled. it will not work without it. no exceptions, no cap π
IBM Thinkpad support has been part of the Linux kernel since kernel 2.6.10 π§
don't blame me if acpitool can't suspend your laptop π there are quite some problematic laptops out there. check the acpi-bugzilla list if you don't believe me ;) π
some options, like -F, -l, -j, -s, -W and -z, need write access to some of the /proc/acpi entries. this means acpitool either has to be run as root, or administrative measures have to be taken (most likely by root) to let ordinary users write to these files. creating a group for ACPI users and setting permissions accordingly comes to mind π«
also, older laptops (< 2000) often simply don't have ACPI support. they usually only support APM π°οΈ
β¨ BUGS β¨
let me know if you think you found one π
β¨ FILES β¨
/proc/acpi/.../proc/acpi/toshiba/proc/acpi/asus/proc/acpi/ibm/sys/power/state
β¨ HOMEPAGE β¨
http://freeunix.dyndns.org:8000/site2/acpitool.shtml π
β¨ AUTHOR β¨
this program is written and maintained by David Leemans (davidleemans |at| scarlet |dot| be) and can be freely distributed under the terms of the GNU General Public License. there is ABSOLUTELY NO WARRANTY for this program π
bestie that's the whole page π«Ά AcpiTool 0.5, 24 Jul 2008, sealed with a π and a π . stay iconic, and don't let your laptop suspend you without permission π¦β¨
π¦ where this page comes from
- debian bookworm: acpitool 0.5.1-7+b1 Β· GPL-2.0-or-later
- debian trixie: acpitool 0.5.1-7+b1 Β· GPL-2.0-or-later
- ubuntu jammy: acpitool 0.5.1-7 Β· GPL-2.0-or-later
- ubuntu noble: acpitool 0.5.1-7 Β· GPL-2.0-or-later
- ubuntu resolute: acpitool 0.5.1-7build1 Β· GPL-2.0-or-later
- ubuntu stonking: acpitool 0.5.1-7build1 Β· GPL-2.0-or-later
- Copyright 2004 David Leemans (davidleemans |at| scarlet |dot| be)
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms