How to Troubleshoot Cell Issues with Upower Scripts

Whether you use a laptop, netbook, notebook, tablet or even a Linux smartphone, you’re bound to end up with cell issues after you’ve used it for a long period. More than likely your monitoring icon simply indicates that your battery is charging or discharging. Perhaps it indicates a percentage, but it provides little information about performance or chemistry. Cells utilized in the construction of power systems for mobile devices are largely based on Li-on technology, but may use other chemistries. More than likely it’s best to periodically charge these devices to different values, then periodically fully discharge and recharge them if the system reports a dropped percentage.

The problem is that most tools don’t indicate if the percentage of capacity is dropping or not. There is a short batch script you can construct that will help you to troubleshoot these systems.

Troubleshooting Cell Problems

Either head to a virtual console by holding CTRL and ALT while pushing F1-F6 or instead open a graphical command prompt by holding CTRL and ALT while pushing T or starting it from the root menu. Type cd ~/Documents to put yourself in an innocuous folder, then type the following lines followed by enter each time:

cat > checkcell

#!/bin/bash

upower -i $(upower -e | grep ‘BAT’)

upower-1

Hold CTRL and push D when you reach the end. Navigate to ~/Documents in a graphical file manager you start either by holding the Windows key and pushing E or from the root graphical menu, depending on your distribution. Right click on checkcell, click on Permissions and set the permissions to:

View content: Anyone

Change content: Only owner

Execute: Anyone

upower-2

Head back to your command prompt and type ./checkcell for information about the capacity and chemistry of your battery that can aid in troubleshooting.

Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

How to Troubleshoot Cell Issues with Upower Scripts

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested