Ubuntubattery laptop battery Information Query

Source: Internet
Author: User
Now X201 is used, and Ubuntu10.04 is installed. I changed the 9-core Battery two days ago. I want to see if there is no charge and the percentage of the charge cannot be seen. Later I found the following method, which is worth staying, slave :-) in ubuntu, all battery information is recorded in the file in the/proc/acpi/battery/BAT0/folder, as if the notebook was BAT0, because most of them only have one battery, this folder contains three alarminfostate files. Enter c in the terminal.

Now X201 is used, and Ubuntu 10.04 is installed. I changed the 9-core Battery two days ago. I want to see if there is no charge and the percentage of the charge cannot be seen. Later I found the following method, it is worth staying, standby :-),
In ubuntu, all battery-related information is recorded in the file in the/proc/acpi/battery/BAT0/folder. It seems that all the laptops are BAT0, because most of them only have one battery, this folder contains three alarm info state files. Enter the following files in the terminal:

Cat/proc/acpi/battery/BAT0/info
Present: yes
Design capacity: 8424 mAh
Last full capacity: 8492 mAh
Battery technology: rechargeable
Design voltage: 10800
Design capacity warning: 424 mAh
Design capacity low: 18 mAh
Cycle count: 0
Capacity granularity 1: 1 mAh
Capacity granularity 2: 1 mAh
Model number: 42T4649
Serial number: 261
Battery type: LION
OEM info: SANYO

Cat/proc/acpi/battery/BAT0/state
Present: yes
Capacity state: OK
Charging state: discharging
Present rate: 1555 mA
Remaining capacity: 1631 mAh
Present voltage: 11094 mV

Cat/proc/acpi/battery/BAT0/alarm
Alarm: 424 mAh

Take a look at the details, better than Thinkpad's own, ^ _ ^. In addition, we found a graphical interface, as shown below:
Alt + F2, enter "gnome-power-statistics"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.