Was just wondering if there is software or program/app that would switch the power from AC to battery on a ubuntu laptop without having to pull the power cord? Look in google, but only found software to change power modes(high to low). Asking if I could leave power cord attached, but run on battery if I wanted.
This is suitable for people that like to let their laptop batteries discharge automatically and then recharge at a certain percentage.
Hardware component (20 bucks)
First you need an TP-Link HS100 compatible smart plug like this one:
Software component (Free)
Then you need some free Linux software like tp-link Wi-Fi Smart Plug HS100:
Switch plug on:
Switch plug off:
Check if plug is on or off:
Print plug system status: