domingo, 15 de junho de 2014

Detalhes sobre estado da bateria em notebook com linux

Caso você queira saber como está a bateria do seu notebook, você pode usar o seguinte comando:

# acpi -i

O resultado é algo mais ou menos assim:

# acpi -i
Battery 0: Unknown, 98%
Battery 0: design capacity 4400 mAh, last full capacity 2214 mAh = 50%


Podemos ver que no meu caso a bateria foi projetada para 4400 mAh de capacidade e ultimamente tem se carregado no máximo a 2214 mAh, em torno de 50% do projeto original do equipamento. Ou seja, minha bateria já está viciada(ando)! Com o tempo acontece, não adianta... A menos que tu tenha muita neurose na gestão da bateria, e eu não tive, acontece! o.O

No mais, o help do acpi lhe traz mais opções sobre o comando que é bem interessante, vejamos:

# acpi -h
Usage: acpi [OPTION]...
Shows information from the /proc filesystem, such as battery status or
thermal information.

  -b, --battery            battery information
  -i, --details            show additional details if available:
                             - battery capacity information
                             - temperature trip points
  -a, --ac-adapter         ac adapter information
  -t, --thermal            thermal information
  -c, --cooling            cooling information
  -V, --everything         show every device, overrides above options
  -s, --show-empty         show non-operational devices
  -f, --fahrenheit         use fahrenheit as the temperature unit
  -k, --kelvin             use kelvin as the temperature unit
  -d, --directory    path to ACPI info (/sys/class resp. /proc/acpi)
  -p, --proc               use old proc interface instead of new sys interface
  -h, --help               display this help and exit
  -v, --version            output version information and exit



Nenhum comentário:

Postar um comentário