..bits & bytes teleported

Thursday Jul 10, 2008

You can obtain ACPI (Advanced Configuration & Power Interface) information on your Linux notebook using a utility by the same name- 'acpi'.

 Here are some demos:

  1. $ acpi
         Battery 1: charged, 100%
    
  2. $ acpi -a
         Battery 1: charged, 100%
      AC Adapter 1: on-line
    
  3. $ acpi -t
         Battery 1: charged, 100%
         Thermal 1: ok, 54.0 degrees C
    
  4. r$ acpi -V
         Battery 1: charged, 100%
         Thermal 1: ok, 54.0 degrees C
      AC Adapter 1: on-line
    
'acpi' utility obtains the information from the files in the '/proc/acpi' directory which contain sub-directories and files containing all information related to temperature, etc.
dr-xr-xr-x 3 root root 0 2008-07-10 20:26 ac_adapter
dr-xr-xr-x 2 root root 0 2008-07-10 20:26 acer
-rw-r--r-- 1 root root 0 2008-07-10 20:26 alarm
dr-xr-xr-x 3 root root 0 2008-07-10 20:26 battery
dr-xr-xr-x 5 root root 0 2008-07-10 20:26 button
-r-------- 1 root root 0 2008-07-10 20:26 dsdt
dr-xr-xr-x 3 root root 0 2008-07-10 20:26 embedded_controller
-r-------- 1 root root 0 2008-07-10 19:50 event
-r-------- 1 root root 0 2008-07-10 20:26 fadt
dr-xr-xr-x 2 root root 0 2008-07-10 20:26 fan
-r--r--r-- 1 root root 0 2008-07-10 20:26 info
dr-xr-xr-x 2 root root 0 2008-07-10 20:26 power_resource
dr-xr-xr-x 3 root root 0 2008-07-10 20:26 processor
-rw-r--r-- 1 root root 0 2008-07-10 20:26 sleep
dr-xr-xr-x 3 root root 0 2008-07-10 20:26 thermal_zone
dr-xr-xr-x 3 root root 0 2008-07-10 20:26 video
-rw-r--r-- 1 root root 0 2008-07-10 20:26 wakeup

http://www.lesswatts.org/projects/index.php is currently working on the Linux ACPI project
Comments:

Post a Comment:
Comments are closed for this entry.