FreeBSD Display Laptop Battery Charge Status

How do I find out out details about my FreeBSD based Laptop battery status and other information from command prompt? Howto do I check battery charge status at shell prompt?

You need to use the acpiconf command which allows the user control of the ACPI power management functions. The -i options will give you design information about the specified battery.

Displaying FreeBSD Laptop Battery Charge Status

The syntax is:

acpiconf -i NUMBER-HERE

Here is sample output from my laptop running on FreeBSD 9 amd64:
$ acpiconf -i 0
Here is what I see:

Design capacity:	8400 mAh
Last full capacity:	5695 mAh
Technology:		secondary (rechargeable)
Design voltage:		11100 mV
Capacity (warn):	840 mAh
Capacity (low):		254 mAh
Low/warn granularity:	84 mAh
Warn/full granularity:	84 mAh
Model number:		DELL 3M19002
Serial number:		2874
Type:			LION
OEM info:		Samsung SDI
State:			high 
Remaining capacity:	15%
Remaining time:		unknown
Present rate:		1 mA (11 mW)
Present voltage:	11248 mV

How to show FreeBSD laptop battery charge status

As a root user, enter:
sysctl -a | grep -i battery

hw.acpi.battery.info_expire: 5
hw.acpi.battery.units: 2
hw.acpi.battery.state: 0
hw.acpi.battery.rate: 0
hw.acpi.battery.time: -1 100
dev.battery.1.%parent: acpi0
dev.battery.1.%pnpinfo: _HID=PNP0C0A _UID=2 _CID=none
dev.battery.1.%location: handle=\_SB_.BAT1
dev.battery.1.%driver: battery
dev.battery.1.%desc: ACPI Control Method Battery
dev.battery.0.%parent: acpi0
dev.battery.0.%pnpinfo: _HID=PNP0C0A _UID=1 _CID=none
dev.battery.0.%location: handle=\_SB_.BAT0
dev.battery.0.%driver: battery
dev.battery.0.%desc: ACPI Control Method Battery

Gnome GUI tool – gnome-power-statistics

The gnome-power-statistics is the gui program for the gnome power management infrastructure. It allows users to visualize the power consumption of laptop hardware including battery status. Type the following command to view stats or click on GUI power icon located on top right side of the desktop screen:
$ gnome-power-statistics
Sample outputs:

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 0 comments... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum