[PLUG] Laptop battery time remaining with acpi, not apm

Rich Shepard rshepard at appl-ecosys.com
Wed Oct 29 14:08:02 UTC 2003


  On my older portable running apm, I could 'cat /proc/apm' to see the
operating time remaining on the battery. On the new laptop, when I use 'less
/proc/acpi/battery/BAT1/info' I see milliwatt hours, not hours and minutes.

  Is there a way to find the remaining time -- in hours:minutes -- from
acpi?

TIA,

Rich

Dr. Richard B. Shepard, President

                       Applied Ecosystem Services, Inc. (TM)
            2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
                         http://www.appl-ecosys.com/




More information about the PLUG mailing list