Posts tagged with “linux”

Check battery health on Linux

Nothing lasts forever, including laptop batteries. But how do you know when your laptop's battery is ripe for a replacement? Easy: install the acpi package (sudo apt install acpi on Ubuntu and Linux Mint), run the acpi -V command, and check the line that looks something like this:

Battery 0:  design capacity 4867 mAh, last full capacity 4584 mAh = 94%

In this case, the battery is at 94% of its designed capacity, so there is no cause for concern. If the value is nearing 50%, you should probably start saving for a new battery.

Since it makes sense to run battery checks regularly, you can create an alias for that. Open the .bashrc file for editing using the nano ~/.bashrc command and add the following alias:

alias chkbat="acpi -V | grep Battery"

Save the changes, reopen the terminal, and run the chkbat command.

How to make PeppyMeter work

I love VU meters. Then again, who doesn't? There is something mesmerizing about the needle or LED segments dancing to the rhythm of the music. So when I stumbled upon PeppyMeter, I knew right away that I must have it running on my machine. Making it work turned out to be a non-trivial matter, but I managed to get it up and running after much experimenting. And I've documented all the steps for your convenience. The following procedure assumes that you're using Ubuntu or Linux Mint.

Continue reading