Penguin

/proc/acpi, or, What’s going on?

There are all kinds of interesting information inside the files in that directroy. F.ex.:

  • the state of the laptop lid in /proc/acpi/button/lid/LID/state
  • the state of the battery in /proc/acpi/battery/BAT1/state
  • and more.

Feel free to explore.

The acpi tool

This is a handy little utility which will tell you things like how much charge is left in your laptop battery and how long until it is depleted
$ acpi
Battery 1: discharging, 96%, 02:34:16 remaining

In Debian/Ubuntu it’s in the acpi Package.