Battery

The battery test evaluates built-in batteries by detecting the AC adapter presence and charge status. You can run this test to verify the capacity and the charging and discharging capabilities of your battery.

What the test covers

The battery test is valid and can only be run on systems with built-in batteries. The test is not supported on external batteries. These batteries do not provide primary, internal power to the system, such as UPS or BIOS batteries. The test is scheduled when the hardware detection routines find the following string in the udev database:

POWER_SUPPLY_TYPE=Battery
RHEL version supported
  • RHEL 8
  • RHEL 9
  • RHEL 10
What the test does
The test detects if the battery is connected and if the AC adapter is plugged into the system. It also detects the charging and discharging status of the battery.
Preparing for the test
Note

Do not perform the test when the battery is at 100% charge. Discharge the battery to a lower level before running the test to avoid potential test failures.

Running the test

The test is interactive. Run the following command and then select the appropriate battery test name from the list that displays.

 rhcert-run

The test detects the 10 mWh battery charge and discharge, displays the current capacity, and charging status of the battery. Follow the on-screen instructions to unplug and plug in the AC adapter when prompted.

Run time
The execution time of the test depends on the charging and discharging speed of the battery. Since this test is run on a laptop, the required supportable test runs along with its suspend test. Overall, it takes 7-10 minutes.