čtvrtek 29. ledna 2009

Battery information in command line (CLI)

# Lenovo T61

ntb:~$ acpi
Battery 1: charged, 99%

ntb:~$ apm
No APM support in kernel

ntb:~$ cat /proc/acpi/battery/BAT0/alarm
alarm: 2538 mWh

ntb:~$ cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 56160 mWh
last full capacity: 50760 mWh
battery technology: rechargeable
design voltage: 10800 mV
design capacity warning: 2538 mWh
design capacity low: 200 mWh
capacity granularity 1: 1 mWh
capacity granularity 2: 1 mWh
model number: 42T4504
serial number: 6591
battery type: LION
OEM info: SANYO

ntb:~$ cat /proc/acpi/battery/BAT0/state
present: yes
capacity state: ok
charging state: charged
present rate: 0 mW
remaining capacity: 50750 mWh
present voltage: 12480 mV

# IBM ThinkPad R50e

ibm:~$ cat /proc/acpi/battery/BAT0/alarm
alarm: 1008 mWh

ibm:~$ cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 47520 mWh
last full capacity: 20170 mWh
battery technology: rechargeable
design voltage: 10800 mV
design capacity warning: 1008 mWh
design capacity low: 200 mWh
capacity granularity 1: 1 mWh
capacity granularity 2: 1 mWh
model number: IBM-92P1071
serial number: 4410
battery type: LION
OEM info: SONY

ibm:~$ cat /proc/acpi/battery/BAT0/state
present: yes
capacity state: ok
charging state: discharging
present rate: 18901 mW
remaining capacity: 20030 mWh
present voltage: 11888 mV

Žádné komentáře: