It may sometime happen by accident that the power cable connecting the power source to your notebook gets disconnected while you work with the mobile computer. It does not have to be by accident though, maybe you want to use the notebook in a different location without having to save everything and boot again. The problem that comes up in this situation is that the notebook will start running on battery instead, which can be a issue if it was not charged fully in first place. If the notebook gets disconnected from the power source at an inappropriate time, it may happen that it powers down immediately.
Battery Run is a little command line utility that checks if a power cable is connected. Once it notices that the power cable has been disconnected, it starts a user defined action. A second action is run when the notebook is connected to a power source again. You could for instance play a sound if the power cable gets disconnected to notify you that this just happened, or a software that would reduce power consumption.
Usage is straightforward. Download and unpack the file on your hard drive. Use the command batteryrun load-program-when-disconnected load-program-when connected. For example: batteryrun disconnected.wav connected.wav
Batteryrun will play the disconnected.wav file when the power cable gets disconnected, and the connected.wav file when it gets connected again. A icon should appear in the system tray if everything has been setup correctly.
You can obviously run different programs, or even send the program directly into hibernation or sleep mode to save battery until you can connect the PC to a power source again.
Battery Run is a free portable program for the Windows operating system. It is compatible with all recent 32-bit and 64-bit editions of the operating system.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.